5fe5fcef23f6c55b61981b3a0c459be9cf75c4aa
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         unsetenv: Move AC_LIBOBJ invocations to module description.
4         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5         and gl_PREREQ_UNSETENV invocations from here...
6         * modules/unsetenv (configure.ac): ... to here.
7         (Depends-on): Update.
8
9 2011-05-21  Bruno Haible  <bruno@clisp.org>
10
11         setenv: Move AC_LIBOBJ invocations to module description.
12         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13         here...
14         * modules/setenv (configure.ac): ... to here.
15
16 2011-05-21  Bruno Haible  <bruno@clisp.org>
17
18         selinux-h: Move AC_LIBOBJ invocations to module description.
19         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
20         AC_LIBOBJ invocation from here...
21         * modules/selinux-h (configure.ac): ... to here.
22
23 2011-05-21  Bruno Haible  <bruno@clisp.org>
24
25         select: Respect rules for use of AC_LIBOBJ.
26         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
27         here...
28         * modules/select (configure.ac): ... to here.
29
30 2011-05-21  Bruno Haible  <bruno@clisp.org>
31
32         scandir: Move AC_LIBOBJ invocations to module description.
33         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34         invocations from here...
35         * modules/scandir (configure.ac): ... to here.
36
37 2011-05-21  Bruno Haible  <bruno@clisp.org>
38
39         rpmatch: Move AC_LIBOBJ invocations to module description.
40         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
41         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
42         here...
43         * modules/rpmatch (configure.ac): ... to here.
44
45 2011-05-21  Bruno Haible  <bruno@clisp.org>
46
47         rmdir: Respect rules for use of AC_LIBOBJ.
48         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49         * modules/rmdir (configure.ac): ... to here.
50
51 2011-05-21  Bruno Haible  <bruno@clisp.org>
52
53         renameat: Move AC_LIBOBJ invocations to module description.
54         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
55         here...
56         * modules/renameat (configure.ac): ... to here.
57
58 2011-05-21  Bruno Haible  <bruno@clisp.org>
59
60         rename: Respect rules for use of AC_LIBOBJ.
61         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
62         here...
63         * modules/rename (configure.ac): ... to here.
64
65 2011-05-21  Bruno Haible  <bruno@clisp.org>
66
67         remove: Move AC_LIBOBJ invocations to module description.
68         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
69         here...
70         * modules/remove (configure.ac): ... to here.
71
72 2011-05-21  Bruno Haible  <bruno@clisp.org>
73
74         relocatable-lib: Move AC_LIBOBJ invocations to module description.
75         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
76         macro.
77         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
78         * modules/relocatable-lib (configure.ac): ... to here.
79         * modules/relocatable-prog-wrapper (configure.ac): Invoke
80         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
81
82 2011-05-21  Bruno Haible  <bruno@clisp.org>
83
84         relocatable-prog: Move AC_LIBOBJ invocations to module description.
85         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
86         here...
87         * modules/relocatable-prog (configure.ac): ... to here.
88
89 2011-05-21  Bruno Haible  <bruno@clisp.org>
90
91         regex: Move AC_LIBOBJ invocations to module description.
92         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
93         invocations from here...
94         * modules/regex (configure.ac): ... to here.
95
96 2011-05-21  Bruno Haible  <bruno@clisp.org>
97
98         realloc-*: Move AC_LIBOBJ invocations to module description.
99         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
100         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
101         AC_LIBOBJ invocations from here...
102         * modules/realloc-gnu (configure.ac): ... to here.
103         * modules/realloc-posix (configure.ac): ... and here.
104
105 2011-05-21  Bruno Haible  <bruno@clisp.org>
106
107         readutmp: Move AC_LIBOBJ invocations to module description.
108         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
109         * modules/readutmp (configure.ac): ... to here.
110
111 2011-05-21  Bruno Haible  <bruno@clisp.org>
112
113         readlinkat: Move AC_LIBOBJ invocations to module description.
114         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
115         here...
116         * modules/readlinkat (configure.ac): ... to here.
117
118 2011-05-21  Bruno Haible  <bruno@clisp.org>
119
120         readlink: Move AC_LIBOBJ invocations to module description.
121         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
122         gl_PREREQ_READLINK invocations from here...
123         * modules/readlink (configure.ac): ... to here.
124
125 2011-05-21  Bruno Haible  <bruno@clisp.org>
126
127         readline: Move AC_LIBOBJ invocations to module description.
128         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
129         gl_PREREQ_READLINE invocations from here...
130         * modules/readline (configure.ac): ... to here.
131
132 2011-05-21  Bruno Haible  <bruno@clisp.org>
133
134         read: Move AC_LIBOBJ invocations to module description.
135         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
136         * modules/read (configure.ac): ... to here.
137
138 2011-05-21  Bruno Haible  <bruno@clisp.org>
139
140         rawmemchr: Move AC_LIBOBJ invocations to module description.
141         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
143         from here...
144         * modules/rawmemchr (configure.ac): ... to here.
145
146 2011-05-21  Bruno Haible  <bruno@clisp.org>
147
148         random_r: Move AC_LIBOBJ invocations to module description.
149         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
150         gl_PREREQ_RANDOM_R invocations from here...
151         * modules/random_r (configure.ac): ... to here.
152
153 2011-05-21  Bruno Haible  <bruno@clisp.org>
154
155         pwrite: Move AC_LIBOBJ invocations to module description.
156         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
157         * modules/pwrite (configure.ac): ... to here.
158
159 2011-05-21  Bruno Haible  <bruno@clisp.org>
160
161         putenv: Move AC_LIBOBJ invocations to module description.
162         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
163         * modules/putenv (configure.ac): ... to here.
164
165 2011-05-21  Bruno Haible  <bruno@clisp.org>
166
167         login_tty: Move AC_LIBOBJ invocations to module description.
168         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
169         * modules/login_tty (configure.ac): ... to here.
170
171 2011-05-21  Bruno Haible  <bruno@clisp.org>
172
173         openpty: Move AC_LIBOBJ invocations to module description.
174         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
175         * modules/openpty (configure.ac): ... to here.
176
177 2011-05-21  Bruno Haible  <bruno@clisp.org>
178
179         forkpty: Move AC_LIBOBJ invocations to module description.
180         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
181         * modules/forkpty (configure.ac): ... to here.
182
183 2011-05-21  Bruno Haible  <bruno@clisp.org>
184
185         ptsname: Move AC_LIBOBJ invocations to module description.
186         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
187         invocations from here...
188         * modules/ptsname (configure.ac): ... to here.
189
190 2011-05-21  Bruno Haible  <bruno@clisp.org>
191
192         pread: Move AC_LIBOBJ invocations to module description.
193         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
194         * modules/pread (configure.ac): ... to here.
195
196 2011-05-21  Bruno Haible  <bruno@clisp.org>
197
198         posix_spawn*: Move AC_LIBOBJ invocations to module description.
199         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
200         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
201         * modules/posix_spawn (configure.ac): ... to here.
202         * modules/posix_spawnp (configure.ac): ... and here.
203
204 2011-05-21  Bruno Haible  <bruno@clisp.org>
205
206         popen: Move AC_LIBOBJ invocations to module description.
207         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
208         invocations from here...
209         * modules/popen (configure.ac): ... to here.
210
211 2011-05-21  Bruno Haible  <bruno@clisp.org>
212
213         poll: Move AC_LIBOBJ invocations to module description.
214         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
215         invocations from here...
216         * modules/poll (configure.ac): ... to here.
217
218 2011-05-21  Bruno Haible  <bruno@clisp.org>
219
220         pipe-posix: Move AC_LIBOBJ invocations to module description.
221         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
222         * modules/pipe-posix (configure.ac): ... to here.
223
224 2011-05-21  Bruno Haible  <bruno@clisp.org>
225
226         openat: Respect rules for use of AC_LIBOBJ.
227         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
228         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
229         * modules/openat (configure.ac): ... to here.
230
231 2011-05-21  Bruno Haible  <bruno@clisp.org>
232
233         obstack-printf*: Move AC_LIBOBJ invocations to module description.
234         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
235         invocation from here...
236         * modules/obstack-printf (configure.ac): ... to here.
237         * modules/obstack-printf-posix (configure.ac): ... and here.
238
239 2011-05-21  Bruno Haible  <bruno@clisp.org>
240
241         nl_langinfo: Move AC_LIBOBJ invocations to module description.
242         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
243         from here...
244         * modules/nl_langinfo (configure.ac): ... to here.
245
246 2011-05-21  Bruno Haible  <bruno@clisp.org>
247
248         nanosleep: Move AC_LIBOBJ invocations to module description.
249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
250         gl_PREREQ_NANOSLEEP invocations from here...
251         * modules/nanosleep (configure.ac): ... to here.
252
253 2011-05-21  Bruno Haible  <bruno@clisp.org>
254
255         mountlist: Move AC_LIBOBJ invocations to module description.
256         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
257         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
258         * modules/mountlist (configure.ac): ... to here.
259
260 2011-05-21  Bruno Haible  <bruno@clisp.org>
261
262         mktime: Respect rules for use of AC_LIBOBJ.
263         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
264         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
265         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
266         (gl_FUNC_MKTIME_INTERNAL): ... and here...
267         * modules/mktime (configure.ac): ... to here.
268         * modules/mktime-internal (configure.ac): ... and here.
269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
270
271 2011-05-21  Bruno Haible  <bruno@clisp.org>
272
273         mkstemps: Move AC_LIBOBJ invocations to module description.
274         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
275         here...
276         * modules/mkstemps (configure.ac): ... to here.
277
278 2011-05-21  Bruno Haible  <bruno@clisp.org>
279
280         mkstemp: Move AC_LIBOBJ invocations to module description.
281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
282         gl_PREREQ_MKSTEMP invocations from here...
283         * modules/mkstemp (configure.ac): ... to here.
284
285 2011-05-21  Bruno Haible  <bruno@clisp.org>
286
287         mkostemps: Move AC_LIBOBJ invocations to module description.
288         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
289         here...
290         * modules/mkostemps (configure.ac): ... to here.
291
292 2011-05-21  Bruno Haible  <bruno@clisp.org>
293
294         mkostemp: Move AC_LIBOBJ invocations to module description.
295         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
296         gl_PREREQ_MKOSTEMP invocations from here...
297         * modules/mkostemp (configure.ac): ... to here.
298
299 2011-05-21  Bruno Haible  <bruno@clisp.org>
300
301         mknod: Move AC_LIBOBJ invocations to module description.
302         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
303         * modules/mknod (configure.ac): ... to here.
304
305 2011-05-21  Bruno Haible  <bruno@clisp.org>
306
307         mkfifoat: Move AC_LIBOBJ invocations to module description.
308         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
309         here...
310         * modules/mkfifoat (configure.ac): ... to here.
311
312 2011-05-21  Bruno Haible  <bruno@clisp.org>
313
314         mkfifo: Respect rules for use of AC_LIBOBJ.
315         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
316         here...
317         * modules/mkfifo (configure.ac): ... to here.
318
319 2011-05-21  Bruno Haible  <bruno@clisp.org>
320
321         mkdtemp: Move AC_LIBOBJ invocations to module description.
322         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
323         invocations from here...
324         * modules/mkdtemp (configure.ac): ... to here.
325
326 2011-05-21  Bruno Haible  <bruno@clisp.org>
327
328         mkdir: Move AC_LIBOBJ invocations to module description.
329         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
330         * modules/mkdir (configure.ac): ... to here.
331
332 2011-05-21  Bruno Haible  <bruno@clisp.org>
333
334         memset: Move AC_LIBOBJ invocations to module description.
335         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
337         here...
338         * modules/memset (configure.ac): ... to here.
339
340 2011-05-21  Bruno Haible  <bruno@clisp.org>
341
342         memrchr: Move AC_LIBOBJ invocations to module description.
343         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
345         here...
346         * modules/memrchr (configure.ac): ... to here.
347
348 2011-05-21  Bruno Haible  <bruno@clisp.org>
349
350         mempcpy: Move AC_LIBOBJ invocations to module description.
351         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
353         here...
354         * modules/mempcpy (configure.ac): ... to here.
355
356 2011-05-21  Bruno Haible  <bruno@clisp.org>
357
358         memmove: Move AC_LIBOBJ invocations to module description.
359         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
361         here...
362         * modules/memmove (configure.ac): ... to here.
363
364 2011-05-21  Bruno Haible  <bruno@clisp.org>
365
366         memmem*: Move AC_LIBOBJ invocations to module description.
367         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
368         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
369         here...
370         (gl_FUNC_MEMMEM): ... and here...
371         * modules/memmem-simple (configure.ac): ... to here.
372         * modules/memmem (configure.ac): ... and here.
373
374 2011-05-21  Bruno Haible  <bruno@clisp.org>
375
376         memcpy: Move AC_LIBOBJ invocations to module description.
377         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
379         here...
380         * modules/memcpy (configure.ac): ... to here.
381
382 2011-05-21  Bruno Haible  <bruno@clisp.org>
383
384         memcmp: Simplify autoconf macro.
385         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
386         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
387         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
388
389 2011-05-21  Bruno Haible  <bruno@clisp.org>
390
391         memcmp: Move AC_LIBOBJ invocations to module description.
392         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
393         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
394         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
395         * modules/memcmp (configure.ac): ... to here.
396         (Depends-on): Update conditions.
397
398 2011-05-21  Bruno Haible  <bruno@clisp.org>
399
400         memchr: Respect rules for use of AC_LIBOBJ.
401         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
402         invocations from here...
403         * modules/memchr (configure.ac): ... to here.
404
405 2011-05-21  Bruno Haible  <bruno@clisp.org>
406
407         mbtowc: Move AC_LIBOBJ invocations to module description.
408         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
409         invocations from here...
410         * modules/mbtowc (configure.ac): ... to here.
411
412 2011-05-21  Bruno Haible  <bruno@clisp.org>
413
414         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
415         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
416         gl_PREREQ_MBSRTOWCS invocations from here...
417         * modules/mbsrtowcs (configure.ac): ... to here.
418
419 2011-05-21  Bruno Haible  <bruno@clisp.org>
420
421         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
422         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
423         gl_PREREQ_MBSNRTOWCS invocations from here...
424         * modules/mbsnrtowcs (configure.ac): ... to here.
425
426 2011-05-21  Bruno Haible  <bruno@clisp.org>
427
428         mbsinit: Move AC_LIBOBJ invocations to module description.
429         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
430         invocations from here...
431         * modules/mbsinit (configure.ac): ... to here.
432
433 2011-05-21  Bruno Haible  <bruno@clisp.org>
434
435         mbrlen: Move AC_LIBOBJ invocations to module description.
436         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
437         invocations from here...
438         * modules/mbrlen (configure.ac): ... to here.
439
440 2011-05-21  Bruno Haible  <bruno@clisp.org>
441
442         mbrtowc: Respect rules for use of AC_LIBOBJ.
443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
444         invocations from here...
445         * modules/mbrtowc (configure.ac): ... to here.
446
447 2011-05-21  Bruno Haible  <bruno@clisp.org>
448
449         malloc-*: Move AC_LIBOBJ invocations to module description.
450         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
451         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
452         AC_LIBOBJ invocations from here...
453         * modules/malloc-gnu (configure.ac): ... to here.
454         * modules/malloc-posix (configure.ac): ... and here.
455
456 2011-05-21  Bruno Haible  <bruno@clisp.org>
457
458         lstat, openat: Respect rules for use of AC_LIBOBJ.
459         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
460         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
461         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
462         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
463         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
464         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
465         here.
466         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
467
468 2011-05-21  Bruno Haible  <bruno@clisp.org>
469
470         lseek: Move AC_LIBOBJ invocations to module description.
471         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
472         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
473         * modules/lseek (configure.ac): ... to here.
474
475 2011-05-21  Bruno Haible  <bruno@clisp.org>
476
477         linkat: Move AC_LIBOBJ invocations to module description.
478         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
479         here...
480         * modules/linkat (configure.ac): ... to here.
481
482 2011-05-21  Bruno Haible  <bruno@clisp.org>
483
484         link: Respect rules for use of AC_LIBOBJ.
485         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
486         * modules/link (configure.ac): ... to here.
487
488 2011-05-21  Bruno Haible  <bruno@clisp.org>
489
490         lchown: Move AC_LIBOBJ invocations to module description.
491         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
492         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
493         * modules/lchown (configure.ac): ... to here.
494
495 2011-05-21  Bruno Haible  <bruno@clisp.org>
496
497         iswctype: Move AC_LIBOBJ invocations to module description.
498         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
499         here...
500         * modules/iswctype (configure.ac): ... to here.
501
502 2011-05-21  Bruno Haible  <bruno@clisp.org>
503
504         iswblank: Move AC_LIBOBJ invocations to module description.
505         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
506         here...
507         * modules/iswblank (configure.ac): ... to here.
508
509 2011-05-21  Bruno Haible  <bruno@clisp.org>
510
511         atanl: Move AC_LIBOBJ invocations to module description.
512         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
513         * modules/atanl (configure.ac): ... to here.
514
515 2011-05-21  Bruno Haible  <bruno@clisp.org>
516
517         acosl: Move AC_LIBOBJ invocations to module description.
518         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
519         * modules/acosl (configure.ac): ... to here.
520
521 2011-05-21  Bruno Haible  <bruno@clisp.org>
522
523         asinl: Respect rules for use of AC_LIBOBJ.
524         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
525         * modules/asinl (configure.ac): ... to here.
526
527 2011-05-21  Bruno Haible  <bruno@clisp.org>
528
529         tanl: Move AC_LIBOBJ invocations to module description.
530         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
531         * modules/tanl (configure.ac): ... to here.
532
533 2011-05-21  Bruno Haible  <bruno@clisp.org>
534
535         cosl: Move AC_LIBOBJ invocations to module description.
536         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
537         * modules/cosl (configure.ac): ... to here.
538
539 2011-05-21  Bruno Haible  <bruno@clisp.org>
540
541         sinl: Move AC_LIBOBJ invocations to module description.
542         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
543         * modules/sinl (configure.ac): ... to here.
544
545 2011-05-21  Bruno Haible  <bruno@clisp.org>
546
547         logl: Move AC_LIBOBJ invocations to module description.
548         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
549         * modules/logl (configure.ac): ... to here.
550
551 2011-05-21  Bruno Haible  <bruno@clisp.org>
552
553         expl: Move AC_LIBOBJ invocations to module description.
554         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
555         * modules/expl (configure.ac): ... to here.
556
557 2011-05-21  Bruno Haible  <bruno@clisp.org>
558
559         roundl: Move AC_LIBOBJ invocations to module description.
560         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
561         * modules/roundl (configure.ac): ... to here.
562
563 2011-05-21  Bruno Haible  <bruno@clisp.org>
564
565         round: Move AC_LIBOBJ invocations to module description.
566         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
567         * modules/round (configure.ac): ... to here.
568
569 2011-05-21  Bruno Haible  <bruno@clisp.org>
570
571         roundf: Move AC_LIBOBJ invocations to module description.
572         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
573         * modules/roundf (configure.ac): ... to here.
574
575 2011-05-21  Bruno Haible  <bruno@clisp.org>
576
577         truncl: Move AC_LIBOBJ invocations to module description.
578         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
579         * modules/truncl (configure.ac): ... to here.
580
581 2011-05-21  Bruno Haible  <bruno@clisp.org>
582
583         trunc: Move AC_LIBOBJ invocations to module description.
584         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
585         * modules/trunc (configure.ac): ... to here.
586
587 2011-05-21  Bruno Haible  <bruno@clisp.org>
588
589         truncf: Move AC_LIBOBJ invocations to module description.
590         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
591         * modules/truncf (configure.ac): ... to here.
592
593 2011-05-21  Bruno Haible  <bruno@clisp.org>
594
595         ceill: Move AC_LIBOBJ invocations to module description.
596         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
597         * modules/ceill (configure.ac): ... to here.
598
599 2011-05-21  Bruno Haible  <bruno@clisp.org>
600
601         ceil: Move AC_LIBOBJ invocations to module description.
602         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
603         * modules/ceil (configure.ac): ... to here.
604
605 2011-05-21  Bruno Haible  <bruno@clisp.org>
606
607         ceilf: Move AC_LIBOBJ invocations to module description.
608         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
609         * modules/ceilf (configure.ac): ... to here.
610
611 2011-05-21  Bruno Haible  <bruno@clisp.org>
612
613         floorl: Respect rules for use of AC_LIBOBJ.
614         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
615         * modules/floorl (configure.ac): ... to here.
616
617 2011-05-21  Bruno Haible  <bruno@clisp.org>
618
619         floor: Respect rules for use of AC_LIBOBJ.
620         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
621         * modules/floor (configure.ac): ... to here.
622
623 2011-05-21  Bruno Haible  <bruno@clisp.org>
624
625         floorf: Move AC_LIBOBJ invocations to module description.
626         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
627         * modules/floorf (configure.ac): ... to here.
628
629 2011-05-20  Bruno Haible  <bruno@clisp.org>
630
631         sqrtl: Respect rules for use of AC_LIBOBJ.
632         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
633         * modules/sqrtl (configure.ac): ... to here.
634
635 2011-05-20  Bruno Haible  <bruno@clisp.org>
636
637         ldexpl: Respect rules for use of AC_LIBOBJ.
638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
639         * modules/ldexpl (configure.ac): ... to here.
640
641 2011-05-20  Bruno Haible  <bruno@clisp.org>
642
643         frexpl*: Respect rules for use of AC_LIBOBJ.
644         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
645         invocation from here...
646         * modules/frexpl (configure.ac): ... to here.
647         * modules/frexpl-nolibm (configure.ac): ... and here.
648
649 2011-05-20  Bruno Haible  <bruno@clisp.org>
650
651         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
652         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
653         invocation from here...
654         * modules/frexp (configure.ac): ... to here.
655         * modules/frexp-nolibm (configure.ac): ... and here.
656
657 2011-05-20  Bruno Haible  <bruno@clisp.org>
658
659         isnan: Respect rules for use of AC_LIBOBJ.
660         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
661         invocations here.
662         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
663         REPLACE_ISNAN.
664         * modules/isnand (configure.ac): Likewise.
665         * modules/isnanl (configure.ac): Likewise.
666
667 2011-05-20  Bruno Haible  <bruno@clisp.org>
668
669         isnanl*: Respect rules for use of AC_LIBOBJ.
670         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
671         invocation from here...
672         * modules/isnanl (configure.ac): ... to here.
673         * modules/isnanl-nolibm (configure.ac): ... and here.
674
675 2011-05-20  Bruno Haible  <bruno@clisp.org>
676
677         isnand*: Move AC_LIBOBJ invocations to module description.
678         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
679         invocation from here...
680         * modules/isnand (configure.ac): ... to here.
681         * modules/isnand-nolibm (configure.ac): ... and here.
682
683 2011-05-20  Bruno Haible  <bruno@clisp.org>
684
685         isnanf*: Move AC_LIBOBJ invocations to module description.
686         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
687         invocation from here...
688         * modules/isnanf (configure.ac): ... to here.
689         * modules/isnanf-nolibm (configure.ac): ... and here.
690
691 2011-05-20  Bruno Haible  <bruno@clisp.org>
692
693         isnan*: Separate the AC_LIBOBJ invocations.
694         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
695         AC_LIBOBJ invocation.
696         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
697         here.
698         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
699         AC_LIBOBJ invocation.
700         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
701         here.
702         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
703         AC_LIBOBJ invocation.
704         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
705         here.
706         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
707
708 2011-05-08  Bruno Haible  <bruno@clisp.org>
709
710         isinf: Move AC_LIBOBJ invocations to module description.
711         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
712         * modules/isinf (configure.ac): ... to here.
713
714 2011-05-08  Bruno Haible  <bruno@clisp.org>
715
716         isfinite: Move AC_LIBOBJ invocations to module description.
717         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
718         * modules/isfinite (configure.ac): ... to here.
719
720 2011-05-08  Bruno Haible  <bruno@clisp.org>
721
722         isblank: Move AC_LIBOBJ invocations to module description.
723         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
724         here...
725         * modules/isblank (configure.ac): ... to here.
726
727 2011-05-08  Bruno Haible  <bruno@clisp.org>
728
729         isapipe: Move AC_LIBOBJ invocations to module description.
730         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
731         gl_PREREQ_ISAPIPE invocations from here...
732         * modules/isapipe (configure.ac): ... to here.
733         (Depends-on): Update condition.
734
735 2011-05-08  Bruno Haible  <bruno@clisp.org>
736
737         ioctl: Move AC_LIBOBJ invocations to module description.
738         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
739         invocations from here...
740         * modules/ioctl (configure.ac): ... to here.
741         (Depends-on): Update condition.
742
743 2011-05-08  Bruno Haible  <bruno@clisp.org>
744
745         imaxdiv: Move AC_LIBOBJ invocations to module description.
746         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
747         invocations from here...
748         * modules/imaxdiv (configure.ac): ... to here.
749
750 2011-05-08  Bruno Haible  <bruno@clisp.org>
751
752         imaxabs: Move AC_LIBOBJ invocations to module description.
753         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
754         invocations from here...
755         * modules/imaxabs (configure.ac): ... to here.
756
757 2011-05-08  Bruno Haible  <bruno@clisp.org>
758
759         getaddrinfo: Move AC_LIBOBJ invocations to module description.
760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
761         AC_LIBOBJ invocations from here...
762         * modules/getaddrinfo (configure.ac): ... to here.
763         (Depends-on): Add conditions.
764
765 2011-05-08  Bruno Haible  <bruno@clisp.org>
766
767         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
768         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
769         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
770         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
771         (gl_PREREQ_INET_PTON): ... from here.
772         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
773         gl_PREREQ_INET_PTON here.
774         (Depends-on): Update condition.
775
776 2011-05-08  Bruno Haible  <bruno@clisp.org>
777
778         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
779         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
780         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
781         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
782         (gl_PREREQ_INET_NTOP): ... from here.
783         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
784         gl_PREREQ_INET_NTOP here.
785         (Depends-on): Update condition.
786
787 2011-05-08  Bruno Haible  <bruno@clisp.org>
788
789         iconv_open: Move AC_LIBOBJ invocations to module description.
790         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
791         AC_LIBOBJ invocations from here...
792         * modules/iconv_open (configure.ac): ... to here.
793
794 2011-05-08  Bruno Haible  <bruno@clisp.org>
795
796         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
797         If module 'iconv_open' is among the main modules and module
798         'iconv_open-utf' is among the tests dependencies, then
799         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
800         return the special iconv_t values. Therefore iconv() and iconv_close()
801         must support these special iconv_t values, already in lib, not only in
802         tests.
803         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
804         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
805         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
806         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
807         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
808         (Depends-on): Add the dependencies of iconv_open-utf.
809         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
810         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
811         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
812
813 2011-05-08  Bruno Haible  <bruno@clisp.org>
814
815         group-member: Move AC_LIBOBJ invocations to module description.
816         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
817         gl_PREREQ_GROUP_MEMBER invocations from here...
818         * modules/group-member (configure.ac): ... to here.
819
820 2011-05-08  Bruno Haible  <bruno@clisp.org>
821
822         grantpt: Move AC_LIBOBJ invocations to module description.
823         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
824         invocations from here...
825         * modules/grantpt (configure.ac): ... to here.
826
827 2011-05-08  Bruno Haible  <bruno@clisp.org>
828
829         glob: Move AC_LIBOBJ invocations to module description.
830         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
831         from here...
832         * modules/glob (configure.ac): ... to here.
833
834 2011-05-08  Bruno Haible  <bruno@clisp.org>
835
836         getusershell: Move AC_LIBOBJ invocations to module description.
837         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
838         Move AC_LIBOBJ invocation from here...
839         * modules/getusershell (configure.ac): ... to here.
840         (Depends-on): Update condition.
841
842 2011-05-08  Bruno Haible  <bruno@clisp.org>
843
844         gettimeofday: Move AC_LIBOBJ invocations to module description.
845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
846         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
847         gl_PREREQ_GETTIMEOFDAY invocations from here...
848         * modules/gettimeofday (configure.ac): ... to here.
849
850 2011-05-08  Bruno Haible  <bruno@clisp.org>
851
852         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
853         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
854         just gl_FUNC_TZSET.
855         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
856         (gl_FUNC_TZSET_CLOBBER): Remove actions.
857         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
858         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
859
860 2011-05-08  Bruno Haible  <bruno@clisp.org>
861
862         getsubopt: Move AC_LIBOBJ invocations to module description.
863         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
864         gl_PREREQ_GETSUBOPT invocations from here...
865         * modules/getsubopt (configure.ac): ... to here.
866
867 2011-05-08  Bruno Haible  <bruno@clisp.org>
868
869         getpass-gnu: Move AC_LIBOBJ invocations to module description.
870         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
871         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
872         * modules/getpass-gnu (configure.ac): ... to here.
873
874 2011-05-08  Bruno Haible  <bruno@clisp.org>
875
876         getpass: Move AC_LIBOBJ invocations to module description.
877         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
878         gl_PREREQ_GETPASS invocations from here...
879         * modules/getpass (configure.ac): ... to here.
880
881 2011-05-08  Bruno Haible  <bruno@clisp.org>
882
883         getpagesize: Move AC_LIBOBJ invocations to module description.
884         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
885         from here...
886         * modules/getpagesize (configure.ac): ... to here.
887
888 2011-05-08  Bruno Haible  <bruno@clisp.org>
889
890         getopt: Move AC_LIBOBJ invocations to module description.
891         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
892         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
893         invocations from here...
894         * modules/getopt-gnu (configure.ac): ... to here.
895         * modules/getopt-posix (configure.ac): ... and here.
896         (Depends-on): Update condition.
897
898 2011-05-08  Bruno Haible  <bruno@clisp.org>
899
900         getopt, argp: Respect rules for use of AC_LIBOBJ.
901         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
902         (gl_REPLACE_GETOPT_ALWAYS): New macro.
903         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
904         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
905
906 2011-05-08  Bruno Haible  <bruno@clisp.org>
907
908         getlogin_r: Move AC_LIBOBJ invocations to module description.
909         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
910         gl_PREREQ_GETLOGIN_R invocations from here...
911         * modules/getlogin_r (configure.ac): ... to here.
912
913 2011-05-08  Bruno Haible  <bruno@clisp.org>
914
915         getlogin: Move AC_LIBOBJ invocations to module description.
916         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
917         here...
918         * modules/getlogin (configure.ac): ... to here.
919
920 2011-05-08  Bruno Haible  <bruno@clisp.org>
921
922         getloadavg: Move AC_LIBOBJ invocations to module description.
923         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
924         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
925         * modules/getloadavg (configure.ac): ... to here.
926
927 2011-05-08  Bruno Haible  <bruno@clisp.org>
928
929         gethrxtime: Move AC_LIBOBJ invocations to module description.
930         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
931         LIB_GETHRXTIME from here...
932         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
933         invocations from here...
934         * modules/gethrxtime (configure.ac): ... to here.
935
936 2011-05-08  Bruno Haible  <bruno@clisp.org>
937
938         gethostname: Move AC_LIBOBJ invocations to module description.
939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
940         gl_PREREQ_GETHOSTNAME invocations from here...
941         * modules/gethostname (configure.ac): ... to here.
942
943 2011-05-08  Bruno Haible  <bruno@clisp.org>
944
945         getgroups: Move AC_LIBOBJ invocations to module description.
946         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
947         here...
948         * modules/getgroups (configure.ac): ... to here.
949
950 2011-05-08  Bruno Haible  <bruno@clisp.org>
951
952         getdtablesize: Move AC_LIBOBJ invocations to module description.
953         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
954         invocation from here...
955         * modules/getdtablesize (configure.ac): ... to here.
956
957 2011-05-08  Bruno Haible  <bruno@clisp.org>
958
959         getdomainname: Move AC_LIBOBJ invocations to module description.
960         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
961         gl_PREREQ_GETDOMAINNAME invocations from here...
962         * modules/getdomainname (configure.ac): ... to here.
963
964 2011-05-08  Bruno Haible  <bruno@clisp.org>
965
966         getline: Move AC_LIBOBJ invocations to module description.
967         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
968         invocations from here...
969         * modules/getline (configure.ac): ... to here.
970
971 2011-05-08  Bruno Haible  <bruno@clisp.org>
972
973         getline: Simplify.
974         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
975         It's already handled through the module dependency.
976
977 2011-05-08  Bruno Haible  <bruno@clisp.org>
978
979         getdelim: Move AC_LIBOBJ invocations to module description.
980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
981         and gl_PREREQ_GETDELIM invocations from here...
982         * modules/getdelim (configure.ac): ... to here.
983         (Depends-on): Fix condition.
984
985 2011-05-08  Bruno Haible  <bruno@clisp.org>
986
987         getcwd: Move AC_LIBOBJ invocations to module description.
988         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
989         invocations from here...
990         * modules/getcwd (configure.ac): ... to here.
991
992 2011-05-08  Bruno Haible  <bruno@clisp.org>
993
994         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
995         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
996         here...
997         * modules/getcwd-lgpl (configure.ac): ... to here.
998
999 2011-05-07  Bruno Haible  <bruno@clisp.org>
1000
1001         crypto/gc: Move AC_LIBOBJ invocations to module description.
1002         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1003         * modules/crypto/gc (configure.ac): ... to here.
1004
1005 2011-05-07  Bruno Haible  <bruno@clisp.org>
1006
1007         fwriting: Move AC_LIBOBJ invocations to module description.
1008         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1009         here...
1010         * modules/fwriting (configure.ac): ... to here.
1011
1012 2011-05-07  Bruno Haible  <bruno@clisp.org>
1013
1014         fwritable: Move AC_LIBOBJ invocations to module description.
1015         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1016         here...
1017         * modules/fwritable (configure.ac): ... to here.
1018
1019 2011-05-07  Bruno Haible  <bruno@clisp.org>
1020
1021         futimens: Move AC_LIBOBJ invocations to module description.
1022         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1023         here...
1024         * modules/futimens (configure.ac): ... to here.
1025
1026 2011-05-07  Bruno Haible  <bruno@clisp.org>
1027
1028         ftruncate: Move AC_LIBOBJ invocations to module description.
1029         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1030         gl_PREREQ_FTRUNCATE invocations from here...
1031         * modules/ftruncate (configure.ac): ... to here.
1032
1033 2011-05-07  Bruno Haible  <bruno@clisp.org>
1034
1035         fsync: Move AC_LIBOBJ invocations to module description.
1036         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1037         invocations from here...
1038         * modules/fsync (configure.ac): ... to here.
1039
1040 2011-05-07  Bruno Haible  <bruno@clisp.org>
1041
1042         fsusage: Move AC_LIBOBJ invocations to module description.
1043         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1044         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1045         * modules/fsusage (configure.ac): ... to here.
1046
1047 2011-05-07  Bruno Haible  <bruno@clisp.org>
1048
1049         freopen: Move AC_LIBOBJ invocations to module description.
1050         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1051         invocations from here...
1052         * modules/freopen (configure.ac): ... to here.
1053
1054 2011-05-07  Bruno Haible  <bruno@clisp.org>
1055
1056         free: Move AC_LIBOBJ invocations to module description.
1057         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1058         invocations from here...
1059         * modules/free (configure.ac): ... to here.
1060
1061 2011-05-07  Bruno Haible  <bruno@clisp.org>
1062
1063         freadable: Move AC_LIBOBJ invocations to module description.
1064         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1065         here...
1066         * modules/freadable (configure.ac): ... to here.
1067
1068 2011-05-07  Bruno Haible  <bruno@clisp.org>
1069
1070         fpurge: Move AC_LIBOBJ invocations to module description.
1071         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1072         invocations from here...
1073         * modules/fpurge (configure.ac): ... to here.
1074
1075 2011-05-07  Bruno Haible  <bruno@clisp.org>
1076
1077         fpending: Move AC_LIBOBJ invocations to module description.
1078         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1079         gl_FUNC_FPENDING.
1080         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1081         invocations from here...
1082         * modules/fpending (configure.ac): ... to here.
1083
1084 2011-05-07  Bruno Haible  <bruno@clisp.org>
1085
1086         fopen: Move AC_LIBOBJ invocations to module description.
1087         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1088         invocations from here...
1089         * modules/fopen (configure.ac): ... to here.
1090
1091 2011-05-07  Bruno Haible  <bruno@clisp.org>
1092
1093         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1094         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1095         gl_FUNC_FNMATCH_POSIX.
1096         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1097         invocations from here...
1098         * modules/fnmatch (configure.ac): ... to here.
1099         * modules/fnmatch-gnu (configure.ac): ... and here.
1100
1101 2011-05-07  Bruno Haible  <bruno@clisp.org>
1102
1103         flock: Move AC_LIBOBJ invocations to module description.
1104         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1105         invocations from here...
1106         * modules/flock (configure.ac): ... to here.
1107
1108 2011-05-07  Bruno Haible  <bruno@clisp.org>
1109
1110         fileblocks: Move AC_LIBOBJ invocations to module description.
1111         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1112         gl_PREREQ_FILEBLOCKS invocations from here...
1113         * modules/fileblocks (configure.ac): ... to here.
1114
1115 2011-05-06  Bruno Haible  <bruno@clisp.org>
1116
1117         fflush: Move AC_LIBOBJ invocations to module description.
1118         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1119         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1120         invocations from here...
1121         * modules/fflush (configure.ac): ... to here.
1122
1123 2011-05-06  Bruno Haible  <bruno@clisp.org>
1124
1125         fdopendir: Move AC_LIBOBJ invocations to module description.
1126         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1127         here...
1128         * modules/fdopendir (configure.ac): ... to here.
1129         (Depends-on): Improve conditions.
1130
1131 2011-05-06  Bruno Haible  <bruno@clisp.org>
1132
1133         _Exit: Move AC_LIBOBJ invocations to module description.
1134         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1135         invocations from here...
1136         * modules/_Exit (configure.ac): ... to here.
1137
1138 2011-05-21  Bruno Haible  <bruno@clisp.org>
1139
1140         euidaccess: Respect rules for use of AC_LIBOBJ.
1141         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1143         from here...
1144         * modules/euidaccess (configure.ac): ... to here.
1145
1146 2011-05-06  Bruno Haible  <bruno@clisp.org>
1147
1148         error: Move AC_LIBOBJ invocations to module description.
1149         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1150         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1151         invocations from here...
1152         * modules/error (configure.ac): ... to here.
1153
1154 2011-05-06  Bruno Haible  <bruno@clisp.org>
1155
1156         duplocale: Move AC_LIBOBJ invocations to module description.
1157         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1158         gl_PREREQ_DUPLOCALE invocations from here...
1159         * modules/duplocale (configure.ac): ... to here.
1160
1161 2011-05-05  Bruno Haible  <bruno@clisp.org>
1162
1163         dirfd: Move AC_LIBOBJ invocations to module description.
1164         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1165         gl_FUNC_DIRFD.
1166         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1167         here...
1168         * modules/dirfd (configure.ac): ... to here.
1169         (Depends-on): Fix condition.
1170
1171 2011-05-05  Bruno Haible  <bruno@clisp.org>
1172
1173         chown: Respect rules for use of AC_LIBOBJ.
1174         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1175         * modules/chown (configure.ac): ... to here.
1176
1177 2011-05-05  Bruno Haible  <bruno@clisp.org>
1178
1179         chdir-long: Move AC_LIBOBJ invocations to module description.
1180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1181         gl_PREREQ_CHDIR_LONG invocations from here...
1182         * modules/chdir-long (configure.ac): ... to here.
1183
1184 2011-05-05  Bruno Haible  <bruno@clisp.org>
1185
1186         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1187         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1188         from here...
1189         * modules/canonicalize-lgpl (configure.ac): ... to here.
1190
1191 2011-05-05  Bruno Haible  <bruno@clisp.org>
1192
1193         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1194         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1195         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1196         REPLACE_CALLOC.
1197         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1198         * modules/calloc-gnu (configure.ac): Likewise.
1199
1200 2011-05-05  Bruno Haible  <bruno@clisp.org>
1201
1202         btowc: Move AC_LIBOBJ invocations to module description.
1203         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1204         invocations from here...
1205         * modules/btowc (configure.ac): ... to here.
1206
1207 2011-05-21  Bruno Haible  <bruno@clisp.org>
1208
1209         atexit: Move AC_LIBOBJ invocations to module description.
1210         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1212         here...
1213         * modules/atexit (configure.ac): ... to here.
1214
1215 2011-05-05  Bruno Haible  <bruno@clisp.org>
1216
1217         atoll: Move AC_LIBOBJ invocations to module description.
1218         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1219         invocations from here...
1220         * modules/atoll (configure.ac): ... to here.
1221
1222 2011-05-05  Bruno Haible  <bruno@clisp.org>
1223
1224         argz: Move AC_LIBOBJ invocations to module description.
1225         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1226         * modules/argz (configure.ac): ... to here.
1227
1228 2011-05-05  Bruno Haible  <bruno@clisp.org>
1229
1230         alphasort: Move AC_LIBOBJ invocations to module description.
1231         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1232         gl_PREREQ_ALPHASORT invocations from here...
1233         * modules/alphasort (configure.ac): ... to here.
1234
1235 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1236
1237         verify: new macro verify_expr; verify_true deprecated
1238         * NEWS: Mention this.
1239         * doc/verify.texi (Compile-time Assertions): Document this.
1240         * lib/verify.h (verify_true): Deprecate.
1241         (verify_expr): New macro.
1242         * tests/test-verify.c (function): Test verify_expr.
1243
1244 2011-06-14  Jim Meyering  <meyering@redhat.com>
1245
1246         init.sh: give more portable redirection-related advice in a comment
1247         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1248         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1249         for lots of discussion.  Stefano Lattarini suggested the solution
1250         of putting "9>&2" after the command.  Reported by Bruno Haible.
1251
1252 2011-06-13  Bruno Haible  <bruno@clisp.org>
1253
1254         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1255         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1256         'none'.
1257
1258 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         ftoastr: use strtof only if HAVE_STRTOF
1261         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1263         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1264         * modules/ftoastr (configure.ac): Check for strtof.
1265
1266 2011-06-13  Bruno Haible  <bruno@clisp.org>
1267
1268         gnulib-tool: Addendum to 2011-06-08 commit.
1269         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1270         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1271
1272 2011-06-13  Bruno Haible  <bruno@clisp.org>
1273
1274         fseeko: Provide a non-inline replacement of fseek().
1275         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1276         * modules/fseeko (Depends-on): Add fseek.
1277         * modules/fseek (License): Change to LGPLv2+.
1278
1279 2011-06-13  Bruno Haible  <bruno@clisp.org>
1280
1281         ftello: Provide a non-inline replacement of ftell().
1282         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1283         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1284         not have ftello() (such as on mingw).
1285         * modules/ftello (Depends-on): Add ftell.
1286         * modules/ftell (License): Change to LGPLv2+.
1287
1288 2011-05-07  Bruno Haible  <bruno@clisp.org>
1289
1290         ftell: Move AC_LIBOBJ invocations to module description.
1291         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1292         * modules/ftell (configure.ac): ... to here.
1293
1294 2011-05-07  Bruno Haible  <bruno@clisp.org>
1295
1296         ftello: Respect rules for use of AC_LIBOBJ.
1297         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1298         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1299         here...
1300         * modules/ftello (configure.ac): ... to here.
1301
1302 2011-05-07  Bruno Haible  <bruno@clisp.org>
1303
1304         fseeko: Simplify.
1305         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1306         (gl_FUNC_FSEEKO): Inline it here.
1307
1308 2011-05-07  Bruno Haible  <bruno@clisp.org>
1309
1310         fseek: Move AC_LIBOBJ invocations to module description.
1311         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1312         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1313         * modules/fseek (configure.ac): ... to here.
1314
1315 2011-05-07  Bruno Haible  <bruno@clisp.org>
1316
1317         fseek: Respect rules for use of AC_LIBOBJ.
1318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1319         here...
1320         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1321
1322 2011-05-07  Bruno Haible  <bruno@clisp.org>
1323
1324         fseeko: Respect rules for use of AC_LIBOBJ.
1325         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1326         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1327         here...
1328         * modules/fseeko (configure.ac): ... to here.
1329
1330 2011-06-13  Bruno Haible  <bruno@clisp.org>
1331
1332         gnulib-tool: Allow comments in the 'Depends-on' section.
1333         * doc/gnulib.texi (Module description): Mention comment syntax in the
1334         Depends-on section.
1335         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1336
1337 2011-06-13  Bruno Haible  <bruno@clisp.org>
1338
1339         file-set.h: guard __attibute__ use, now that it's not always defined
1340         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1341         versions that support it.  This fixes a coreutils build failure with
1342         the vendor cc on HP-UX 11.31.
1343
1344 2011-06-12  Bruno Haible  <bruno@clisp.org>
1345
1346         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1347         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1348         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1349         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1350         (acl, aclsort): New declarations.
1351         (aclv_nontrivial): New declaration.
1352         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1353         (file_has_acl): Read also the second kind of HP-UX ACLs.
1354         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1355         kind of HP-UX ACLs if the first kind fails.
1356         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1357         second kind of HP-UX ACLs.
1358         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1359         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1360         agree.
1361         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1362         hpuxjfs.
1363         Handle hpuxjfs.
1364         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1365         hpuxjfs.
1366         Handle hpuxjfs.
1367         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1368         (func_test_same_acls): Use both lsacl and getacl.
1369         Handle hpuxjfs.
1370         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1371         (func_test_same_acls): Use both lsacl and getacl.
1372         Handle hpuxjfs.
1373
1374 2011-06-12  Bruno Haible  <bruno@clisp.org>
1375
1376         acl: Complete the 2010-08-10 fix.
1377         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1378         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1379         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1380         explicitly.
1381         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1382         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1383
1384 2011-06-12  Bruno Haible  <bruno@clisp.org>
1385
1386         spawn-pipe tests: Comments.
1387         * tests/test-spawn-pipe-child.c (main): Update comment.
1388         Reported by James Youngman <jay@gnu.org>.
1389
1390 2011-06-11  James Youngman  <jay@gnu.org>
1391
1392         New module 'stat-size'.
1393         * modules/stat-size: New module.  Provides macros for accessing
1394         file size information in instances of struct stat.  Depends on the
1395         fileblocks module because it calls st_blocks.
1396         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1397         * doc/gnulib.texi: Include stat-size.texi.
1398         * doc/stat-size.texi: Documentation for this module.
1399         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1400         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1401         AC_STRUCT_ST_BLOCKS.
1402
1403 2011-06-09  Bruno Haible  <bruno@clisp.org>
1404
1405         thread: Support pthreads-win32.
1406         * lib/glthread/thread.h (gl_thread_self): Define differently on
1407         pthreads-win32.
1408         (gl_null_thread): New declaration.
1409         (gl_thread_self_pointer): New macro.
1410         * lib/glthread/thread.c (gl_null_thread): New constant.
1411         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1412         gl_thread_self.
1413         * tests/test-tls.c: Likewise.
1414         Suggested by Paul Eggert. Reported by Eric Blake.
1415
1416 2011-06-09  Bruno Haible  <bruno@clisp.org>
1417
1418         thread: Fix confusion between NULL and 0.
1419         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1420         Reported by Paul Eggert.
1421
1422 2011-06-09  Bruno Haible  <bruno@clisp.org>
1423
1424         spawn-pipe tests: Avoid test failure on HP-UX 11.
1425         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1426         is closed.
1427
1428 2011-06-09  Bruno Haible  <bruno@clisp.org>
1429
1430         acl tests: Fix compilation error on HP-UX 11.
1431         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1432
1433 2011-06-09  Bruno Haible  <bruno@clisp.org>
1434
1435         rmdir: Avoid test failure on HP-UX 10.20.
1436         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1437         EEXIST.
1438
1439 2011-06-08  Eric Blake  <eblake@redhat.com>
1440
1441         perror: fix test on mingw
1442         * modules/perror-tests (Depends-on): Add dup2.
1443
1444         strerror_r-posix: fix on MacOS
1445         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1447         logic bug.
1448         * lib/strerror_r.c (strerror_r): Fix the bug.
1449         * lib/strerror.c (strerror): Likewise.
1450         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1451         problem.
1452         * doc/posix-functions/strerror.texi (strerror): Likewise.
1453         * doc/posix-functions/perror.texi (perror): Likewise.
1454         * tests/test-strerror.c (main): Enhance test.
1455         * tests/test-strerror_r.c (main): Likewise.
1456
1457 2011-06-08  Bruno Haible  <bruno@clisp.org>
1458
1459         gnulib-tool: Better isolation between different gnulib-tool invocations.
1460         * gnulib-tool: New option --witness-c-macro.
1461         (witness_c_macro): New variable.
1462         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1463         AM_CPPFLAGS define it as a C macro.
1464         (func_emit_tests_Makefile_am): Likewise.
1465         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1466         read it from there.
1467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1468         m4_define, not AC_DEFUN.
1469         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1470         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1471         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1472         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1473         s|...|...|, to substitute the values of the GNULIB_* module indicator
1474         variables.
1475         * modules/dirent (Makefile.am): Likewise.
1476         * modules/fcntl-h (Makefile.am): Likewise.
1477         * modules/iconv-h (Makefile.am): Likewise.
1478         * modules/langinfo (Makefile.am): Likewise.
1479         * modules/locale (Makefile.am): Likewise.
1480         * modules/math (Makefile.am): Likewise.
1481         * modules/netdb (Makefile.am): Likewise.
1482         * modules/poll-h (Makefile.am): Likewise.
1483         * modules/pty (Makefile.am): Likewise.
1484         * modules/search (Makefile.am): Likewise.
1485         * modules/signal (Makefile.am): Likewise.
1486         * modules/spawn (Makefile.am): Likewise.
1487         * modules/stdio (Makefile.am): Likewise.
1488         * modules/stdlib (Makefile.am): Likewise.
1489         * modules/string (Makefile.am): Likewise.
1490         * modules/sys_ioctl (Makefile.am): Likewise.
1491         * modules/sys_select (Makefile.am): Likewise.
1492         * modules/sys_socket (Makefile.am): Likewise.
1493         * modules/sys_stat (Makefile.am): Likewise.
1494         * modules/sys_times (Makefile.am): Likewise.
1495         * modules/sys_utsname (Makefile.am): Likewise.
1496         * modules/sys_wait (Makefile.am): Likewise.
1497         * modules/termios (Makefile.am): Likewise.
1498         * modules/time (Makefile.am): Likewise.
1499         * modules/unistd (Makefile.am): Likewise.
1500         * modules/wchar (Makefile.am): Likewise.
1501
1502 2011-06-08  Eric Blake  <eblake@redhat.com>
1503
1504         strerror: simplify replacement
1505         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1506         * modules/strerror (configure.ac): No prereqs needed here...
1507         * modules/strerror-override (configure.ac): ...but this needs it.
1508         (Files): Add file for needed prereq macro.
1509
1510 2011-06-08  Bruno Haible  <bruno@clisp.org>
1511
1512         strerror_r-posix: Tweaks.
1513         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1514         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1516         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1517         (gl_FUNC_STRERROR_R): ... to here.
1518         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1519
1520 2011-06-07  Eric Blake  <eblake@redhat.com>
1521
1522         perror: document fixed bugs
1523         * doc/posix-functions/perror.texi (perror): Document recent
1524         patches.
1525
1526 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1527
1528         stat-time: get_stat_birthtime failure is better-defined
1529         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1530         return a timestamp whose tv_sec and tv_nsec values are both -1.
1531         Previously, the spec said only that the tv_nsec value was negative.
1532         This upward-compatible change simplifies GNU tar a bit.
1533
1534 2011-06-07  Eric Blake  <eblake@redhat.com>
1535
1536         strerror_r-posix: work around cygwin 1.7.9
1537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1538         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1539         bug without replacing strerror_r.
1540         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1541         strerror_r is buggy, but without requiring strerror_r compilation.
1542         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1543
1544         test-perror: relax test to ignore cygwin bug
1545         * tests/test-perror2.c (main): Relax test on requiring detection
1546         of stream errors, and use unbuffered stream.
1547         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1548         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1549         * doc/posix-functions/fputc.texi (fputc): Likewise.
1550         * doc/posix-functions/fputs.texi (fputs): Likewise.
1551         * doc/posix-functions/fputws.texi (fputws): Likewise.
1552         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1553         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1554         * doc/posix-functions/getopt.texi (getopt): Likewise.
1555         * doc/posix-functions/perror.texi (perror): Likewise.
1556         * doc/posix-functions/printf.texi (printf): Likewise.
1557         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1558         * doc/posix-functions/psignal.texi (psignal): Likewise.
1559         * doc/posix-functions/putc.texi (putc): Likewise.
1560         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1561         Likewise.
1562         * doc/posix-functions/putchar.texi (putchar): Likewise.
1563         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1564         Likewise.
1565         * doc/posix-functions/puts.texi (puts): Likewise.
1566         * doc/posix-functions/putwc.texi (putwc): Likewise.
1567         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1568         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1569         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1570         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1571         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1572         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1573         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1574         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1575
1576 2011-05-22  Bruno Haible  <bruno@clisp.org>
1577
1578         strerror: Move AC_LIBOBJ invocations to module description.
1579         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1580         gl_PREREQ_STRERROR invocations from here...
1581         * modules/strerror (configure.ac): ... to here.
1582
1583 2011-05-21  Bruno Haible  <bruno@clisp.org>
1584
1585         perror: Use common idiom.
1586         * modules/perror (configure.ac): Reorder statements.
1587
1588 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1589
1590         tests: fix usage message in 'mktempd_'
1591         * tests/init.sh (mktempd_): In the usage message, use literal
1592         'mktempd_', not '$ME' (which is even undefined), as the name of
1593         the subroutine.
1594
1595 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1596
1597         tests init: new function 'fatal_', for hard errors
1598         Before this patch, the only way offered by tests/init.sh to
1599         properly signal a hard error was the `framework_failure_'
1600         function.  But the error message issued by that function,
1601         as its name would suggest, refers to a set-up failure in the
1602         testsuite, while hard errors can obviously also be due to
1603         other reasons.  The best way to fix this inconsistency is to
1604         introduce a new function with a more general error message.
1605         * tests/init.sh (fatal_): New function.
1606
1607 2011-06-06  Eric Blake  <eblake@redhat.com>
1608
1609         canonicalize-lgpl: use common idiom
1610         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1611         over newer POSIX -Rf.
1612         Reported by Bruno Haible.
1613
1614         canonicalize-lgpl: work around AIX realpath bug
1615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1616         * doc/posix-functions/realpath.texi (realpath): Document it.
1617         Reported by Bruno Haible.
1618
1619         strerror: work around FreeBSD bug
1620         * lib/strerror.c (strerror): Special case 0.
1621         Reported by Bruno Haible.
1622
1623         strerror-override: avoid bloating errno module
1624         * modules/errno (Files, configure.ac): Move replacement strings...
1625         * modules/strerror-override: ...to new module.
1626         * modules/strerror (Depends-on): Add strerror-override.
1627         * modules/strerror_r-posix (Depends-on): Likewise.
1628         * MODULES.html.sh: Document new module.
1629         Reported by Bruno Haible.
1630
1631 2011-06-06  Bruno Haible  <bruno@clisp.org>
1632
1633         spawn-pipe tests: Rename program.
1634         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1635         * tests/test-spawn-pipe-child.c: Update comment.
1636         * tests/test-spawn-pipe.sh: Update.
1637         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1638
1639         spawn-pipe tests: Link the child program only against libc.
1640         * tests/test-spawn-pipe-child.c: New file, extracted from
1641         tests/test-spawn-pipe.c.
1642         (main): Expect only one argument.
1643         (is_open): New function, copied from tests/test-pipe.c.
1644         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1645         (child_main): Remove function.
1646         (test_pipe): Pass only one argument to the child program.
1647         (main): Remove child process code. Expect the child program's name as
1648         first argument.
1649         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1650         argument.
1651         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1652         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1653         test-spawn-pipe-child against no libraries.
1654
1655 2011-06-06  Bruno Haible  <bruno@clisp.org>
1656
1657         careadlinkat: Avoid mismatch between ssize_t and int.
1658         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1659         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1660
1661 2011-06-06  Jim Meyering  <meyering@redhat.com>
1662
1663         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1664         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1665         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1666
1667 2011-06-05  Bruno Haible  <bruno@clisp.org>
1668
1669         ansi-c++-opt: Interoperability with libtool.
1670         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1671         set the variable to "no", not to ":".
1672         * NEWS: Mention the change.
1673
1674 2011-06-05  Bruno Haible  <bruno@clisp.org>
1675
1676         acl: Fix test failure on AIX 7.
1677         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1678         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1679
1680 2011-06-05  Bruno Haible  <bruno@clisp.org>
1681
1682         pipe-filter-ii: Fix test failure on AIX and IRIX.
1683         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1684         with EAGAIN, retry with a smaller buffer size.
1685
1686 2011-06-05  Bruno Haible  <bruno@clisp.org>
1687
1688         localename: Fix link dependencies.
1689         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1690         * modules/localename-tests (Makefile.am): Link test-localename with
1691         $(LIBTHREAD).
1692
1693 2011-06-05  Bruno Haible  <bruno@clisp.org>
1694
1695         error: Avoid gcc warning.
1696         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1697
1698 2011-06-05  Bruno Haible  <bruno@clisp.org>
1699
1700         unsetenv: Avoid gcc warning.
1701         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1702
1703 2011-06-05  Bruno Haible  <bruno@clisp.org>
1704
1705         setenv: Avoid gcc warning.
1706         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1707
1708 2011-06-05  Bruno Haible  <bruno@clisp.org>
1709
1710         sys_select: Ensure memset is declared also on AIX 7.
1711         * lib/sys_select.in.h: Include <string.h> also on AIX.
1712         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1713         self-contained also on AIX 7.1.
1714
1715 2011-06-04  Jim Meyering  <meyering@redhat.com>
1716
1717         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1718         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1719         function name, "error".
1720         (_gl_translatable_diag_func_re): New configurable variable.
1721
1722 2011-06-04  Bruno Haible  <bruno@clisp.org>
1723
1724         getopt: Avoid gcc warning.
1725         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1726
1727 2011-06-04  Bruno Haible  <bruno@clisp.org>
1728
1729         strerror_r: Fix comments.
1730         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1731         commit.
1732
1733 2011-06-04  Bruno Haible  <bruno@clisp.org>
1734
1735         perror: Fix compilation error.
1736         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1737         Undefine fprintf, not sprintf.
1738         * modules/perror (Depends-on): Remove intprops, verify.
1739
1740 2011-06-04  Bruno Haible  <bruno@clisp.org>
1741
1742         setlocale: Enable replacement on Cygwin 1.5.
1743         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1744         Cygwin 1.5.x.
1745         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1746         LC_CTYPE category also exists on Cygwin 1.5.x.
1747
1748 2011-06-04  Bruno Haible  <bruno@clisp.org>
1749
1750         strerror-override: Don't disable symbol renamings.
1751         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1752         * lib/strerror-override.c: Include config.h.
1753         (strerror_override): Don't undefine.
1754
1755 2011-06-03  Bruno Haible  <bruno@clisp.org>
1756
1757         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1758         * lib/localename.h: Update copyright header.
1759         * lib/localename.c: Likewise.
1760         * lib/relocatable.h: Likewise.
1761         * lib/relocatable.c: Likewise.
1762
1763 2011-06-02  Bruno Haible  <bruno@clisp.org>
1764
1765         doc: Fix a module name.
1766         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1767
1768 2011-06-02  Bruno Haible  <bruno@clisp.org>
1769
1770         pipe2: Remove dependency on 'nonblocking' module.
1771         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1772         O_NONBLOCK is defined by gnulib.
1773         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1774         is zero.
1775         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1776         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1777         defined by gnulib.
1778         (get_nonblocking_flag): New function.
1779         (main): Test O_NONBLOCK flag only if it is nonzero.
1780         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1781
1782 2011-06-03  Jim Meyering  <meyering@redhat.com>
1783
1784         maint: three new prohibit-header-without-use rules
1785         Prohibit use of cloexec.h, posixver.h, same.h without use.
1786         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1787         (sc_prohibit_posixver_without_use): Likewise.
1788         (sc_prohibit_same_without_use): Likewise.
1789
1790 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1791
1792         allocator: 'die' routine is now given requested size
1793         * lib/allocator.h (struct allocator.die): New size arg.
1794         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1795         If the actual problem is an ssize_t limitation, not a size_t or
1796         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1797
1798 2011-06-01  Eric Blake  <eblake@redhat.com>
1799
1800         strerror: drop strerror_r dependency
1801         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1802         * lib/strerror-override.c (strerror_override): ...to new file.
1803         * lib/strerror-override.h: Add prototype.
1804         * lib/strerror-impl.h: Delete.
1805         * lib/strerror.c (strerror): New implementation.
1806         * modules/errno (Files): Add new files.
1807         (configure.ac): Compile new file as appropriate.
1808         * modules/strerror (Files): Drop unused file.
1809         (Depends-on): Drop strerror_r-posix.
1810         * MODULES.html.sh: Document strerror_r-posix.
1811         Requested by Sam Steingold.
1812
1813         perror: call strerror_r directly
1814         * modules/perror (Files): Drop strerror-impl.h.
1815         * lib/perror.c (perror): Use our own stack buffer, rather than
1816         calling a wrapper that uses static storage.
1817         * doc/posix-functions/perror.texi (perror): Document a limitation
1818         of our replacement.
1819
1820         strerror_r: fix includes for FreeBSD
1821         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1822         since we use abort on some platforms.
1823         Reported by Matthias Bolte.
1824
1825 2011-05-31  Bruno Haible  <bruno@clisp.org>
1826
1827         Fix link errors in tests: openat-die uses gettext-h.
1828         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1829         against $(LIBINTL).
1830         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1831         against $(LIBINTL).
1832         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1833         $(LIBINTL).
1834         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1835         against $(LIBINTL).
1836         * modules/linkat-tests (Makefile.am): Link test-linkat against
1837         $(LIBINTL).
1838         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1839         $(LIBINTL).
1840         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1841         against $(LIBINTL).
1842         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1843         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1844         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1845         $(LIBINTL).
1846         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1847         $(LIBINTL).
1848         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1849         $(LIBINTL).
1850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1851
1852 2011-05-31  Bruno Haible  <bruno@clisp.org>
1853
1854         Fix link errors in tests: wait-process uses gettext-h.
1855         * modules/nonblocking-pipe-tests (Makefile.am): Set
1856         test_nonblocking_pipe_main_LDADD.
1857         * modules/nonblocking-socket-tests (Makefile.am): Link
1858         test-nonblocking-socket-main against $(LIBINTL).
1859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1860
1861 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1862
1863         assert-h: work around 'verify' incompatibility
1864         * lib/verify.h: Use @...@ directives, not ifdef.
1865         * modules/assert-h (assert.h): Implement the directives.
1866         (assert.h): Substitute the symbol-prefix more consistently.
1867
1868 2011-05-29  Jim Meyering  <meyering@redhat.com>
1869
1870         trim: remove three superfluous assignments
1871         * lib/trim.c (trim2): Remove three superfluous assignments
1872         and correct brace positioning.
1873
1874 2011-05-29  Bruno Haible  <bruno@clisp.org>
1875
1876         wctype-h: Avoid namespace pollution on Solaris 2.6.
1877         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1878         identifiers.
1879         * doc/posix-headers/wctype.texi: Mention the problem.
1880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1881
1882 2011-05-28  Jim Meyering  <meyering@redhat.com>
1883
1884         parse-datetime.y: accommodate -Wstrict-overflow
1885         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1886         placate -Wstrict-overflow.
1887
1888         trim: avoid a warning from -O2 -Wstrict-overflow
1889         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1890
1891 2011-05-29  Bruno Haible  <bruno@clisp.org>
1892
1893         gnulib-tool: Fix bug in yesterday's commit.
1894         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1895         twice.
1896
1897 2011-05-29  Bruno Haible  <bruno@clisp.org>
1898
1899         Allow multiple gnulib generated include files to be combined.
1900         * gnulib-tool (func_compute_include_guard_prefix): New function.
1901         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1902         ${gl_include_guard_prefix} references.
1903         (func_import, func_create_testdir): Invoke
1904         func_compute_include_guard_prefix.
1905         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1906         * lib/ctype.in.h: Likewise.
1907         * lib/dirent.in.h: Likewise.
1908         * lib/errno.in.h: Likewise.
1909         * lib/fcntl.in.h: Likewise.
1910         * lib/float.in.h: Likewise.
1911         * lib/getopt.in.h: Likewise.
1912         * lib/iconv.in.h: Likewise.
1913         * lib/langinfo.in.h: Likewise.
1914         * lib/locale.in.h: Likewise.
1915         * lib/math.in.h: Likewise.
1916         * lib/netdb.in.h: Likewise.
1917         * lib/netinet_in.in.h: Likewise.
1918         * lib/poll.in.h: Likewise.
1919         * lib/pthread.in.h: Likewise.
1920         * lib/pty.in.h: Likewise.
1921         * lib/sched.in.h: Likewise.
1922         * lib/se-selinux.in.h: Likewise.
1923         * lib/search.in.h: Likewise.
1924         * lib/signal.in.h: Likewise.
1925         * lib/spawn.in.h: Likewise.
1926         * lib/stdarg.in.h: Likewise.
1927         * lib/stddef.in.h: Likewise.
1928         * lib/stdint.in.h: Likewise.
1929         * lib/stdio.in.h: Likewise.
1930         * lib/stdlib.in.h: Likewise.
1931         * lib/string.in.h: Likewise.
1932         * lib/strings.in.h: Likewise.
1933         * lib/sys_file.in.h: Likewise.
1934         * lib/sys_ioctl.in.h: Likewise.
1935         * lib/sys_select.in.h: Likewise.
1936         * lib/sys_socket.in.h: Likewise.
1937         * lib/sys_stat.in.h: Likewise.
1938         * lib/sys_time.in.h: Likewise.
1939         * lib/sys_times.in.h: Likewise.
1940         * lib/sys_uio.in.h: Likewise.
1941         * lib/sys_utsname.in.h: Likewise.
1942         * lib/sys_wait.in.h: Likewise.
1943         * lib/sysexits.in.h: Likewise.
1944         * lib/termios.in.h: Likewise.
1945         * lib/time.in.h: Likewise.
1946         * lib/unistd.in.h: Likewise.
1947         * lib/wchar.in.h: Likewise.
1948         * lib/wctype.in.h: Likewise.
1949         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1950         * modules/ctype (Makefile.am): Likewise.
1951         * modules/dirent (Makefile.am): Likewise.
1952         * modules/errno (Makefile.am): Likewise.
1953         * modules/fcntl-h (Makefile.am): Likewise.
1954         * modules/float (Makefile.am): Likewise.
1955         * modules/getopt-posix (Makefile.am): Likewise.
1956         * modules/iconv-h (Makefile.am): Likewise.
1957         * modules/langinfo (Makefile.am): Likewise.
1958         * modules/locale (Makefile.am): Likewise.
1959         * modules/math (Makefile.am): Likewise.
1960         * modules/netdb (Makefile.am): Likewise.
1961         * modules/netinet_in (Makefile.am): Likewise.
1962         * modules/poll-h (Makefile.am): Likewise.
1963         * modules/pthread (Makefile.am): Likewise.
1964         * modules/pty (Makefile.am): Likewise.
1965         * modules/sched (Makefile.am): Likewise.
1966         * modules/search (Makefile.am): Likewise.
1967         * modules/selinux-h (Makefile.am): Likewise.
1968         * modules/signal (Makefile.am): Likewise.
1969         * modules/spawn (Makefile.am): Likewise.
1970         * modules/stdarg (Makefile.am): Likewise.
1971         * modules/stddef (Makefile.am): Likewise.
1972         * modules/stdint (Makefile.am): Likewise.
1973         * modules/stdio (Makefile.am): Likewise.
1974         * modules/stdlib (Makefile.am): Likewise.
1975         * modules/string (Makefile.am): Likewise.
1976         * modules/strings (Makefile.am): Likewise.
1977         * modules/sys_file (Makefile.am): Likewise.
1978         * modules/sys_ioctl (Makefile.am): Likewise.
1979         * modules/sys_select (Makefile.am): Likewise.
1980         * modules/sys_socket (Makefile.am): Likewise.
1981         * modules/sys_stat (Makefile.am): Likewise.
1982         * modules/sys_time (Makefile.am): Likewise.
1983         * modules/sys_times (Makefile.am): Likewise.
1984         * modules/sys_uio (Makefile.am): Likewise.
1985         * modules/sys_utsname (Makefile.am): Likewise.
1986         * modules/sys_wait (Makefile.am): Likewise.
1987         * modules/sysexits (Makefile.am): Likewise.
1988         * modules/termios (Makefile.am): Likewise.
1989         * modules/time (Makefile.am): Likewise.
1990         * modules/unistd (Makefile.am): Likewise.
1991         * modules/wchar (Makefile.am): Likewise.
1992         * modules/wctype-h (Makefile.am): Likewise.
1993         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1994
1995 2011-05-29  Bruno Haible  <bruno@clisp.org>
1996
1997         assert-h: Allow multiple gnulib generated replacements to coexist.
1998         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1999
2000 2011-05-29  Bruno Haible  <bruno@clisp.org>
2001
2002         argp: Allow coexistence with strerror_r-posix module.
2003         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2004         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2005         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2006         not the glibc signature.
2007
2008 2011-05-28  Bruno Haible  <bruno@clisp.org>
2009
2010         gnulib-tool: Alternative structure of testdirs, similar to --import.
2011         * gnulib-tool: New option --single-configure.
2012         (func_usage): Document it.
2013         (single_configure): New variable.
2014         (func_modules_transitive_closure_separately,
2015         func_modules_transitive_closure_separately,
2016         func_determine_use_libtests, func_modules_add_dummy_separately,
2017         func_modules_to_filelist_separately): New functions, extracted from
2018         func_import.
2019         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2020         (func_import): Use the new functions.
2021         (func_create_testdir): Set final_modules. Handle $single_configure =
2022         true case.
2023
2024 2011-05-28  Bruno Haible  <bruno@clisp.org>
2025
2026         getloadavg: Remove an unreliable safety check.
2027         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2028         getloadavg.c is in place.
2029         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2030         Reported by Sam Steingold <sds@gnu.org>.
2031
2032 2011-05-28  Bruno Haible  <bruno@clisp.org>
2033
2034         doc: Cleanup yet another file produced by texinfo.tex.
2035         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2036
2037 2011-05-28  Bruno Haible  <bruno@clisp.org>
2038
2039         Finish the conditional dependencies mechanism.
2040         * gnulib-tool: New option --no-conditional-dependencies.
2041         (func_usage): Document it. Don't mark --conditional-dependencies as
2042         experimental.
2043         (cond_dependencies): The possible values can now be true, false, empty.
2044         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2045         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2046         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2047
2048 2011-05-28  Bruno Haible  <bruno@clisp.org>
2049
2050         doc: Use a recent texinfo.tex.
2051         * doc/Makefile (tex_opts): New variable.
2052         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2053
2054 2011-05-28  Jim Meyering  <meyering@redhat.com>
2055
2056         intprops.h: adjust comment to match code change
2057         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2058         only once, it *may* have side effects.  Also fix an unrelated typo.
2059         (_GL_INT_SIGNED): Likewise.
2060
2061 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2062
2063         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2064
2065 2011-05-26  Bruno Haible  <bruno@clisp.org>
2066
2067         mbsrchr: Avoid collision with system function on Interix.
2068         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2069         Reported by Markus Duft <mduft@gentoo.org>.
2070
2071 2011-05-15  James Youngman  <jay@gnu.org>
2072
2073         getopt: for ambiguous options, enumerate the possibilities.
2074         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2075         the ambiguous options when an ambiguous prefix is given. This was
2076         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2077         glibc change was
2078         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2079
2080 2011-05-25  Eric Blake  <eblake@redhat.com>
2081
2082         getcwd: work around mingw bug
2083         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2084         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2085         Reported by Matthias Bolte.
2086
2087 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2088
2089         test-intprops: disable -Wtype-limits diagnostics
2090         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2091         diagnostics.  Otherwise, the integer overflow macros generate many
2092         diagnostics.  Reported by Jim Meyering in
2093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2094
2095         intprops: shorten, to pacify gcc -Woverlength-strings
2096         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2097         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2098         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2099         likely to run afoul of C compiler limits for string constant lengths.
2100         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2101
2102 2011-05-24  Eric Blake  <eblake@redhat.com>
2103
2104         docs: document recently fixed glibc printf bug
2105         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2106         * doc/posix-functions/printf.texi (printf): Likewise.
2107         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2108         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2109
2110         closein-tests: convert to init.sh
2111         * modules/closein-tests (Files): Add init.sh
2112         * tests/test-closein.sh Use it.
2113
2114         yesno-tests: convert to init.sh
2115         * modules/yesno-tests (Files): Add init.sh.
2116         * tests/test-yesno.sh: Use it.
2117
2118         atexit-tests: ensure reliable exit status
2119         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2120         Reported by Bruno Haible.
2121
2122 2011-05-24  Bruno Haible  <bruno@clisp.org>
2123
2124         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2126         gl_PREREQ_STRERROR_R invocations from here...
2127         * modules/strerror_r-posix (configure.ac): ... to here.
2128
2129 2011-05-24  Eric Blake  <eblake@redhat.com>
2130
2131         strerror_r: fix missing header
2132         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2133
2134         strerror_r: fix AIX test failures
2135         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2136         ERANGE failure.
2137
2138         strerror_r: fix Solaris test failures
2139         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2140         failures.
2141         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2142
2143         strerror_r: enforce POSIX recommendations
2144         * lib/strerror_r.c (safe_copy): New helper method.
2145         (strerror_r): Guarantee a non-empty string.
2146         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2147         recent POSIX rulings and to match our strerror guarantees.
2148         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2149
2150 2011-05-24  Jim Meyering  <meyering@redhat.com>
2151
2152         test-perror2.c: avoid warning about unused variable
2153         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2154
2155 2011-05-24  Eric Blake  <eblake@redhat.com>
2156
2157         perror: avoid spurious test failure on HP-UX
2158         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2159
2160         tests: fix logic bug in init.sh
2161         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2162         shell.
2163
2164 2011-05-24  Jim Meyering  <meyering@redhat.com>
2165
2166         utimensat: do not reference an out-of-scope buffer
2167         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2168         declared in an inner scope, yet "times" would be dereferenced outside
2169         the scope in which "ts" was valid.
2170         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2171         of ts[2] "out/up", so that the use of aliased "times" (via
2172         "times = ts;") does not end up referencing an out-of-scope "ts"
2173
2174         opendir-safer.c: don't clobber errno; don't close negative FD
2175         * lib/opendir-safer.c (opendir_safer):
2176         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2177         file descriptor, and more importantly, don't clobber the
2178         offending errno value with EINVAL.  Before, upon failure
2179         of dup_safer, we would pass the negative file descriptor to
2180         fdopendir, which would clobber errno.
2181
2182 2011-05-23  Bruno Haible  <bruno@clisp.org>
2183
2184         idcache: Fix module description.
2185         * modules/idcache (Include): Set to "idcache.h".
2186
2187 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2188
2189         gnulib-tool: fix portability problem with MacOS sed
2190         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2191         before the "}".  Problem reported by Leo in
2192         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2193         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2194         sed_extract_condition1, sed_extract_condition2.
2195
2196 2011-05-23  Bruno Haible  <bruno@clisp.org>
2197
2198         hash: Simplify autoconf macro.
2199         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2200
2201 2011-05-23  Bruno Haible  <bruno@clisp.org>
2202
2203         getugroups: Fix module description.
2204         * modules/getugroups (Include): Set to "getugroups.h".
2205
2206 2011-05-23  Bruno Haible  <bruno@clisp.org>
2207
2208         linkat: Simplify autoconf macro.
2209         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2210
2211 2011-05-23  Bruno Haible  <bruno@clisp.org>
2212             Eric Blake  <eblake@redhat.com>
2213
2214         linkat, renameat: Update dependencies.
2215         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2216         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2217         symlinkat.
2218
2219 2011-05-23  Jim Meyering  <meyering@redhat.com>
2220
2221         maint.mk: more tight_scope improvements
2222         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2223         (_gl_TS_headers): Define only in if-0'd block.
2224         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2225         sometimes we must *not* use it.  Adjust uses accordingly.
2226         (sc_tight_scope): Use much simpler grep-based test to determine
2227         whether we skip this rule.
2228
2229         maint.mk: generalize/improve the tight-scope rule
2230         * top/maint.mk: Emit a warning when the test is skipped.
2231         (_gl_TS_dir): Add $(srcdir)/ prefix.
2232         (_gl_TS_function_match): Simplify, rather than trying
2233         to enumerate common types.  Otherwise, it would fail to match an
2234         "extern unsigned char const *" declaration in idutils.
2235         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2236         a way to support use of that type of macro.
2237         (_gl_TS_var_match): Simplify regexp.
2238         (_gl_TS_obj_files): New configurable variable.
2239         (_gl_TS_headers): Likewise.
2240
2241 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         verify: fix bug when gnulib <assert.h> is also included
2244         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2245         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2246         Perhaps there's a better way, but this fixes the immediate problem.
2247         Problem reported by Bruno Haible in
2248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2249
2250 2011-05-22  Bruno Haible  <bruno@clisp.org>
2251
2252         xgetcwd: Simplify autoconf macro.
2253         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2254
2255 2011-05-22  Bruno Haible  <bruno@clisp.org>
2256
2257         New module 'mktime-internal'.
2258         * modules/mktime-internal: New file.
2259         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2260         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2261         mktime_internal as a C macro if libc has __mktime_internal.
2262         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2263         conditions.
2264         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2265
2266 2011-05-22  Bruno Haible  <bruno@clisp.org>
2267
2268         timegm: Correct mktime replacement statements.
2269         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2270         defining mktime as a C macro. This completes a 2009-07-28 commit.
2271
2272 2011-05-22  Bruno Haible  <bruno@clisp.org>
2273
2274         timegm: Simplify autoconf macro.
2275         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2276
2277 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         clock-time: change to LGPLv2+.
2280         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2281         BSD-like but we have no mark for that; this is good enough for now.
2282
2283 2011-05-21  Bruno Haible  <bruno@clisp.org>
2284
2285         strerror_r: Fix comments.
2286         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2287
2288 2011-05-21  Bruno Haible  <bruno@clisp.org>
2289
2290         relocatable-prog-wrapper: Fix possible link error.
2291         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2292         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2293         (gl_FUNC_SETENV): ... to here.
2294         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2295         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2296
2297 2011-05-21  Bruno Haible  <bruno@clisp.org>
2298
2299         relocatable-prog-wrapper: Assume strerror() exists.
2300         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2301         m4/strerror.m4.
2302         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2303         * lib/relocwrapper.c: Remove mention of strerror module.
2304         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2305         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2306         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2307         C macro.
2308
2309 2011-05-21  Bruno Haible  <bruno@clisp.org>
2310
2311         select: Simplify replacement idiom.
2312         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2313         Win32 platforms.
2314         * lib/sys_select.in.h (select): Simplify accordingly.
2315         * modules/select (Depends-on): Likewise.
2316
2317 2011-05-21  Bruno Haible  <bruno@clisp.org>
2318
2319         mkdir-p: Simplify autoconf macro.
2320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2321         gl_FUNC_LCHOWN.
2322
2323 2011-05-21  Eric Blake  <eblake@redhat.com>
2324
2325         strerror_r: avoid clobbering strerror on cygwin
2326         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2327         fall back instead to sys_errlist.
2328         * modules/strerror (configure.ac): Add witness.
2329         * tests/test-strerror_r.c (main): Enhance test.
2330         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2331         * tests/test-perror2.c (main): Free memory before exit.
2332
2333 2011-05-21  Bruno Haible  <bruno@clisp.org>
2334
2335         mkdtemp: Use gnulib naming conventions.
2336         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2337         * modules/mkdtemp (configure.ac): Update.
2338
2339 2011-05-20  Eric Blake  <eblake@redhat.com>
2340
2341         strerror_r: avoid corrupting errno on Solaris
2342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2343         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2344
2345         strerror_r: avoid compiler warning
2346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2347
2348         strerror_r: simplify AIX code
2349         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2350
2351         test-perror: avoid spurious failure on FreeBSD
2352         * modules/perror-tests (Depends-on): Add strerror, now that
2353         strerror_r no longer pulls it in.
2354
2355 2011-05-20  Bruno Haible  <bruno@clisp.org>
2356
2357         strerror_r-posix: Remove unused dependencies.
2358         * modules/strerror_r-posix (Depends-on): Remove strerror.
2359         Reported by Eric Blake.
2360
2361 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2362
2363         intprops: remove assumption about A|B representation
2364         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2365         is a valid integer if both A and B are.  Although this is true for
2366         all known practical hosts, the C standard doesn't guarantee it,
2367         and the code need not assume it.  Also, this change may work around
2368         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2370
2371 2011-05-20  Eric Blake  <eblake@redhat.com>
2372
2373         perror: work around FreeBSD bug
2374         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2375         is broken.  Move AC_LIBOBJ...
2376         * modules/perror (configure.ac): Here.
2377         * doc/posix-functions/perror.texi (perror): Document this.
2378         * tests/test-perror2.c (main): Enhance test.
2379
2380         test-perror: check for strerror interactions
2381         * tests/macros.h (STREQ): Add macro.
2382         * modules/perror-tests (Files): Add second test.
2383         * tests/test-perror2.c (main): New file.
2384         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2385
2386         test-perror: rewrite to use init script
2387         * modules/perror-tests (Files): Add init.sh.
2388         * tests/test-perror.sh: Use temporary directory.
2389
2390 2011-05-20  Jim Meyering  <meyering@redhat.com>
2391
2392         maint: replace misused "a" with "an"
2393         * doc/intprops.texi: "a integer"
2394         * doc/regex.texi: "a explanation"
2395         * lib/alignof.h: "a object"
2396         * lib/argmatch.h: "a explanation"
2397         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2398         * lib/stdint.in.h: "a integer"
2399         * lib/userspec.c: "a owner"
2400         * doc/gnulib.texi: Fix "a idea", and reword.
2401
2402 2011-05-19  Jim Meyering  <meyering@redhat.com>
2403
2404         maint: correct misuse of "a" and "an"
2405         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2406         * lib/argp-help.c: "an docum...": s/an/a/
2407         * lib/argp-parse.c: "An vector": s/An/A/
2408         * lib/execute.c: "an native": s/an/a/
2409         * lib/spawn-pipe.c: Likewise.
2410         * lib/gc.h: "an Gc_rc": s/an/a/
2411         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2412         * lib/fts.c: "an stat.st_dev": s/an/a/
2413
2414 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2415
2416         intprops-tests: work around HP-UX 11.23 cc bug with constants
2417         * tests/test-intprops.c (VERIFY): New macro.
2418         (main): Use it, instead of verify, to work around the compiler bug; see
2419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2420
2421         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2422         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2423         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2424         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2425         (_GL_REMAINDER_OVERFLOW): Use it.
2426
2427         intprops-tests: revert unsigned part of previous change
2428         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2429         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2430         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2432
2433 2011-05-19  Bruno Haible  <bruno@clisp.org>
2434
2435         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2436         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2437         strerror_r() returned without filling the buffer.
2438         Reported by Eric Blake.
2439
2440 2011-05-19  Eric Blake  <eblake@redhat.com>
2441
2442         strerror_r: guarantee unchanged errno
2443         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2444         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2445         failure.
2446         * tests/test-strerror_r.c (main): Enhance test.
2447
2448 2011-05-19  Bruno Haible  <bruno@clisp.org>
2449
2450         strerror_r: Reorder #if blocks.
2451         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2452         for consistency with the previous commit.
2453
2454 2011-05-19  Bruno Haible  <bruno@clisp.org>
2455
2456         perror: Avoid clobbering the strerror buffer when possible.
2457         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2458         * lib/strerror.c: Include it.
2459         * modules/strerror (Files): Add lib/strerror-impl.h.
2460         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2461         (my_strerror): New function, defined through lib/strerror-impl.h.
2462         (perror): Use it instead of strerror.
2463         * modules/perror (Files): Add lib/strerror-impl.h.
2464         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2465
2466 2011-05-19  Eric Blake  <eblake@redhat.com>
2467
2468         strerror_r: fix on newer cygwin
2469         * lib/strerror_r.c (strerror_r): Cygwin now has
2470         __xpg_strerror_r, use it.
2471
2472 2011-05-19  Bruno Haible  <bruno@clisp.org>
2473
2474         strerror_r: Avoid clobbering the strerror buffer when possible.
2475         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2476         (sys_nerr, sys_errlist): New declarations.
2477         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2478         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2479         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2480
2481 2011-05-19  Bruno Haible  <bruno@clisp.org>
2482
2483         strerror_r: Fix test failure on mingw.
2484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2485         EXTEND_STRERROR_R.
2486         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2487         macros from errno.in.h instead.
2488
2489 2011-05-19  Eric Blake  <eblake@redhat.com>
2490
2491         strerror: relax test for Solaris
2492         * tests/test-strerror.c (main): Permit Solaris behavior.
2493         * tests/test-strerror_r.c (main): Likewise.
2494
2495         strerror: enforce POSIX ruling on strerror(0)
2496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2498         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2499         * doc/posix-functions/strerror.texi (strerror): Document it.
2500         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2501         * tests/test-strerror.c (main): Strengthen test.
2502         * tests/test-strerror_r.c (main): Likewise.
2503
2504 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2505
2506         intprop-tests: port to older and more-pedantic compilers
2507         * modules/intprops-tests (Files): Add tests/macros.h.
2508         * tests/test-intprops.c: Include macros.h.
2509         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2510         it's no longer documented to expand to an integer constant expression.
2511         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2512         argument is floating point, as it's no longer documented to expand
2513         to an integer constant expression in that case.
2514         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2515         compiler bugs reported by Bruno Haible.  See
2516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2517         (U0, U1): New constants, to work around the same bugs.  Also,
2518         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2519
2520         intprops: work around C compiler bugs
2521         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2522         bug in Sun C 5.11 2010/08/13 and other compilers; see
2523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2524
2525         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2526         * doc/intprops.texi (Integer Type Determination): Fix
2527         documentation for TYPE_IS_INTEGER: it returns an constant
2528         expression, not an integer constant expression.  Fix doc for
2529         TYPE_SIGNED: it returns an integer constant expression only if its
2530         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2531         hardly worth documented that way....)
2532
2533 2011-05-18  Bruno Haible  <bruno@clisp.org>
2534
2535         strerror_r: Avoid clobbering the strerror buffer when possible.
2536         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2537         Handle gnulib defined errno values here. When strerror() returns NULL
2538         or an empty string, return EINVAL.
2539         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2540         gnulib defined errno values here.
2541         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2542
2543 2011-05-18  Eric Blake  <eblake@redhat.com>
2544
2545         fnmatch: avoid compiler warning
2546         * lib/fnmatch_loop.c (FCT): Use correct type.
2547         Reported by Matthias Bolte.
2548
2549 2011-05-13  Jim Meyering  <meyering@redhat.com>
2550
2551         maint.mk: three new prohibit_<HDR>_without_use rules
2552         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2553         (sc_prohibit_stdio-safer_without_use): Likewise.
2554         (sc_prohibit_xfreopen_without_use): Likewise.
2555
2556 2011-05-17  Jim Meyering  <meyering@redhat.com>
2557
2558         announce-gen: fail if the NEWS delta is empty
2559         If there's nothing noteworthy in NEWS, then either you forgot
2560         or you shouldn't be releasing.
2561         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2562
2563 2011-05-17  Pádraig Brady <P@draigBrady.com>
2564
2565         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2566         reserved symbols starting with double underscore from the check.
2567
2568 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2569
2570         intprops: add doc
2571         * doc/intprops.texi: New file, documenting intprops.
2572         * doc/gnulib.texi (Particular Modules): Include it.
2573
2574         verify: add doc to gnulib manual and fix example
2575         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2576         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2577         (Compile-time Assertions): Fix example so it can't overflow.
2578
2579 2011-05-17  Jim Meyering  <meyering@redhat.com>
2580
2581         warnings.m4: don't usurp save_CPPFLAGS variable name
2582         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2583
2584         doc: fix typo
2585         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2586
2587 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2588             Bruno Haible  <bruno@clisp.org>
2589
2590         doc: Tweak recent change.
2591         * README (Portability guidelines): Tweak new text.
2592         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2593         Interix 6.1.
2594
2595 2011-05-16  Eric Blake  <eblake@redhat.com>
2596
2597         inttypes: avoid autoconf warning
2598         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2599         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2600
2601 2011-05-16  Sam Steingold <sds@gnu.org>
2602         and Eric Blake  <eblake@redhat.com>
2603
2604         vc-list-files: accept multiple directory operands
2605         * build-aux/vc-list-files: Iterate over all remaining operands.
2606
2607 2011-05-16  Bruno Haible  <bruno@clisp.org>
2608
2609         Fix confusion regarding deprecated modules.
2610         * modules/calloc (Status, Notice): Mark module as deprecated, not
2611         obsolete.
2612         * modules/fnmatch-posix (Status, Notice): Likewise.
2613         * modules/getdate (Status, Notice): Likewise.
2614         * modules/getopt (Status, Notice): Likewise.
2615         * modules/malloc (Status, Notice): Likewise.
2616         * modules/pipe (Status, Notice): Likewise.
2617         * modules/realloc (Status, Notice): Likewise.
2618         * modules/rename-dest-slash (Status, Notice): Likewise.
2619         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2620         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2621         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2622         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2623         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2624
2625 2011-05-16  Bruno Haible  <bruno@clisp.org>
2626
2627         doc: List the target platforms.
2628         * doc/gnulib-intro.texi (Target Platforms): New section.
2629         * doc/gnulib.texi (Introduction): Update menu.
2630         * README (Portability guidelines): Refer to the new section. Update
2631         statement about oldest supported environment. Remove rationale why
2632         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2633         unportable C89 function.
2634         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2635         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2636
2637 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2640
2641 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         intprops-tests: new module
2644         * modules/intprops-tests, tests/test-intprops.c: New files.
2645
2646         intprops: add safe, portable integer overflow checking
2647         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2648         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2649         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2650         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2651         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2652         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2653         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2654         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2655         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2656         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2657         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2658
2659 2011-05-12  James Youngman  <jay@gnu.org>
2660
2661         Add a test for glibc's Bugzilla bug #12378.
2662         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2663         doesn't allow the literal matching of a lone "[" (which is
2664         required by POSIX).
2665         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2666
2667 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2668
2669         Sync glibc change fixing Bugzilla bug #12378.
2670         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2671         beginning and fall back to matching as normal character if the
2672         string ends before the matching ']' is found.  This is what POSIX
2673         requires.
2674
2675 2011-05-13  Eric Blake  <eblake@redhat.com>
2676
2677         getcwd-lgpl: relax test for FreeBSD
2678         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2679         issue.
2680         * tests/test-getcwd-lgpl.c (main): Relax test.
2681         Reported by Matthias Bolte.
2682
2683 2011-05-11  Eric Blake  <eblake@redhat.com>
2684
2685         test-fflush: silence compiler warning
2686         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2687
2688 2011-05-11  Bruno Haible  <bruno@clisp.org>
2689
2690         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2691         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2692         * modules/canonicalize (Depends-on): Add 'nocrash'.
2693         * modules/canonicalize-lgpl (Depends-on): Likewise.
2694         * doc/posix-functions/realpath.texi: Update platforms list.
2695         Reported by Ryan Schmidt <ryandesign@macports.org>.
2696
2697 2011-05-11  Bruno Haible  <bruno@clisp.org>
2698
2699         group-member: Declare function in <unistd.h>.
2700         * lib/unistd.in.h (group_member): New declaration.
2701         * lib/group-member.h: Remove file.
2702         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2703         * tests/test-unistd-c++.cc: Check signature of group_member.
2704         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2705         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2706         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2707         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2708         HAVE_GROUP_MEMBER.
2709         * modules/group-member (Files): Remove lib/group-member.h.
2710         (Depends-on): Add unistd. Specify conditions.
2711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2712         (Include): Change to <unistd.h>.
2713         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2714         HAVE_GROUP_MEMBER.
2715         * NEWS: Mention the change.
2716         * lib/euidaccess.c: Don't include group-member.h.
2717
2718 2011-05-11  Bruno Haible  <bruno@clisp.org>
2719
2720         group-member: Document module.
2721         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2722         module.
2723
2724 2011-05-11  Bruno Haible  <bruno@clisp.org>
2725
2726         fclose: Fix mistake earlier today.
2727         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2728
2729 2011-05-11  Eric Blake  <eblake@redhat.com>
2730
2731         fclose: preserve fflush errors
2732         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2733         Reported by Jim Meyering.
2734
2735         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2736         * build-aux/bootstrap (check_versions): When no specific version
2737         is required, merely check that the app produces an exit status
2738         that indicates its existence.
2739
2740         maint.mk: drop redundant check
2741         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2742         the same but better.
2743
2744 2011-05-11  Bruno Haible  <bruno@clisp.org>
2745
2746         fclose: Fix possible link error.
2747         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2748         unregister_shadow_fd. Improve comments.
2749         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2750         Eric Blake.
2751
2752 2011-05-11  Jim Meyering  <meyering@redhat.com>
2753
2754         maint.mk: improve "can not" detection and generalize rule name
2755         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2756         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2757         Use the same technique as in sc_prohibit_doubled_word, so that
2758         we recognize "can not" also when the words are separated by a newline.
2759         Suggested by Eric Blake.
2760         (perl_filename_lineno_text_): Define.  Factored out of...
2761         (prohibit_doubled_word_): ...here.  Use the new definition.
2762         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2763         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2764         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2765
2766 2011-05-10  Eric Blake  <eblake@redhat.com>
2767
2768         fclose: avoid double close race when possible
2769         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2770         all but WINDOWS_SOCKETS.
2771
2772 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2773
2774         openat: correct new comment
2775         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2776
2777 2011-05-10  Jim Meyering  <meyering@redhat.com>
2778
2779         openat: add comments
2780         * lib/openat-proc.c (openat_proc_name): Add comments,
2781         mostly from Eric Blake.
2782
2783 2011-05-09  Eric Blake  <eblake@redhat.com>
2784
2785         openat: reduce syscalls in first probe of /proc
2786         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2787         be a directory.  Simplify the probe for .. bugs.
2788         * modules/openat (Depends-on): Drop same-inode.
2789         Reported by Bastien ROUCARIES.
2790
2791 2011-05-09  Jim Meyering  <meyering@redhat.com>
2792
2793         maint.mk: change semantics/name of tight_scope variables
2794         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2795         Rename variables to align with semantics that make them more useful.
2796
2797         maint.mk: tweak new rule's name not to impinge
2798         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2799         (sc_tight_scope): Use new rule name rather than $@-0.
2800
2801         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2802         * top/maint.mk (sc_tight_scope): New rule.
2803         (sc_tight_scope-0): New rule, ifdef'd out.
2804         (_gl_TS_dir): Default.
2805         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2806         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2807
2808 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2809
2810         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2811         Haible <bruno@clisp.org>.
2812
2813 2011-05-08  Bruno Haible  <bruno@clisp.org>
2814
2815         Comments.
2816         * m4/isnanf.m4: Add comment.
2817         * m4/isnanl.m4: Likewise.
2818
2819 2011-05-08  Bruno Haible  <bruno@clisp.org>
2820
2821         glob: Remove obsolete macro.
2822         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2823
2824 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         intprops: Sun C 5.11 supports __typeof__
2827         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2828         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2829         which is new.
2830         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2831
2832         intprops: switch to usual gnulib indenting and naming
2833         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2834         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2835
2836         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2837
2838 2011-05-08  Jim Meyering  <meyering@redhat.com>
2839
2840         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2841         * top/maint.mk (release-prep): Use make's --no-print-directory
2842         option when generating the announcement.  This eliminates the
2843         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2844         generated announcement template.
2845
2846 2011-05-08  Bruno Haible  <bruno@clisp.org>
2847
2848         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2849         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2850         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2851
2852 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2853
2854         ignore-value, verify: Omit include files from lib_SOURCES.
2855         * modules/ignore-value, modules/verify (Makefile.am):
2856         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2857         that leads Automake to duplicate use of am__objects_... variables
2858         in Makefile.in.  See
2859         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2860
2861 2011-05-07  Bruno Haible  <bruno@clisp.org>
2862
2863         fclose: Simplify autoconf macro.
2864         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2865         defined.
2866
2867 2011-05-07  Bruno Haible  <bruno@clisp.org>
2868
2869         canonicalize-lgpl: Fix autoconf macro ordering bug.
2870         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2871         gl_STDLIB_H_DEFAULTS.
2872
2873 2011-05-06  Eric Blake  <eblake@redhat.com>
2874
2875         maintainer-makefile: make sc_po_check easier to tune
2876         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2877         to probe for strings, such as an alternate location for gnulib.
2878
2879         fclose: guarantee behavior on seekable stdin
2880         * modules/fclose (Depends-on): Add fflush.
2881         * doc/posix-functions/fclose.texi (fclose): Document this.
2882         * tests/test-fclose.c (main): Make test for this unconditional.
2883
2884 2011-05-06  Bruno Haible  <bruno@clisp.org>
2885
2886         fflush, fpurge: Relicense under LGPLv2+.
2887         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2888         * modules/fpurge (License): Likewise.
2889         With permission from Eric Blake and Jim Meyering.
2890         Suggested by Eric Blake.
2891
2892 2011-05-06  Karl Berry  <karl@gnu.org>
2893
2894         * MODULES.html.sh (func_all_modules): remove exit.
2895
2896 2011-05-06  Jim Meyering  <meyering@redhat.com>
2897
2898         maint.mk: use info-gnu@ as the default only for a stable release
2899         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2900         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2901         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2903
2904 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2905
2906         assert-h: new module, which supports C1X-style static_assert
2907         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2908         * lib/verify.h: Revamp so that this can be copied into assert.h,
2909         while retaining the ability to use it standalone as before.
2910         Rename private identifiers so as not to encroach on the
2911         standard C namespace, since this is now used by assert.h.
2912         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2913         the old verify_true.
2914         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2915         the old verify_true.  Use _GL_VERIFY_TYPE.
2916         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2917         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2918         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2919         defined when this file is copied into the replacement assert.h.
2920         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2921         and _Static_assert is not built in.
2922         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2923         defined, and use the new macros mentioned above.
2924         * doc/posix-headers/assert.texi: Document this.
2925
2926 2011-05-05  Bruno Haible  <bruno@clisp.org>
2927
2928         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2929         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2930         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2931         gl_REPLACE_FCLOSE here.
2932         * modules/fflush (Depends-on): Remove fclose.
2933         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2934         combination with module 'fclose'.
2935
2936 2011-05-05  Bruno Haible  <bruno@clisp.org>
2937
2938         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2939         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2940         gl_FUNC_FFLUSH.
2941         (gl_FUNC_FFLUSH): Use it.
2942         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2944         gl_REPLACE_FSEEKO here.
2945
2946 2011-05-05  Bruno Haible  <bruno@clisp.org>
2947
2948         tzset: Relicense under LGPL.
2949         * modules/tzset (License): Change to LGPL.
2950         No agreement needed; it's a no-op.
2951
2952         strtoimax, strtoumax: Relicense under LGPL.
2953         * modules/strtoimax (License): Change to LGPL.
2954         * modules/strtoumax (License): Likewise.
2955         With permission from Jim Meyering, Paul Eggert:
2956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2958
2959         getgroups: Relicense under LGPL.
2960         * modules/getgroups (License): Change to LGPL.
2961         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2965
2966         nanosleep: Relicense under LGPL.
2967         * modules/nanosleep (License): Change to LGPL.
2968         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2969         Haible:
2970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2974
2975         futimens: Relicense under LGPL.
2976         * modules/futimens (License): Change to LGPL.
2977         With permission from Eric Blake:
2978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2979
2980         fflush: Relicense under LGPL.
2981         * modules/fflush (License): Change to LGPL.
2982         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2986
2987         tmpfile: Relicense under LGPL.
2988         * modules/tmpfile (License): Change to LGPL.
2989         With permission from Ben Pfaff:
2990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2991
2992         isfinite: Relicense under LGPL.
2993         * modules/isfinite (License): Change to LGPL.
2994         With permission from Ben Pfaff, Bruno Haible:
2995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2997
2998         acosl..tanl: Relicense under LGPL.
2999         * modules/acosl (License): Change to LGPL.
3000         * modules/asinl (License): Likewise.
3001         * modules/atanl (License): Likewise.
3002         * modules/cosl (License): Likewise.
3003         * modules/expl (License): Likewise.
3004         * modules/logl (License): Likewise.
3005         * modules/sinl (License): Likewise.
3006         * modules/sqrtl (License): Likewise.
3007         * modules/tanl (License): Likewise.
3008         Source code originally from glibc and Paolo Bonzini. Agreements:
3009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3011
3012 2011-05-05  Bruno Haible  <bruno@clisp.org>
3013
3014         signal: Define sighandler_t.
3015         * lib/signal.in.h (sighandler_t): New type.
3016         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3017         whether sighandler_t is defined.
3018         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3019         * modules/signal (Depends-on): Add extensions.
3020         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3021         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3022         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3023
3024 2011-05-05  Eric Blake  <eblake@redhat.com>
3025
3026         maint: remove useless REPLACE_*_H macros
3027         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3028         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3029         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3030         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3031         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3032         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3033         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3034         * m4/btowc.m4: Update callers.
3035         * m4/dirfd.m4: Likewise.
3036         * m4/duplocale.m4: Likewise.
3037         * m4/fchdir.m4: Likewise.
3038         * m4/fdopendir.m4: Likewise.
3039         * m4/inet_ntop.m4: Likewise.
3040         * m4/inet_pton.m4: Likewise.
3041         * m4/ioctl.m4: Likewise.
3042         * m4/mbrlen.m4: Likewise.
3043         * m4/mbrtowc.m4: Likewise.
3044         * m4/mbsinit.m4: Likewise.
3045         * m4/mbsnrtowcs.m4: Likewise.
3046         * m4/mbsrtowcs.m4: Likewise.
3047         * m4/poll.m4: Likewise.
3048         * m4/setlocale.m4: Likewise.
3049         * m4/wcrtomb.m4: Likewise.
3050         * m4/wcsnrtombs.m4: Likewise.
3051         * m4/wcsrtombs.m4: Likewise.
3052         * m4/wctob.m4: Likewise.
3053         * m4/wcwidth.m4: Likewise.
3054         * modules/posix_spawn: Likewise.
3055         * modules/posix_spawn_file_actions_addclose: Likewise.
3056         * modules/posix_spawn_file_actions_adddup2: Likewise.
3057         * modules/posix_spawn_file_actions_addopen: Likewise.
3058         * modules/posix_spawn_file_actions_destroy: Likewise.
3059         * modules/posix_spawn_file_actions_init: Likewise.
3060         * modules/posix_spawnattr_destroy: Likewise.
3061         * modules/posix_spawnattr_getflags: Likewise.
3062         * modules/posix_spawnattr_getpgroup: Likewise.
3063         * modules/posix_spawnattr_getschedparam: Likewise.
3064         * modules/posix_spawnattr_getschedpolicy: Likewise.
3065         * modules/posix_spawnattr_getsigdefault: Likewise.
3066         * modules/posix_spawnattr_getsigmask: Likewise.
3067         * modules/posix_spawnattr_init: Likewise.
3068         * modules/posix_spawnattr_setflags: Likewise.
3069         * modules/posix_spawnattr_setpgroup: Likewise.
3070         * modules/posix_spawnattr_setschedparam: Likewise.
3071         * modules/posix_spawnattr_setschedpolicy: Likewise.
3072         * modules/posix_spawnattr_setsigdefault: Likewise.
3073         * modules/posix_spawnattr_setsigmask: Likewise.
3074         * modules/posix_spawnp: Likewise.
3075
3076 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3077
3078         Add option to do-release-commit-and-tag to specify branch.
3079         * build-aux/do-release-commit-and-tag: Add --branch.
3080
3081 2011-05-03  Bruno Haible  <bruno@clisp.org>
3082
3083         Avoid unnecessary compilation units, through conditional dependencies.
3084         * modules/accept (Depends-on): Add conditions to the dependencies.
3085         * modules/acosl (Depends-on): Likewise.
3086         * modules/argz (Depends-on): Likewise.
3087         * modules/asinl (Depends-on): Likewise.
3088         * modules/atanl (Depends-on): Likewise.
3089         * modules/atoll (Depends-on): Likewise.
3090         * modules/bind (Depends-on): Likewise.
3091         * modules/btowc (Depends-on): Likewise.
3092         * modules/canonicalize-lgpl (Depends-on): Likewise.
3093         * modules/ceil (Depends-on): Likewise.
3094         * modules/ceilf (Depends-on): Likewise.
3095         * modules/ceill (Depends-on): Likewise.
3096         * modules/chdir-long (Depends-on): Likewise.
3097         * modules/chown (Depends-on): Likewise.
3098         * modules/close (Depends-on): Likewise.
3099         * modules/connect (Depends-on): Likewise.
3100         * modules/cosl (Depends-on): Likewise.
3101         * modules/dirfd (Depends-on): Likewise.
3102         * modules/dprintf (Depends-on): Likewise.
3103         * modules/dprintf-posix (Depends-on): Likewise.
3104         * modules/error (Depends-on): Likewise.
3105         * modules/euidaccess (Depends-on): Likewise.
3106         * modules/expl (Depends-on): Likewise.
3107         * modules/faccessat (Depends-on): Likewise.
3108         * modules/fchdir (Depends-on): Likewise.
3109         * modules/fclose (Depends-on): Likewise.
3110         * modules/fcntl (Depends-on): Likewise.
3111         * modules/fdopendir (Depends-on): Likewise.
3112         * modules/fflush (Depends-on): Likewise.
3113         * modules/floor (Depends-on): Likewise.
3114         * modules/floorf (Depends-on): Likewise.
3115         * modules/floorl (Depends-on): Likewise.
3116         * modules/fnmatch (Depends-on): Likewise.
3117         * modules/fopen (Depends-on): Likewise.
3118         * modules/fprintf-posix (Depends-on): Likewise.
3119         * modules/frexp (Depends-on): Likewise.
3120         * modules/frexp-nolibm (Depends-on): Likewise.
3121         * modules/frexpl (Depends-on): Likewise.
3122         * modules/frexpl-nolibm (Depends-on): Likewise.
3123         * modules/fseek (Depends-on): Likewise.
3124         * modules/fsusage (Depends-on): Likewise.
3125         * modules/ftell (Depends-on): Likewise.
3126         * modules/ftello (Depends-on): Likewise.
3127         * modules/futimens (Depends-on): Likewise.
3128         * modules/getcwd (Depends-on): Likewise.
3129         * modules/getcwd-lgpl (Depends-on): Likewise.
3130         * modules/getdelim (Depends-on): Likewise.
3131         * modules/getdomainname (Depends-on): Likewise.
3132         * modules/getgroups (Depends-on): Likewise.
3133         * modules/gethostname (Depends-on): Likewise.
3134         * modules/getline (Depends-on): Likewise.
3135         * modules/getlogin_r (Depends-on): Likewise.
3136         * modules/getopt-posix (Depends-on): Likewise.
3137         * modules/getpeername (Depends-on): Likewise.
3138         * modules/getsockname (Depends-on): Likewise.
3139         * modules/getsockopt (Depends-on): Likewise.
3140         * modules/getsubopt (Depends-on): Likewise.
3141         * modules/getusershell (Depends-on): Likewise.
3142         * modules/glob (Depends-on): Likewise.
3143         * modules/grantpt (Depends-on): Likewise.
3144         * modules/iconv_open (Depends-on): Likewise.
3145         * modules/iconv_open-utf (Depends-on): Likewise.
3146         * modules/inet_ntop (Depends-on): Likewise.
3147         * modules/inet_pton (Depends-on): Likewise.
3148         * modules/ioctl (Depends-on): Likewise.
3149         * modules/isapipe (Depends-on): Likewise.
3150         * modules/isfinite (Depends-on): Likewise.
3151         * modules/isinf (Depends-on): Likewise.
3152         * modules/lchown (Depends-on): Likewise.
3153         * modules/ldexpl (Depends-on): Likewise.
3154         * modules/link (Depends-on): Likewise.
3155         * modules/linkat (Depends-on): Likewise.
3156         * modules/listen (Depends-on): Likewise.
3157         * modules/logl (Depends-on): Likewise.
3158         * modules/lstat (Depends-on): Likewise.
3159         * modules/mbrlen (Depends-on): Likewise.
3160         * modules/mbrtowc (Depends-on): Likewise.
3161         * modules/mbsinit (Depends-on): Likewise.
3162         * modules/mbsnrtowcs (Depends-on): Likewise.
3163         * modules/mbsrtowcs (Depends-on): Likewise.
3164         * modules/mbtowc (Depends-on): Likewise.
3165         * modules/memcmp (Depends-on): Likewise.
3166         * modules/mkdir (Depends-on): Likewise.
3167         * modules/mkdtemp (Depends-on): Likewise.
3168         * modules/mkfifo (Depends-on): Likewise.
3169         * modules/mkfifoat (Depends-on): Likewise.
3170         * modules/mknod (Depends-on): Likewise.
3171         * modules/mkostemp (Depends-on): Likewise.
3172         * modules/mkostemps (Depends-on): Likewise.
3173         * modules/mkstemp (Depends-on): Likewise.
3174         * modules/mkstemps (Depends-on): Likewise.
3175         * modules/mktime (Depends-on): Likewise.
3176         * modules/nanosleep (Depends-on): Likewise.
3177         * modules/open (Depends-on): Likewise.
3178         * modules/openat (Depends-on): Likewise.
3179         * modules/perror (Depends-on): Likewise.
3180         * modules/poll (Depends-on): Likewise.
3181         * modules/popen (Depends-on): Likewise.
3182         * modules/posix_spawn (Depends-on): Likewise.
3183         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3184         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3185         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3186         * modules/posix_spawnp (Depends-on): Likewise.
3187         * modules/pread (Depends-on): Likewise.
3188         * modules/printf-posix (Depends-on): Likewise.
3189         * modules/ptsname (Depends-on): Likewise.
3190         * modules/putenv (Depends-on): Likewise.
3191         * modules/pwrite (Depends-on): Likewise.
3192         * modules/readline (Depends-on): Likewise.
3193         * modules/readlink (Depends-on): Likewise.
3194         * modules/readlinkat (Depends-on): Likewise.
3195         * modules/recv (Depends-on): Likewise.
3196         * modules/recvfrom (Depends-on): Likewise.
3197         * modules/regex (Depends-on): Likewise.
3198         * modules/remove (Depends-on): Likewise.
3199         * modules/rename (Depends-on): Likewise.
3200         * modules/renameat (Depends-on): Likewise.
3201         * modules/rmdir (Depends-on): Likewise.
3202         * modules/round (Depends-on): Likewise.
3203         * modules/roundf (Depends-on): Likewise.
3204         * modules/roundl (Depends-on): Likewise.
3205         * modules/rpmatch (Depends-on): Likewise.
3206         * modules/select (Depends-on): Likewise.
3207         * modules/send (Depends-on): Likewise.
3208         * modules/sendto (Depends-on): Likewise.
3209         * modules/setenv (Depends-on): Likewise.
3210         * modules/setlocale (Depends-on): Likewise.
3211         * modules/setsockopt (Depends-on): Likewise.
3212         * modules/shutdown (Depends-on): Likewise.
3213         * modules/sigaction (Depends-on): Likewise.
3214         * modules/signbit (Depends-on): Likewise.
3215         * modules/sigprocmask (Depends-on): Likewise.
3216         * modules/sinl (Depends-on): Likewise.
3217         * modules/sleep (Depends-on): Likewise.
3218         * modules/snprintf (Depends-on): Likewise.
3219         * modules/snprintf-posix (Depends-on): Likewise.
3220         * modules/socket (Depends-on): Likewise.
3221         * modules/sprintf-posix (Depends-on): Likewise.
3222         * modules/sqrtl (Depends-on): Likewise.
3223         * modules/stat (Depends-on): Likewise.
3224         * modules/strchrnul (Depends-on): Likewise.
3225         * modules/strdup-posix (Depends-on): Likewise.
3226         * modules/strerror (Depends-on): Likewise.
3227         * modules/strerror_r-posix (Depends-on): Likewise.
3228         * modules/strndup (Depends-on): Likewise.
3229         * modules/strnlen (Depends-on): Likewise.
3230         * modules/strptime (Depends-on): Likewise.
3231         * modules/strsep (Depends-on): Likewise.
3232         * modules/strsignal (Depends-on): Likewise.
3233         * modules/strstr-simple (Depends-on): Likewise.
3234         * modules/strtod (Depends-on): Likewise.
3235         * modules/strtoimax (Depends-on): Likewise.
3236         * modules/strtok_r (Depends-on): Likewise.
3237         * modules/strtoumax (Depends-on): Likewise.
3238         * modules/symlink (Depends-on): Likewise.
3239         * modules/symlinkat (Depends-on): Likewise.
3240         * modules/tanl (Depends-on): Likewise.
3241         * modules/tcgetsid (Depends-on): Likewise.
3242         * modules/tmpfile (Depends-on): Likewise.
3243         * modules/trunc (Depends-on): Likewise.
3244         * modules/truncf (Depends-on): Likewise.
3245         * modules/truncl (Depends-on): Likewise.
3246         * modules/uname (Depends-on): Likewise.
3247         * modules/unlink (Depends-on): Likewise.
3248         * modules/unlockpt (Depends-on): Likewise.
3249         * modules/unsetenv (Depends-on): Likewise.
3250         * modules/usleep (Depends-on): Likewise.
3251         * modules/utimensat (Depends-on): Likewise.
3252         * modules/vasprintf (Depends-on): Likewise.
3253         * modules/vdprintf (Depends-on): Likewise.
3254         * modules/vdprintf-posix (Depends-on): Likewise.
3255         * modules/vfprintf-posix (Depends-on): Likewise.
3256         * modules/vprintf-posix (Depends-on): Likewise.
3257         * modules/vsnprintf (Depends-on): Likewise.
3258         * modules/vsnprintf-posix (Depends-on): Likewise.
3259         * modules/vsprintf-posix (Depends-on): Likewise.
3260         * modules/wcrtomb (Depends-on): Likewise.
3261         * modules/wcscasecmp (Depends-on): Likewise.
3262         * modules/wcscspn (Depends-on): Likewise.
3263         * modules/wcsdup (Depends-on): Likewise.
3264         * modules/wcsncasecmp (Depends-on): Likewise.
3265         * modules/wcsnrtombs (Depends-on): Likewise.
3266         * modules/wcspbrk (Depends-on): Likewise.
3267         * modules/wcsrtombs (Depends-on): Likewise.
3268         * modules/wcsspn (Depends-on): Likewise.
3269         * modules/wcsstr (Depends-on): Likewise.
3270         * modules/wcstok (Depends-on): Likewise.
3271         * modules/wcswidth (Depends-on): Likewise.
3272         * modules/wctob (Depends-on): Likewise.
3273         * modules/wctomb (Depends-on): Likewise.
3274         * modules/wctype (Depends-on): Likewise.
3275         * modules/wcwidth (Depends-on): Likewise.
3276         * modules/write (Depends-on): Likewise.
3277
3278 2011-05-03  Bruno Haible  <bruno@clisp.org>
3279
3280         Support for conditional dependencies.
3281         * doc/gnulib.texi (Module description): Document the syntax of
3282         conditional dependencies.
3283         * gnulib-tool: New option --conditional-dependencies.
3284         (func_usage): Document it.
3285         (cond_dependencies): New variable.
3286         (func_get_automake_snippet_conditional,
3287         func_get_automake_snippet_unconditional): New functions, extracted from
3288         func_get_automake_snippet.
3289         (func_get_automake_snippet): Use them.
3290         (sed_first_32_chars): New variable.
3291         (func_module_shellfunc_name): New function.
3292         (func_module_shellvar_name): New function.
3293         (func_module_conditional_name): New function.
3294         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3295         func_cond_module_condition): New functions.
3296         (func_modules_transitive_closure): Add support for conditional
3297         dependencies.
3298         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3299         conditional automake snippet in an automake conditional.
3300         (func_emit_autoconf_snippets): Emit shell functions that contain the
3301         code for conditional modules.
3302         (func_import, func_create_testdir): Update specification.
3303
3304 2011-05-03  Eric Blake  <eblake@redhat.com>
3305
3306         test-getaddrinfo: report error information
3307         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3308
3309 2011-05-03  Jim Meyering  <meyering@redhat.com>
3310
3311         bootstrap: avoid build failure when $GZIP is set
3312         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3313         program name.  If defined at all, it is supposed to list gzip options.
3314         Reported by Alan Curry in http://debbugs.gnu.org/8609
3315
3316 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3317
3318         readme-release: new module with release instructions
3319         * modules/readme-release: New module.
3320         * top/README-release: New file, from coreutils, grep, diffutils.
3321         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3322
3323 2011-05-02  Eric Blake  <eblake@redhat.com>
3324
3325         fflush: also replace fclose when fixing fflush
3326         * modules/fflush (Depends-on): Add fclose.
3327         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3328         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3329         memstreams with no backing fd.
3330         * doc/posix-functions/fclose.texi (fclose): Document the use of
3331         fflush module to fix the bug.
3332         * tests/test-fclose.c (main): Relax test when fclose is used in
3333         isolation.
3334
3335         fclose: add some tests
3336         * modules/fclose-tests: New test module.
3337         * tests/test-fclose.c: New file.
3338         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3339
3340         fclose: reduced dependencies
3341         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3342         simpler lseek.
3343         * lib/fclose.c (rpl_fclose): Likewise.
3344         Reported by Simon Josefsson.
3345
3346         exit: drop remaining clients
3347         * modules/argmatch (Depends-on): Replace exit with stdlib.
3348         * modules/copy-file (Depends-on): Likewise.
3349         * modules/execute (Depends-on): Likewise.
3350         * modules/exitfail (Depends-on): Likewise.
3351         * modules/obstack (Depends-on): Likewise.
3352         * modules/pagealign_alloc (Depends-on): Likewise.
3353         * modules/pipe-filter-gi (Depends-on): Likewise.
3354         * modules/pipe-filter-ii (Depends-on): Likewise.
3355         * modules/savewd (Depends-on): Likewise.
3356         * modules/spawn-pipe (Depends-on): Likewise.
3357         * modules/wait-process (Depends-on): Likewise.
3358         * modules/xsetenv (Depends-on): Likewise.
3359         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3360         * modules/git-merge-changelog (Depends-on): Likewise.
3361         * modules/long-options (Depends-on): Likewise.
3362         * modules/pt_chown (Depends-on): Likewise.
3363         * modules/sysexits (Depends-on): Likewise.
3364
3365         freading: relax license from LGPLv3+ to LGPLv2+
3366         * modules/freading (License): Relax LGPL version.
3367
3368 2011-05-02  Bruno Haible  <bruno@clisp.org>
3369
3370         fchdir: Remove unused dependencies.
3371         * modules/fchdir (Depends-on): Remove include_next.
3372
3373 2011-05-02  Bruno Haible  <bruno@clisp.org>
3374
3375         gnulib-tool: Refactor.
3376         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3377         from func_emit_autoconf_snippets.
3378         (func_emit_autoconf_snippets): Use it.
3379
3380 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3381
3382         * NEWS: Document removal of 'exit'.
3383         * modules/exit: Remove file.
3384
3385 2011-05-01  Bruno Haible  <bruno@clisp.org>
3386
3387         Update DEPENDENCIES.
3388         * DEPENDENCIES (gettext): Recommend the newest release.
3389         Reported by Simon Josefsson.
3390
3391 2011-05-01  Bruno Haible  <bruno@clisp.org>
3392
3393         gnulib-tool: Reduce code duplication.
3394         * gnulib-tool (func_emit_autoconf_snippets): New function.
3395         (func_import, func_create_testdir): Use it.
3396
3397 2011-04-30  Eric Blake  <eblake@redhat.com>
3398
3399         fclose: don't fail on non-seekable input stream
3400         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3401         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3402         since fflush is allowed to fail in that case.
3403
3404 2011-04-30  Bruno Haible  <bruno@clisp.org>
3405
3406         dup3: cleanup
3407         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3408
3409 2011-04-30  Bruno Haible  <bruno@clisp.org>
3410
3411         netdb: Make it work in C++ mode.
3412         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3413         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3414         module.
3415         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3416         gl_MODULE_INDICATOR_FOR_TESTS.
3417         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3418         * modules/netdb-c++-tests: New file.
3419         * tests/test-netdb-c++.cc: New file.
3420
3421 2011-04-30  Bruno Haible  <bruno@clisp.org>
3422
3423         New modules 'vfscanf', 'vscanf'.
3424         * modules/vfscanf: New file.
3425         * modules/vscanf: New file.
3426         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3427         here.
3428         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3429         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3430
3431 2011-04-30  Bruno Haible  <bruno@clisp.org>
3432
3433         passfd: Add comments.
3434         * lib/passfd.c: Add comments about platforms.
3435
3436 2011-04-30  Bruno Haible  <bruno@clisp.org>
3437
3438         sys_uio: Make <sys/uio.h> self-contained.
3439         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3440         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3441
3442 2011-04-30  Bruno Haible  <bruno@clisp.org>
3443
3444         sys_socket: Ensure 'struct iovec' definition.
3445         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3446         <sys/socket.h>.
3447         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3448
3449 2011-04-30  Bruno Haible  <bruno@clisp.org>
3450
3451         sys_uio: Protect definition of 'struct iovec'.
3452         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3453         it as a C struct.
3454
3455 2011-04-30  Bruno Haible  <bruno@clisp.org>
3456
3457         manywarnings: fix indentation
3458         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3459
3460 2011-04-30  Pádraig Brady <P@draigBrady.com>
3461
3462         manywarnings: add -Wno-missing-field-initializers if needed.
3463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3464         option if it's needed to allow initialization with { 0, }
3465
3466 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3467
3468         announce-gen: cosmetic improvement
3469         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3470
3471 2011-04-29  Jim Meyering  <meyering@redhat.com>
3472
3473         vc-list-files: indent with spaces, not TABs
3474         * build-aux/vc-list-files: Convert leading TABs to spaces,
3475         to match the style of most other files in gnulib.
3476
3477         announce-gen: indent with spaces, not TABs
3478         * build-aux/announce-gen: Convert all TABs to spaces, to match
3479         the style of most other files in gnulib.
3480
3481 2011-04-29  Eric Blake  <eblake@redhat.com>
3482
3483         quotearg: avoid uninitialized variable use
3484         * lib/quotearg.c (quoting_options_from_style): Initialize
3485         remaining fields, and ensure that custom styles are only used via
3486         quoting_options rather than quoting_style.
3487
3488 2011-04-29  Jim Meyering  <meyering@redhat.com>
3489
3490         maint.mk: remove unused VC-tag variable
3491         * top/maint.mk (VC-tag): Remove unused variable.
3492
3493 2011-04-29  Bruno Haible  <bruno@clisp.org>
3494
3495         netdb: fix gai_strerror replacements
3496         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3497         * modules/netdb: Substitute it.
3498
3499 2011-04-29  Jim Meyering  <meyering@redhat.com>
3500
3501         test-getcwd.c: avoid new set-but-not-used warning
3502         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3503         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3504         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3505         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3506
3507         test-hash.c: avoid a new shadowing warning
3508         * tests/test-hash.c (main): Don't shadow "dup".
3509
3510 2011-04-28  Eric Blake  <eblake@redhat.com>
3511
3512         getaddrinfo: fix gai_strerror signature
3513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3514         and work around mingw with UNICODE defined.
3515         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3516         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3517         * modules/netdb (Makefile.am): Substitute it.
3518         * lib/netdb.in.h (gai_strerror): Declare replacement.
3519         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3520         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3521         the fix.
3522
3523         getsockopt: avoid compiler warning
3524         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3525         Reported by Matthias Bolte.
3526
3527         tests: drop unused link dependency
3528         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3529         * modules/dirent-safer-tests (Makefile.am): Likewise.
3530         * modules/fdopendir-tests (Makefile.am): Likewise.
3531         * modules/mkfifoat-tests (Makefile.am): Likewise.
3532         * modules/openat-safer-tests (Makefile.am): Likewise.
3533         * modules/openat-tests (Makefile.am): Likewise.
3534         * modules/readlinkat-tests (Makefile.am): Likewise.
3535         * modules/symlinkat-tests (Makefile.am): Likewise.
3536         * modules/linkat-tests (Makefile.am): Likewise.
3537         (Depends-on): Switch to filenamecat-lgpl.
3538         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3539         LIBINTL.
3540         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3541         * tests/test-linkat.c (main): Don't require xalloc.
3542
3543         hash, mgetgroups: drop xalloc dependency
3544         * lib/hash.c (includes): Adjust includes.
3545         * lib/mgetgroups.c (includes): Likewise.
3546         (xgetgroups): Move...
3547         * lib/xgetgroups.c: ...to new file.
3548         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3549         * modules/xgetgroups: New file, split from...
3550         * modules/mgetgroups: ...here.
3551         (Depends-on): Add xalloc-oversized.
3552         * modules/hash (Depends-on): Likewise.
3553         * modules/hash-tests (Depends-on): Drop xalloc.
3554         (test_hash_LDADD): Drop unused library.
3555         * tests/test-hash.c (main): Break xalloc dependency.
3556         (includes): Drop unused include.
3557
3558         xalloc-oversized: new module
3559         * modules/xalloc-oversized: New module.
3560         * modules/xalloc (Depends-on): Add it.
3561         * lib/xalloc.h (xalloc_oversized): Move...
3562         * lib/xalloc-oversized.h: ...into new file.
3563
3564         utimecmp: drop dependency on xmalloc
3565         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3566         due to memory pressure.
3567         * modules/utimecmp (Depends-on): Drop xalloc.
3568
3569 2011-04-27  Eric Blake  <eblake@redhat.com>
3570
3571         getcwd: fix mingw bugs
3572         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3573         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3574         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3575
3576 2011-04-27  Bruno Haible  <bruno@clisp.org>
3577
3578         mkstemps: Ensure declaration on MacOS X 10.5.
3579         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3580         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3581         MacOS X.
3582
3583 2011-04-27  Bruno Haible  <bruno@clisp.org>
3584
3585         mkstemp: More documentation.
3586         * doc/posix-functions/mkstemp.texi: Document header file problem on
3587         MacOS X.
3588
3589 2011-04-27  Bruno Haible  <bruno@clisp.org>
3590
3591         mkstemp: Tweak configure message when cross-compiling.
3592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3593         result as a guess.
3594
3595 2011-04-27  Bruno Haible  <bruno@clisp.org>
3596
3597         clean-temp: Clarify what it does.
3598         * lib/clean-temp.h: Add more comments.
3599         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3600         module.
3601         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3602         * doc/glibc-functions/mkstemps.texi: Likewise.
3603         * doc/glibc-functions/mkostemps.texi: Likewise.
3604
3605 2011-04-27  Eric Blake  <eblake@redhat.com>
3606
3607         fchdir: avoid extra chdir and fix test
3608         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3609         getcwd-lgpl.
3610         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3611         have to be canonical.
3612         (canonicalize_file_name): Drop unused macro.
3613         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3614
3615         filenamecat-lgpl: fix licence
3616         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3617         when it was first created.
3618
3619         linkat, renameat: add missing dependency
3620         * modules/linkat (Depends-on): Require getcwd-lgpl.
3621         * modules/renameat (Depends-on): Likewise.
3622
3623         tests: reduce dependencies
3624         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3625         * tests/test-renameat.c (main): Likewise.
3626         * modules/linkat-tests (Depends-on): Relax dependency.
3627         * modules/renameat-tests (Depends-on): Likewise.
3628         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3629         dependency explicit.
3630
3631         save-cwd: reduce default dependency
3632         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3633         * lib/save-cwd.c: Update comments.
3634         * NEWS: Document the semantic change.
3635
3636         getcwd: enhance tests
3637         * tests/test-getcwd-lgpl.c: New file, taken from...
3638         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3639         repeat long path stress tests from m4 probe.
3640         * modules/getcwd-lgpl-tests: New module.
3641         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3642         * m4/getcwd-abort-bug.m4: Update comment.
3643         * m4/getcwd-path-max.m4: Likewise.
3644
3645         getcwd-lgpl: new module
3646         * modules/getcwd-lgpl: New module.
3647         * lib/getcwd-lgpl.c: New file.
3648         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3649         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3650         * modules/getcwd (configure.ac): Set C witness.
3651         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3652
3653         getcwd: tweak comments
3654         * m4/getcwd-abort-bug.m4: Fix comments.
3655         * m4/getcwd-path-max.m4: Likewise.
3656         * m4/getcwd.m4: Likewise.
3657
3658 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3659         and Eric Blake  <eblake@redhat.com>
3660
3661         mkstemp: replace if system version uses wrong permissions
3662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3663         read/write mode bits set in file created by mkstemp.
3664         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3665
3666 2011-04-27  Eric Blake  <eblake@redhat.com>
3667
3668         passfd: avoid compiler warning
3669         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3670         Reported by Laine Stump.
3671
3672 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3673
3674         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3675         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3676
3677 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3678         and Eric Blake  <eblake@redhat.com>
3679
3680         mkstemp: mention clean-temp module
3681         * lib/mkstemp.c: Add comment.
3682         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3683
3684 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         inttypes: also provide default values for 32-bit tests
3687         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3688         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3689
3690 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3691
3692         strtoumax: remove dependency on strtoimax
3693         This is like the strtoull change of yesterday.
3694         * modules/strtoumax (Files): Add lib/strtoimax.c.
3695         (Depends-on): Remove strtoimax and add verify.
3696
3697         inttypes-incomplete: new module
3698         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3699         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3700         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3701         of gl_INTTYPES_H.
3702         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3703         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3704         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3705         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3706         * modules/strtoumax, modules/xstrtol (Depends-on):
3707         Depend on inttypes-incomplete, not inttypes.
3708         * modules/inttypes-incomplete: New module, containing the contents
3709         of the old modules/inttypes module, except that the Files: section
3710         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3711         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3712         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3713         (Depends-on): Depend only on inttypes-incomplete.
3714         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3715
3716         inttypes: omit now-redundant strtoimax and strtoumax work
3717         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3718         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3719
3720         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3721         This supports apps that need pointers to strtoimax and strtoumax,
3722         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3723         nonexistent functions.  See
3724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3725         et seq.
3726         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3728         a macro.
3729         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3730
3731 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3732
3733         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3734
3735 2011-04-25  Bruno Haible  <bruno@clisp.org>
3736
3737         strtol, strtoul: Mark modules as obsolete.
3738         * modules/strtol (Status, Notice): New sections.
3739         * modules/strtoul (Status, Notice): New sections.
3740
3741 2011-04-25  Bruno Haible  <bruno@clisp.org>
3742
3743         strtod: Remove check for strtod, unless supporting old platforms.
3744         * modules/strtod-obsolete: New file.
3745         * m4/strtod-obsolete.m4: New file.
3746         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3747         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3748         * modules/strtod (Depends-on): Add strtod-obsolete.
3749         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3750
3751 2011-04-25  Bruno Haible  <bruno@clisp.org>
3752
3753         strcase: Make module obsolete.
3754         * modules/strcase (Status, Notice): New sections.
3755
3756 2011-04-25  Bruno Haible  <bruno@clisp.org>
3757
3758         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3759         * modules/dup2-obsolete: New file.
3760         * m4/dup2-obsolete.m4: New file.
3761         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3762         gl_FUNC_DUP2_OBSOLETE is not also defined.
3763         * modules/dup2 (Depends-on): Add dup2-obsolete.
3764         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3765
3766 2011-04-25  Bruno Haible  <bruno@clisp.org>
3767
3768         strnlen: Avoid memchr related link error on old obsolete platforms.
3769         * modules/memchr-obsolete: New file.
3770         * m4/memchr-obsolete.m4: New file.
3771         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3772         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3773         * modules/memchr (Depends-on): Add memchr-obsolete.
3774         * modules/strnlen (Depends-on): Likewise.
3775         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3776
3777 2011-04-25  Jim Meyering  <meyering@redhat.com>
3778
3779         maint.mk: makefile_at_at_check extend and clean up
3780         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3781         in addition to */Makefile.am.
3782         Exempt legitimate uses of @VAR@ notation, e.g.,
3783         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3784         Remove obsolete coreutils-specific comment.
3785         Prompted by discussion here:
3786         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3787
3788 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3789
3790         strtoul: remove dependency on strtol
3791         This is so that 'configure' need not check for strtol merely because
3792         the application needs strtoul.
3793         * modules/strtoul (Files): Add lib/strtol.c.
3794         (Depends-on): Remove strtol.
3795
3796         strtoull: remove dependency on strtoul
3797         This is like the strtoll change.
3798         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3799         (Depends-on): Remove strtoul.
3800
3801         strtoll: remove dependency on strtol
3802         This is so that 'configure' need not check for strtol merely because
3803         the application needs strtoll.
3804         * modules/strtoll (Files): Add lib/strtol.c.
3805         (Depends-on): Remove strtol.
3806
3807 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         inttypes: Move some configure check to module 'imaxdiv'.
3810         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3811         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3812         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3813
3814 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3815
3816         inttypes: Move some configure check to module 'imaxabs'.
3817         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3818         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3819         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3820
3821 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3822
3823         inttypes: Remove configure tests that are not needed since 2009-12-31.
3824         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3825         gl_cv_header_working_inttypes_h.
3826
3827 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3828
3829         * modules/strnlen (Depends-on): Remove memchr.
3830         The strnlen implementation doesn't need the memchr module's fixes; see
3831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3832
3833         strtol: remove dependency on wchar
3834         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3835         * modules/strtol (Depends-on): Remove wchar.
3836
3837 2011-04-21  Eric Blake  <eblake@redhat.com>
3838
3839         passfd: fix test regression on Linux
3840         * modules/passfd-tests (configure.ac): Correct socketpair check.
3841
3842         passfd: speed up configure and drop unused code
3843         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3844         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3845         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3846         Instead of probing at configure for unix_scm_rights_bsd44_way,
3847         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3848         check to a struct member probe.
3849         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3850         (sendfd, recvfd): Update preprocessor checks.
3851         * modules/passfd (Files): Reflect rename, and drop unused file.
3852         (Depends-on): Drop unused dependency.
3853
3854         passfd: allow compilation on mingw
3855         * modules/sys_socket (Depends-on): Add sys_uio.
3856         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3857         iovec and a minimal struct msghdr.
3858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3859         * tests/test-sys_socket.c (main): Enhance test.
3860         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3861         guaranteed to provide what we need.
3862         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3863         * modules/passfd-tests (Depends-on): Add sys_wait.
3864         * tests/test-passfd.c (main): Skip test on mingw, for now.
3865         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3866         partial 'struct msghdr' implementation.
3867
3868         sys_uio: new module
3869         * modules/sys_uio: New module.
3870         * modules/sys_uio-tests: Likewise.
3871         * lib/sys_uio.in.h: New file.
3872         * m4/sys_uio_h.m4: Likewise.
3873         * tests/test-sys_uio.c: Likewise.
3874         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3875         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3876
3877 2011-04-20  Jim Meyering  <meyering@redhat.com>
3878
3879         useless-if-before-free: avoid false-positive
3880         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3881         disjunct so that it too requires a terminating ";".  Without that,
3882         this script would identify as useless one statement from gcc that
3883         was not:
3884           if (aligned_ptr)
3885             free (((void **) aligned_ptr) [-1]);
3886
3887 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3888
3889         doc: update users.txt.
3890         * users.txt: Add barcode.
3891
3892 2011-04-19  Bruno Haible  <bruno@clisp.org>
3893
3894         ioctl: Remove link dependency on native Windows.
3895         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3896         (gl_close_fn, gl_ioctl_fn): New types.
3897         (struct fd_hook): Renamed from struct close_hook. Change type of
3898         private_close_fn field. Add private_ioctl_fn field.
3899         (close_hook_fn): Add parameter for primary close method.
3900         (execute_close_hooks, execute_all_close_hooks): Likewise.
3901         (ioctl_hook_fn): New type.
3902         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3903         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3904         argument.
3905         (unregister_fd_hook): Renamed from unregister_close_hook.
3906         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3907         Don't include <unistd.h>.
3908         (close): Remove undef.
3909         (anchor): Update.
3910         (execute_close_hooks): Add argument for primary close method.
3911         (execute_all_close_hooks): Likewise.
3912         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3913         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3914         argument. Allow each argument to be NULL.
3915         (unregister_fd_hook): Renamed from unregister_close_hook.
3916         * lib/close.c (rpl_close): Pass 'close' function pointer to
3917         execute_all_close_hooks.
3918         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3919         (primary_ioctl): New function.
3920         (ioctl): Don't call ioctlsocket here. Instead, call
3921         execute_all_ioctl_hooks.
3922         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3923         close method.
3924         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3925         (fd_sockets_hook): Renamed from close_sockets_hook.
3926         (gl_sockets_startup, gl_sockets_cleanup): Update.
3927         * modules/fd-hook: Renamed from modules/close-hook. Update.
3928         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3929         * modules/sockets (Depends-on): Likewise.
3930         * modules/ioctl (Depends-on): Add fd-hook.
3931         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3932         GNULIB_SOCKET.
3933
3934 2011-04-19  Bruno Haible  <bruno@clisp.org>
3935
3936         Move the support of O_NONBLOCK in open() to the 'open' module.
3937         * modules/nonblocking (Depends-on): Remove 'open'.
3938         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3939         gl_cv_have_open_O_NONBLOCK.
3940         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3941         O_NONBLOCK support.
3942         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3943
3944 2011-04-17  Bruno Haible  <bruno@clisp.org>
3945
3946         pipe2: Simplify code.
3947         * lib/pipe2.c (pipe2): Reduce code duplication.
3948
3949 2011-04-17  Bruno Haible  <bruno@clisp.org>
3950
3951         nonblocking: Add comment.
3952         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3953
3954 2011-04-17  Bruno Haible  <bruno@clisp.org>
3955
3956         nonblocking: Add tests for sockets.
3957         * tests/test-nonblocking-socket.sh: New file.
3958         * tests/test-nonblocking-socket-main.c: New file.
3959         * tests/test-nonblocking-socket-child.c: New file.
3960         * tests/test-nonblocking-socket.h: New file.
3961         * tests/socket-server.h: New file.
3962         * tests/socket-client.h: New file.
3963         * modules/nonblocking-socket-tests: New file.
3964         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3965
3966 2011-04-17  Bruno Haible  <bruno@clisp.org>
3967
3968         nonblocking: Add tests for pipes.
3969         * tests/test-nonblocking-pipe.sh: New file.
3970         * tests/test-nonblocking-pipe-main.c: New file.
3971         * tests/test-nonblocking-pipe-child.c: New file.
3972         * tests/test-nonblocking-pipe.h: New file.
3973         * tests/test-nonblocking-writer.h: New file.
3974         * tests/test-nonblocking-reader.h: New file.
3975         * tests/test-nonblocking-misc.h: New file.
3976         * modules/nonblocking-pipe-tests: New file.
3977         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3978
3979 2011-04-16  Bruno Haible  <bruno@clisp.org>
3980
3981         gettext: Clarify the needed programmer actions.
3982         * modules/gettext (Notice): New field.
3983         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3984
3985 2011-04-16  Bruno Haible  <bruno@clisp.org>
3986
3987         strchrnul: Tweak last commit.
3988         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3989         bug.
3990         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3991         as in _GL_FUNCDECL_SYS.
3992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3993         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3994
3995 2011-04-15  Eric Blake  <eblake@redhat.com>
3996
3997         strchrnul: work around cygwin bug
3998         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3999         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4001         * modules/string (Makefile.am): Substitute it.
4002         * lib/string.in.h (strchrnul): Use it.
4003
4004 2011-04-15  Bruno Haible  <bruno@clisp.org>
4005
4006         Don't require lib/stdio-write.c when only module 'stdio' is used.
4007         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4008         invocation.
4009         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4010
4011 2011-04-14  Bruno Haible  <bruno@clisp.org>
4012
4013         Support non-blocking pipe I/O in read() on native Windows.
4014         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4015         (read): New declaration.
4016         * lib/read.c: New file.
4017         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4018         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4019         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4020         vscanf): New declarations.
4021         * lib/stdio-read.c: New file.
4022         * m4/read.m4: New file.
4023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4024         REPLACE_READ.
4025         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4026         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4027         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4028         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4030         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4031         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4032         * modules/read: New file.
4033         * modules/nonblocking (Files): Add lib/stdio-read.c.
4034         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4035         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4036         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4037         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4038         * modules/pread (Depends-on): Add read.
4039         * modules/safe-read (Depends-on): Likewise.
4040         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4041         gets, scanf, vfscanf, vscanf): Verify signatures.
4042         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4043         problem with non-blocking pipes.
4044         * doc/posix-functions/fgetc.texi: Likewise.
4045         * doc/posix-functions/fgets.texi: Likewise.
4046         * doc/posix-functions/fread.texi: Likewise.
4047         * doc/posix-functions/fscanf.texi: Likewise.
4048         * doc/posix-functions/getc.texi: Likewise.
4049         * doc/posix-functions/getchar.texi: Likewise.
4050         * doc/posix-functions/gets.texi: Likewise.
4051         * doc/posix-functions/scanf.texi: Likewise.
4052         * doc/posix-functions/vfscanf.texi: Likewise.
4053         * doc/posix-functions/vscanf.texi: Likewise.
4054
4055 2011-04-14  Bruno Haible  <bruno@clisp.org>
4056
4057         Support non-blocking pipe I/O in write() on native Windows.
4058         * lib/write.c (rpl_write): Split a write request that failed merely
4059         because the byte count was larger than the pipe buffer's size.
4060         * doc/posix-functions/write.texi: Mention the problem with large byte
4061         counts.
4062
4063 2011-04-14  Bruno Haible  <bruno@clisp.org>
4064
4065         wchar: Ensure that wchar_t gets defined on uClibc.
4066         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4067         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4068
4069 2011-04-13  Bruno Haible  <bruno@clisp.org>
4070
4071         safe-write, full-read: Avoid unnecessary compilation units.
4072         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4073         (Depends-on): Remove safe-read. Add ssize_t.
4074         * modules/full-read (Files): Add lib/full-write.c.
4075         (Depends-on): Add full-write.
4076
4077 2011-04-13  Bruno Haible  <bruno@clisp.org>
4078
4079         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4080         * modules/pwrite (Depends-on): Add 'write'.
4081
4082 2011-04-13  Bruno Haible  <bruno@clisp.org>
4083
4084         Support non-blocking pipe I/O in write() on native Windows.
4085         * lib/unistd.in.h (write): Enable replacement also if
4086         GNULIB_UNISTD_H_NONBLOCKING is 1.
4087         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4088         (rpl_write): When failing to write on a non-blocking pipe, change
4089         errno from ENOSPC to EAGAIN.
4090         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4091         putchar, puts, vfprintf, vprintf): Enable replacement also if
4092         GNULIB_STDIO_H_NONBLOCKING is 1.
4093         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4094         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4095         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4096         CALL_WITH_SIGPIPE_EMULATION.
4097         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4098         * m4/nonblocking.m4: New file.
4099         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4100         for non-blocking I/O support.
4101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4102         GNULIB_UNISTD_H_NONBLOCKING.
4103         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4104         required for non-blocking I/O support.
4105         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4106         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4107         lib/stdio-write.c, m4/asm-underscore.m4.
4108         (Depends-on): Add stdio, unistd.
4109         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4110         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4111         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4112         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4113         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4114         problem with non-blocking pipes.
4115         * doc/posix-functions/fputc.texi: Likewise.
4116         * doc/posix-functions/fputs.texi: Likewise.
4117         * doc/posix-functions/fwrite.texi: Likewise.
4118         * doc/posix-functions/printf.texi: Likewise.
4119         * doc/posix-functions/putc.texi: Likewise.
4120         * doc/posix-functions/putchar.texi: Likewise.
4121         * doc/posix-functions/puts.texi: Likewise.
4122         * doc/posix-functions/vfprintf.texi: Likewise.
4123         * doc/posix-functions/vprintf.texi: Likewise.
4124         * doc/posix-functions/write.texi: Likewise.
4125
4126 2011-04-10  Jim Meyering  <meyering@redhat.com>
4127
4128         maint.mk: prohibit doubled words
4129         Detect them also when they're separated by a newline.
4130         There are 3 ways to customize it:
4131           - disable the test on a per file basis, as usual with rules using
4132             $(VC_LIST_EXCEPT)
4133           - replace the default doubled-word-selecting regexp (affects all files)
4134           - ignore a particular file-vs-doubled-word match
4135         I nearly used that last one to ignore the "is is" match in
4136         coreutils' NEWS file, since the text was "ls -is is ..."
4137         To do that, I would have added this line to cfg.mk:
4138           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4139         but it would have ignored any "is is" match in NEWS.
4140         Low probability, but still...
4141         Instead, I changed the text, slightly:
4142           -  ls -is is now consistent with ls -lis in ignoring values returned
4143           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4144         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4145         (prohibit_doubled_word_): Define.
4146         (sc_prohibit_doubled_word): New rule.
4147         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4148
4149 2011-04-10  Jim Meyering  <meyering@redhat.com>
4150
4151         maint: fix doubled-word typo in comment
4152         * m4/gethostname.m4: s/is is/it is/
4153         * m4/getdomainname.m4: Likewise.
4154
4155 2011-04-10  Jim Meyering  <meyering@redhat.com>
4156
4157         maint: remove doubled word: s/it it/it/
4158         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4159
4160 2011-04-10  Jim Meyering  <meyering@redhat.com>
4161
4162         maint.mk: remove useless semicolon and backslash
4163         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4164         semicolon and backslash.
4165
4166 2011-04-10  Bruno Haible  <bruno@clisp.org>
4167
4168         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4169         * modules/stdint-tests (Depends-on): Add wchar.
4170
4171 2011-04-10  Jim Meyering  <meyering@redhat.com>
4172
4173         maint: remove doubled words in comments, e.g., s/a a/a/
4174         * lib/strptime.c (day_of_the_week): s/the the/the/
4175         * tests/test-chown.h (test_chown): s/a a/a/
4176
4177         test-chown.h: correct a cast
4178         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4179         when the destination is a stat.st_gid.
4180
4181 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4182
4183         getaddrinfo: Fix test for sa_len member.
4184         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4185         include <sys/types.h> before <sys/socket.h>.
4186
4187 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4188
4189         maint: change "can not" to "cannot"
4190         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4191         boundaries.
4192
4193 2011-04-09  Jim Meyering  <meyering@redhat.com>
4194
4195         maint: change "a a" to "a"
4196         * tests/test-lchown.h (test_lchown): s/a a/a/
4197
4198         maint.mk: prohibit \<the the\>
4199         * top/maint.mk (sc_prohibit_the_the): New rule.
4200
4201         maint: fix "the the" in comment
4202         * lib/count-one-bits.h: s/the the/the/
4203
4204         maint: change "can not" to "cannot"
4205         But do not change the occurrences in maintain.texi or in
4206         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4207         * doc/gnulib-tool.texi: s/can not/cannot/
4208         * doc/posix-functions/accept.texi (accept): Likewise.
4209         * doc/posix-functions/socket.texi (socket): Likewise.
4210         * lib/mbrtowc.c: Likewise.
4211
4212         maint.mk: prohibit use of "can not"
4213         * top/maint.mk (sc_prohibit_can_not): New rule.
4214         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4215
4216 2011-04-09  Bruno Haible  <bruno@clisp.org>
4217
4218         careadlinkat: Guard against misuse of careadlinkatcwd.
4219         * lib/careadlinkat.c: Include <stdlib.h>.
4220         (careadlinkatcwd): Check that the fd argument is as expected.
4221
4222 2011-04-09  Bruno Haible  <bruno@clisp.org>
4223
4224         careadlinkat: Use common coding style.
4225         * lib/careadlinkat.c: Move gnulib includes after system includes.
4226
4227 2011-04-09  Bruno Haible  <bruno@clisp.org>
4228
4229         careadlinkat: Clarify specification.
4230         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4231         (careadlinkatcwd): Add comment.
4232         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4233
4234 2011-04-09  Bruno Haible  <bruno@clisp.org>
4235
4236         areadlinkat: Avoid link error on many platforms.
4237         * modules/areadlinkat (Depends-on): Add areadlink.
4238
4239 2011-04-09  Bruno Haible  <bruno@clisp.org>
4240
4241         allocator, careadlinkat: Fix double-inclusion guard.
4242         * lib/allocator.h: Fix double-inclusion guard.
4243         * lib/careadlinkat.h: Likewise.
4244
4245 2011-04-09  Bruno Haible  <bruno@clisp.org>
4246
4247         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4248         * lib/relocwrapper.c: Update dependencies hierarchy.
4249         * build-aux/install-reloc: Update list of files to be compiled.
4250         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4251         lib/allocator.[hc].
4252
4253 2011-04-08  Eric Blake  <eblake@redhat.com>
4254
4255         strftime: silence gnulib-tool warning
4256         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4257
4258 2011-04-08  Bruno Haible  <bruno@clisp.org>
4259
4260         verify: Fix syntax error with GCC 4.6 in C++ mode.
4261         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4262         (HAVE_STATIC_ASSERT): New macro.
4263         (verify_true, verify): Use 'static_assert' if it is supported and
4264         '_Static_assert' is not supported.
4265
4266 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4267
4268         allocator: New module.
4269         * modules/allocator, lib/allocator.c: New files.
4270         * lib/allocator.h (stdlib_allocator): New decl.
4271         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4272         Remove.  Do not include <stdlib.h>.
4273         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4274         * modules/careadlinkat (Files): Remove lib/allocator.h.
4275         (Depends-on): Add allocator.
4276
4277         stdlib: let modules use system malloc, realloc
4278         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4279         if !_GL_USE_STDLIB_ALLOC.
4280         (malloc, realloc): Limit this change to a smaller scope.
4281
4282         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4283         (malloc, realloc): Don't #undef; no longer needed.
4284         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4285         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4286         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4287         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4288         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4289         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4290         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4291         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4292
4293         careadlinkat: rename members to avoid problem
4294         * lib/allocator.h (struct allocator): Rename members from
4295         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4296         and realloc are #define'd.  Reported by Eric Blake in
4297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4298         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4299
4300 2011-04-08  Eric Blake  <eblake@redhat.com>
4301
4302         nonblocking: reduce dependency
4303         * tests/test-nonblocking.c: Only test sockets when in use.
4304         * modules/nonblocking-tests (Depends-on): Drop socket.
4305         (Makefile.am): Link even if sockets are not present.
4306         * modules/pipe2-tests (Makefile.am): Likewise.
4307         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4308
4309         pipe2: fix O_NONBLOCK support on mingw
4310         * modules/pipe2 (Depends-on): Add nonblocking.
4311         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4312         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4313         * tests/test-nonblocking.c (main): Likewise.
4314         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4315
4316         fcntl-h: fix O_ACCMODE on cygwin
4317         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4318         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4319
4320         pipe-filter: drop O_NONBLOCK workarounds
4321         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4322         * modules/pipe-filter-ii (Depends-on): Likewise.
4323         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4324
4325         nonblocking: provide O_NONBLOCK for mingw
4326         * modules/nonblocking (Depends-on): Add open.
4327         (configure.ac): Set new witness macro.
4328         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4329         * modules/fcntl-h (Makefile.am): Substitute it.
4330         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4331         nonblocking module is in use.
4332         * lib/nonblocking.c: Adjust portability test.
4333         * lib/open.c (open): Don't let native open see gnulib flag.
4334         * tests/test-fcntl-h.c (main): Enhance test.
4335         * tests/test-open.h (test_open): Likewise.
4336         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4337
4338         careadlinkat: fix compilation error on mingw
4339         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4340         within struct allocator.
4341
4342 2011-04-06  Eric Blake  <eblake@redhat.com>
4343
4344         binary-io: relicense under LGPLv2+
4345         * modules/binary-io (License): Relax to LGPLv2+.
4346         Requested for libvirt, and required by pipe2.
4347
4348 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         verify: use _Static_assert if available
4351         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4352         (verify_true, verify): Use it if available.  This generates better
4353         diagnostics with GCC 4.6.0 and later.
4354
4355 2011-04-05  Bruno Haible  <bruno@clisp.org>
4356
4357         Remove leftover generated .h files after config.status changed.
4358
4359         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4360         GL_GENERATE_ALLOCA_H.
4361         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4362         GL_GENERATE_ALLOCA_H evaluates to false.
4363
4364         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4365         GL_GENERATE_ARGZ_H.
4366         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4367         evaluates to false.
4368
4369         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4370         GL_GENERATE_BYTESWAP_H.
4371         * modules/byteswap (Makefile.am): Remove byteswap.h if
4372         GL_GENERATE_BYTESWAP_H evaluates to false.
4373
4374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4375         GL_GENERATE_ERRNO_H.
4376         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4377         evaluates to false.
4378
4379         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4380         GL_GENERATE_FLOAT_H.
4381         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4382         evaluates to false.
4383
4384         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4385         GL_GENERATE_FNMATCH_H.
4386         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4387         GL_GENERATE_FNMATCH_H evaluates to false.
4388
4389         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4390         GL_GENERATE_GLOB_H.
4391         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4392         evaluates to false.
4393
4394         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4395         automake conditional GL_GENERATE_ICONV_H.
4396         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4397         evaluates to false.
4398
4399         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4400         GL_GENERATE_NETINET_IN_H.
4401         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4402         GL_GENERATE_NETINET_IN_H evaluates to false.
4403
4404         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4405         conditional GL_GENERATE_PTHREAD_H.
4406         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4407         * modules/pthread (Makefile.am): Remove pthread.h if
4408         GL_GENERATE_PTHREAD_H evaluates to false.
4409
4410         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4411         GL_GENERATE_SCHED_H.
4412         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4413         evaluates to false.
4414
4415         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4416         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4417         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4418         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4419
4420         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4421         GL_GENERATE_STDARG_H.
4422         * modules/stdarg (Makefile.am): Remove stdarg.h if
4423         GL_GENERATE_STDARG_H evaluates to false.
4424
4425         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4426         GL_GENERATE_STDBOOL_H.
4427         * modules/stdbool (Makefile.am): Remove stdbool.h if
4428         GL_GENERATE_STDBOOL_H evaluates to false.
4429
4430         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4431         conditional GL_GENERATE_STDDEF_H.
4432         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4433         * modules/stddef (Makefile.am): Remove stddef.h if
4434         GL_GENERATE_STDDEF_H evaluates to false.
4435
4436         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4437         GL_GENERATE_STDINT_H.
4438         * modules/stdint (Makefile.am): Remove stdint.h if
4439         GL_GENERATE_STDINT_H evaluates to false.
4440
4441         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4442         GL_GENERATE_SYSEXITS_H.
4443         * modules/sysexits (Makefile.am): Remove sysexits.h if
4444         GL_GENERATE_SYSEXITS_H evaluates to false.
4445
4446         Reported by Karl Berry and Ralf Wildenhues.
4447
4448 2011-04-05  Bruno Haible  <bruno@clisp.org>
4449
4450         Ensure to rebuild generated .h files when config.status has changed.
4451         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4452         config.status.
4453         * modules/ctype (Makefile.am): Likewise.
4454         * modules/dirent (Makefile.am): Likewise.
4455         * modules/errno (Makefile.am): Likewise.
4456         * modules/fcntl-h (Makefile.am): Likewise.
4457         * modules/float (Makefile.am): Likewise.
4458         * modules/getopt-posix (Makefile.am): Likewise.
4459         * modules/glob (Makefile.am): Likewise.
4460         * modules/iconv-h (Makefile.am): Likewise.
4461         * modules/inttypes (Makefile.am): Likewise.
4462         * modules/langinfo (Makefile.am): Likewise.
4463         * modules/locale (Makefile.am): Likewise.
4464         * modules/math (Makefile.am): Likewise.
4465         * modules/netdb (Makefile.am): Likewise.
4466         * modules/netinet_in (Makefile.am): Likewise.
4467         * modules/poll-h (Makefile.am): Likewise.
4468         * modules/pthread (Makefile.am): Likewise.
4469         * modules/pty (Makefile.am): Likewise.
4470         * modules/sched (Makefile.am): Likewise.
4471         * modules/search (Makefile.am): Likewise.
4472         * modules/selinux-h (Makefile.am): Likewise.
4473         * modules/signal (Makefile.am): Likewise.
4474         * modules/spawn (Makefile.am): Likewise.
4475         * modules/stdarg (Makefile.am): Likewise.
4476         * modules/stdbool (Makefile.am): Likewise.
4477         * modules/stddef (Makefile.am): Likewise.
4478         * modules/stdint (Makefile.am): Likewise.
4479         * modules/stdio (Makefile.am): Likewise.
4480         * modules/stdlib (Makefile.am): Likewise.
4481         * modules/string (Makefile.am): Likewise.
4482         * modules/strings (Makefile.am): Likewise.
4483         * modules/sys_file (Makefile.am): Likewise.
4484         * modules/sys_ioctl (Makefile.am): Likewise.
4485         * modules/sys_select (Makefile.am): Likewise.
4486         * modules/sys_socket (Makefile.am): Likewise.
4487         * modules/sys_stat (Makefile.am): Likewise.
4488         * modules/sys_time (Makefile.am): Likewise.
4489         * modules/sys_times (Makefile.am): Likewise.
4490         * modules/sys_utsname (Makefile.am): Likewise.
4491         * modules/sys_wait (Makefile.am): Likewise.
4492         * modules/sysexits (Makefile.am): Likewise.
4493         * modules/termios (Makefile.am): Likewise.
4494         * modules/time (Makefile.am): Likewise.
4495         * modules/unistd (Makefile.am): Likewise.
4496         * modules/wchar (Makefile.am): Likewise.
4497         * modules/wctype-h (Makefile.am): Likewise.
4498         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4499
4500 2011-04-05  Bruno Haible  <bruno@clisp.org>
4501
4502         pipe2: Relicense under LGPLv2+.
4503         * modules/pipe2 (License): Change to LGPLv2+.
4504         Requested by Eric Blake, for libvirt.
4505
4506 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4507
4508         bootstrap: compute gnulib_extra_files after updating build_aux
4509         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4510         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4511
4512 2011-04-05  Eric Blake  <eblake@redhat.com>
4513
4514         bootstrap: preserve git whitelist item sorting
4515         * build-aux/bootstrap (sort_patterns): New function.
4516         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4517
4518 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4519
4520         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4521         sc_space_tab check.
4522
4523 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4524
4525         areadlink, areadlinkat: rewrite in terms of careadlinkat
4526         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4527         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4528         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4529         (malloc, realloc): Remove #undefs.
4530         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4531         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4532         readlink, ssize_t, stdint, unistd.
4533         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4534         areadlink, stdint.
4535
4536         careadlinkat: new module
4537         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4538         * modules/careadlinkat: New files, written by me with
4539         a review and feedback from Ben Pfaff in
4540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4541
4542 2011-04-01  Bruno Haible  <bruno@clisp.org>
4543
4544         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4545         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4546         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4547         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4548         Reported by Bruce Korb <bruce.korb@gmail.com>.
4549
4550 2011-04-01  Bruno Haible  <bruno@clisp.org>
4551
4552         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4553         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4554         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4555         * modules/wcpcpy (Depends-on): Add extensions.
4556         * modules/wcpncpy (Depends-on): Likewise.
4557         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4558         systems.
4559         * doc/posix-functions/wcpncpy.texi: Likewise.
4560         * doc/posix-functions/wcwidth.texi: Likewise.
4561
4562 2011-03-31  Eric Blake  <eblake@redhat.com>
4563
4564         nonblocking: fix mingw test failures
4565         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4566         non-blocking flag on regular file.
4567         (get_nonblocking_flag): Set errno on invalid fd.
4568         * tests/test-nonblocking.c (main): Avoid test failure on
4569         directories if fchdir is not active.
4570         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4571
4572 2011-03-31  Bruno Haible  <bruno@clisp.org>
4573
4574         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4575         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4576         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4577         Reported by Simon Josefsson <simon@josefsson.org>.
4578
4579 2011-03-31  Bruno Haible  <bruno@clisp.org>
4580         and Eric Blake  <eblake@redhat.com>
4581
4582         nonblocking: new module
4583         * modules/nonblocking: New module.
4584         * modules/nonblocking-tests: Likewise.
4585         * lib/nonblocking.h: New file.
4586         * lib/nonblocking.c: Likewise.
4587         * tests/test-nonblocking.c: New test.
4588         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4589
4590 2011-03-30  Bruno Haible  <bruno@clisp.org>
4591
4592         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4593         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4594         instead of 'printf' format for GCC >= 4.4.
4595         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4596         (fprintf, printf, vfprintf, vprintf): Declare with
4597         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4598         the system's vfprintf() function.
4599         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4600
4601 2011-03-30  Eric Blake  <eblake@redhat.com>
4602
4603         passfd: fix scoping bug
4604         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4605         before sendmsg/recvmsg.
4606
4607         passfd: standardize coding conventions
4608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4609         can be learned at compile time.
4610         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4611         ifdefs.
4612         (sendfd, recvfd): Follow gnulib code conventions.
4613
4614         passfd: fix incorrect sendmsg arguments
4615         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4616         incorrect msg_controllen value.
4617         * modules/passfd-tests (Depends-on): Check for alarm.
4618         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4619         Reported by Bastien ROUCARIES.
4620
4621 2011-03-30  Bruno Haible  <bruno@clisp.org>
4622
4623         c-strcasestr: Relicense under LGPLv2+.
4624         * modules/c-strcasestr (License): Change to LGPLv2+.
4625         Requested by Eric Blake, for libvirt.
4626
4627 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4628
4629         * users.txt: Add libidn2.  Fix libtasn1 link.
4630
4631 2011-03-30  Jim Meyering  <meyering@redhat.com>
4632
4633         tests: readlink* ("",... fails with EINVAL on newer kernels
4634         readlink and readlinkat have typically failed with ENOENT for
4635         the invalid, empty file name,  "".  However, with the advent
4636         of linux-2.6.39, they fail with EINVAL.
4637         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4638         when operating on the empty file name.
4639         * tests/test-readlink.h (test_readlink): Likewise.
4640
4641 2011-03-29  Bruno Haible  <bruno@clisp.org>
4642
4643         Relicense some modules under LGPLv2+, for libidn2.
4644         * modules/array-mergesort (License): Change to LGPLv2+.
4645         * modules/c-strcaseeq (License): Likewise.
4646         * modules/striconveh (License): Likewise.
4647         * modules/striconveha (License): Likewise.
4648         * modules/uniconv/base (License): Likewise.
4649         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4650         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4651         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4652         * modules/unictype/base (License): Likewise.
4653         * modules/unictype/bidiclass-of (License): Likewise.
4654         * modules/unictype/category-M (License): Likewise.
4655         * modules/unictype/category-none (License): Likewise.
4656         * modules/unictype/category-of (License): Likewise.
4657         * modules/unictype/category-test (License): Likewise.
4658         * modules/unictype/category-test-withtable (License): Likewise.
4659         * modules/unictype/combining-class (License): Likewise.
4660         * modules/unictype/joiningtype-of (License): Likewise.
4661         * modules/unictype/scripts (License): Likewise.
4662         * modules/uninorm/base (License): Likewise.
4663         * modules/uninorm/canonical-decomposition (License): Likewise.
4664         * modules/uninorm/composition (License): Likewise.
4665         * modules/uninorm/decompose-internal (License): Likewise.
4666         * modules/uninorm/decomposition-table (License): Likewise.
4667         * modules/uninorm/nfc (License): Likewise.
4668         * modules/uninorm/nfd (License): Likewise.
4669         * modules/uninorm/u32-normalize (License): Likewise.
4670         * modules/unistr/base (License): Likewise.
4671         * modules/unistr/u32-cpy (License): Likewise.
4672         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4673         * modules/unistr/u32-to-u8 (License): Likewise.
4674         * modules/unistr/u32-uctomb (License): Likewise.
4675         * modules/unistr/u8-check (License): Likewise.
4676         * modules/unistr/u8-mblen (License): Likewise.
4677         * modules/unistr/u8-mbtouc (License): Likewise.
4678         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4679         * modules/unistr/u8-mbtoucr (License): Likewise.
4680         * modules/unistr/u8-prev (License): Likewise.
4681         * modules/unistr/u8-strlen (License): Likewise.
4682         * modules/unistr/u8-to-u32 (License): Likewise.
4683         * modules/unistr/u8-uctomb (License): Likewise.
4684         * modules/unitypes (License): Likewise.
4685         Requested by Simon Josefsson.
4686
4687 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4688
4689         lib-symbol-visibility: Add a notice.
4690         * modules/lib-symbol-visibility (Notice): New field.
4691
4692 2011-03-29  Bruno Haible  <bruno@clisp.org>
4693
4694         getaddrinfo: Doc fix.
4695         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4696         section "fixed in Gnulib".
4697
4698 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4699
4700         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4701         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4702
4703 2011-03-26  Bruno Haible  <bruno@clisp.org>
4704
4705         unictype/property-byname: Reduce the number of load-time relocations.
4706         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4707         (UC_PROPERTY_INDEX_*): New enumeration values.
4708         (uc_property_byname): Convert an index from the lookup table to an
4709         uc_property_t.
4710         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4711         values.
4712
4713 2011-03-26  Bruno Haible  <bruno@clisp.org>
4714
4715         unictype/property-byname: Allow omitted word separators and aliases.
4716         * lib/unictype/pr_byname.gperf: Add property names without word
4717         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4718         for 'space'.
4719
4720 2011-03-26  Bruno Haible  <bruno@clisp.org>
4721
4722         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4723         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4724         also hyphens to space.
4725         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4726         without spaces.
4727         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4728
4729 2011-03-26  Bruno Haible  <bruno@clisp.org>
4730
4731         unictype/joiningtype-byname: Recognize long names as well.
4732         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4733         a long name.
4734         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4735         unictype/joiningtype_byname.h.
4736         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4737         * lib/unictype/joiningtype_byname.gperf: New file.
4738         * modules/unictype/joiningtype-byname (Files): Add
4739         lib/unictype/joiningtype_byname.gperf.
4740         (Depends-on): Add gperf.
4741         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4742         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4743         long names.
4744
4745         Tests for module 'unictype/joiningtype-longname'.
4746         * modules/unictype/joiningtype-longname-tests: New file.
4747         * tests/unictype/test-joiningtype_longname.c: New file.
4748
4749         New module 'unictype/joiningtype-longname'.
4750         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4751         * lib/unictype/joiningtype_longname.c: New file.
4752         * modules/unictype/joiningtype-longname: New file.
4753         * modules/unictype/joiningtype-all (Depends-on): Add
4754         unictype/joiningtype-longname.
4755
4756 2011-03-26  Bruno Haible  <bruno@clisp.org>
4757
4758         unictype/bidiclass-byname: Recognize long names as well.
4759         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4760         name.
4761         * lib/unictype/bidi_byname.c: Include <string.h>,
4762         unictype/bidi_byname.h.
4763         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4764         * lib/unictype/bidi_byname.gperf: New file.
4765         * modules/unictype/bidiclass-byname (Files): Add
4766         lib/unictype/bidi_byname.gperf.
4767         (Depends-on): Add gperf.
4768         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4769         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4770         long names.
4771
4772         Tests for module 'unictype/bidiclass-longname'.
4773         * modules/unictype/bidiclass-longname-tests: New file.
4774         * tests/unictype/test-bidi_longname.c: New file.
4775
4776         New module 'unictype/bidiclass-longname'.
4777         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4778         * lib/unictype/bidi_longname.c: New file.
4779         * modules/unictype/bidiclass-longname: New file.
4780         * modules/unictype/bidiclass-all (Depends-on): Add
4781         unictype/bidiclass-longname.
4782
4783 2011-03-26  Bruno Haible  <bruno@clisp.org>
4784
4785         unictype/bidi*: Rename modules.
4786         * modules/unictype/bidiclass-all: Renamed from
4787         modules/unictype/bidicategory-all.
4788         * modules/unictype/bidiclass-name: Renamed from
4789         modules/unictype/bidiclass-name.
4790         (Description): Update.
4791         * modules/unictype/bidiclass-name-tests: Renamed from
4792         modules/unictype/bidicategory-name-tests.
4793         * modules/unictype/bidiclass-byname: Renamed from
4794         modules/unictype/bidicategory-byname.
4795         (Description): Update.
4796         * modules/unictype/bidiclass-byname-tests: Renamed from
4797         modules/unictype/bidicategory-byname-tests.
4798         * modules/unictype/bidiclass-of: Renamed from
4799         modules/unictype/bidicategory-of.
4800         (Description): Update.
4801         * modules/unictype/bidiclass-of-tests: Renamed from
4802         modules/unictype/bidicategory-of-tests.
4803         * modules/unictype/bidiclass-test: Renamed from
4804         modules/unictype/bidicategory-test.
4805         (Description): Update.
4806         * modules/unictype/bidiclass-test-tests: Renamed from
4807         modules/unictype/bidicategory-test-tests.
4808         * modules/unictype/bidicategory-all: New file, a simple redirection.
4809         * modules/unictype/bidicategory-name: Likewise.
4810         * modules/unictype/bidicategory-byname: Likewise.
4811         * modules/unictype/bidicategory-of: Likewise.
4812         * modules/unictype/bidicategory-test: Likewise.
4813         * modules/unictype/property-bidi-* (Dependencies): Update.
4814         * lib/unictype/bidi_*.c: Update comment.
4815
4816 2011-03-26  Bruno Haible  <bruno@clisp.org>
4817
4818         unictype/bidi*: Rename functions, part 2.
4819         * modules/unictype/bidicategory-name (configure.ac): Update required
4820         libunistring version.
4821         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4822
4823 2011-03-25  Bruno Haible  <bruno@clisp.org>
4824
4825         New module 'unictype/combining-class-all'.
4826         * modules/unictype/combining-class-all: New file.
4827
4828         Tests for module 'unictype/combining-class-byname'.
4829         * modules/unictype/combining-class-byname-tests: New file.
4830         * tests/unictype/test-combiningclass_byname.c: New file.
4831
4832         New module 'unictype/combining-class-byname'.
4833         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4834         * lib/unictype/combiningclass_byname.c: New file.
4835         * lib/unictype/combiningclass_byname.gperf: New file.
4836         * modules/unictype/combining-class-byname: New file.
4837
4838         Tests for module 'unictype/combining-class-longname'.
4839         * modules/unictype/combining-class-longname-tests: New file.
4840         * tests/unictype/test-combiningclass_longname.c: New file.
4841
4842         New module 'unictype/combining-class-longname'.
4843         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4844         * lib/unictype/combiningclass_longname.c: New file.
4845         * modules/unictype/combining-class-longname: New file.
4846
4847         Tests for module 'unictype/combining-class-name'.
4848         * modules/unictype/combining-class-name-tests: New file.
4849         * tests/unictype/test-combiningclass_name.c: New file.
4850
4851         New module 'unictype/combining-class-name'.
4852         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4853         * lib/unictype/combiningclass_name.c: New file.
4854         * modules/unictype/combining-class-name: New file.
4855
4856 2011-03-25  Bruno Haible  <bruno@clisp.org>
4857
4858         unictype/combining-class: Rename source files.
4859         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4860         of unictype/combining.h.
4861         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4862         Update.
4863         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4864         * modules/unictype/combining-class (Description): Fix.
4865         (Files, Makefile.am): Update.
4866         * tests/unictype/test-combiningclass.c: Renamed from
4867         tests/unictype/test-combining.c.
4868         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4869
4870 2011-03-25  Bruno Haible  <bruno@clisp.org>
4871
4872         unictype: Update list of canonical combining classes.
4873         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4874
4875 2011-03-25  Bruno Haible  <bruno@clisp.org>
4876
4877         unictype/category-byname: Recognize long names as well.
4878         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4879         a long name.
4880         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4881         unictype/categ_byname.h.
4882         (UC_CATEGORY_INDEX_*): New enumeration values.
4883         (uc_general_category_byname): Use uc_general_category_lookup and
4884         convert from index to value.
4885         * lib/unictype/categ_byname.gperf: New file.
4886         * modules/unictype/category-byname (Files): Add
4887         lib/unictype/categ_byname.gperf.
4888         (Depends-on): Add gperf.
4889         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4890         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4891         long names.
4892
4893         Tests for module 'unictype/category-longname'.
4894         * modules/unictype/category-longname-tests: New file.
4895         * tests/unictype/test-categ_longname.c: New file.
4896
4897         New module 'unictype/category-longname'.
4898         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4899         * lib/unictype/categ_longname.c: New file.
4900         * modules/unictype/category-longname: New file.
4901         * modules/unictype/category-all (Depends-on): Add it.
4902
4903 2011-03-25  Bruno Haible  <bruno@clisp.org>
4904
4905         Tests for module 'unictype/category-LC'.
4906         * modules/unictype/category-LC-tests: New file.
4907         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4908
4909         New module 'unictype/category-LC'.
4910         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4911         (UC_CATEGORY_LC): New declaration.
4912         (UC_CASED_LETTER): New macro.
4913         * lib/gen-uni-tables.c (is_category_LC): New function.
4914         (output_categories): Also handle category LC.
4915         (UC_CATEGORY_MASK_LC): New enumeration value.
4916         (general_category_byname): Also handle category LC.
4917         * lib/unictype/categ_LC.c: New file.
4918         * lib/unictype/categ_LC.h: New file, automatically generated.
4919         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4920         category LC.
4921         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4922         * modules/unictype/category-LC: New file.
4923         * modules/unictype/category-byname (Depends-on): Add
4924         unictype/category-LC.
4925         * modules/unictype/category-all (Depends-on): Likewise.
4926
4927 2011-03-25  Eric Blake  <eblake@redhat.com>
4928
4929         xmalloc: revert yesterday's regression
4930         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4931         realloc's underlying behavior (allowing allocation of zero-size
4932         objects, especially if malloc-gnu is also in use).
4933
4934 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4935
4936         maint.mk: add missing version to VC-tag
4937         * top/maint.mk: git tag was missing actual tag name; add it.
4938
4939         valgrind: do leak checking, and exit with code 1 on error (not 0)
4940         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4941         to VALGRIND.
4942
4943 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4944
4945         posix-modules: say what it does.
4946         * posix-modules: Add a line to the --help output saying what it does.
4947
4948 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4949
4950         xmalloc: Do not leak if underlying realloc is C99 compatible.
4951         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4952         This avoids a leak on C99-based systems.  See
4953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4954
4955 2011-03-24  Eric Blake  <eblake@redhat.com>
4956
4957         realloc: document portability problem
4958         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4959         passing 0 size to realloc.
4960
4961 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4962
4963         doc: update users.txt
4964         * users.txt: Add cvsps, tmpwatch
4965
4966 2011-03-23  Matt Rice  <ratmice@gmail.com>
4967
4968         doc: update users.txt
4969         * users.txt: Add gdb.
4970
4971 2011-03-23  Jim Meyering  <meyering@redhat.com>
4972
4973         doc: update users.txt
4974         Looking through matches up to the following URL (there are still
4975         several more pages), I found several projects that use gnulib:
4976         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4977         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4978         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4979
4980 2011-03-22  Bruno Haible  <bruno@clisp.org>
4981
4982         unictype/bidi*: Rename functions.
4983         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4984         uc_bidi_class, uc_is_bidi_class): New declarations.
4985         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4986         uc_bidi_category_byname.
4987         (uc_bidi_category_byname): New function.
4988         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4989         u_bidi_category_name.
4990         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4991         (uc_bidi_category_name): New function.
4992         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4993         uc_bidi_category.
4994         (uc_bidi_category): New function.
4995         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4996         uc_is_bidi_category. Invoke uc_bidi_class.
4997         (uc_is_bidi_category): New function.
4998         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4999         instead of uc_bidi_category_byname.
5000         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5001         instead of uc_bidi_category_name.
5002         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5003         uc_bidi_category.
5004         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5005         instead of uc_is_bidi_category.
5006
5007 2011-03-21  Bruno Haible  <bruno@clisp.org>
5008
5009         New module 'unictype/joininggroup-all'.
5010         * modules/unictype/joininggroup-all: New file.
5011
5012         Tests for module 'unictype/joininggroup-of'.
5013         * modules/unictype/joininggroup-of-tests: New file.
5014         * tests/unictype/test-joininggroup_of.c: New file.
5015         * tests/unictype/test-joininggroup_of.h: New file, automatically
5016         generated by gen-uni-tables.
5017
5018         New module 'unictype/joininggroup-of'.
5019         * modules/unictype/joininggroup-of: New file.
5020         * lib/unictype/joininggroup_of.c: New file.
5021         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5022         gen-uni-tables.
5023
5024         Tests for module 'unictype/joininggroup-byname'.
5025         * modules/unictype/joininggroup-byname-tests: New file.
5026         * tests/unictype/test-joininggroup_byname.c: New file.
5027
5028         New module 'unictype/joininggroup-byname'.
5029         * modules/unictype/joininggroup-byname: New file.
5030         * lib/unictype/joininggroup_byname.c: New file.
5031         * lib/unictype/joininggroup_byname.gperf: New file.
5032
5033         Tests for module 'unictype/joininggroup-name'.
5034         * modules/unictype/joininggroup-name-tests: New file.
5035         * tests/unictype/test-joininggroup_name.c: New file.
5036
5037         New module 'unictype/joininggroup-name'.
5038         * modules/unictype/joininggroup-name: New file.
5039         * lib/unictype/joininggroup_name.c: New file.
5040         * lib/unictype/joininggroup_name.h: New file.
5041
5042         New module 'unictype/joiningtype-all'.
5043         * modules/unictype/joiningtype-all: New file.
5044
5045         Tests for module 'unictype/joiningtype-of'.
5046         * modules/unictype/joiningtype-of-tests: New file.
5047         * tests/unictype/test-joiningtype_of.c: New file.
5048         * tests/unictype/test-joiningtype_of.h: New file, automatically
5049         generated by gen-uni-tables.
5050
5051         New module 'unictype/joiningtype-of'.
5052         * modules/unictype/joiningtype-of: New file.
5053         * lib/unictype/joiningtype_of.c: New file.
5054         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5055         gen-uni-tables.
5056
5057         Tests for module 'unictype/joiningtype-byname'.
5058         * modules/unictype/joiningtype-byname-tests: New file.
5059         * tests/unictype/test-joiningtype_byname.c: New file.
5060
5061         New module 'unictype/joiningtype-byname'.
5062         * modules/unictype/joiningtype-byname: New file.
5063         * lib/unictype/joiningtype_byname.c: New file.
5064
5065         Tests for module 'unictype/joiningtype-name'.
5066         * modules/unictype/joiningtype-name-tests: New file.
5067         * tests/unictype/test-joiningtype_name.c: New file.
5068
5069         New module 'unictype/joiningtype-name'.
5070         * modules/unictype/joiningtype-name: New file.
5071         * lib/unictype/joiningtype_name.c: New file.
5072
5073         unictype: Add support for Arabic shaping properties.
5074         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5075         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5076         declarations.
5077         (UC_JOINING_GROUP_*): New enumeration values.
5078         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5079         declarations.
5080         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5081         (unicode_joining_type): New variable.
5082         (UC_JOINING_GROUP_*): New enumeration values.
5083         (unicode_joining_group): New variable.
5084         (fill_arabicshaping, joining_type_as_c_identifier,
5085         output_joining_type_test, output_joining_type,
5086         joining_group_as_c_identifier, output_joining_group_test,
5087         output_joining_group): New functions.
5088         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5089         fill_arabicshaping and output_joining_type_test, output_joining_type,
5090         output_joining_group_test, output_joining_group.
5091         Reported by Simon Josefsson.
5092
5093 2011-03-21  Jim Meyering  <meyering@redhat.com>
5094
5095         strftime: fix a bug in yesterday's change
5096         * lib/strftime.c (add): Accommodate width's initial value of -1.
5097         Otherwise, nstrftime would copy uninitialized data into
5098         the result buffer.
5099
5100 2011-03-21  Jim Meyering  <meyering@redhat.com>
5101
5102         tests: add strftime-tests module
5103         * tests/test-strftime.c: New file.
5104         * modules/strftime-tests: New module.
5105
5106 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         strftime: don't assume a byte count fits in 'int'
5109         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5110         found this problem by static analysis, using gcc -Wstrict-overflow
5111         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5112         on an integer overflow having undefined behavior, but it turns out
5113         that the argument is a size, which might not fit in 'int' anyway,
5114
5115 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5116
5117         stdio: don't require ignore_value around fwrite
5118
5119         This patch works around libc bug 11959
5120         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5121         Without this patch, applications must often write
5122         ignore_value (fwrite (...)) even though the ignore_value is
5123         not helpful here.  It's common to write many objects, using
5124         fwrite/printf/etc., and then use ferror to detect output error.
5125
5126         I considered making this patch optional, but decided against it,
5127         because libc is obviously being inconsistent here: there is no
5128         reason libc should insist that user code must inspect fwrite
5129         return's value without also insisting that it inspect printf's,
5130         putchar's, etc.  If user code wants to have a strict style where
5131         all these functions' values are checked (so that ferror need not
5132         be checked), we could add support for that style in a new gnulib
5133         module, but in the meantime it's better to be consistent and to
5134         support common usage.
5135
5136         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5137         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5138         that we are compiling in checking mode, and if not C++, and
5139         if not already wrapping fwrite for some other reason.
5140         (fwrite): #define to rpl_fwrite if the latter is defined.
5141
5142 2011-03-20  Bruno Haible  <bruno@clisp.org>
5143
5144         verror: Fix compilation error introduced on 2011-02-13.
5145         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5146         instead of __attribute__.
5147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5148
5149 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5150             Bruno Haible  <bruno@clisp.org>
5151
5152         socklen: do not depend on sys_socket
5153         While trying to modify Emacs to use gnulib's socklen module,
5154         I discovered a circular dependency: socklen depends on sys_socket
5155         and vice versa.  Emacs can use socklen, but it does not need
5156         sys_socket because it has its own substitute for sys/socket.h.
5157         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5158         gl_TYPE_SOCKLEN_T.
5159         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5160         gl_PREREQ_SYS_H_SOCKET.
5161         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5162         gl_PREREQ_SYS_H_SOCKET.
5163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5164         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5165         * modules/socklen (Depends-on): Do not depend on sys_socket.
5166         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5167
5168 2011-03-20  Jim Meyering  <meyering@redhat.com>
5169
5170         maint.mk: sort file names *after* new transformation
5171         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5172         prefix would have led to an unwarranted failure in GNU parted.
5173         Sort after that transformation.
5174
5175 2011-03-19  Jim Meyering  <meyering@redhat.com>
5176
5177         maint.mk: fix po-file syntax-check rule
5178         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5179         Patch by Bruno Haible.
5180
5181 2011-03-19  Bruno Haible  <bruno@clisp.org>
5182
5183         socklen: Update comment.
5184         * m4/socklen.m4: Update comment about platforms.
5185
5186 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5187             Bruno Haible  <bruno@clisp.org>
5188
5189         inet_ntop, inet_pton: Simplify.
5190         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5191         documented to provide socklen_t and we already depend on sys_socket.
5192         * modules/inet_pton (Depends-on): Likewise.
5193         * lib/arpa_inet.in.h: Adjust comment.
5194
5195 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5196             Bruno Haible  <bruno@clisp.org>
5197
5198         netdb: Simplify.
5199         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5200         documented to provide socklen_t and we already depend on sys_socket.
5201         * lib/netdb.in.h: Adjust comment.
5202
5203 2011-03-19  Bruno Haible  <bruno@clisp.org>
5204
5205         sys_socket, netdb: Document problem with socklen_t.
5206         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5207         platforms.
5208         * doc/posix-headers/netdb.texi: Likewise.
5209
5210 2011-03-18  Eric Blake  <eblake@redhat.com>
5211
5212         maint.mk: let po check work in VPATH build
5213         * top/maint.mk (po_file): Allow cfg.mk override.
5214         (sc_po_check): Allow VPATH use.
5215         Reported by Jiri Denemark.
5216
5217 2011-03-16  Jim Meyering  <meyering@redhat.com>
5218
5219         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5220         Before, you would have had to create one .x-sc_ file per rule in order
5221         to exempt offending files.  Now, you may instead use a Make variable --
5222         usually defined in cfg.mk -- whose name identifies the affected rule.
5223         * top/maint.mk (_sc_excl): Define.
5224         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5225         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5226
5227 2011-03-13  Bruno Haible  <bruno@clisp.org>
5228
5229         ignore-value tests: Avoid warnings.
5230         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5231         empty for gcc < 3.4.
5232
5233 2011-03-13  Bruno Haible  <bruno@clisp.org>
5234
5235         passfd: Fix link error on Solaris.
5236         * modules/passfd (Description): Correct.
5237         (Depends-on): Add socketlib.
5238         (Link): New section.
5239         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5240
5241 2011-03-13  Bruno Haible  <bruno@clisp.org>
5242
5243         passfd: Fix link error on AIX 5.2.
5244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5245
5246 2011-03-13  Bruno Haible  <bruno@clisp.org>
5247
5248         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5249         * lib/sys_socket.in.h: Include <stddef.h>.
5250         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5251         CMSG_FIRSTHDR. Remove unused variable.
5252
5253 2011-03-13  Bruno Haible  <bruno@clisp.org>
5254
5255         passfd: Fix compilation error on OpenBSD.
5256         * lib/passfd.c: Include <sys/uio.h>.
5257
5258 2011-03-13  Bruno Haible  <bruno@clisp.org>
5259
5260         passfd test: Fix warnings.
5261         * tests/test-passfd.c: Include <sys/wait.h>.
5262         (main): Fix typo.
5263
5264 2011-03-13  Bruno Haible  <bruno@clisp.org>
5265
5266         passfd module, part 4, tweaks.
5267         * tests/test-passfd.c: Reorder includes.
5268         (main): Fix perror and printf calls.
5269
5270 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5271
5272         passfd module, part 4.
5273         * modules/passfd-tests: New file.
5274         * tests/test-passfd.c: New file.
5275
5276 2011-03-13  Jim Meyering  <meyering@redhat.com>
5277
5278         Makefile: rely on GNU make; derive syntax-check rule names
5279         Rather than requiring that each sc_ rule be listed as a dependent
5280         of "check", use features of GNU make to derive the list.
5281         * Makefile (syntax-check-rules): Define.
5282         (check): Depend on the new variable, not the hard-coded list.
5283
5284 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5285             Bruno Haible  <bruno@clisp.org>
5286
5287         passfd module, part 3.
5288         * lib/passfd.h (recvfd): Add a flags argument.
5289         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5290         (recvfd): Add a flags argument.
5291         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5292         exists.
5293         * modules/passfd (Depends-on): Add cloexec.
5294         Suggested by Eric Blake.
5295
5296 2011-03-13  Bruno Haible  <bruno@clisp.org>
5297
5298         passfd module, part 2, tweaks.
5299         * modules/passfd (Files): Reorder.
5300         (Depends-on): Remove errno.
5301         (Include): Remove <sys/socket.h>, <sys/un.h>.
5302         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5303         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5304         specification header. Include <sys/socket.h> always. Don't include
5305         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5306         (sendfd): Clarify that it sets errno when it fails.
5307         (recvfd): Fix specification.
5308
5309 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5310
5311         passfd module, part 2.
5312         * modules/passfd: New file.
5313         * lib/passfd.h: New file.
5314         * lib/passfd.c: New file.
5315
5316 2011-03-12  Bruno Haible  <bruno@clisp.org>
5317
5318         wcswidth, mbswidth: Avoid integer overflow.
5319         * lib/wcswidth.c: Include <limits.h>.
5320         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5321         * lib/mbswidth.c: Include <limits.h>.
5322         (mbsnwidth): Avoid 'int' overflow.
5323         Reported by Jim Meyering.
5324
5325 2011-03-12  Bruno Haible  <bruno@clisp.org>
5326
5327         futimens, utimensat: Avoid endless recursion on Solaris 10.
5328         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5329         Solaris.
5330         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5331         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5332
5333 2011-03-11  Jim Meyering  <meyering@redhat.com>
5334
5335         maint.mk: relax a regexp to accommodate other formatting styles
5336         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5337         between "ngettext" and the following "(".
5338
5339 2011-03-11  Pádraig Brady <P@draigBrady.com>
5340
5341         maint.mk: suppress a false positive warning
5342         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5343         diagnostics are marked with ngettext.
5344
5345 2011-03-10  Eric Blake  <eblake@redhat.com>
5346
5347         wchar: add explicit dependencies, for Tru64
5348         * modules/mbmemcasecoll (Depends-on): Add wchar.
5349         * modules/mbtowc (Depends-on): Likewise.
5350         * modules/vasnprintf (Depends-on): Likewise.
5351         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5352         * modules/wctomb (Depends-on): Likewise.
5353         Reported by Peter O'Gorman.
5354
5355 2011-03-08  Bruno Haible  <bruno@clisp.org>
5356
5357         passfd module, part 1, tweaks.
5358         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5359         Improve indentation. Improve AC_MSG_CHECKING messages.
5360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5361         gl_SOCKET_FAMILIES.
5362
5363 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5364
5365         passfd module, part 1.
5366         * m4/afunix.m4: New file.
5367         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5368         sockets.
5369
5370 2011-03-08  Bruno Haible  <bruno@clisp.org>
5371
5372         regex-quote: New API.
5373         * lib/regex-quote.h: Include <stdbool.h>.
5374         (struct regex_quote_spec): New type.
5375         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5376         New declarations.
5377         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5378         'const struct regex_quote_spec *' argument.
5379         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5380         (pcre_special): New constant.
5381         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5382         New functions.
5383         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5384         'const struct regex_quote_spec *' argument.
5385         * modules/regex-quote (Depends-on): Add stdbool.
5386         * tests/test-regex-quote.c (check): Update for new API. Add test for
5387         anchored results.
5388         * NEWS: Mention the API change.
5389         Reported by Reuben Thomas and Eric Blake.
5390
5391 2011-03-06  Bruno Haible  <bruno@clisp.org>
5392
5393         regex-quote: Fix creation of POSIX extended regular expressions.
5394         * lib/regex-quote.c (ere_special): Add grouping and alternation
5395         operators.
5396
5397 2011-03-05  Bruno Haible  <bruno@clisp.org>
5398
5399         doc: Improve doc regarding autopoint vs. gnulib.
5400         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5401         disable autopoint while running autoreconf.
5402         Suggested by Ralf Wildenhues.
5403
5404 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5405
5406         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5407         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5408
5409 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5410
5411         parse-duration: remove xalloc.h dependency
5412         * lib/parse-duration.c (parse_period): handle NULL return from
5413         strdup instead of calling xstrdup().
5414         * modules/parse-duration: remove "xalloc" dependency
5415
5416 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5417
5418         bootstrap: honor m4_base when running aclocal
5419         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5420
5421 2011-03-02  Jim Meyering  <meyering@redhat.com>
5422
5423         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5424         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5425         on request from Matt Booth.
5426
5427 2011-03-01  Eric Blake  <eblake@redhat.com>
5428
5429         test-link: work on Hurd
5430         * tests/test-link.h (test_link): Hurd rejects linking directories
5431         with EISDIR instead of the POSIX-mandated EPERM.
5432
5433 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5434
5435         stdio: simplify by moving files to printf-posix, sigpipe
5436         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5437         since this symbol is needed only if printf is replaced.
5438         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5439         Require gl_ASM_SYMBOL_PREFIX.
5440         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5441         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5442         (Depends-on): Add 'raise'.
5443         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5444         * modules/stdio (Files): Remove lib/stdio-write.c,
5445         m4/asm-underscore.m4.
5446         (Depends-on): Remove 'raise'.
5447
5448         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5449         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5450         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5451         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5452
5453 2011-02-28  Bruno Haible  <bruno@clisp.org>
5454
5455         localcharset: Assume ANSI C behaviour of free().
5456         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5457         calling free().
5458         Suggested by Simon Josefsson <simon@josefsson.org>.
5459
5460 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5461             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5462             Bruno Haible  <bruno@clisp.org>  (tiny change)
5463
5464         On Cygwin, use /proc file system instead of win32 API.
5465         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5466         Win32 file names.
5467         (DllMain): Simplify by removing Cygwin specific code.
5468         (find_shared_library_fullname): Use Linux specific implementation also
5469         for Cygwin.
5470         (get_shared_library_fullname): Update accordingly.
5471         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5472         Win32 file names.
5473         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5474         Cygwin specific code.
5475
5476 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5477             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5478
5479         Fix OpenMP flag detection for various Fortran compilers.
5480         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5481         OpenMP-conditional compilation construct, to force compile
5482         failure with missing OpenMP flag.
5483         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5484
5485 2011-02-25  Eric Blake  <eblake@redhat.com>
5486
5487         strstr: expand test coverage
5488         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5489         compilation.
5490         * tests/test-memmem.c (main): Duplicate tests.
5491         * tests/test-strcasestr.c (main): Likewise.
5492         * tests/test-c-strcasestr.c (main): Likewise.
5493
5494 2011-02-25  Jim Meyering  <meyering@redhat.com>
5495
5496         maint.mk: detect missing-NL-at-EOF, too
5497         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5498         it also detects when a file lacks a newline at EOF.
5499         (require_exactly_one_NL_at_EOF_): Renamed from
5500         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5501         since people may well have .x-sc_... file names tied to the
5502         existing name.  Suggested by Eric Blake.
5503
5504 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5505
5506         dirname: move m4/dos.m4 functionality into lib/dosname.h
5507
5508         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5509         extracts symbols from it, puts them into config.h; but it's much
5510         easier to use the symbols directly.  filename.h already does this,
5511         but it disagrees with dos.m4 in some respects.  This patch
5512         introduces a different include file dosname.h that packages up
5513         dos.m4, and then later we can work on merging filename.h and
5514         dosname.h.  Applications that need only the easy-to-configure
5515         symbols should consider including dosname.h rather than dirname.h.
5516         * NEWS: Mention incompatible changes.
5517         * m4/dos.m4: Remove.
5518         * lib/dosname.h, modules/dosname: New files.
5519         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5520         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5521         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5522         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5523         Include dosname.h, not dirname.h.
5524         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5525         Include dosname.h, for definitions of symbols like ISSLASH
5526         that used to be in config.h.
5527         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5528         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5529         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5530         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5531         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5532         * modules/rmdir (Files): Likewise.
5533         * modules/stat (Files): Likewise.
5534         * modules/unlink (Files): Likewise.
5535         * modules/dirname-lgpl (Depends-on): Add dosname.
5536         * modules/lstat (Depends-on): Likewise.
5537         * modules/openat (Depends-on): Likewise.
5538         * modules/rmdir (Depends-on): Likewise.
5539         * modules/savewd (Depends-on): Likewise.
5540         * modules/stat (Depends-on): Likewise.
5541         * modules/unlink (Depends-on): Likewise.
5542         * modules/openat (Depends-on): Remove dirname-lgpl.
5543         * modules/savewd (Depends-on): Likewise.
5544         * tests/test-dirname.c: Do not use removed symbols like
5545         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5546         the remaining symbols, e.g., ISSLASH ('\\').
5547
5548 2011-02-25  Eric Blake  <eblake@redhat.com>
5549
5550         strstr: revert patches that introduced bug and pessimization
5551         * lib/str-two-way.h: Add another reference.
5552         (two_way_short_needle, two_way_long_needle): Revert changes from
5553         2011-02-24; they pessimize search speed.
5554         (critical_factorization): Partially revert changes from
5555         2010-06-22; they violate the requirement that the left half of the
5556         needle be smaller than the period of the needle.
5557
5558 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         filenamecat: remove unnecessary dependency on dirname-lgpl
5561         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5562         is no direct dependency, just an indirect one via filenamecat-lgpl.
5563
5564         remove: remove unnecessary use of m4/dos.m4
5565         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5566         * modules/remove (FILES): Remove m4/dos.m4.
5567
5568         * lib/openat-proc.c: Don't include dirname.h; not needed.
5569
5570         backupfile: remove unnecessary use of m4/dos.m4
5571         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5572         of its symbols are used by the backupfile code.  backupfile.c does
5573         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5574         for the rare case of programs that want all their backup file
5575         names to live within 8+3 limits, and dos.m4 doesn't address that.
5576         * modules/backupfile (Files): Remove m4/dos.m4.
5577
5578 2011-02-24  Jim Meyering  <meyering@redhat.com>
5579
5580         strstr: fix a bug whereby strstr would mistakenly return NULL
5581         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5582         in period calculation.
5583         (two_way_long_needle): Likewise.
5584         The original problem was reported by Mike Stump in
5585         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5586         Ralf Wildenhues provided the short needle and haystack.
5587         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5588         Add a more involved test to trigger the bug in two_way_long_needle.
5589
5590 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5591
5592         gnulib-tool: remove use of bold display in help screen
5593         * gnulib-tool (func_usage): Do not use bold display anymore in the
5594         help screen.  That was just meant to be a temporary emphasis for a
5595         backward-incompatible change.
5596
5597 2011-02-23  Bruno Haible  <bruno@clisp.org>
5598
5599         Fix misindentation of preprocessor directives.
5600         * lib/argp-namefrob.h: Reindent preprocessor directives.
5601         * lib/getopt_int.h (struct _getopt_data): Likewise.
5602         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5603         * lib/vasnprintf.c (decode_long_double): Likewise.
5604         * tests/test-argmatch.c: Insert blank lines, for clarity.
5605         * tests/test-exclude.c: Likewise.
5606
5607 2011-02-22  Bruno Haible  <bruno@clisp.org>
5608
5609         ioctl: Fix for MacOS X in 64-bit mode.
5610         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5611         value.
5612         Suggested by Eric Blake.
5613         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5614
5615 2011-02-22  Jim Meyering  <meyering@redhat.com>
5616
5617         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5618         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5619         in lib/.
5620
5621 2011-02-22  Eric Blake  <eblake@redhat.com>
5622
5623         maint: avoid any CDPATH issue
5624         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5625
5626         maint: adjust cpp indentation for my modules, as well
5627         * Makefile (sc_cpp_indent_check): Add my name.
5628         * lib/fbufmode.c: Filter through cppi.
5629         * lib/fpurge.c: Likewise.
5630         * lib/freadable.c: Likewise.
5631         * lib/freading.c: Likewise.
5632         * lib/fwritable.c: Likewise.
5633         * lib/fwriting.c: Likewise.
5634         * lib/sigaction.c: Likewise.
5635
5636 2011-02-22  Jim Meyering  <meyering@redhat.com>
5637
5638         maint: adjust cpp indentation to reflect nesting depth
5639         I.e., in a block of code that begins with an unnested "#if",
5640         put one space between the "#" in column 1 and following token.
5641         For example,
5642         -#include <sys/vfs.h>
5643         +# include <sys/vfs.h>
5644         Do this only in .c files that are part of a module I maintain.
5645         * lib/linkat.c: Filter through cppi.
5646         * lib/nanosleep.c: Likewise.
5647         * lib/openat.c: Likewise.
5648         * lib/openat-die.c: Likewise.
5649         * lib/dup3.c: Likewise.
5650         * lib/fchownat.c: Likewise.
5651         * lib/flock.c: Likewise.
5652         * lib/fsync.c: Likewise.
5653         * lib/fts.c: Likewise.
5654         * lib/getpass.c: Likewise.
5655         * lib/gettimeofday.c: Likewise.
5656         * lib/userspec.c: Likewise.
5657         * Makefile (sc_cpp_indent_check): New rule, to check this.
5658
5659 2011-02-22  Bruno Haible  <bruno@clisp.org>
5660
5661         New module 'wctomb'.
5662         * lib/stdlib.in.h (wctomb): New declaration.
5663         * lib/wctomb.c: New file.
5664         * lib/wctomb-impl.h: New file.
5665         * m4/wctomb.m4: New file.
5666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5667         REPLACE_WCTOMB.
5668         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5669         REPLACE_WCTOMB.
5670         * modules/wctomb: New file.
5671         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5672         * doc/posix-functions/wctomb.texi: Mention the new module.
5673         * modules/wctob (Depends-on): Add wctomb.
5674
5675 2011-02-22  Bruno Haible  <bruno@clisp.org>
5676
5677         New module 'mbtowc'.
5678         * lib/stdlib.in.h (mbtowc): New declaration.
5679         * lib/mbtowc.c: New file.
5680         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5681         * m4/mbtowc.m4: New file.
5682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5683         REPLACE_MBTOWC.
5684         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5685         REPLACE_MBTOWC.
5686         * modules/mbtowc: New file.
5687         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5688         * doc/posix-functions/mbtowc.texi: Mention the new module.
5689         * modules/btowc (Depends-on): Add mbtowc.
5690
5691 2011-02-22  Bruno Haible  <bruno@clisp.org>
5692
5693         wcrtomb: Add more tests for native Windows platforms.
5694         * tests/test-wcrtomb-w32-1.sh: New file.
5695         * tests/test-wcrtomb-w32-2.sh: New file.
5696         * tests/test-wcrtomb-w32-3.sh: New file.
5697         * tests/test-wcrtomb-w32-4.sh: New file.
5698         * tests/test-wcrtomb-w32-5.sh: New file.
5699         * tests/test-wcrtomb-w32.c: New file.
5700         * modules/wcrtomb-tests (Files): Add them.
5701         (Makefile.am): Arrange to run these tests.
5702         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5703         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5704
5705 2011-02-20  Bruno Haible  <bruno@clisp.org>
5706
5707         wcrtomb: Enhance test.
5708         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5709
5710 2011-02-20  Bruno Haible  <bruno@clisp.org>
5711
5712         mbrtowc: Tiny optimization.
5713         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5714
5715 2011-02-20  Jim Meyering  <meyering@redhat.com>
5716
5717         test-exclude.c: remove unmatched #endif
5718         * tests/test-exclude.c: Remove stray #endif, left over from
5719         the change of a week ago.
5720
5721 2011-02-19  Jim Meyering  <meyering@redhat.com>
5722
5723         git-version-gen: skip "-dirty" check when appropriate
5724         * build-aux/git-version-gen: Don't run any git commands when the
5725         version string comes from .tarball-version.  Prior to this, we
5726         would run git update-index --refresh even from a just-unpacked
5727         tarball directory, and that could affect a .git/ directory in a
5728         parent of the build directory.  Reported by Mike Frysinger.
5729
5730 2011-02-19  Bruno Haible  <bruno@clisp.org>
5731
5732         unictype/property-byname: Reduce the size of the 'data' segment.
5733         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5734
5735 2011-02-19  Bruno Haible  <bruno@clisp.org>
5736
5737         unictype/scripts: Reduce the size of the 'data' segment.
5738         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5739         '%pic'.
5740         * lib/unictype/scripts_byname.gperf: Regenerated.
5741
5742 2011-02-19  Bruno Haible  <bruno@clisp.org>
5743
5744         stdint: Update documentation.
5745         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5746
5747 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5748
5749         stdint: omit redundant check for wchar.h
5750         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5751         always tests whether wchar.h exists, so remove the now-redundant test.
5752
5753 2011-02-18  Bruno Haible  <bruno@clisp.org>
5754
5755         stdint: Cut dependency to module 'wchar'.
5756         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5757         include the necessary prerequisites.
5758         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5759         * modules/stdint (Depends-on): Remove wchar.
5760         (Makefile.am): Substitute HAVE_WCHAR_H.
5761         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5762
5763 2011-02-18  Eric Blake  <eblake@redhat.com>
5764
5765         longlong: skip, rather than fail, on cross-compilation
5766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5767         when cross-compiling; regression from 2011-02-16.
5768
5769 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5770
5771         * NEWS: Mention 2011-02-08 change to stdlib.
5772
5773 2011-02-17  Bruno Haible  <bruno@clisp.org>
5774
5775         getloadavg: Add comments about platforms.
5776         * m4/getloadavg.m4: Add comment.
5777         * lib/getloadavg.c: Likewise.
5778
5779 2011-02-17  Bruno Haible  <bruno@clisp.org>
5780
5781         getloadavg: Fix link error on Solaris 2.6.
5782         * modules/getloadavg (Link): New section.
5783         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5784         linking test-getloadavg.
5785         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5786         getloadavg.
5787
5788 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5789
5790         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5791         It was 'int', but this doesn't match the IRIX 6.5 manual.
5792         Suggested by Bruno Haible in
5793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5794
5795 2011-02-17  Bruno Haible  <bruno@clisp.org>
5796
5797         havelib: Fix comments.
5798         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5799         change.
5800
5801 2011-02-17  Bruno Haible  <bruno@clisp.org>
5802
5803         havelib: Update config.rpath.
5804         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5805
5806 2011-02-17  Bruno Haible  <bruno@clisp.org>
5807
5808         getloadavg test: Add some plausibility checks.
5809         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5810         is improbable.
5811
5812 2011-02-16  Eric Blake  <eblake@redhat.com>
5813
5814         maintainer-makefile: make syntax-check a no-op from tarballs
5815         * top/maint.mk (no-vc-detected): New rule.
5816         (local-checks-available): Use it to avoid hanging if someone tries
5817         'make syntax-check' from a tarball.  Also append to any non-syntax
5818         checks already defined in cfg.mk.
5819
5820 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5821
5822         longlong: tune, particularly for common case of c99
5823
5824         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5825         or running anything if c99, or if unsigned long long int does not
5826         work.  In either case, we know the answer without further tests.
5827         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5828         it at most once, and use its results for both long long int and
5829         unsigned long long int.  This is more likely to be efficient in
5830         the common case where the program wants to check for both long
5831         long int and unsigned long long int.
5832         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5833         since the answer is already known.
5834
5835 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5836
5837         getloadavg: set errno
5838         * lib/getloadavg.c: Set errno when returning -1.  If no other
5839         error number looks appropriate, set it to ENOSYS if the getloadavg
5840         looks like it can't possibly ever work, ENOTSUP otherwise.
5841         Suggested by Bruno Haible in
5842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5843
5844         getloadavg: trim unused parts and speed up 'configure'
5845         * NEWS: Document this.
5846         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5847         always compiled if getloadavg is absent.
5848         Move test code to ...
5849         * tests/test-getloadavg.c: New file, containing previous
5850         contents of test from lib/getloadavg.c.  It also contains
5851         suggestions by Bruno Haible in
5852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5853         * modules/getloadavg-tests: New file.
5854         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5855         Do tests in the same order as they're needed for getloadavg.c.
5856         Omit setgid-related tests that generate symbols KMEM_GROUP,
5857         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5858         Do only the tests that are needed to see whether the system has
5859         getloadavg, moving the other tests into ...
5860         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5861         NLIST_NAME_UNION; nobody should be using it.  Do not define
5862         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5863         relevant, as the user of this module shouldn't care how getloadavg
5864         is implemented.
5865
5866         getloadavg: omit unused var
5867         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5868
5869 2011-02-15  Jim Meyering  <meyering@redhat.com>
5870
5871         doc: update users.txt
5872         * users.txt: Update iwhd's URL.
5873
5874 2011-02-13  Bruno Haible  <bruno@clisp.org>
5875
5876         Consistent macro naming for macros that use GCC __attribute__.
5877         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5878         _ATTRIBUTE_NONNULL_.
5879         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5880         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5881         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5882         ATTRIBUTE_DEPRECATED.
5883         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5884         ATTRIBUTE_NORETURN.
5885         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5886         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5887         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5888         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5889         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5890         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5891         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5892         ATTRIBUTE_SENTINEL.
5893         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5894         ATTRIBUTE_RETURN_CHECK.
5895         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5896         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5897         ATTRIBUTE_NORETURN.
5898         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5899         Reported by Paul Eggert.
5900
5901 2011-02-13  Bruno Haible  <bruno@clisp.org>
5902
5903         Don't interfere with a program's definition of __attribute__.
5904         * lib/argp.h (__attribute__): Remove definition.
5905         (_GL_ATTRIBUTE_FORMAT): New macro.
5906         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5907         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5908         (_GL_ATTRIBUTE_FORMAT): New macro.
5909         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5910         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5911         GCC 3 or newer.
5912         * lib/error.h (__attribute__): Remove definition.
5913         (_GL_ATTRIBUTE_FORMAT): New macro.
5914         (error, error_at_line): Use it.
5915         * lib/hash.h (__attribute__): Remove definition.
5916         (ATTRIBUTE_WUR): Update definition. Define always.
5917         * lib/openat.h (__attribute__): Remove definition.
5918         (ATTRIBUTE_NORETURN): Update definition. Define always.
5919         * lib/sigpipe-die.h (__attribute__): Remove definition.
5920         (ATTRIBUTE_NORETURN): Update definition. Define always.
5921         * lib/vasnprintf.h (__attribute__): Remove definition.
5922         (_GL_ATTRIBUTE_FORMAT): New macro.
5923         (asnprintf, vasnprintf): Use it.
5924         * lib/xalloc.h (__attribute__): Remove definition.
5925         (ATTRIBUTE_NORETURN): Update definition. Define always.
5926         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5927         * lib/xmemdup0.h (__attribute__): Remove definition.
5928         (ATTRIBUTE_NORETURN): Update definition. Define always.
5929         * lib/xprintf.h (__attribute__): Remove definition.
5930         (_GL_ATTRIBUTE_FORMAT): New macro.
5931         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5932         * lib/xstrtol.h (__attribute__): Remove definition.
5933         (ATTRIBUTE_NORETURN): Update definition. Define always.
5934         * lib/xvasprintf.h (__attribute__): Remove definition.
5935         (_GL_ATTRIBUTE_FORMAT): New macro.
5936         (xasprintf, xvasprintf): Use it.
5937         * tests/test-argmatch.c (__attribute__): Remove definition.
5938         (ATTRIBUTE_NORETURN): Update definition. Define always.
5939         * tests/test-exclude.c (__attribute__): Remove definition.
5940         (ATTRIBUTE_NORETURN): Update definition. Define always.
5941         Reported by Paul Eggert.
5942
5943 2011-02-13  Bruno Haible  <bruno@clisp.org>
5944
5945         mbrtowc: Add more tests for native Windows platforms.
5946         * tests/test-mbrtowc-w32-1.sh: New file.
5947         * tests/test-mbrtowc-w32-2.sh: New file.
5948         * tests/test-mbrtowc-w32-3.sh: New file.
5949         * tests/test-mbrtowc-w32-4.sh: New file.
5950         * tests/test-mbrtowc-w32-5.sh: New file.
5951         * tests/test-mbrtowc-w32.c: New file.
5952         * modules/mbrtowc-tests (Files): Add them.
5953         (Makefile.am): Arrange to run these tests.
5954         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5955         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5956
5957 2011-02-13  Bruno Haible  <bruno@clisp.org>
5958
5959         mbrtowc: Work around native Windows bug.
5960         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5961         guess when no suitable locale for testing was found.
5962         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5963
5964 2011-02-13  Bruno Haible  <bruno@clisp.org>
5965
5966         mbsinit: Work around mingw bug.
5967         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5968         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5969         Windows.
5970         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5971
5972 2011-02-13  Bruno Haible  <bruno@clisp.org>
5973
5974         mbsinit: Don't crash for a NULL argument.
5975         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5976         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5977
5978 2011-02-13  Bruno Haible  <bruno@clisp.org>
5979
5980         Don't interfere with a program's definition of __attribute__.
5981         * lib/stdio.in.h (__attribute__): Remove definition.
5982         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5983         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5984         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5985         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5986         * lib/string.in.h (__attribute__): Remove definition.
5987         Reported by Paul Eggert.
5988
5989 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         stdlib: don't get in the way of non-GCC __attribute__
5992         See thread starting at
5993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5994         Revert previous stdlib change, installing the following instead:
5995         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5996         to get in the way of a non-GCC compiler that supports __attribute__.
5997         (_GL_ATTRIBUTE_RETURN): New macro.
5998         (_Exit): Use it instead of __attribute__.
5999
6000 2011-02-12  Bruno Haible  <bruno@clisp.org>
6001
6002         quotearg test: Avoid test failure on mingw.
6003         * tests/test-quotearg.sh: Convert the locale identifier from native
6004         Windows syntax to Unix syntax.
6005
6006 2011-02-12  Bruno Haible  <bruno@clisp.org>
6007
6008         setlocale: Prefer gnulib's override over libintl's override.
6009         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6010         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6011         GNULIB_defined_setlocale is set.
6012
6013 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6014
6015         stdlib: support non-GCC __attribute__
6016
6017         Fix a serious and tricky problem encountered when attempting to
6018         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6019         5.5, but it crashed due to memory corruption on Solaris 10 with
6020         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6021         bits that are otherwise zero.  This tagging is optional inside
6022         Emacs but is preferred and is used when __attribute__ ((__aligned
6023         (8))) works, as it does with both recent-enough GCC and with Sun C
6024         5.11.  However, Sun C 5.11 is not GCC and does not #define
6025         __GNUC__ and __GNUC_MINOR__.
6026
6027         When I added the getloadavg module to Emacs, it brought in
6028         stdlib.in.h, which contained this fragment:
6029
6030            #ifndef __attribute__
6031            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6032            #  define __attribute__(Spec)   /* empty */
6033            # endif
6034            #endif
6035
6036         When files that include <stdlib.h> were compiled with Sun C 5.11,
6037         the above code disabled __attribute__ ((__aligned (8))), which
6038         caused variables to not be properly aligned, which eventually led
6039         to the pointer corruption mentioned above.  (This was a bit hard
6040         to diagnose, unfortunately.)
6041
6042         Several "#define __attribute__(X) /* empty */" code snippets need
6043         to be eradicated from Gnulib to work with non-GCC compilers that
6044         support __attribute__.  The Autoconf way to do this is to test for
6045         each kind of attribute that we want support for, and selectively
6046         enable that in source code.
6047
6048         Fix this problem just for stdlib.h, by adding a test for the
6049         __noreturn__ attribute, and change stdlib.in.h to use that test
6050         when needed.  This technique can be easily generalized to the
6051         other *.in.h files and attributes, and a similar technique can be
6052         used for *.h and *.c files.  This patch is enough to solve the
6053         problem for Emacs + getloadavg, and I thought I'd publish it for
6054         feedback before undertaking further, similar fixes in other
6055         modules.
6056
6057         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6058         because it's not needed for stdlib.h.  It merely substitutes the
6059         value directly into stdlib.h.  We may well need to #define it, or
6060         similar symbols, for other modules, but it's nice to also have an
6061         option to not #define it for applications like Emacs that do not
6062         need it.
6063
6064         * lib/stdlib.in.h (__attribute__): Do not #define.
6065         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6066         be defined only if the _Exit module is also used.
6067         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6069         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6070         platforms.
6071         * modules/_Exit (Files): Add m4/attribute.m4.
6072         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6073         * m4/attribute.m4: New file.
6074
6075 2011-02-12  Bruno Haible  <bruno@clisp.org>
6076
6077         wcsrtombs: Work around bug on native Windows.
6078         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6079         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6080         instead of len.
6081         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6082
6083 2011-02-12  Bruno Haible  <bruno@clisp.org>
6084
6085         mbsrtowcs: Work around bug on native Windows.
6086         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6087         against mingw bug.
6088         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6089
6090 2011-02-12  Bruno Haible  <bruno@clisp.org>
6091
6092         Avoid setlocale bugs in tests.
6093         * modules/btowc (Dependencies): Add setlocale.
6094         * modules/c-strcase (Dependencies): Likewise.
6095         * modules/mbmemcasecmp (Dependencies): Likewise.
6096         * modules/mbmemcasecoll (Dependencies): Likewise.
6097         * modules/mbrtowc (Dependencies): Likewise.
6098         * modules/mbscasecmp (Dependencies): Likewise.
6099         * modules/mbscasestr (Dependencies): Likewise.
6100         * modules/mbschr (Dependencies): Likewise.
6101         * modules/mbscspn (Dependencies): Likewise.
6102         * modules/mbsinit (Dependencies): Likewise.
6103         * modules/mbsncasecmp (Dependencies): Likewise.
6104         * modules/mbsnrtowcs (Dependencies): Likewise.
6105         * modules/mbspbrk (Dependencies): Likewise.
6106         * modules/mbspcasecmp (Dependencies): Likewise.
6107         * modules/mbsrchr (Dependencies): Likewise.
6108         * modules/mbsrtowcs (Dependencies): Likewise.
6109         * modules/mbsspn (Dependencies): Likewise.
6110         * modules/mbsstr (Dependencies): Likewise.
6111         * modules/nl_langinfo (Dependencies): Likewise.
6112         * modules/quotearg (Dependencies): Likewise.
6113         * modules/unicase/locale-language (Dependencies): Likewise.
6114         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6115         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6116         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6117         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6118         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6119         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6120         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6121         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6122         * modules/vasnprintf-posix (Dependencies): Likewise.
6123         * modules/wcrtomb (Dependencies): Likewise.
6124         * modules/wcsnrtombs (Dependencies): Likewise.
6125         * modules/wcsrtombs (Dependencies): Likewise.
6126
6127 2011-02-12  Bruno Haible  <bruno@clisp.org>
6128
6129         setlocale: Workaround native Windows bug.
6130         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6131         succeeds but sets LC_CTYPE to "C", report a failure.
6132         * tests/test-setlocale2.sh: New file.
6133         * tests/test-setlocale2.c: New file.
6134         * modules/setlocale-tests (Files): Add the new files.
6135         (Makefile.am): Enable test-setlocale2.sh test.
6136         * doc/posix-functions/setlocale.texi: Mention workaround.
6137
6138 2011-02-11  Bruno Haible  <bruno@clisp.org>
6139
6140         Tests for module 'setlocale'.
6141         * modules/setlocale-tests: New file.
6142         * tests/test-setlocale1.sh: New file.
6143         * tests/test-setlocale1.c: New file.
6144
6145         New module 'setlocale'.
6146         * lib/locale.in.h (setlocale): New declaration.
6147         * lib/setlocale.c: New file, based on
6148         gettext/gettext-runtime/intl/setlocale.c.
6149         * m4/setlocale.m4: New file.
6150         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6151         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6152         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6153         REPLACE_SETLOCALE.
6154         * modules/setlocale: New file.
6155         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6156         * doc/posix-functions/setlocale.texi: Mention the new module.
6157
6158 2011-02-11  Bruno Haible  <bruno@clisp.org>
6159
6160         Prepare for locale dependent tests on mingw.
6161         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6162         because it has the wrong locale encoding.
6163         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6164         French_France.1252 instead of "fr".
6165         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6166         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6167         because it has the wrong locale encoding.
6168         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6169         native Windows, try Turkish_Turkey.65001.
6170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6171         Chinese_China.54936.
6172
6173         Prepare for locale dependent tests on mingw.
6174         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6175         differently.
6176         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6177         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6178         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6180
6181 2011-02-11  Eric Blake  <eblake@redhat.com>
6182
6183         strptime: avoid compiler warnings
6184         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6185         compiler warnings about dead code.
6186         Reported by Daniel P. Berrange.
6187
6188 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6189
6190         doc: update users.txt
6191         * users.txt: Add rcs.
6192
6193 2011-02-10  John W. Eaton  <jwe@gnu.org>
6194
6195         doc: update users.txt
6196         * users.txt: Add octave.
6197
6198 2011-02-10  Jim Meyering  <meyering@redhat.com>
6199
6200         doc: update users.txt
6201         * users.txt: Add iwhd.
6202
6203 2011-02-09  Bruno Haible  <bruno@clisp.org>
6204
6205         gnulib-tool: Make copyright notice adjustment more robust.
6206         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6207         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6208         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6209         License".
6210         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6211
6212 2011-02-06  Bruno Haible  <bruno@clisp.org>
6213
6214         New module 'towctrans'.
6215         * modules/towctrans: New file.
6216         * lib/wctype.in.h (towctrans): New declaration.
6217         * lib/towctrans.c: New file.
6218         * lib/towctrans-impl.h: New file.
6219         * m4/towctrans.m4: New file.
6220         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6221         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6222         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6223         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6224         * doc/posix-functions/towctrans.texi: Mention the new module.
6225
6226 2011-02-06  Bruno Haible  <bruno@clisp.org>
6227
6228         New module 'wctrans'.
6229         * modules/wctrans: New file.
6230         * lib/wctype.in.h (wctrans): New declaration.
6231         * lib/wctrans.c: New file.
6232         * lib/wctrans-impl.h: New file.
6233         * m4/wctrans.m4: New file.
6234         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6235         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6236         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6237         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6238         * doc/posix-functions/wctrans.texi: Mention the new module.
6239
6240 2011-02-06  Bruno Haible  <bruno@clisp.org>
6241
6242         New module 'iswctype'.
6243         * modules/iswctype: New file.
6244         * lib/wctype.in.h (iswctype): New declaration.
6245         * lib/iswctype.c: New file.
6246         * lib/iswctype-impl.h: New file.
6247         * m4/iswctype.m4: New file.
6248         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6249         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6250         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6251         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6252         * doc/posix-functions/iswctype.texi: Mention the new module and the
6253         HP-UX 11.00 problem.
6254
6255 2011-02-06  Bruno Haible  <bruno@clisp.org>
6256
6257         New module 'wctype'.
6258         * modules/wctype: Change to represent the wctype() substitute.
6259         * lib/wctype.in.h (wctype): New declaration.
6260         * lib/wctype.c: New file.
6261         * lib/wctype-impl.h: New file.
6262         * m4/wctype.m4: New file.
6263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6265         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6266         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6267         * doc/posix-functions/wctype.texi: Mention the new module and the
6268         HP-UX 11.00 problem.
6269
6270 2011-02-06  Bruno Haible  <bruno@clisp.org>
6271
6272         wctype-h: Ensure wctype_t and wctrans_t are defined.
6273         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6274         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6275         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6276         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6277         HAVE_WCTRANS_T.
6278         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6279
6280 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6281
6282         flock: fix license typo
6283
6284         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6285         omitted.
6286
6287 2011-02-08  Bruno Haible  <bruno@clisp.org>
6288
6289         Split large sed scripts, for HP-UX sed.
6290         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6291         to avoid HP-UX limit of 99 commands, in the near future.
6292         * modules/stdlib (Makefile.am): Likewise.
6293         * modules/unistd (Makefile.am): Likewise.
6294         * modules/wchar (Makefile.am): Likewise.
6295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6296         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6298
6299 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6300             Bruno Haible  <bruno@clisp.org>
6301
6302         stdlib: improve random_r modularization
6303         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6304         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6305         you also need the random_r module to get this material right.
6306         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6307         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6308         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6309
6310 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         stdlib: don't depend on stdint
6313         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6314         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6315         be independent of whether stdint.h is needed.
6316         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6317         here, instead of ...
6318         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6319         struct random_data should be using the random_r module, not just
6320         the stdlib module (which wouldn't make sense: what package needs
6321         just struct random_data without also needing random_r?).
6322         * modules/stdlib (Depends-on): Remove stdint.
6323
6324         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6325         See the thread rooted at
6326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6327         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6328         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6329         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6330         __VMS)); previously it was always included (via fcntl--.h).
6331         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6332         hand; this is good enough for load averages.  Also, do not use
6333         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6334         flags directly if available and don't bother otherwise.  (Packages
6335         that need the extra reliability should use the modules that define
6336         these flags on older platforms that lack them.)
6337         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6338         fcntl-safer.
6339
6340 2011-02-08  Jim Meyering  <meyering@redhat.com>
6341
6342         di-set.h, ino-map.h: add multiple-inclusion guard
6343         Technically, the guard is required only for ino-map.h, due to its
6344         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6345         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6346         * lib/ino-map.h: Likewise.
6347
6348 2011-02-06  Bruno Haible  <bruno@clisp.org>
6349
6350         iswblank: Ensure declaration on glibc systems.
6351         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6352         * modules/iswblank (Dependencies): Add 'extensions'.
6353         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6354
6355 2011-02-06  Bruno Haible  <bruno@clisp.org>
6356
6357         New module 'iswblank'.
6358         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6359         * modules/iswblank: New file.
6360         * modules/wctype-h (Files): Remove lib/iswblank.c.
6361         (Makefile.am): Substitute GNULIB_ISWBLANK.
6362         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6363         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6364         (gl_WCTYPE_H_DEFAULTS): New macro.
6365         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6366         * modules/iswblank-tests: New file.
6367         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6368         * tests/test-wctype-h.c (main): Remove iswblank tests.
6369         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6370         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6371         of 'wctype-h'.
6372         * NEWS: Mention the change.
6373         * modules/mbchar (Depends-on): Add iswblank.
6374
6375 2011-02-08  Bruno Haible  <bruno@clisp.org>
6376
6377         di-set tests: Refactor.
6378         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6379         unnecessary includes.
6380         (ASSERT): Remove macro.
6381         (main): Make C90 compliant by avoiding variable declaration after
6382         statement.
6383         * modules/di-set-tests (Files): Add tests/macros.h.
6384
6385 2011-02-08  Bruno Haible  <bruno@clisp.org>
6386
6387         ino-map tests: Refactor.
6388         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6389         unnecessary includes.
6390         (ASSERT): Remove macro.
6391         (main): Make C90 compliant by avoiding variable declaration after
6392         statement.
6393         * modules/ino-map-tests (Files): Add tests/macros.h.
6394
6395 2011-02-08  Jim Meyering  <meyering@redhat.com>
6396
6397         di-set: add "const" to a cast
6398         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6399         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6400
6401 2011-02-06  Bruno Haible  <bruno@clisp.org>
6402
6403         Rename module 'wctype' to 'wctype-h'.
6404         * modules/wctype-h: Renamed from modules/wctype.
6405         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6406         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6407         (Files, Depends-on, Makefile.am): Update.
6408         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6409         (Files, Makefile.am): Update.
6410         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6411         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6412         * doc/posix-headers/wctype.texi: Update.
6413         * doc/posix-functions/iswalnum.texi: Update.
6414         * doc/posix-functions/iswalpha.texi: Update.
6415         * doc/posix-functions/iswblank.texi: Update.
6416         * doc/posix-functions/iswcntrl.texi: Update.
6417         * doc/posix-functions/iswdigit.texi: Update.
6418         * doc/posix-functions/iswgraph.texi: Update.
6419         * doc/posix-functions/iswlower.texi: Update.
6420         * doc/posix-functions/iswprint.texi: Update.
6421         * doc/posix-functions/iswpunct.texi: Update.
6422         * doc/posix-functions/iswspace.texi: Update.
6423         * doc/posix-functions/iswupper.texi: Update.
6424         * doc/posix-functions/iswxdigit.texi: Update.
6425         * doc/posix-functions/towlower.texi: Update.
6426         * doc/posix-functions/towupper.texi: Update.
6427         * NEWS: Mention the change.
6428         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6429         * modules/mbchar (Dependencies): Likewise.
6430         * modules/mbswidth (Dependencies): Likewise.
6431         * modules/quotearg (Dependencies): Likewise.
6432         * modules/regex (Dependencies): Likewise.
6433         * modules/wcscasecmp (Dependencies): Likewise.
6434         * modules/wcsncasecmp (Dependencies): Likewise.
6435         * modules/wcwidth (Dependencies): Likewise.
6436
6437 2011-02-06  Bruno Haible  <bruno@clisp.org>
6438
6439         New module 'wcswidth'.
6440         * modules/wcswidth: New file.
6441         * lib/wchar.in.h (wcswidth): New declaration.
6442         * lib/wcswidth.c: New file.
6443         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6444         * m4/wcswidth.m4: New file.
6445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6447         REPLACE_WCSWIDTH.
6448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6449         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6450         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6451         * doc/posix-functions/wcswidth.texi: Mention the new module.
6452
6453 2011-02-06  Bruno Haible  <bruno@clisp.org>
6454
6455         New module 'wcstok'.
6456         * modules/wcstok: New file.
6457         * lib/wchar.in.h (wcstok): New declaration.
6458         * lib/wcstok.c: New file.
6459         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6460         * m4/wcstok.m4: New file.
6461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6464         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6465         * doc/posix-functions/wcstok.texi: Mention the new module.
6466
6467 2011-02-06  Bruno Haible  <bruno@clisp.org>
6468
6469         New module 'wcsstr'.
6470         * modules/wcsstr: New file.
6471         * lib/wchar.in.h (wcsstr): New declaration.
6472         * lib/wcsstr.c: New file.
6473         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6474         * m4/wcsstr.m4: New file.
6475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6478         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6479         * doc/posix-functions/wcsstr.texi: Mention the new module.
6480
6481 2011-02-06  Bruno Haible  <bruno@clisp.org>
6482
6483         New module 'wcspbrk'.
6484         * modules/wcspbrk: New file.
6485         * lib/wchar.in.h (wcspbrk): New declaration.
6486         * lib/wcspbrk.c: New file.
6487         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6488         * m4/wcspbrk.m4: New file.
6489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6492         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6493         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6494
6495 2011-02-06  Bruno Haible  <bruno@clisp.org>
6496
6497         New module 'wcsspn'.
6498         * modules/wcsspn: New file.
6499         * lib/wchar.in.h (wcsspn): New declaration.
6500         * lib/wcsspn.c: New file.
6501         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6502         * m4/wcsspn.m4: New file.
6503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6506         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6507         * doc/posix-functions/wcsspn.texi: Mention the new module.
6508
6509 2011-02-06  Bruno Haible  <bruno@clisp.org>
6510
6511         New module 'wcscspn'.
6512         * modules/wcscspn: New file.
6513         * lib/wchar.in.h (wcscspn): New declaration.
6514         * lib/wcscspn.c: New file.
6515         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6516         * m4/wcscspn.m4: New file.
6517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6520         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6521         * doc/posix-functions/wcscspn.texi: Mention the new module.
6522
6523 2011-02-06  Bruno Haible  <bruno@clisp.org>
6524
6525         New module 'wcsrchr'.
6526         * modules/wcsrchr: New file.
6527         * lib/wchar.in.h (wcsrchr): New declaration.
6528         * lib/wcsrchr.c: New file.
6529         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6530         * m4/wcsrchr.m4: New file.
6531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6534         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6535         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6536
6537 2011-02-06  Bruno Haible  <bruno@clisp.org>
6538
6539         New module 'wcschr'.
6540         * modules/wcschr: New file.
6541         * lib/wchar.in.h (wcschr): New declaration.
6542         * lib/wcschr.c: New file.
6543         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6544         * m4/wcschr.m4: New file.
6545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6548         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6549         * doc/posix-functions/wcschr.texi: Mention the new module.
6550
6551 2011-02-06  Bruno Haible  <bruno@clisp.org>
6552
6553         New module 'wcsdup'.
6554         * modules/wcsdup: New file.
6555         * lib/wchar.in.h (wcsdup): New declaration.
6556         * lib/wcsdup.c: New file.
6557         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6558         * m4/wcsdup.m4: New file.
6559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6562         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6563         * doc/posix-functions/wcsdup.texi: Mention the new module.
6564
6565 2011-02-06  Bruno Haible  <bruno@clisp.org>
6566
6567         New module 'wcsxfrm'.
6568         * modules/wcsxfrm: New file.
6569         * lib/wchar.in.h (wcsxfrm): New declaration.
6570         * lib/wcsxfrm.c: New file.
6571         * lib/wcsxfrm-impl.h: New file.
6572         * m4/wcsxfrm.m4: New file.
6573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6576         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6577         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6578
6579 2011-02-06  Bruno Haible  <bruno@clisp.org>
6580
6581         New module 'wcscoll'.
6582         * modules/wcscoll: New file.
6583         * lib/wchar.in.h (wcscoll): New declaration.
6584         * lib/wcscoll.c: New file.
6585         * lib/wcscoll-impl.h: New file.
6586         * m4/wcscoll.m4: New file.
6587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6590         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6591         * doc/posix-functions/wcscoll.texi: Mention the new module.
6592
6593 2011-02-06  Bruno Haible  <bruno@clisp.org>
6594
6595         New module 'wcsncasecmp'.
6596         * modules/wcsncasecmp: New file.
6597         * lib/wchar.in.h (wcsncasecmp): New declaration.
6598         * lib/wcsncasecmp.c: New file.
6599         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6600         * m4/wcsncasecmp.m4: New file.
6601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6604         HAVE_WCSNCASECMP.
6605         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6606         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6607
6608 2011-02-06  Bruno Haible  <bruno@clisp.org>
6609
6610         New module 'wcscasecmp'.
6611         * modules/wcscasecmp: New file.
6612         * lib/wchar.in.h (wcscasecmp): New declaration.
6613         * lib/wcscasecmp.c: New file.
6614         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6615         * m4/wcscasecmp.m4: New file.
6616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6619         HAVE_WCSCASECMP.
6620         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6621         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6622
6623 2011-02-05  Bruno Haible  <bruno@clisp.org>
6624
6625         New module 'wcsncmp'.
6626         * modules/wcsncmp: New file.
6627         * lib/wchar.in.h (wcsncmp): New declaration.
6628         * lib/wcsncmp.c: New file.
6629         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6630         * m4/wcsncmp.m4: New file.
6631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6634         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6635         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6636
6637 2011-02-05  Bruno Haible  <bruno@clisp.org>
6638
6639         New module 'wcscmp'.
6640         * modules/wcscmp: New file.
6641         * lib/wchar.in.h (wcscmp): New declaration.
6642         * lib/wcscmp.c: New file.
6643         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6644         * m4/wcscmp.m4: New file.
6645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6648         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6649         * doc/posix-functions/wcscmp.texi: Mention the new module.
6650
6651 2011-02-05  Bruno Haible  <bruno@clisp.org>
6652
6653         New module 'wcsncat'.
6654         * modules/wcsncat: New file.
6655         * lib/wchar.in.h (wcsncat): New declaration.
6656         * lib/wcsncat.c: New file.
6657         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6658         * m4/wcsncat.m4: New file.
6659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6662         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6663         * doc/posix-functions/wcsncat.texi: Mention the new module.
6664
6665 2011-02-05  Bruno Haible  <bruno@clisp.org>
6666
6667         New module 'wcscat'.
6668         * modules/wcscat: New file.
6669         * lib/wchar.in.h (wcscat): New declaration.
6670         * lib/wcscat.c: New file.
6671         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6672         * m4/wcscat.m4: New file.
6673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6676         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6677         * doc/posix-functions/wcscat.texi: Mention the new module.
6678
6679 2011-02-05  Bruno Haible  <bruno@clisp.org>
6680
6681         New module 'wcpncpy'.
6682         * modules/wcpncpy: New file.
6683         * lib/wchar.in.h (wcpncpy): New declaration.
6684         * lib/wcpncpy.c: New file.
6685         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6686         * m4/wcpncpy.m4: New file.
6687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6689         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6690         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6691         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6692
6693 2011-02-05  Bruno Haible  <bruno@clisp.org>
6694
6695         New module 'wcsncpy'.
6696         * modules/wcsncpy: New file.
6697         * lib/wchar.in.h (wcsncpy): New declaration.
6698         * lib/wcsncpy.c: New file.
6699         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6700         * m4/wcsncpy.m4: New file.
6701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6704         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6705         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6706
6707 2011-02-05  Bruno Haible  <bruno@clisp.org>
6708
6709         New module 'wcpcpy'.
6710         * modules/wcpcpy: New file.
6711         * lib/wchar.in.h (wcpcpy): New declaration.
6712         * lib/wcpcpy.c: New file.
6713         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6714         * m4/wcpcpy.m4: New file.
6715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6717         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6718         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6719         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6720
6721 2011-02-05  Bruno Haible  <bruno@clisp.org>
6722
6723         New module 'wcscpy'.
6724         * modules/wcscpy: New file.
6725         * lib/wchar.in.h (wcscpy): New declaration.
6726         * lib/wcscpy.c: New file.
6727         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6728         * m4/wcscpy.m4: New file.
6729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6732         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6733         * doc/posix-functions/wcscpy.texi: Mention the new module.
6734
6735 2011-02-05  Bruno Haible  <bruno@clisp.org>
6736
6737         New module 'wcsnlen'.
6738         * modules/wcsnlen: New file.
6739         * lib/wchar.in.h (wcsnlen): New declaration.
6740         * lib/wcsnlen.c: New file.
6741         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6742         * m4/wcsnlen.m4: New file.
6743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6746         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6747         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6748
6749 2011-02-05  Bruno Haible  <bruno@clisp.org>
6750
6751         New module 'wcslen'.
6752         * modules/wcslen: New file.
6753         * lib/wchar.in.h (wcslen): New declaration.
6754         * lib/wcslen.c: New file.
6755         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6756         * m4/wcslen.m4: New file.
6757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6760         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6761         * doc/posix-functions/wcslen.texi: Mention the new module.
6762
6763 2011-02-05  Bruno Haible  <bruno@clisp.org>
6764
6765         New module 'wmemset'.
6766         * modules/wmemset: New file.
6767         * lib/wchar.in.h (wmemset): New declaration.
6768         * lib/wmemset.c: New file.
6769         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6770         * m4/wmemset.m4: New file.
6771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6774         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6775         * doc/posix-functions/wmemset.texi: Mention the new module.
6776
6777 2011-02-05  Bruno Haible  <bruno@clisp.org>
6778
6779         New module 'wmemmove'.
6780         * modules/wmemmove: New file.
6781         * lib/wchar.in.h (wmemmove): New declaration.
6782         * lib/wmemmove.c: New file.
6783         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6784         * m4/wmemmove.m4: New file.
6785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6787         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6788         HAVE_WMEMMOVE.
6789         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6790         * doc/posix-functions/wmemmove.texi: Mention the new module.
6791
6792 2011-02-05  Bruno Haible  <bruno@clisp.org>
6793
6794         New module 'wmemcpy'.
6795         * modules/wmemcpy: New file.
6796         * lib/wchar.in.h (wmemcpy): New declaration.
6797         * lib/wmemcpy.c: New file.
6798         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6799         * m4/wmemcpy.m4: New file.
6800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6802         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6803         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6804         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6805
6806 2011-02-05  Bruno Haible  <bruno@clisp.org>
6807
6808         New module 'wmemcmp'.
6809         * modules/wmemcmp: New file.
6810         * lib/wchar.in.h (wmemcmp): New declaration.
6811         * lib/wmemcmp.c: New file.
6812         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6813         * m4/wmemcmp.m4: New file.
6814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6816         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6817         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6818         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6819
6820 2011-02-07  Jim Meyering  <meyering@redhat.com>
6821
6822         di-set, ino-map: new modules, from coreutils
6823         * lib/di-set.c: New file.
6824         * lib/di-set.h: Likewise.
6825         * lib/ino-map.c: Likewise.
6826         * lib/ino-map.h: Likewise.
6827         * modules/di-set: Likewise.
6828         * modules/di-set-tests: Likewise.
6829         * modules/ino-map: Likewise.
6830         * modules/ino-map-tests: Likewise.
6831         * tests/test-di-set.c: Likewise.
6832         * tests/test-ino-map.c: Likewise.
6833
6834 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6835
6836         getloadavg: merge minor changes from Emacs
6837
6838         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6839         (getloadavg): Use memset, not bzero.
6840
6841         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6842         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6843         clash (bug#86).
6844
6845 2010-11-14  Bruno Haible  <bruno@clisp.org>
6846
6847         Allow multiple gnulib generated replacements to coexist.
6848         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6849         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6850         * lib/langinfo.in.h (nl_item): Likewise.
6851         * lib/math.in.h (_NaN, NAN): Likewise.
6852         * lib/netdb.in.h (struct addrinfo): Likewise.
6853         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6854         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6855         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6856         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6857         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6858         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6859         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6860         pthread_mutexattr_init, pthread_mutexattr_settype,
6861         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6862         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6863         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6864         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6865         * lib/sched.in.h (struct sched_param): Likewise.
6866         * lib/se-selinux.in.h (security_class_t, security_context_t,
6867         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6868         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6869         lsetfilecon, fsetfilecon, security_check_context,
6870         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6871         Likewise.
6872         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6873         Likewise.
6874         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6875         _gl_function_taking_int_returning_void_t, union sigval,
6876         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6877         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6878         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6879         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6880         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6881         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6882         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6883         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6884         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6885         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6886         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6887         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6888         socklen_t, rpl_fd_isset): Likewise.
6889         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6890         * lib/sys_time.in.h (struct timeval): Likewise.
6891         * lib/sys_times.in.h (struct tms): Likewise.
6892         * lib/sys_utsname.in.h (struct utsname):
6893         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6894         * lib/unistd.in.h (getpagesize): Likewise.
6895         * lib/wchar.in.h (mbstate_t): Likewise.
6896         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6897         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6898         towlower, towupper): Likewise.
6899         Reported by Sam Steingold <sds@gnu.org>.
6900
6901 2011-02-05  Eric Blake  <eblake@redhat.com>
6902
6903         unsetenv: work around Haiku issues
6904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6905         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6906
6907 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6908
6909         libposix: avoid calling error() within libposix
6910         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6911         is defined.
6912
6913 2011-02-05  Eric Blake  <eblake@redhat.com>
6914
6915         strerror_r-posix: port to cygwin
6916         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6917         implementation.
6918         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6919         * tests/test-strerror_r.c (main): Fix test.
6920         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6921         issue.
6922
6923 2011-02-05  Bruno Haible  <bruno@clisp.org>
6924
6925         New module 'wmemchr'.
6926         * modules/wmemchr: New file.
6927         * lib/wchar.in.h (wmemchr): New declaration.
6928         * lib/wmemchr.c: New file.
6929         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6930         * m4/wmemchr.m4: New file.
6931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6933         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6934         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6935         * doc/posix-functions/wmemchr.texi: Mention the new module.
6936
6937 2011-02-04  Eric Blake  <eblake@redhat.com>
6938
6939         fdopendir: detect FreeBSD bug
6940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6941         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6942
6943 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         stdbool: do not define HAVE_STDBOOL_H
6946         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6947         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6948         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6949         imported from the latest Autoconf git.  It was motivated by Emacs,
6950         which uses gnulib but does not need HAVE_STDBOOL_H.
6951
6952 2011-02-04  Bruno Haible  <bruno@clisp.org>
6953
6954         wcsnrtombs: Prepare for new module wwcsnrtombs.
6955         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6956         * lib/wcsnrtombs.c: Include it.
6957         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6958
6959         wcsrtombs: Prepare for new module wwcsrtombs.
6960         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6961         * lib/wcsrtombs.c: Include it.
6962         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6963
6964         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6965         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6966         * lib/mbsnrtowcs.c: Include it.
6967         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6968
6969         mbsrtowcs: Prepare for new module mbsrtowwcs.
6970         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6971         * lib/mbsrtowcs.c: Include it.
6972         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6973
6974 2011-02-04  Bruno Haible  <bruno@clisp.org>
6975
6976         vasnprintf: Reduce use of malloc for small format strings.
6977         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6978         (arguments): Add room for the first 7 arguments.
6979         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6980         (char_directives, u8_directives, u16_directives, u32_directives): Add
6981         room for the first 7 directives.
6982         * lib/printf-parse.c: Include <string.h>.
6983         (PRINTF_PARSE): Change memory handling code so that it uses the first
6984         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6985         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6986         Reported by Pádraig Brady <P@draigbrady.com>.
6987
6988 2011-01-31  Eric Blake  <eblake@redhat.com>
6989
6990         dup2: work around Haiku bug
6991         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6992         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6993         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6994         * tests/test-dup2.c (main): Enhance test.
6995
6996 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6997
6998         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6999         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7000         declared by eglibc 2.11.2.
7001         * lib/stdio.in.h: Likewise.
7002
7003 2011-01-31  Eric Blake  <eblake@redhat.com>
7004
7005         ignore-value: add missing test dependency
7006         * tests/test-ignore-value.c: Revert previous change; stdio.h
7007         provides off_t.
7008         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7009
7010 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7011
7012         mktime: clarify long_int width checking
7013         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7014         the top level, to make it clearer that the assumption about
7015         long_int width is being checked.  See
7016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7017
7018 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7019
7020         ignore-value: Fix self-test.
7021         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7022
7023 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7024
7025         TYPE_MAXIMUM: avoid theoretically undefined behavior
7026         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7027         negative number, which the C Standard says has undefined behavior.
7028         In practice this is not a problem, but might as well do it by the book.
7029         Reported by Rich Felker and Eric Blake; see
7030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7031         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7032         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7034         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7035         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7036         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7037
7038         mktime: #undef mktime before #defining it
7039         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7040
7041         mktime: systematically normalize tm_isdst comparisons
7042         * lib/mktime.c (isdst_differ): New function.
7043         (__mktime_internal): Use it systematically for all isdst comparisons.
7044         This completes the fix for libc BZ #6723, and removes the need for
7045         normalizing tm_isdst.  See
7046         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7047         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7048
7049         mktime: fix some integer overflow issues and sidestep the rest
7050
7051         This was prompted by a bug report by Benjamin Lindner for MinGW
7052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7053         His bug is due to signed integer overflow (0 - INT_MIN), and I
7054         I scanned through mktime.c looking for other integer overflow
7055         problems, fixing all the bugs I found.
7056
7057         Although the C Standard says the resulting code is still not safe
7058         in the presence of integer overflow, in practice it should be good
7059         enough for all real-world two's-complement implementations, except
7060         for debugging environments that deliberately trap on integer
7061         overflow (e.g., gcc -ftrapv).
7062
7063         * lib/mktime.c (WRAPV): New macro.
7064         (SHR): Also check that long_int and time_t shift right in the
7065         usual way, before using the fast-but-unportable method.
7066         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7067         used.  The code already assumed two's complement, so there's
7068         no need to test for alternatives.  All uses removed.
7069         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7070         the C standard.  Problem reported by Rich Felker in
7071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7072         (twos_complement_arithmetic): Also check long_int and time_t.
7073         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7074         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7075         (__mktime_internal): Avoid integer overflow with unary subtraction
7076         in two instances where -1 - X is an adequate replacement for -X,
7077         since the calculations are approximate.
7078
7079 2011-01-29  Eric Blake  <eblake@redhat.com>
7080
7081         mktime: avoid infinite loop
7082         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7083         type; behavior is still undefined but portable to all known targets.
7084         Reported by Rich Felker.
7085
7086 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7087
7088         rename, unlink, same-inode: Relicense.
7089         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7090         * modules/unlink (License): Likewise.
7091         * modules/same-inode (License): Likewise.
7092
7093 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7094
7095         mktime: avoid problems on NetBSD 5 / i386
7096         * lib/mktime.c (long_int): New type.  This works around a problem
7097         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7098         but time_t is 64 bits, and where I expect the existing code is
7099         wrong in some cases.
7100         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7101         (ydhms_diff): Bring back the compile-time check for wide-enough
7102         year and yday.
7103
7104         mktime: fix misspelling in comment
7105         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7106         This merges all recent glibc changes of importance.
7107
7108 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7109
7110         move-if-change: cope with concurrent mv of identical file.
7111         * build-aux/move-if-change (CMPPROG): Accept environment
7112         variable as an override for `cmp'.
7113         (usage): Document CMPPROG.
7114         Adjust comparison to drop stdout.  Cope with failure of mv if
7115         the target file exists and is identical to the source, for
7116         parallel builds.
7117         Report from H.J. Lu against binutils in PR binutils/12283.
7118
7119 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7120
7121         * users.txt: Mention sharutils.
7122
7123 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7124
7125         * users.txt: Mention OATH Toolkit.
7126
7127 2011-01-27  Bruno Haible  <bruno@clisp.org>
7128
7129         Prepare for supporting FreeBSD 10.
7130         * build-aux/config.libpath: Remove handling of freebsd1*.
7131
7132 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7133
7134         Prepare for supporting FreeBSD 10.
7135         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7136         match FreeBSD 10.0.
7137
7138 2011-01-27  Bruno Haible  <bruno@clisp.org>
7139
7140         vma-iter, get-rusage-as: Add OpenBSD support.
7141         * modules/vma-iter (configure.ac): Test for mquery.
7142         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7143         * lib/vma-iter.c: Include <sys/mman.h>.
7144         (vma_iterate): Add an implementation based on mquery().
7145         * lib/resource-ext.h (get_rusage_as): Update comments.
7146         * lib/get-rusage-as.c: Likewise.
7147         * lib/get-rusage-data.c: Likewise.
7148
7149 2011-01-26  Karl Berry  <karl@gnu.org>
7150
7151         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7152         variables to make it easier to override the makeinfo program used.
7153
7154 2011-01-26  Eric Blake  <eblake@redhat.com>
7155
7156         fcntl: work around Haiku F_DUPFD bugs
7157         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7158         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7159         cloexec bit on duplication.
7160         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7161
7162 2011-01-26  Bruno Haible  <bruno@clisp.org>
7163
7164         Enable memory leak tests on AIX.
7165         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7166         * tests/test-fprintf-posix3.c (main): Likewise.
7167
7168 2011-01-26  Bruno Haible  <bruno@clisp.org>
7169
7170         Tests for module 'get-rusage-data'.
7171         * modules/get-rusage-data-tests: New file.
7172         * tests/test-get-rusage-data.c: New file.
7173
7174         New module 'get-rusage-data'.
7175         * lib/resource-ext.h (get_rusage_data): New declaration.
7176         * lib/get-rusage-data.c: New file.
7177         * modules/get-rusage-data: New file.
7178
7179 2011-01-25  Bruno Haible  <bruno@clisp.org>
7180
7181         get-rusage-as: Allow for easier testing.
7182         * lib/resource-ext.h (get_rusage_as): Add comment.
7183         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7184         (main): New function for interactive testing.
7185
7186 2011-01-25  Bruno Haible  <bruno@clisp.org>
7187
7188         vma-iter: Treat Haiku like BeOS.
7189         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7190         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7191
7192 2011-01-25  Eric Blake  <eblake@redhat.com>
7193
7194         c-stack: fix regression on cygwin when libsigsegv is present
7195         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7196
7197 2011-01-24  Bruno Haible  <bruno@clisp.org>
7198
7199         vma-iter: Avoid empty intervals.
7200         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7201         on an empty interval.
7202
7203 2011-01-24  Jim Meyering  <meyering@redhat.com>
7204
7205         u64: remove unnecessary #include
7206         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7207
7208 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7209
7210         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7211         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7212
7213 2011-01-23  Bruno Haible  <bruno@clisp.org>
7214
7215         New module 'vma-iter'.
7216         * lib/vma-iter.h: New file.
7217         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7218         * modules/vma-iter: New file.
7219         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7220         for get_rusage_as_via_iterator.
7221         (vma_iterate_callback): New function.
7222         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7223         * modules/get-rusage-as (Depends-on): Add vma-iter.
7224
7225 2011-01-23  Bruno Haible  <bruno@clisp.org>
7226
7227         uninorm: Tweak includes.
7228         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7229         Reported by Jim Meyering.
7230
7231 2011-01-23  Bruno Haible  <bruno@clisp.org>
7232
7233         get-rusage-as: Improve on NetBSD.
7234         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7235         /proc, like on FreeBSD.
7236
7237 2011-01-23  Jim Meyering  <meyering@redhat.com>
7238
7239         xreadlink.h: remove unnecessary #include
7240         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7241
7242         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7243         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7244
7245 2011-01-23  Bruno Haible  <bruno@clisp.org>
7246
7247         get-rusage-as: Fix bug.
7248         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7249         original limit when aborting the first loop.
7250
7251 2011-01-23  Bruno Haible  <bruno@clisp.org>
7252
7253         wctype: Ensure valid C syntax.
7254         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7255         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7256
7257 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7261         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7262         as they are needed only for configure's test case.
7263         This removes two unnecessary symbols from config.h.
7264
7265         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7266         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7268         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7269         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7271         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7272         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7273         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7274         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7275         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7277         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7279         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7280         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7281         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7282         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7283
7284 2011-01-21  Eric Blake  <eblake@redhat.com>
7285
7286         maintainer-makefile: work with older git for submodule check
7287         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7288         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7289         Reported by Matthias Bolte.
7290
7291         bootstrap: minor portability fixes
7292         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7293         (usage): Omit leading capital and trailing . on help phrases, per
7294         GNU Coding Standards.
7295         (check_versions, top level): Prefix messages with script name.
7296
7297 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7298
7299         bootstrap: support --no-git option
7300         * build-aux/bootstrap: Add --no-git option, to be used when
7301         --gnulib-srcdir points to the exact desired checkout.
7302
7303 2011-01-21  Eric Blake  <eblake@redhat.com>
7304
7305         strerror_r-posix: work with glibc 2.13
7306         * lib/strerror_r.c (strerror_r): Fix return type.
7307
7308 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7309             Bruno Haible  <bruno@clisp.org>
7310
7311         uN_strstr: New unit tests.
7312         * modules/unistr/u8-strstr-tests: New file.
7313         * modules/unistr/u16-strstr-tests: New file.
7314         * modules/unistr/u32-strstr-tests: New file.
7315         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7316         * tests/unistr/test-u8-strstr.c: New file.
7317         * tests/unistr/test-u16-strstr.c: New file.
7318         * tests/unistr/test-u32-strstr.c: New file.
7319
7320 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7321             Bruno Haible  <bruno@clisp.org>
7322
7323         Make uN_strstr functions O(n) worst-case.
7324         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7325         16-bit and 32-bit unit cases, use the unibyte algorithm from
7326         lib/mbsstr.c.
7327         * lib/unistr/u8-strstr.c: Include <string.h>.
7328         (UNIT_IS_UINT8_T): New macro.
7329         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7330         (U_STRLEN, U_STRNLEN): New macros.
7331         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7332         (U_STRLEN, U_STRNLEN): New macros.
7333         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7334         (configure.ac): Update required libunistring version.
7335         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7336         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7337         malloca.
7338         (configure.ac): Update required libunistring version.
7339         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7340         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7341         malloca.
7342         (configure.ac): Update required libunistring version.
7343
7344 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7345             Bruno Haible  <bruno@clisp.org>
7346
7347         Prepare for faster uN_strstr functions.
7348         * lib/str-kmp.h: Support definable UNITs.
7349         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7350         needle_len argument.
7351         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7352         * lib/mbscasestr.c (mbscasestr): Likewise.
7353
7354 2011-01-21  Pádraig Brady <P@draigBrady.com>
7355
7356         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7357         * tests/test-malloca.c (main): Unset the environment variable
7358         to greatly speed up the test.
7359         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7360         * modules/malloca-tests: Depend on unsetenv.
7361
7362 2011-01-21  Pádraig Brady <P@draigBrady.com>
7363
7364         ignore-value: remove stdint dependency
7365         * lib/ignore-value.h: Remove <stdint.h>
7366         * modules/ignore-value: Remove stdint dependency.
7367
7368 2011-01-21  Jim Meyering  <meyering@redhat.com>
7369
7370         maint.mk: adjust variable name to be consistent with other gl_ vars
7371         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7372         to be lower case.
7373
7374 2011-01-20  Jim Meyering  <meyering@redhat.com>
7375
7376         maint.mk: make "check" depend on public-submodule-commit by default
7377         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7378
7379 2011-01-20  Bruno Haible  <bruno@clisp.org>
7380
7381         mbfile, mbiter: Complete change from 2008-12-21.
7382         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7383         * m4/mbiter.m4 (gl_MBITER): Likewise.
7384
7385 2011-01-20  Jim Meyering  <meyering@redhat.com>
7386
7387         init.sh: insert space between each function name and "()"
7388         * tests/init.sh: Make it a little easier to see that a function's
7389         name is "warn_", and not "warn" when looking at the first part of
7390         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7391
7392 2011-01-20  Jim Meyering  <meyering@redhat.com>
7393
7394         mountlist: clean up code formatting
7395         * lib/mountlist.c (read_file_system_list): Split a long line,
7396         correct bracing style, use NULL in place of "(struct statfs *)0",
7397         don't parenthesize return value, add spaces around "=" and after
7398         ";-in-for-stmt".
7399
7400 2011-01-14  Markus Duft <mduft@gentoo.org>
7401
7402         mountlist: add support for Interix
7403         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7404         Apply statvfs to all entries of /dev/fs.
7405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7406         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7407
7408 2011-01-20  Jim Meyering  <meyering@redhat.com>
7409
7410         maint.mk: improve the public-submodule-commit rule
7411         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7412         to suppress printing of its commands... unless V=1.
7413         Add git submodule's --quiet option to suppress printing of e.g.,
7414         "Entering gnulib" output.
7415         "cd" into $(srcdir) before running git submodule.
7416
7417 2011-01-20  Bruno Haible  <bruno@clisp.org>
7418
7419         include_next: Fix bug introduced on 2011-01-18.
7420         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7421         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7422         ac_cv_header_... variable if the second argument is not 'check'.
7423         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7424         gl_NEXT_HEADERS_INTERNAL.
7425
7426 2011-01-20  Bruno Haible  <bruno@clisp.org>
7427
7428         Allow the user to avoid the GNULIB_TEST_* macros.
7429         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7430         Suggested by Paul Eggert.
7431
7432 2011-01-14  Jim Meyering  <meyering@redhat.com>
7433
7434         bootstrap: avoid failure when there is no .gitmodules file
7435         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7436         has been assigned to, even when its value is the empty string.
7437         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7438         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7439         Reported by John W. Eaton <jwe@gnu.org>.
7440
7441 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7442
7443         assume <ctype.h>, ..., <time.h> exist
7444         For years gnulib has been assuming the existence of the headers
7445         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7446         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7447         them, since they don't appear to be needed.
7448         * README (Portability guidelines): Document this.
7449         * lib/flock.c: Assume <fcntl.h> exists.
7450         * lib/regex_internal.h: Assume <locale.h> exists.
7451         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7452         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7453         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7454         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7455         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7456         * m4/regex.m4 (gl_REGEX): Likewise.
7457         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7458         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7459         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7460         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7461         * tests/test-argp.c: Likewise.
7462         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7463
7464         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7465         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7466         AA_APPLE_UNIVERSAL_BUILD.  See
7467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7468         * NEWS: Document this.
7469
7470 2011-01-19  Eric Blake  <eblake@redhat.com>
7471
7472         c-stack: assume stack overflow if SA_SIGINFO unsupported
7473         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7474         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7475         sigaction will work.
7476         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7477         behavior match Linux.
7478         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7479
7480         stdbool-tests: accomodate Haiku
7481         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7482
7483         binary-io: fix O_TEXT on Haiku
7484         * modules/binary-io (Depends-on): Add fcntl-h.
7485         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7486         than blindly undefining O_TEXT.
7487         Reported by Scott McCreary.
7488
7489 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7490
7491         include_next: do not check for standard headers like stddef.h
7492
7493         I found this problem when modifying Emacs to use gnulib.
7494         I noticed that it added HAVE_STDDEF_H to config.h, even though
7495         gnulib always assumes <stddef.h> exists as per README and this
7496         symbol is unnecessary.
7497         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7498         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7499         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7500         faster for headers like stddef.h that are known to exist.
7501         (gl_CHECK_NEXT_HEADERS): Use it.
7502         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7503         rather than gl_CHECK_NEXT_HEADERS.
7504         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7505         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7506
7507 2011-01-18  Eric Blake  <eblake@redhat.com>
7508
7509         ansi-c++-opt: skip C++ dependency style if C++ is unused
7510         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7511         tests when we know C++ compilation is not desired.
7512         Reported by Scott McCreary.
7513
7514 2011-01-18  Bruno Haible  <bruno@clisp.org>
7515
7516         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7517         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7518         (main): Perform test also when getrlimit and setrlimit don't exist or
7519         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7520         limiting the address space size using setrlimit, compare the address
7521         space size before and after the the test.
7522         * tests/test-dprintf-posix2.c: Likewise.
7523         * tests/test-fprintf-posix3.sh: Update skip messages.
7524         * tests/test-dprintf-posix2.sh: Likewise.
7525         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7526         * modules/dprintf-posix-tests (Depends-on): Likewise.
7527         Reported by Bruce Korb <bkorb@gnu.org> and
7528         Gary V. Vaughan <gary@gnu.org>.
7529
7530 2011-01-18  Bruno Haible  <bruno@clisp.org>
7531
7532         get-rusage-as: Improvement for Cygwin.
7533         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7534         areas that are merely reserved.
7535
7536 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7537
7538         strftime: remove dependencies on multibyte modules
7539
7540         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7541         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7542         only if __osf__ is defined, and I suspect OSF doesn't need these
7543         other modules.  If my guess is wrong, we'll need to come up with a
7544         variant of strftime that doesn't need the multibyte modules.
7545
7546         I discovered this problem when attempting modify Emacs to use the
7547         strftime module.  With the previous gnulib, this caused Emacs to
7548         need 31 new files, ranging from lib/config.charset to
7549         m4/wint_t.m4.  This was overkill and I expect would be offputting
7550         to the Emacs maintainers.  After this change, only 6 new files are
7551         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7552         stdbool.m4, and tm_gmtoff.m4.
7553
7554         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7555         Suggested by Bruno Haible in
7556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7557         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7558         and do not check for wchar.h.
7559         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7560         (Depends-on): Remove mbrlen, mbsinit, wchar.
7561
7562 2011-01-18  Bruno Haible  <bruno@clisp.org>
7563
7564         Tests for module 'get-rusage-as'.
7565         * modules/get-rusage-as-tests: New file.
7566         * tests/test-get-rusage-as.c: New file.
7567
7568         New module 'get-rusage-as'.
7569         * modules/get-rusage-as: New file.
7570         * lib/resource-ext.h: New file.
7571         * lib/get-rusage-as.c: New file.
7572
7573 2011-01-17  Eric Blake  <eblake@redhat.com>
7574
7575         sigaction: relax license from LGPLv3+ to LGPLv2+
7576         * modules/sigaction (License): Relax to LGPLv2+.
7577
7578 2011-01-14  Bruno Haible  <bruno@clisp.org>
7579
7580         filemode: Make function declarations usable in C++ mode.
7581         * lib/filemode.h: Enclose function declarations in extern "C" block.
7582         Reported by John W. Eaton <jwe@gnu.org>.
7583
7584 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7585
7586         save-cwd: no longer include "xgetcwd.h"
7587         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7588         This avoids a compilation failure in projects that use save-cwd
7589         without also using the xgetcwd module.
7590
7591 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7594         This is so that a program like Emacs, which needs only dtoastr,
7595         does not have to bother with distributing and compiling ftoastr
7596         and ldtoastr.
7597         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7598         * modules/dtoastr, modules/ldtoastr: New files.
7599         * modules/ftoastr: Now works just for 'float'.
7600         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7601         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7602         dtoastr.c, ldtoastr.c.
7603
7604 2011-01-11  Jim Meyering  <meyering@redhat.com>
7605
7606         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7607         There is no need to work around the lack of the fchdir function,
7608         since gnulib can now provide a replacement when required.
7609         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7610         * modules/save-cwd (Depends-on): Add fchdir.
7611
7612 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7613
7614         openat, save-cwd: avoid xmalloc
7615
7616         This removes a direct (but undocumented) dependency of openat on
7617         xalloc, along with an indirect dependency via save-cwd.  It also
7618         removes a dependency of save-cwd on xgetcwd, and thereby
7619         indirectly on xalloc.  This change causes the openat substitute
7620         to fall back on save_cwd when memory is tight, and for save_cwd to
7621         fail instead of dying when memory is tight, but that's good enough.
7622         Problem and initial idea for fix reported by Bastien Roucaries in
7623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7624
7625         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7626         xalloc.h (for xmalloc).
7627         (openat_proc_name): Use malloc, not xmalloc.
7628         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7629         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7630
7631         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7632         This avoids heap allocation for file names whose lengths are in
7633         the range 512..1023, with the upper bound increasing to at most
7634         4031 depending on the platform's PATH_MAX.  (We do not want
7635         pathmax.h here as it might supply a non-constant PATH_MAX.)
7636         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7637         Perhaps they should be moved to malloca.h?
7638         (OPENAT_BUFFER_SIZE): Use them.
7639
7640 2011-01-10  Bruno Haible  <bruno@clisp.org>
7641
7642         doc: Update users.txt.
7643         * users.txt: Add recutils.
7644
7645 2011-01-09  Karl Berry  <karl@gnu.org>
7646
7647         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7648
7649         * doc/configmake.texi: New file.
7650         * doc/gnulib.texi: Include it.
7651         * modules/configmake: Move documentation from here.
7652
7653 2011-01-09  Bruno Haible  <bruno@clisp.org>
7654
7655         Update to Unicode 6.0.0.
7656         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7657         (get_lbp): Update for Unicode 6.0.0.
7658         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7659         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7660         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7661         U+11001, U+11038..U+11046. Remove U+06DE.
7662         (uc_width): Fix bounds of planes.
7663         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7664         lib/uniwidth/width.c.
7665         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7666         trailing whitespace removed.
7667         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7668         without comments, but with the original copyright notice.
7669         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7670         * lib/unicase/ignorable.h: Likewise.
7671         * lib/unicase/tocasefold.h: Likewise.
7672         * lib/unicase/tolower.h: Likewise.
7673         * lib/unicase/totitle.h: Likewise.
7674         * lib/unicase/toupper.h: Likewise.
7675         * lib/unictype/bidi_of.h: Likewise.
7676         * lib/unictype/blocks.h: Likewise.
7677         * lib/unictype/categ_C.h: Likewise.
7678         * lib/unictype/categ_Cn.h: Likewise.
7679         * lib/unictype/categ_L.h: Likewise.
7680         * lib/unictype/categ_Ll.h: Likewise.
7681         * lib/unictype/categ_Lm.h: Likewise.
7682         * lib/unictype/categ_Lo.h: Likewise.
7683         * lib/unictype/categ_Lu.h: Likewise.
7684         * lib/unictype/categ_M.h: Likewise.
7685         * lib/unictype/categ_Mc.h: Likewise.
7686         * lib/unictype/categ_Me.h: Likewise.
7687         * lib/unictype/categ_Mn.h: Likewise.
7688         * lib/unictype/categ_N.h: Likewise.
7689         * lib/unictype/categ_Nd.h: Likewise.
7690         * lib/unictype/categ_No.h: Likewise.
7691         * lib/unictype/categ_P.h: Likewise.
7692         * lib/unictype/categ_Po.h: Likewise.
7693         * lib/unictype/categ_S.h: Likewise.
7694         * lib/unictype/categ_Sc.h: Likewise.
7695         * lib/unictype/categ_Sk.h: Likewise.
7696         * lib/unictype/categ_Sm.h: Likewise.
7697         * lib/unictype/categ_So.h: Likewise.
7698         * lib/unictype/categ_of.h: Likewise.
7699         * lib/unictype/combining.h: Likewise.
7700         * lib/unictype/ctype_alnum.h: Likewise.
7701         * lib/unictype/ctype_alpha.h: Likewise.
7702         * lib/unictype/ctype_graph.h: Likewise.
7703         * lib/unictype/ctype_lower.h: Likewise.
7704         * lib/unictype/ctype_print.h: Likewise.
7705         * lib/unictype/ctype_punct.h: Likewise.
7706         * lib/unictype/ctype_upper.h: Likewise.
7707         * lib/unictype/decdigit.h: Likewise.
7708         * lib/unictype/digit.h: Likewise.
7709         * lib/unictype/numeric.h: Likewise.
7710         * lib/unictype/pr_alphabetic.h: Likewise.
7711         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7712         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7713         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7714         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7715         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7716         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7717         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7718         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7719         * lib/unictype/pr_case_ignorable.h: Likewise.
7720         * lib/unictype/pr_cased.h: Likewise.
7721         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7722         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7723         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7724         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7725         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7726         * lib/unictype/pr_combining.h: Likewise.
7727         * lib/unictype/pr_composite.h: Likewise.
7728         * lib/unictype/pr_currency_symbol.h: Likewise.
7729         * lib/unictype/pr_decimal_digit.h: Likewise.
7730         * lib/unictype/pr_deprecated.h: Likewise.
7731         * lib/unictype/pr_format_control.h: Likewise.
7732         * lib/unictype/pr_grapheme_base.h: Likewise.
7733         * lib/unictype/pr_grapheme_extend.h: Likewise.
7734         * lib/unictype/pr_grapheme_link.h: Likewise.
7735         * lib/unictype/pr_id_continue.h: Likewise.
7736         * lib/unictype/pr_id_start.h: Likewise.
7737         * lib/unictype/pr_ideographic.h: Likewise.
7738         * lib/unictype/pr_lowercase.h: Likewise.
7739         * lib/unictype/pr_math.h: Likewise.
7740         * lib/unictype/pr_numeric.h: Likewise.
7741         * lib/unictype/pr_other_alphabetic.h: Likewise.
7742         * lib/unictype/pr_other_id_continue.h: Likewise.
7743         * lib/unictype/pr_other_math.h: Likewise.
7744         * lib/unictype/pr_punctuation.h: Likewise.
7745         * lib/unictype/pr_sentence_terminal.h: Likewise.
7746         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7747         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7748         * lib/unictype/pr_unified_ideograph.h: Likewise.
7749         * lib/unictype/pr_uppercase.h: Likewise.
7750         * lib/unictype/pr_xid_continue.h: Likewise.
7751         * lib/unictype/pr_xid_start.h: Likewise.
7752         * lib/unictype/scripts.h: Likewise.
7753         * lib/unictype/scripts_byname.gperf: Likewise.
7754         * lib/unictype/sy_java_ident.h: Likewise.
7755         * lib/unigbrk/gbrkprop.h: Likewise.
7756         * lib/unilbrk/lbrkprop1.h: Likewise.
7757         * lib/unilbrk/lbrkprop2.h: Likewise.
7758         * lib/uninorm/decomposition-table2.h: Likewise.
7759         * lib/uniwbrk/wbrkprop.h: Likewise.
7760         * tests/unicase/test-cased.c: Likewise.
7761         * tests/unicase/test-ignorable.c: Likewise.
7762         * tests/unicase/test-uc_tolower.c: Likewise.
7763         * tests/unicase/test-uc_totitle.c: Likewise.
7764         * tests/unicase/test-uc_toupper.c: Likewise.
7765         * tests/unictype/test-categ_C.c: Likewise.
7766         * tests/unictype/test-categ_Cn.c: Likewise.
7767         * tests/unictype/test-categ_L.c: Likewise.
7768         * tests/unictype/test-categ_Ll.c: Likewise.
7769         * tests/unictype/test-categ_Lm.c: Likewise.
7770         * tests/unictype/test-categ_Lo.c: Likewise.
7771         * tests/unictype/test-categ_Lu.c: Likewise.
7772         * tests/unictype/test-categ_M.c: Likewise.
7773         * tests/unictype/test-categ_Mc.c: Likewise.
7774         * tests/unictype/test-categ_Me.c: Likewise.
7775         * tests/unictype/test-categ_Mn.c: Likewise.
7776         * tests/unictype/test-categ_N.c: Likewise.
7777         * tests/unictype/test-categ_Nd.c: Likewise.
7778         * tests/unictype/test-categ_No.c: Likewise.
7779         * tests/unictype/test-categ_P.c: Likewise.
7780         * tests/unictype/test-categ_Po.c: Likewise.
7781         * tests/unictype/test-categ_S.c: Likewise.
7782         * tests/unictype/test-categ_Sc.c: Likewise.
7783         * tests/unictype/test-categ_Sk.c: Likewise.
7784         * tests/unictype/test-categ_Sm.c: Likewise.
7785         * tests/unictype/test-categ_So.c: Likewise.
7786         * tests/unictype/test-ctype_alnum.c: Likewise.
7787         * tests/unictype/test-ctype_alpha.c: Likewise.
7788         * tests/unictype/test-ctype_graph.c: Likewise.
7789         * tests/unictype/test-ctype_lower.c: Likewise.
7790         * tests/unictype/test-ctype_print.c: Likewise.
7791         * tests/unictype/test-ctype_punct.c: Likewise.
7792         * tests/unictype/test-ctype_upper.c: Likewise.
7793         * tests/unictype/test-decdigit.h: Likewise.
7794         * tests/unictype/test-digit.h: Likewise.
7795         * tests/unictype/test-numeric.h: Likewise.
7796         * tests/unictype/test-pr_alphabetic.c: Likewise.
7797         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7798         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7799         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7800         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7801         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7802         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7803         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7804         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7805         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7806         * tests/unictype/test-pr_cased.c: Likewise.
7807         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7808         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7809         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7810         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7811         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7812         * tests/unictype/test-pr_combining.c: Likewise.
7813         * tests/unictype/test-pr_composite.c: Likewise.
7814         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7815         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7816         * tests/unictype/test-pr_deprecated.c: Likewise.
7817         * tests/unictype/test-pr_format_control.c: Likewise.
7818         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7819         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7820         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7821         * tests/unictype/test-pr_id_continue.c: Likewise.
7822         * tests/unictype/test-pr_id_start.c: Likewise.
7823         * tests/unictype/test-pr_ideographic.c: Likewise.
7824         * tests/unictype/test-pr_lowercase.c: Likewise.
7825         * tests/unictype/test-pr_math.c: Likewise.
7826         * tests/unictype/test-pr_numeric.c: Likewise.
7827         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7828         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7829         * tests/unictype/test-pr_other_math.c: Likewise.
7830         * tests/unictype/test-pr_punctuation.c: Likewise.
7831         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7832         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7833         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7834         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7835         * tests/unictype/test-pr_uppercase.c: Likewise.
7836         * tests/unictype/test-pr_xid_continue.c: Likewise.
7837         * tests/unictype/test-pr_xid_start.c: Likewise.
7838         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7839         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7840         changes.
7841         * lib/unictype/categ_Cc.h: Likewise.
7842         * lib/unictype/categ_Cf.h: Likewise.
7843         * lib/unictype/categ_Co.h: Likewise.
7844         * lib/unictype/categ_Cs.h: Likewise.
7845         * lib/unictype/categ_Lt.h: Likewise.
7846         * lib/unictype/categ_Nl.h: Likewise.
7847         * lib/unictype/categ_Pc.h: Likewise.
7848         * lib/unictype/categ_Pd.h: Likewise.
7849         * lib/unictype/categ_Pe.h: Likewise.
7850         * lib/unictype/categ_Pf.h: Likewise.
7851         * lib/unictype/categ_Pi.h: Likewise.
7852         * lib/unictype/categ_Ps.h: Likewise.
7853         * lib/unictype/categ_Z.h: Likewise.
7854         * lib/unictype/categ_Zl.h: Likewise.
7855         * lib/unictype/categ_Zp.h: Likewise.
7856         * lib/unictype/categ_Zs.h: Likewise.
7857         * lib/unictype/ctype_blank.h: Likewise.
7858         * lib/unictype/ctype_cntrl.h: Likewise.
7859         * lib/unictype/ctype_digit.h: Likewise.
7860         * lib/unictype/ctype_space.h: Likewise.
7861         * lib/unictype/ctype_xdigit.h: Likewise.
7862         * lib/unictype/mirror.h: Likewise.
7863         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7864         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7865         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7866         * lib/unictype/pr_bidi_control.h: Likewise.
7867         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7868         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7869         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7870         * lib/unictype/pr_bidi_pdf.h: Likewise.
7871         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7872         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7873         * lib/unictype/pr_dash.h: Likewise.
7874         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7875         * lib/unictype/pr_diacritic.h: Likewise.
7876         * lib/unictype/pr_extender.h: Likewise.
7877         * lib/unictype/pr_hex_digit.h: Likewise.
7878         * lib/unictype/pr_hyphen.h: Likewise.
7879         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7880         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7881         * lib/unictype/pr_ignorable_control.h: Likewise.
7882         * lib/unictype/pr_iso_control.h: Likewise.
7883         * lib/unictype/pr_join_control.h: Likewise.
7884         * lib/unictype/pr_left_of_pair.h: Likewise.
7885         * lib/unictype/pr_line_separator.h: Likewise.
7886         * lib/unictype/pr_logical_order_exception.h: Likewise.
7887         * lib/unictype/pr_non_break.h: Likewise.
7888         * lib/unictype/pr_not_a_character.h: Likewise.
7889         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7890         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7891         * lib/unictype/pr_other_id_start.h: Likewise.
7892         * lib/unictype/pr_other_lowercase.h: Likewise.
7893         * lib/unictype/pr_other_uppercase.h: Likewise.
7894         * lib/unictype/pr_paired_punctuation.h: Likewise.
7895         * lib/unictype/pr_paragraph_separator.h: Likewise.
7896         * lib/unictype/pr_pattern_syntax.h: Likewise.
7897         * lib/unictype/pr_pattern_white_space.h: Likewise.
7898         * lib/unictype/pr_private_use.h: Likewise.
7899         * lib/unictype/pr_quotation_mark.h: Likewise.
7900         * lib/unictype/pr_radical.h: Likewise.
7901         * lib/unictype/pr_soft_dotted.h: Likewise.
7902         * lib/unictype/pr_space.h: Likewise.
7903         * lib/unictype/pr_titlecase.h: Likewise.
7904         * lib/unictype/pr_variation_selector.h: Likewise.
7905         * lib/unictype/pr_white_space.h: Likewise.
7906         * lib/unictype/pr_zero_width.h: Likewise.
7907         * lib/unictype/sy_c_ident.h: Likewise.
7908         * lib/unictype/sy_c_whitespace.h: Likewise.
7909         * lib/unictype/sy_java_whitespace.h: Likewise.
7910         * lib/uninorm/composition-table.gperf: Likewise.
7911         * lib/uninorm/decomposition-table1.h: Likewise.
7912         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7913         LB8.
7914         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7915         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7916         * modules/unictype/*: Bump version number of expected libunistring
7917         version.
7918
7919 2011-01-09  Bruno Haible  <bruno@clisp.org>
7920
7921         Update to Unicode 5.2.0.
7922         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7923         trailing whitespace removed.
7924
7925 2011-01-09  Bruno Haible  <bruno@clisp.org>
7926
7927         New Unicode character properties, from Unicode 5.2.0.
7928         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7929         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7930         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7931         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7932         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7933         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7934         uc_is_property_cased, uc_is_property_case_ignorable,
7935         uc_is_property_changes_when_lowercased,
7936         uc_is_property_changes_when_uppercased,
7937         uc_is_property_changes_when_titlecased,
7938         uc_is_property_changes_when_casefolded,
7939         uc_is_property_changes_when_casemapped): New declarations.
7940         * lib/unictype/pr_byname.gperf: Add the new properties.
7941         * modules/unictype/property-byname (Depends-on): Depend on the new
7942         properties modules.
7943         * modules/unictype/property-all (Depends-on): Likewise.
7944         * MODULES.html.sh (Unicode string functions): Add
7945         unictype/property-case-ignorable, unictype/property-cased,
7946         unictype/property-changes-when-casefolded,
7947         unictype/property-changes-when-casemapped,
7948         unictype/property-changes-when-lowercased,
7949         unictype/property-changes-when-titlecased,
7950         unictype/property-changes-when-uppercased.
7951
7952         New module 'unictype/property-changes-when-casemapped'.
7953         * modules/unictype/property-changes-when-casemapped: New file.
7954         * lib/unictype/pr_changes_when_casemapped.c: New file.
7955         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7956         generated by gen-uni-tables.
7957         * modules/unictype/property-changes-when-casemapped-tests: New file.
7958         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7959         automatically generated by gen-uni-tables.
7960
7961         New module 'unictype/property-changes-when-casefolded'.
7962         * modules/unictype/property-changes-when-casefolded: New file.
7963         * lib/unictype/pr_changes_when_casefolded.c: New file.
7964         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7965         generated by gen-uni-tables.
7966         * modules/unictype/property-changes-when-casefolded-tests: New file.
7967         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7968         automatically generated by gen-uni-tables.
7969
7970         New module 'unictype/property-changes-when-titlecased'.
7971         * modules/unictype/property-changes-when-titlecased: New file.
7972         * lib/unictype/pr_changes_when_titlecased.c: New file.
7973         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7974         generated by gen-uni-tables.
7975         * modules/unictype/property-changes-when-titlecased-tests: New file.
7976         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7977         automatically generated by gen-uni-tables.
7978
7979         New module 'unictype/property-changes-when-uppercased'.
7980         * modules/unictype/property-changes-when-uppercased: New file.
7981         * lib/unictype/pr_changes_when_uppercased.c: New file.
7982         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7983         generated by gen-uni-tables.
7984         * modules/unictype/property-changes-when-uppercased-tests: New file.
7985         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7986         automatically generated by gen-uni-tables.
7987
7988         New module 'unictype/property-changes-when-lowercased'.
7989         * modules/unictype/property-changes-when-lowercased: New file.
7990         * lib/unictype/pr_changes_when_lowercased.c: New file.
7991         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7992         generated by gen-uni-tables.
7993         * modules/unictype/property-changes-when-lowercased-tests: New file.
7994         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7995         automatically generated by gen-uni-tables.
7996
7997         New module 'unictype/property-case-ignorable'.
7998         * modules/unictype/property-case-ignorable: New file.
7999         * lib/unictype/pr_case_ignorable.c: New file.
8000         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8001         by gen-uni-tables.
8002         * modules/unictype/property-case-ignorable-tests: New file.
8003         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8004         generated by gen-uni-tables.
8005
8006         New module 'unictype/property-cased'.
8007         * modules/unictype/property-cased: New file.
8008         * lib/unictype/pr_cased.c: New file.
8009         * lib/unictype/pr_cased.h: New file, automatically generated by
8010         gen-uni-tables.
8011         * modules/unictype/property-cased-tests: New file.
8012         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8013         gen-uni-tables.
8014
8015 2011-01-09  Bruno Haible  <bruno@clisp.org>
8016
8017         Update to Unicode 5.2.0.
8018         * lib/gen-uni-tables.c (output_predicate, output_category,
8019         output_combclass, output_bidi_category, output_decimal_digit_test,
8020         output_decimal_digit, output_digit_test, output_digit,
8021         output_numeric_test, output_numeric, output_mirror, output_scripts,
8022         output_scripts_byname, output_blocks, output_ident_category): Fix
8023         comment header.
8024         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8025         get_wbp.
8026         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8027         items.
8028         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8029         Changes_When_Lowercased, Changes_When_Uppercased,
8030         Changes_When_Titlecased, Changes_When_Casefolded,
8031         Changes_When_Casemapped.
8032         (is_property_alphabetic, is_property_default_ignorable_code_point):
8033         Update for Unicode 5.2.0.
8034         (is_property_cased, is_property_case_ignorable,
8035         is_property_changes_when_lowercased,
8036         is_property_changes_when_uppercased,
8037         is_property_changes_when_titlecased,
8038         is_property_changes_when_casefolded,
8039         is_property_changes_when_casemapped): New functions.
8040         (output_properties): Output also the properties cased, case_ignorable,
8041         changes_when_lowercased, changes_when_uppercased,
8042         changes_when_titlecased, changes_when_casefolded,
8043         changes_when_casemapped.
8044         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8045         Unicode TR#11 revision 17 -> 19.
8046         (LBP_CP): New enumeration value.
8047         (LBP_*): Adjust values accordingly.
8048         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8049         TR#14 revision 22 -> 24.
8050         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8051         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8052         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8053         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8054         is_WBP_MIDLETTER.
8055         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8056         the code1 and code2 of each composition rule.
8057         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8058         * lib/unicase/ignorable.h: Likewise.
8059         * lib/unicase/tocasefold.h: Likewise.
8060         * lib/unicase/tolower.h: Likewise.
8061         * lib/unicase/totitle.h: Likewise.
8062         * lib/unicase/toupper.h: Likewise.
8063         * lib/unictype/bidi_of.h: Likewise.
8064         * lib/unictype/blocks.h: Likewise.
8065         * lib/unictype/categ_C.h: Likewise.
8066         * lib/unictype/categ_Cf.h: Likewise.
8067         * lib/unictype/categ_Cn.h: Likewise.
8068         * lib/unictype/categ_L.h: Likewise.
8069         * lib/unictype/categ_Ll.h: Likewise.
8070         * lib/unictype/categ_Lm.h: Likewise.
8071         * lib/unictype/categ_Lo.h: Likewise.
8072         * lib/unictype/categ_Lu.h: Likewise.
8073         * lib/unictype/categ_M.h: Likewise.
8074         * lib/unictype/categ_Mc.h: Likewise.
8075         * lib/unictype/categ_Mn.h: Likewise.
8076         * lib/unictype/categ_N.h: Likewise.
8077         * lib/unictype/categ_Nd.h: Likewise.
8078         * lib/unictype/categ_Nl.h: Likewise.
8079         * lib/unictype/categ_No.h: Likewise.
8080         * lib/unictype/categ_P.h: Likewise.
8081         * lib/unictype/categ_Pd.h: Likewise.
8082         * lib/unictype/categ_Po.h: Likewise.
8083         * lib/unictype/categ_S.h: Likewise.
8084         * lib/unictype/categ_Sc.h: Likewise.
8085         * lib/unictype/categ_So.h: Likewise.
8086         * lib/unictype/categ_of.h: Likewise.
8087         * lib/unictype/combining.h: Likewise.
8088         * lib/unictype/ctype_alnum.h: Likewise.
8089         * lib/unictype/ctype_alpha.h: Likewise.
8090         * lib/unictype/ctype_graph.h: Likewise.
8091         * lib/unictype/ctype_lower.h: Likewise.
8092         * lib/unictype/ctype_print.h: Likewise.
8093         * lib/unictype/ctype_punct.h: Likewise.
8094         * lib/unictype/ctype_upper.h: Likewise.
8095         * lib/unictype/decdigit.h: Likewise.
8096         * lib/unictype/digit.h: Likewise.
8097         * lib/unictype/numeric.h: Likewise.
8098         * lib/unictype/pr_alphabetic.h: Likewise.
8099         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8100         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8101         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8102         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8103         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8104         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8105         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8106         * lib/unictype/pr_combining.h: Likewise.
8107         * lib/unictype/pr_composite.h: Likewise.
8108         * lib/unictype/pr_currency_symbol.h: Likewise.
8109         * lib/unictype/pr_dash.h: Likewise.
8110         * lib/unictype/pr_decimal_digit.h: Likewise.
8111         * lib/unictype/pr_deprecated.h: Likewise.
8112         * lib/unictype/pr_diacritic.h: Likewise.
8113         * lib/unictype/pr_extender.h: Likewise.
8114         * lib/unictype/pr_grapheme_base.h: Likewise.
8115         * lib/unictype/pr_grapheme_extend.h: Likewise.
8116         * lib/unictype/pr_grapheme_link.h: Likewise.
8117         * lib/unictype/pr_id_continue.h: Likewise.
8118         * lib/unictype/pr_id_start.h: Likewise.
8119         * lib/unictype/pr_ideographic.h: Likewise.
8120         * lib/unictype/pr_ignorable_control.h: Likewise.
8121         * lib/unictype/pr_logical_order_exception.h: Likewise.
8122         * lib/unictype/pr_lowercase.h: Likewise.
8123         * lib/unictype/pr_numeric.h: Likewise.
8124         * lib/unictype/pr_other_alphabetic.h: Likewise.
8125         * lib/unictype/pr_punctuation.h: Likewise.
8126         * lib/unictype/pr_sentence_terminal.h: Likewise.
8127         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8129         * lib/unictype/pr_unified_ideograph.h: Likewise.
8130         * lib/unictype/pr_uppercase.h: Likewise.
8131         * lib/unictype/pr_xid_continue.h: Likewise.
8132         * lib/unictype/pr_xid_start.h: Likewise.
8133         * lib/unictype/pr_zero_width.h: Likewise.
8134         * lib/unictype/scripts.h: Likewise.
8135         * lib/unictype/scripts_byname.gperf: Likewise.
8136         * lib/unictype/sy_java_ident.h: Likewise.
8137         * lib/unigbrk/gbrkprop.h: Likewise.
8138         * lib/unilbrk/lbrkprop1.h: Likewise.
8139         * lib/unilbrk/lbrkprop2.h: Likewise.
8140         * lib/unilbrk/lbrktables.h: Likewise.
8141         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8142         LBP_CP. Implement rule LB30.
8143         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8144         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8145         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8146         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8147         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8148         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8149         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8150         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8151         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8152         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8153         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8154         bits instead of 16 bits in the code1 and code2 of each composition
8155         rule.
8156         (uc_composition): Update for Unicode 5.2.0.
8157         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8158         * lib/uninorm/decomposition-table2.h: Likewise.
8159         * lib/uniwbrk/wbrkprop.h: Likewise.
8160         * tests/unicase/test-cased.c: Likewise.
8161         * tests/unicase/test-ignorable.c: Likewise.
8162         * tests/unicase/test-uc_tolower.c: Likewise.
8163         * tests/unicase/test-uc_totitle.c: Likewise.
8164         * tests/unicase/test-uc_toupper.c: Likewise.
8165         * tests/unictype/test-categ_C.c: Likewise.
8166         * tests/unictype/test-categ_Cf.c: Likewise.
8167         * tests/unictype/test-categ_Cn.c: Likewise.
8168         * tests/unictype/test-categ_L.c: Likewise.
8169         * tests/unictype/test-categ_Ll.c: Likewise.
8170         * tests/unictype/test-categ_Lm.c: Likewise.
8171         * tests/unictype/test-categ_Lo.c: Likewise.
8172         * tests/unictype/test-categ_Lu.c: Likewise.
8173         * tests/unictype/test-categ_M.c: Likewise.
8174         * tests/unictype/test-categ_Mc.c: Likewise.
8175         * tests/unictype/test-categ_Mn.c: Likewise.
8176         * tests/unictype/test-categ_N.c: Likewise.
8177         * tests/unictype/test-categ_Nd.c: Likewise.
8178         * tests/unictype/test-categ_Nl.c: Likewise.
8179         * tests/unictype/test-categ_No.c: Likewise.
8180         * tests/unictype/test-categ_P.c: Likewise.
8181         * tests/unictype/test-categ_Pd.c: Likewise.
8182         * tests/unictype/test-categ_Po.c: Likewise.
8183         * tests/unictype/test-categ_S.c: Likewise.
8184         * tests/unictype/test-categ_Sc.c: Likewise.
8185         * tests/unictype/test-categ_So.c: Likewise.
8186         * tests/unictype/test-ctype_alnum.c: Likewise.
8187         * tests/unictype/test-ctype_alpha.c: Likewise.
8188         * tests/unictype/test-ctype_graph.c: Likewise.
8189         * tests/unictype/test-ctype_lower.c: Likewise.
8190         * tests/unictype/test-ctype_print.c: Likewise.
8191         * tests/unictype/test-ctype_punct.c: Likewise.
8192         * tests/unictype/test-ctype_upper.c: Likewise.
8193         * tests/unictype/test-decdigit.h: Likewise.
8194         * tests/unictype/test-digit.h: Likewise.
8195         * tests/unictype/test-numeric.h: Likewise.
8196         * tests/unictype/test-pr_alphabetic.c: Likewise.
8197         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8198         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8199         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8200         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8201         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8202         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8203         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8204         * tests/unictype/test-pr_combining.c: Likewise.
8205         * tests/unictype/test-pr_composite.c: Likewise.
8206         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8207         * tests/unictype/test-pr_dash.c: Likewise.
8208         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8209         * tests/unictype/test-pr_deprecated.c: Likewise.
8210         * tests/unictype/test-pr_diacritic.c: Likewise.
8211         * tests/unictype/test-pr_extender.c: Likewise.
8212         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8213         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8214         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8215         * tests/unictype/test-pr_id_continue.c: Likewise.
8216         * tests/unictype/test-pr_id_start.c: Likewise.
8217         * tests/unictype/test-pr_ideographic.c: Likewise.
8218         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8219         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8220         * tests/unictype/test-pr_lowercase.c: Likewise.
8221         * tests/unictype/test-pr_numeric.c: Likewise.
8222         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8223         * tests/unictype/test-pr_punctuation.c: Likewise.
8224         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8225         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8226         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8227         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8228         * tests/unictype/test-pr_uppercase.c: Likewise.
8229         * tests/unictype/test-pr_xid_continue.c: Likewise.
8230         * tests/unictype/test-pr_xid_start.c: Likewise.
8231         * tests/unictype/test-pr_zero_width.c: Likewise.
8232         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8233         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8234         changed behaviour: line breaking is now disallowed between a letter
8235         or '=' and '('.
8236         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8237         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8238         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8239         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8240         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8241         lib/uniwidth/width.c.
8242         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8243         without comments, but with the original copyright notice.
8244         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8245         changes.
8246         * lib/unictype/categ_Cc.h: Likewise.
8247         * lib/unictype/categ_Co.h: Likewise.
8248         * lib/unictype/categ_Cs.h: Likewise.
8249         * lib/unictype/categ_Lt.h: Likewise.
8250         * lib/unictype/categ_Me.h: Likewise.
8251         * lib/unictype/categ_Pc.h: Likewise.
8252         * lib/unictype/categ_Pe.h: Likewise.
8253         * lib/unictype/categ_Pf.h: Likewise.
8254         * lib/unictype/categ_Pi.h: Likewise.
8255         * lib/unictype/categ_Ps.h: Likewise.
8256         * lib/unictype/categ_Sk.h: Likewise.
8257         * lib/unictype/categ_Sm.h: Likewise.
8258         * lib/unictype/categ_Z.h: Likewise.
8259         * lib/unictype/categ_Zl.h: Likewise.
8260         * lib/unictype/categ_Zp.h: Likewise.
8261         * lib/unictype/categ_Zs.h: Likewise.
8262         * lib/unictype/ctype_blank.h: Likewise.
8263         * lib/unictype/ctype_cntrl.h: Likewise.
8264         * lib/unictype/ctype_digit.h: Likewise.
8265         * lib/unictype/ctype_space.h: Likewise.
8266         * lib/unictype/ctype_xdigit.h: Likewise.
8267         * lib/unictype/mirror.h: Likewise.
8268         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8269         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8271         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8272         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8273         * lib/unictype/pr_bidi_control.h: Likewise.
8274         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8275         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8276         * lib/unictype/pr_bidi_pdf.h: Likewise.
8277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8279         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8280         * lib/unictype/pr_format_control.h: Likewise.
8281         * lib/unictype/pr_hex_digit.h: Likewise.
8282         * lib/unictype/pr_hyphen.h: Likewise.
8283         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8284         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8285         * lib/unictype/pr_iso_control.h: Likewise.
8286         * lib/unictype/pr_join_control.h: Likewise.
8287         * lib/unictype/pr_left_of_pair.h: Likewise.
8288         * lib/unictype/pr_line_separator.h: Likewise.
8289         * lib/unictype/pr_math.h: Likewise.
8290         * lib/unictype/pr_non_break.h: Likewise.
8291         * lib/unictype/pr_not_a_character.h: Likewise.
8292         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8293         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8294         * lib/unictype/pr_other_id_continue.h: Likewise.
8295         * lib/unictype/pr_other_id_start.h: Likewise.
8296         * lib/unictype/pr_other_lowercase.h: Likewise.
8297         * lib/unictype/pr_other_math.h: Likewise.
8298         * lib/unictype/pr_other_uppercase.h: Likewise.
8299         * lib/unictype/pr_paired_punctuation.h: Likewise.
8300         * lib/unictype/pr_paragraph_separator.h: Likewise.
8301         * lib/unictype/pr_pattern_syntax.h: Likewise.
8302         * lib/unictype/pr_pattern_white_space.h: Likewise.
8303         * lib/unictype/pr_private_use.h: Likewise.
8304         * lib/unictype/pr_quotation_mark.h: Likewise.
8305         * lib/unictype/pr_radical.h: Likewise.
8306         * lib/unictype/pr_soft_dotted.h: Likewise.
8307         * lib/unictype/pr_space.h: Likewise.
8308         * lib/unictype/pr_titlecase.h: Likewise.
8309         * lib/unictype/pr_variation_selector.h: Likewise.
8310         * lib/unictype/pr_white_space.h: Likewise.
8311         * lib/unictype/sy_c_ident.h: Likewise.
8312         * lib/unictype/sy_c_whitespace.h: Likewise.
8313         * lib/unictype/sy_java_whitespace.h: Likewise.
8314         * modules/uni*/*: Bump version number of expected libunistring version.
8315         Reported by Simon Josefsson.
8316
8317 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8318
8319         useless-if-before-free: fix typo in --help and make the internal,
8320         automatic version date update process work once again.
8321         --help output contained a NUL character instead of the
8322         backslash-zero that was intended.  Also, the "must lie within
8323         the first 8 lines" line is on line 9, and hence not getting
8324         automatically updated.
8325         * build-aux/useless-if-before-free: Fix the former by adding a
8326         backslash, and the latter by condensing the three lines of what-it-does
8327         to a single line, leaving one line of slack for the future.
8328
8329 2011-01-09  Bruno Haible  <bruno@clisp.org>
8330
8331         uniwidth/width: Fix width of U+1D173..U+1D17A.
8332         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8333         symbolic_width, output_width_property_test): New functions.
8334         (main): Invoke output_nonspacing_property, output_width_property_test.
8335         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8336         U+1D173..U+1D17A.
8337         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8338         1.
8339         * modules/uniwidth/*: Bump version number of expected libunistring
8340         version.
8341         * modules/unilbrk/*: Likewise.
8342
8343 2011-01-08  Bruno Haible  <bruno@clisp.org>
8344
8345         uninorm tests: Preserve copyright of Unicode data file.
8346         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8347         Mention modifications.
8348
8349 2011-01-08  Bruno Haible  <bruno@clisp.org>
8350
8351         gen-uni-tables: Prepare for Unicode 5.2.0.
8352         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8353         (debug_output_lbp, output_lbp): Update.
8354
8355 2011-01-08  Bruno Haible  <bruno@clisp.org>
8356
8357         unilbrk: Clarify gen-uni-tables.c code.
8358         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8359         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8360         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8361
8362 2011-01-07  Bruno Haible  <bruno@clisp.org>
8363
8364         strtod: Restore errno when successfully parsing Infinity or NaN.
8365         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8366         restore the original errno.
8367
8368 2011-01-07  Bruno Haible  <bruno@clisp.org>
8369
8370         remove test: Avoid failure on HP-UX 11.
8371         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8372
8373 2011-01-07  Bruno Haible  <bruno@clisp.org>
8374
8375         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8376         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8377         error code.
8378
8379 2011-01-07  Pádraig Brady <P@draigBrady.com>
8380
8381         ignore-value: fixup comments, and add Eric Blake
8382         as an author since he rewrote the macros.
8383         * lib/ignore-value.h (ignore_value):  State that
8384         we now support aggregates.  Also specify exactly
8385         when the GCC warn_unused_result feature was added.
8386
8387 2011-01-06  Eric Blake  <eblake@redhat.com>
8388
8389         ignore-value: support aggregate types
8390         * lib/ignore-value.h (ignore_value): Provide separate gcc
8391         definition.
8392         * modules/ignore-value-tests: New test module.
8393         * tests/test-ignore-value.c: New test.
8394
8395         maint.mk: improve sc_prohibit_strcmp regex
8396         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8397         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8398         definition of STRNEQ.
8399
8400         signal: work around Haiku issue with SIGBUS
8401         * lib/siglist.h: Add comment.
8402         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8403         strsignal's favoring of SIGSEGV.
8404         * tests/test-signal.c (main): Avoid test failure.
8405         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8406         Reported by Scott McCreary.
8407
8408         maint.mk: add pre-release check to ensure submodule commits are public
8409         * top/maint.mk (public-submodule-commit): New rule.
8410         (submodule-checks): New variable.
8411         (alpha beta stable): Depend on the variable.
8412
8413 2011-01-05  Pádraig Brady <P@draigBrady.com>
8414         and Jim Meyering  <meyering@redhat.com>
8415
8416         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8417         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8418         (ATTRIBUTE_DEPRECATED): Define.
8419         (_ignore_case): New function.
8420         (ignore_value): New macro, to replace the old function.
8421         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8422         * modules/ignore-value (Depends-on): Add stdint.
8423
8424 2011-01-04  Eric Blake  <eblake@redhat.com>
8425
8426         doc: regenerate INSTALL
8427         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8428         @firstparagraphindent support, now that autoconf dropped it.
8429         (INSTALL_PRELUDE): Reinstate old macro.
8430         * doc/install.texi: Resync from autoconf.
8431         * doc/INSTALL: Reflect recent autoconf update.
8432         * doc/INSTALL.ISO: Likewise.
8433         * doc/INSTALL.UTF-8: Likewise.
8434         Reported by Karl Berry.
8435
8436 2011-01-04  Bruce Korb  <address@hidden>
8437
8438         git-version-gen: avoid a sub-shell
8439         * build-aux/git-version-gen: Redirect stderr in `...` via
8440         "exec 2>...", rather than via an added sub-shell.
8441
8442 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8443
8444         git-version-gen: use (...) rather than sh -c '...'
8445         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8446         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8447
8448 2011-01-03  Jim Meyering  <meyering@redhat.com>
8449
8450         git-version-gen: convert leading TABs to spaces
8451         * build-aux/git-version-gen: Expand leading TABs.
8452
8453         git-version-gen: handle failed "git rev-list"
8454         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8455         from git and proceeding as if it had succeeded but printed no SHA1
8456         checksums, suppress the diagnostic and handle the failure.
8457         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8458
8459         git-version-gen: include command name in one more diagnostic
8460         * build-aux/git-version-gen: When the required .tarball-version file
8461         was missing or unreadable, you might see the diagnostic from "cat",
8462         but no trace of the name of the invoking script.  Now, you still see
8463         the diagnostic from cat, but also get one from "git-version-gen: ".
8464         Inspired by a patch from Bruce Korb.
8465
8466         update-copyright: adjust test to match changed code
8467         * tests/test-update-copyright.sh: Change test's expected output
8468         to match new actual output.
8469
8470 2011-01-02  Bruno Haible  <bruno@clisp.org>
8471
8472         getlogin_r: Avoid test failure on HP-UX 11.
8473         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8474         ERANGE when the second argument is zero.
8475         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8476         portability problem.
8477
8478 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8479
8480         * build-aux/update-copyright: doc Simon's changes
8481
8482 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8483
8484         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8485         environment variable.
8486
8487 2011-01-02  Bruno Haible  <bruno@clisp.org>
8488
8489         unigbrk: Avoid gcc warnings.
8490         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8491         unused variable.
8492         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8493         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8494         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8495         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8496         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8497         Change type of first argument to 'const char *'.
8498         (main): Remove unused variable.
8499         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8500         type of first argument to 'const char *'.
8501         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8502         Likewise.
8503         (main): Change type of variable 's'.
8504         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8505         to 'int'.
8506
8507 2011-01-02  Bruno Haible  <bruno@clisp.org>
8508
8509         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8510         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8511         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8512         bug.
8513         * lib/pwrite.c: Undo 2010-12-31 patch.
8514         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8515
8516 2011-01-02  Bruno Haible  <bruno@clisp.org>
8517
8518         pread: Fix test whether it works.
8519         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8520
8521 2011-01-02  Bruno Haible  <bruno@clisp.org>
8522
8523         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8524         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8525         ends in "6". Don't require a specific month name. Try also the locale
8526         names found on HP-UX 11 and Solaris 7.
8527
8528 2011-01-02  Bruno Haible  <bruno@clisp.org>
8529
8530         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8531         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8532         C linkage.
8533         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8534
8535 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8536
8537         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8538         for consistency, since the "cluster" term is not used elsewhere.
8539         * lib/unigbrk.in.h: Update name.
8540         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8541         * lib/unigbrk/u16-grapheme-next.c: Update name.
8542         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8543         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8544         * lib/unigbrk/u32-grapheme-next.c: Update name.
8545         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8546         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8547         * lib/unigbrk/u8-grapheme-next.c: Update name.
8548         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8549         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8550         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8551         Suggested by Bruno Haible.
8552
8553 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8554
8555         Remove module 'u8-grapheme-len' as too redundant with
8556         'u8-grapheme-next'.
8557         * modules/unigbrk/u8-grapheme-len: Delete file.
8558         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8559         * lib/unigbrk.in.h: Remove prototype for deleted function.
8560         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8561         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8562
8563         Remove module 'u16-grapheme-len' as too redundant with
8564         'u16-grapheme-next'.
8565         * modules/unigbrk/u16-grapheme-len: Delete file.
8566         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8567         * lib/unigbrk.in.h: Remove prototype for deleted function.
8568         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8569         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8570
8571         Remove module 'u32-grapheme-len' as too redundant with
8572         'u32-grapheme-next'.
8573         * modules/unigbrk/u32-grapheme-len: Delete file.
8574         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8575         * lib/unigbrk.in.h: Remove prototype for deleted function.
8576         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8577         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8578
8579         Suggested by Bruno Haible.
8580
8581 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8582
8583         * unigbrk.in.h: Fix typo: "ben" => "been".
8584         Reported by Bruno Haible.
8585
8586 2011-01-01  Jim Meyering  <meyering@redhat.com>
8587
8588         maint: update almost all copyright ranges to include 2011
8589         Run the new "make update-copyright" rule.
8590
8591 2011-01-01  Jim Meyering  <meyering@redhat.com>
8592
8593         maint: update-copyright: exempt doc/INSTALL*
8594         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8595         since they are generated.  Suggested by Bruno Haible.
8596
8597 2011-01-01  Jim Meyering  <meyering@redhat.com>
8598
8599         maint: refine the update-copyright rule
8600         * Makefile (update-copyright): Also exclude any file that includes
8601         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8602         code that merely generates the comment.
8603
8604 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8605
8606         New module 'u8-grapheme-len'.
8607         * modules/unigbrk/u8-grapheme-len: New file.
8608         * modules/unigbrk/u8-grapheme-len-tests: New file.
8609         * lib/unigbrk.in.h: Add prototype for new function.
8610         * lib/unigbrk/u8-grapheme-len.c: New file.
8611         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8612
8613         New module 'u16-grapheme-len'.
8614         * modules/unigbrk/u16-grapheme-len: New file.
8615         * modules/unigbrk/u16-grapheme-len-tests: New file.
8616         * lib/unigbrk.in.h: Add prototype for new function.
8617         * lib/unigbrk/u16-grapheme-len.c: New file.
8618         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8619
8620         New module 'u32-grapheme-len'.
8621         * modules/unigbrk/u32-grapheme-len: New file.
8622         * modules/unigbrk/u32-grapheme-len-tests: New file.
8623         * lib/unigbrk.in.h: Add prototype for new function.
8624         * lib/unigbrk/u32-grapheme-len.c: New file.
8625         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8626
8627         New module 'u8-grapheme-next'.
8628         * modules/unigbrk/u8-grapheme-next: New file.
8629         * modules/unigbrk/u8-grapheme-next-tests: New file.
8630         * lib/unigbrk.in.h: Add prototype for new function.
8631         * lib/unigbrk/u8-grapheme-next.c: New file.
8632         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8633
8634         New module 'u16-grapheme-next'.
8635         * modules/unigbrk/u16-grapheme-next: New file.
8636         * modules/unigbrk/u16-grapheme-next-tests: New file.
8637         * lib/unigbrk.in.h: Add prototype for new function.
8638         * lib/unigbrk/u16-grapheme-next.c: New file.
8639         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8640
8641         New module 'u32-grapheme-next'.
8642         * modules/unigbrk/u32-grapheme-next: New file.
8643         * modules/unigbrk/u32-grapheme-next-tests: New file.
8644         * lib/unigbrk.in.h: Add prototype for new function.
8645         * lib/unigbrk/u32-grapheme-next.c: New file.
8646         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8647
8648         New module 'u8-grapheme-prev'.
8649         * modules/unigbrk/u8-grapheme-prev: New file.
8650         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8651         * lib/unigbrk.in.h: Add prototype for new function.
8652         * lib/unigbrk/u8-grapheme-prev.c: New file.
8653         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8654
8655         New module 'u16-grapheme-prev'.
8656         * modules/unigbrk/u16-grapheme-prev: New file.
8657         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8658         * lib/unigbrk.in.h: Add prototype for new function.
8659         * lib/unigbrk/u16-grapheme-prev.c: New file.
8660         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8661
8662         New module 'u32-grapheme-prev'.
8663         * modules/unigbrk/u32-grapheme-prev: New file.
8664         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8665         * lib/unigbrk.in.h: Add prototype for new function.
8666         * lib/unigbrk/u32-grapheme-prev.c: New file.
8667         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8668
8669         New module 'u8-grapheme-breaks'.
8670         * modules/unigbrk/u8-grapheme-breaks: New file.
8671         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8672         * lib/unigbrk.in.h: Add prototype for new function.
8673         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8674         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8675
8676         New module 'u16-grapheme-breaks'.
8677         * modules/unigbrk/u16-grapheme-breaks: New file.
8678         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8679         * lib/unigbrk.in.h: Add prototype for new function.
8680         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8681         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8682
8683         New module 'u32-grapheme-breaks'.
8684         * modules/unigbrk/u32-grapheme-breaks: New file.
8685         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8686         * lib/unigbrk.in.h: Add prototype for new function.
8687         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8688         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8689
8690         New module 'ulc-grapheme-breaks'.
8691         * modules/unigbrk/ulc-grapheme-breaks: New file.
8692         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8693         * m4/locale-ar.m4: New file.
8694         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8695         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8696         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8697
8698 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8699
8700         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8701         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8702         modified how this file was generated before I initially submitted
8703         the module, but failed to regenerate it.  This meant that several
8704         of the level2 entries were wrong.
8705         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8706         Remove the division-by-2 that is folded into the table now that
8707         gbrkprop.h has been regenerated properly.  Now -1 entries are
8708         handled correctly.
8709
8710         New module 'unigbrk/uc-gbrk-prop-tests'.
8711         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8712         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8713         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8714         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8715
8716 2011-01-01  Bruno Haible  <bruno@clisp.org>
8717
8718         Avoid use of hexadecimal escapes.
8719         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8720         instead of hexadecimal escapes.
8721
8722 2011-01-01  Jim Meyering  <meyering@redhat.com>
8723
8724         maint: new rule to update copyright year ranges
8725         * Makefile (update-copyright): New rule.
8726
8727         maint: indent with TABs in Makefile
8728         * Makefile: Expand leading sequences of spaces to TABs
8729
8730         version-etc: update the copyright year it reports
8731         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8732
8733 2010-12-31  Bruno Haible  <bruno@clisp.org>
8734
8735         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8736         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8737         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8738         zero.
8739
8740 2010-12-31  Bruno Haible  <bruno@clisp.org>
8741
8742         pwrite: Work around HP-UX 11.11 bug.
8743         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8744         works and set REPLACE_PWRITE if not.
8745         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8746         function.
8747         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8748
8749 2010-12-31  Bruno Haible  <bruno@clisp.org>
8750
8751         pread: Work around HP-UX 11 bugs.
8752         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8753         and set REPLACE_PREAD if not.
8754         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8755
8756 2010-12-31  Eric Blake  <eblake@redhat.com>
8757
8758         nl_langinfo: fix YESEXPR on Irix 6.5
8759         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8760         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8761         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8762         it.
8763
8764 2010-12-31  Bruno Haible  <bruno@clisp.org>
8765
8766         iconv: Document HP-UX 11 bug.
8767         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8768
8769 2010-12-31  Bruno Haible  <bruno@clisp.org>
8770
8771         ldexpl: Fix link error on HP-UX 11.
8772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8773         LDEXPL_LIBM, using $ISNANL_LIBM.
8774
8775 2010-12-31  Eric Blake  <eblake@redhat.com>
8776
8777         ftello: avoid compilation failure with SunStudio c89
8778         * lib/ftello.c (ftello): Use lseek, not llseek.
8779
8780         tests: avoid failing coreutils tests on cygwin
8781         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8782         (create_exe_shims_): Return 0 when skipping.
8783
8784 2010-12-31  Bruno Haible  <bruno@clisp.org>
8785
8786         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8787         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8788
8789 2010-12-31  Bruno Haible  <bruno@clisp.org>
8790
8791         waitpid: Fix link error in C++ mode.
8792         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8793
8794 2010-12-31  Bruno Haible  <bruno@clisp.org>
8795
8796         isnan: Use GCC built-ins when possible.
8797         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8798         __builtin_isnan.
8799         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8800         (isnan): Define using GCC built-ins for GCC >= 4.0.
8801
8802 2010-12-31  Bruno Haible  <bruno@clisp.org>
8803
8804         isnand: Fix mistake.
8805         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8806         __builtin_isnand.
8807
8808 2010-12-31  Bruno Haible  <bruno@clisp.org>
8809
8810         open: Avoid C++ error on HP-UX 11.
8811         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8812
8813 2010-12-31  Bruno Haible  <bruno@clisp.org>
8814
8815         time_r: Add missing declarations on HP-UX 11.
8816         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8817         instead of HAVE_LOCALTIME_R.
8818         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8819         HAVE_LOCALTIME_R always.
8820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8821         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8822         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8823         HAVE_LOCALTIME_R.
8824         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8825         * doc/posix-functions/localtime_r.texi: Likewise.
8826
8827 2010-12-29  Eric Blake  <eblake@redhat.com>
8828
8829         mountlist: tweak previous commit
8830         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8831         Reported by Paul Eggert.
8832
8833         mountlist: fix local drive detection on cygwin
8834         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8835         that works for cygwin.
8836
8837 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8838
8839         ftoastr, snprintf: ftoastr + snprintf module
8840         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8841         since the snprintf module now should be good enough here.
8842         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8843         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8844         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8845         GNULIB_SNPRINTF only for the test directory, and the latter
8846         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8847         seems to suffice by itself.
8848
8849 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8850
8851         alloca: one step towards thread-safety
8852         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8853         need for a static variable.  All callers changed.  This does not
8854         make the alloca replacement thread-safe, but it's one step.
8855
8856         tests: minor indenting change
8857         * tests/init.sh: Sync from coreutils housekeeping patch
8858         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8859         to keep lines within 80 columns.
8860
8861 2010-12-28  Jim Meyering  <meyering@redhat.com>
8862
8863         regex: don't infloop on persistent failing calloc
8864         * lib/regexec.c (build_trtable): Return failure indication upon
8865         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8866         In glibc, this was fixed for version 2.13:
8867         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8868
8869 2010-12-28  Bruno Haible  <bruno@clisp.org>
8870             Paul Eggert <eggert@cs.ucla.edu>
8871
8872         linkat: Make implementation robust against system behaviour variations.
8873         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8874         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8875         way, and to -2 if it needs a generic runtime test.
8876         * lib/linkat.c (solaris_optimized_link_immediate,
8877         solaris_optimized_link_follow): New functions.
8878         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8879         (check_same_link): Use it.
8880
8881 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8882
8883         New module 'unigbrk/base'.
8884         * modules/unigbrk/base: New file.
8885         * lib/unigbrk.in.h: New file.
8886
8887         New module 'unigbrk/uc-gbrk-prop'.
8888         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8889         * modules/unigbrk/uc-gbrk-prop: New file.
8890         * lib/unigbrk/gbrkprop.h: New file.
8891         * lib/unigbrk/uc-gbrk-prop.c: New file.
8892
8893         New module 'unigbrk/uc-is-grapheme-break'.
8894         * modules/unigbrk/uc-is-grapheme-break: New file.
8895         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8896         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8897         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8898         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8899         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8900
8901         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8902
8903 2010-12-27  Bruno Haible  <bruno@clisp.org>
8904
8905         linkat test: Avoid failure on Solaris 11 2010-11.
8906         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8907
8908 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         utimens: work around glibc rounding bug on more platforms
8911         * lib/utimens.c (fdutimens): Work around rounding bug even if
8912         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8914
8915 2010-12-27  Bruno Haible  <bruno@clisp.org>
8916
8917         select tests: Improve comments.
8918         * tests/test-select.c (do_select): Add comments.
8919
8920 2010-12-27  Bruno Haible  <bruno@clisp.org>
8921
8922         select tests: Safer way of handling timeout.
8923         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8924         at every invocation.
8925
8926 2010-12-27  Bruno Haible  <bruno@clisp.org>
8927
8928         select tests: Use 'bool' where appropriate.
8929         * tests/test-select.c (connect_to_socket): Change argument type to
8930         'bool'.
8931
8932 2010-12-27  Bruno Haible  <bruno@clisp.org>
8933
8934         select tests: Use existing modules.
8935         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8936         (configure.ac): Don't test for unistd.h.
8937         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8938         declared in <unistd.h>.
8939
8940 2010-12-27  Bruno Haible  <bruno@clisp.org>
8941
8942         mbrtowc: Work around a Solaris 7 bug.
8943         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8944         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8945         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8946         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8947         MBRTOWC_NULL_ARG1_BUG.
8948         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8949         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8950         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8951         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8952
8953 2010-12-27  Jim Meyering  <meyering@redhat.com>
8954
8955         read-file.c: tweak syntax
8956         * lib/read-file.c (fread_file): Remove space after "*" in function
8957         definitions.
8958
8959 2010-12-27  Bruno Haible  <bruno@clisp.org>
8960
8961         times test: Avoid gcc warnings on OSF/1.
8962         * tests/test-times.c (main): Cast printf arguments from clock_t to
8963         'long int'.
8964
8965 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8966
8967         utimens: work around glibc rounding bug on older Linux kernels
8968         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8969         on Linux with a glibc whose utimes might not work, then work
8970         around a longstanding glibc bug involving rounding rather than
8971         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8973
8974 2010-12-26  Bruno Haible  <bruno@clisp.org>
8975
8976         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8977         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8978         _GL_CXXALIAS_SYS.
8979         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8980
8981 2010-12-26  Bruno Haible  <bruno@clisp.org>
8982
8983         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8984         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8985         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8986         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8987         looking for the declaration.
8988         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8989         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8990         problem.
8991         * doc/posix-functions/inet_pton.texi: Likewise.
8992
8993 2010-12-26  Bruno Haible  <bruno@clisp.org>
8994
8995         arpa_inet: Use the common idioms with C++ support.
8996         * lib/arpa_inet.in.h: Include c++defs.h.
8997         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8998         support.
8999         * modules/arpa_inet (Depends-on): Add c++defs.
9000         (Makefile.am): Substitute the contents of c++defs.h.
9001         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9002         * modules/arpa_inet-c++-tests: New file.
9003         * tests/test-arpa_inet-c++.cc: New file.
9004
9005 2010-12-25  Bruno Haible  <bruno@clisp.org>
9006
9007         Fix more C++ link errors on Solaris 8.
9008         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9009         $(LIB_EACCESS).
9010         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9011         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9012         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9013         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9014         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9015
9016 2010-12-25  Bruno Haible  <bruno@clisp.org>
9017
9018         printf-posix: Fix link error when a non-GCC compiler is used.
9019         * lib/stdio.in.h (printf): When not using GCC, override printf
9020         correctly.
9021         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9022
9023 2010-12-25  Bruno Haible  <bruno@clisp.org>
9024
9025         strerror_r-posix: Update doc.
9026         * doc/posix-functions/strerror_r.texi: Update doc about the return
9027         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9028
9029 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9030
9031         utimens: simplify the logic of the previous change
9032         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9033         This should not affect whether the test succeeds or fails.
9034
9035         utimens: configure better on hosts with NFS clock skew
9036         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9037         uses the clock of the local host.  It might use the clock of the
9038         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9040
9041 2010-12-25  Bruno Haible  <bruno@clisp.org>
9042
9043         ptsname test: Avoid failure on Solaris.
9044         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9045         open a pseudo-terminal; don't use BSD-style ptys.
9046         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9047
9048 2010-12-25  Bruno Haible  <bruno@clisp.org>
9049
9050         ptsname: Avoid ERANGE failure on some systems.
9051         * lib/ptsname.c (buffer): Increase size.
9052
9053 2010-12-25  Bruno Haible  <bruno@clisp.org>
9054
9055         rename, renameat: Avoid test failures at NFS mounted locations.
9056         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9057         so that subsequent mkdir calls succeed.
9058
9059 2010-12-25  Bruno Haible  <bruno@clisp.org>
9060
9061         iswblank: Fix C++ link error on Solaris 8.
9062         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9063         _GL_FUNCDECL_SYS.
9064
9065 2010-12-25  Bruno Haible  <bruno@clisp.org>
9066
9067         unistd: Fix C++ link error on Solaris 8.
9068         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9069
9070 2010-12-25  Bruno Haible  <bruno@clisp.org>
9071
9072         readlink doc: Mention an old glibc bug.
9073         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9074
9075 2010-12-25  Bruno Haible  <bruno@clisp.org>
9076
9077         fcntl-h: Fix for use of C++ on glibc systems.
9078         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9079         also on glibc systems in C++ mode.
9080         Reported by Gary V. Vaughan <gary@gnu.org>.
9081
9082 2010-12-25  Bruno Haible  <bruno@clisp.org>
9083
9084         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9085         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9086
9087 2010-12-25  Bruno Haible  <bruno@clisp.org>
9088
9089         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9090         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9091         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9092         test whether truncl works according to ISO C 99 with IEC 60559.
9093         * m4/truncl-ieee.m4: New file.
9094         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9095         m4/signbit.m4.
9096         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9097
9098 2010-12-25  Bruno Haible  <bruno@clisp.org>
9099
9100         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9101         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9102         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9103         test whether ceill works according to ISO C 99 with IEC 60559.
9104         * m4/ceill-ieee.m4: New file.
9105         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9106         m4/signbit.m4.
9107         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9108
9109 2010-12-25  Bruno Haible  <bruno@clisp.org>
9110
9111         Ensure all prerequisites of <wchar.h> are included.
9112         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9113         before <wchar.h>.
9114         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9115         gl_MBRLEN_NUL_RETVAL): Likewise.
9116         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9117         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9118         AC_FUNC_MBRTOWC): Likewise.
9119         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9120         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9122         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9123         Likewise.
9124         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9125         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9126         (gl_WCHAR_H): Improve comments.
9127         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9128
9129 2010-12-25  Bruno Haible  <bruno@clisp.org>
9130
9131         strtok_r: Fix C syntax error in autoconf macro.
9132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9133         characters in test program.
9134
9135 2010-12-24  Bruno Haible  <bruno@clisp.org>
9136
9137         ceil, trunc, round: Fix gcc warnings.
9138         * lib/ceil.c (MIN): Undefine before redefining.
9139         * lib/trunc.c (MIN): Likewise.
9140         * lib/round.c (MIN): Likewise.
9141         Include <math.h> first.
9142
9143 2010-12-24  Bruno Haible  <bruno@clisp.org>
9144
9145         select tests: Avoid failures on OSF/1 5.1.
9146         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9147         failure of closing the last socket; it may fail with ECONNRESET.
9148
9149 2010-12-24  Eric Blake  <eblake@redhat.com>
9150
9151         stdint: avoid HP-UX 10.20 preprocessor bug
9152         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9153         than #if.
9154         * tests/test-floor2.c (main): Likewise.
9155         Reported by Peter O'Gorman.
9156
9157         pipe: make obsoletion transition easier
9158         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9159         * modules/pipe (Files): Include revived file.
9160         (Include): Drop reference, to mirror getdate's behavior.
9161
9162 2010-12-24  Bruno Haible  <bruno@clisp.org>
9163
9164         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9165         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9166         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9168
9169 2010-12-24  Bruno Haible  <bruno@clisp.org>
9170
9171         gethostname: Ensure declaration on NonStop Kernel.
9172         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9173         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9174
9175 2010-12-24  Bruno Haible  <bruno@clisp.org>
9176
9177         sys_select: Ensure all necessary types on NonStop Kernel.
9178         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9179         include <sys/time.h>.
9180         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9181         NonStop Kernel.
9182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9183
9184 2010-12-24  Bruno Haible  <bruno@clisp.org>
9185
9186         sys_select: Remove unneeded include.
9187         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9188         have <sys/select.h>.
9189
9190 2010-12-24  Bruno Haible  <bruno@clisp.org>
9191
9192         gethostname: Provide a fallback for HOST_NAME_MAX.
9193         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9194         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9195         instead.
9196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9197
9198 2010-12-24  Bruno Haible  <bruno@clisp.org>
9199
9200         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9201         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9202         (SA_RESTART): Likewise.
9203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9204
9205 2010-12-24  Bruno Haible  <bruno@clisp.org>
9206
9207         signal: Define NSIG.
9208         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9209         * tests/test-signal.c (nsig): New variable.
9210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9211
9212 2010-12-24  Bruno Haible  <bruno@clisp.org>
9213
9214         rename, renameat: Avoid test failures on OSF/1 5.1.
9215         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9216         alternative error codes.
9217         * tests/test-renameat.c (main): Likewise.
9218
9219 2010-12-24  Bruno Haible  <bruno@clisp.org>
9220
9221         *printf: Detect large precisions bug on Solaris 10/SPARC.
9222         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9223         by Paul Eggert.
9224         * tests/test-snprintf-posix.h (test_function): Add this test code here
9225         too.
9226         * tests/test-sprintf-posix.h (test_function): Likewise.
9227         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9228         * tests/test-vasprintf-posix.c (test_function): Likewise.
9229         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9230         around by gnulib.
9231         * doc/posix-functions/printf.texi: Likewise.
9232         * doc/posix-functions/snprintf.texi: Likewise.
9233         * doc/posix-functions/sprintf.texi: Likewise.
9234         * doc/posix-functions/vfprintf.texi: Likewise.
9235         * doc/posix-functions/vprintf.texi: Likewise.
9236         * doc/posix-functions/vsnprintf.texi: Likewise.
9237         * doc/posix-functions/vsprintf.texi: Likewise.
9238         * doc/posix-functions/dprintf.texi: Undo last commit.
9239         * doc/posix-functions/vdprintf.texi: Likewise.
9240
9241 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9242
9243         tests: port test-fdutimensat.c to Solaris 8
9244         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9245         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9246         On Solaris 8, it fails with errno == ENOSYS, because there is no
9247         futimens (so it can't use the fd), and there is no lutimens (so it
9248         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9249
9250         vsnprintf: make more consistent with snprintf; doc fixes
9251
9252         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9253         the byte count return problem was promoted from the snprintf-posix
9254         to the snprintf module.
9255         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9256         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9257         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9258         * tests/test-snprintf.c (main): Check the byte count returned.
9259         * tests/test-vsnprintf.c (main): Likewise.
9260
9261 2010-12-23  Eric Blake  <eblake@redhat.com>
9262
9263         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9264         * modules/sigpipe (License): Relax license.
9265
9266 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9267
9268         doc: document Solaris printf bug with large float precisions
9269         * doc/posix-functions/dprintf.texi (dprintf):
9270         * doc/posix-functions/fprintf.texi (fprintf):
9271         * doc/posix-functions/printf.texi (printf):
9272         * doc/posix-functions/snprintf.texi (snprintf):
9273         * doc/posix-functions/sprintf.texi (sprintf):
9274         * doc/posix-functions/vdprintf.texi (vdprintf):
9275         * doc/posix-functions/vfprintf.texi (vfprintf):
9276         * doc/posix-functions/vprintf.texi (vprintf):
9277         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9278         * doc/posix-functions/vsprintf.texi (vsprintf):
9279         Mention that these functions mishandle large floating point
9280         precisions on Solaris 10.  The same bug is also present in Solaris
9281         8, and I assume earlier.  This causes "cd gnulib-tests; make
9282         check" to fail on Solaris 8 (and I assume, later) when building
9283         the latest coreutils, in test-vasprintf-posix's call to
9284         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9285         the wide flavors (e.g., wprintf) so this patch just updates the
9286         documentation for the narrow ones.
9287
9288         test-posixtm.c: add two tests
9289         * tests/test-posixtm.c: Add two tests, to highlight the
9290         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9291         around this bug; this is merely to document it.
9292
9293 2010-12-22  Bruno Haible  <bruno@clisp.org>
9294
9295         getlogin_r: Work around portability problem on OSF/1.
9296         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9297         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9298         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9299         test for a truncated result.
9300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9301         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9302         * modules/getlogin_r (Depends-on): Add memchr.
9303         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9304
9305 2010-12-22  Bruno Haible  <bruno@clisp.org>
9306
9307         ptsname: Avoid test failure on OSF/1 5.1.
9308         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9309         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9310         (same_slave): New function.
9311         (main): Use it to compare ptsname's result with the expected file name.
9312
9313 2010-12-22  Bruno Haible  <bruno@clisp.org>
9314
9315         Port extended stdio modules to HP NonStop Kernel.
9316         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9317         macros.
9318         * lib/fbufmode.c: Update comments.
9319         * lib/fflush.c: Likewise.
9320         * lib/fpurge.c: Likewise.
9321         * lib/freadable.c: Likewise.
9322         * lib/freadahead.c: Likewise.
9323         * lib/freading.c: Likewise.
9324         * lib/freadptr.c: Likewise.
9325         * lib/freadseek.c: Likewise.
9326         * lib/fseeko.c: Likewise.
9327         * lib/fseterr.c: Likewise.
9328         * lib/fwritable.c: Likewise.
9329         * lib/fwriting.c: Likewise.
9330         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9331
9332 2010-12-22  Bruno Haible  <bruno@clisp.org>
9333
9334         ttyname_r: Work around bug on OSF/1 5.1.
9335         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9336         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9337         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9338         present.
9339         * lib/ttyname_r.c (ttyname_r): Update comments.
9340
9341 2010-12-22  Bruno Haible  <bruno@clisp.org>
9342
9343         round: Implement result sign according to IEEE 754.
9344         * lib/round.c (MIN, MINUS_ZERO): New macros.
9345         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9346         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9347         * tests/test-round-ieee.c (main): Likewise.
9348         * tests/test-roundl-ieee.c (main): Likewise.
9349
9350         trunc: Implement result sign according to IEEE 754.
9351         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9352         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9353         * tests/test-trunc2.c: Include minus-zero.h.
9354         (MINUS_ZERO): New macro.
9355         (trunc_reference): Keep in sync with lib/trunc.c.
9356         * tests/test-truncf2.c: Include minus-zero.h.
9357         (MINUS_ZERO): New macro.
9358         (truncf_reference): Keep in sync with lib/trunc.c.
9359         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9360         * tests/test-trunc-ieee.c (main): Likewise.
9361         * tests/test-truncl-ieee.c (main): Likewise.
9362
9363         ceil: Implement result sign according to IEEE 754.
9364         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9365         (FUNC): Return -0.0 for -1 < x < 0.
9366         * tests/test-ceil2.c: Include minus-zero.h.
9367         (MINUS_ZERO): New macro.
9368         (ceil_reference): Keep in sync with lib/ceil.c.
9369         * tests/test-ceilf2.c: Include minus-zero.h.
9370         (MINUS_ZERO): New macro.
9371         (ceilf_reference): Keep in sync with lib/ceil.c.
9372         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9373         * tests/test-ceil-ieee.c (main): Likewise.
9374         * tests/test-ceill-ieee.c (main): Likewise.
9375
9376         floor: Implement result sign according to IEEE 754.
9377         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9378         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9379         * tests/test-floorf2.c (floorf_reference): Likewise.
9380         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9381         * tests/test-floor-ieee.c (main): Likewise.
9382         * tests/test-floorl-ieee.c (main): Likewise.
9383
9384 2010-12-22  Bruno Haible  <bruno@clisp.org>
9385
9386         getaddrinfo: Update doc.
9387         * doc/posix-functions/gai_strerror.texi: Return type is also different
9388         on AIX and HP-UX.
9389
9390 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         getaddrinfo, inet_ntop: Update doc for Solaris.
9393         * doc/posix-functions/gai_strerror.texi: Return type is also an
9394         issue on Solaris 9 and earlier.
9395         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9396         on Solaris 10 and earlier.
9397
9398 2010-12-21  Bruno Haible  <bruno@clisp.org>
9399
9400         New module 'roundl-ieee'.
9401         * modules/roundl-ieee: New file.
9402         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9403         test whether roundl works according to ISO C 99 with IEC 60559.
9404         * m4/roundl-ieee.m4: New file.
9405         * modules/roundl-ieee-tests: New file.
9406         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9407         * tests/test-roundl.c (main): Remove signbit tests.
9408         * modules/roundl-tests (Depends-on): Remove signbit.
9409         * doc/posix-functions/roundl.texi: Mention the new module.
9410
9411 2010-12-21  Bruno Haible  <bruno@clisp.org>
9412
9413         New module 'truncl-ieee'.
9414         * modules/truncl-ieee: New file.
9415         * modules/truncl-ieee-tests: New file.
9416         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9417         * tests/test-truncl.c (main): Remove signbit tests.
9418         * modules/truncl-tests (Depends-on): Remove signbit.
9419         * doc/posix-functions/truncl.texi: Mention the new module.
9420
9421 2010-12-21  Bruno Haible  <bruno@clisp.org>
9422
9423         New module 'ceill-ieee'.
9424         * modules/ceill-ieee: New file.
9425         * modules/ceill-ieee-tests: New file.
9426         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9427         * tests/test-ceill.c (main): Remove signbit tests.
9428         * modules/ceill-tests (Depends-on): Remove signbit.
9429         * doc/posix-functions/ceill.texi: Mention the new module.
9430
9431 2010-12-21  Bruno Haible  <bruno@clisp.org>
9432
9433         New module 'floorl-ieee'.
9434         * modules/floorl-ieee: New file.
9435         * modules/floorl-ieee-tests: New file.
9436         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9437         * tests/test-floorl.c (main): Remove signbit tests.
9438         * modules/floorl-tests (Depends-on): Remove signbit.
9439         * doc/posix-functions/floorl.texi: Mention the new module.
9440
9441 2010-12-21  Bruno Haible  <bruno@clisp.org>
9442
9443         New module 'round-ieee'.
9444         * modules/round-ieee: New file.
9445         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9446         whether round works according to ISO C 99 with IEC 60559.
9447         * m4/round-ieee.m4: New file.
9448         * modules/round-ieee-tests: New file.
9449         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9450         * tests/test-round1.c (main): Remove signbit tests.
9451         * modules/round-tests (Depends-on): Remove 'signbit'.
9452         * doc/posix-functions/round.texi: Mention the new module.
9453
9454 2010-12-21  Bruno Haible  <bruno@clisp.org>
9455
9456         New module 'trunc-ieee'.
9457         * modules/trunc-ieee: New file.
9458         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9459         whether trunc works according to ISO C 99 with IEC 60559.
9460         * m4/trunc-ieee.m4: New file.
9461         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9463         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9464         * modules/trunc-ieee-tests: New file.
9465         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9466         * tests/test-trunc1.c (main): Remove signbit tests.
9467         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9468         * doc/posix-functions/trunc.texi: Mention the new module.
9469
9470 2010-12-21  Bruno Haible  <bruno@clisp.org>
9471
9472         New module 'ceil-ieee'.
9473         * modules/ceil-ieee: New file.
9474         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9475         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9476         ISO C 99 with IEC 60559.
9477         * m4/ceil-ieee.m4: New file.
9478         * modules/ceil (Files): Add lib/ceil.c.
9479         (Depends-on): Add 'float'.
9480         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9481         * lib/math.in.h (ceil): New declaration.
9482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9483         REPLACE_CEIL.
9484         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9485         * modules/ceil-ieee-tests: New file.
9486         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9487         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9488         * doc/posix-functions/ceil.texi: Mention the new module.
9489
9490 2010-12-21  Bruno Haible  <bruno@clisp.org>
9491
9492         New module 'floor-ieee'.
9493         * modules/floor-ieee: New file.
9494         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9495         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9496         ISO C 99 with IEC 60559.
9497         * m4/floor-ieee.m4: New file.
9498         * modules/floor (Files): Add lib/floor.c.
9499         (Depends-on): Add 'float'.
9500         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9501         * lib/math.in.h (floor): New declaration.
9502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9503         REPLACE_FLOOR.
9504         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9505         * modules/floor-ieee-tests: New file.
9506         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9507         * tests/test-math-c++.cc: Check the signature of 'floor'.
9508         * doc/posix-functions/floor.texi: Mention the new module.
9509
9510 2010-12-21  Bruno Haible  <bruno@clisp.org>
9511
9512         New module 'roundf-ieee'.
9513         * modules/roundf-ieee: New file.
9514         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9515         test whether roundf works according to ISO C 99 with IEC 60559.
9516         * m4/roundf-ieee.m4: New file.
9517         * modules/roundf-ieee-tests: New file.
9518         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9519         * tests/test-roundf1.c (main): Remove signbit tests.
9520         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9521         * doc/posix-functions/roundf.texi: Mention the new module.
9522
9523 2010-12-21  Bruno Haible  <bruno@clisp.org>
9524
9525         New module 'truncf-ieee'.
9526         * modules/truncf-ieee: New file.
9527         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9528         test whether truncf works according to ISO C 99 with IEC 60559.
9529         * m4/truncf-ieee.m4: New file.
9530         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9532         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9533         * modules/truncf-ieee-tests: New file.
9534         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9535         * tests/test-truncf1.c (main): Remove signbit tests.
9536         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9537         * doc/posix-functions/truncf.texi: Mention the new module.
9538
9539 2010-12-21  Bruno Haible  <bruno@clisp.org>
9540
9541         New module 'ceilf-ieee'.
9542         * modules/ceilf-ieee: New file.
9543         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9544         test whether ceilf works according to ISO C 99 with IEC 60559.
9545         * m4/ceilf-ieee.m4: New file.
9546         * modules/ceilf-ieee-tests: New file.
9547         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9548         * tests/test-ceilf1.c (main): Remove signbit tests.
9549         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9550         * doc/posix-functions/ceilf.texi: Mention the new module.
9551
9552 2010-12-21  Bruno Haible  <bruno@clisp.org>
9553
9554         New module 'floorf-ieee'.
9555         * modules/floorf-ieee: New file.
9556         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9557         test whether floorf works according to ISO C 99 with IEC 60559.
9558         * m4/floorf-ieee.m4: New file.
9559         * modules/floorf-ieee-tests: New file.
9560         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9561         * tests/test-floorf1.c (main): Remove signbit tests.
9562         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9563         * doc/posix-functions/floorf.texi: Mention the new module.
9564
9565 2010-12-21  Bruno Haible  <bruno@clisp.org>
9566
9567         Support for minus zero in autoconf macros.
9568         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9569         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9570         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9571         * tests/minus-zero.h: Update comments.
9572
9573 2010-12-21  Bruno Haible  <bruno@clisp.org>
9574
9575         Tests for module 'ceil'.
9576         * modules/ceil-tests: New file.
9577         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9578         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9579
9580 2010-12-21  Bruno Haible  <bruno@clisp.org>
9581
9582         Tests for module 'floor'.
9583         * modules/floor-tests: New file.
9584         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9585         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9586
9587 2010-12-21  Bruno Haible  <bruno@clisp.org>
9588
9589         math: Fix indentation.
9590         * lib/math.in.h (floorf): Fix indentation.
9591
9592 2010-12-21  Bruno Haible  <bruno@clisp.org>
9593
9594         Fix cross-compilation guesses on Solaris.
9595         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9596         not match "solaris2.10".
9597         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9598         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9599         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9600
9601 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9602
9603         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9604         This fixes a problem observed with the latest coreutils snapshot
9605         that caused a test to fail on Solaris 8.  src/csplit.c's call
9606         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9607         earlier, instead of returning the number of bytes that would have
9608         been generated; this causes csplit to incorrectly report memory
9609         exhaustion.
9610         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9611         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9612         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9613         comments to match.
9614         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9615         Fix typo in matching older versions of Solaris: "solaris2.10"
9616         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9617         only for guessing while cross-compiling.
9618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9619
9620 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         ftoastr: fix comment again
9623         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9625         Also, simplify example a bit by using flags = 0.
9626
9627 2010-12-20  Bruno Haible  <bruno@clisp.org>
9628
9629         round*, trunc*: Update documentation regarding glibc.
9630         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9631         * doc/posix-functions/round.texi: Likewise.
9632         * doc/posix-functions/roundl.texi: Likewise.
9633         * doc/posix-functions/truncf.texi: Likewise.
9634         * doc/posix-functions/trunc.texi: Likewise.
9635         * doc/posix-functions/truncl.texi: Likewise.
9636
9637 2010-12-20  Bruno Haible  <bruno@clisp.org>
9638
9639         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9640         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9641         * doc/posix-functions/round.texi: Likewise.
9642         * doc/posix-functions/roundl.texi: Likewise.
9643
9644 2010-12-20  Bruno Haible  <bruno@clisp.org>
9645
9646         ttyname_r: Add missing declaration on HP-UX 11.
9647         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9648         HAVE_TTYNAME_R.
9649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9650         declared. Set HAVE_TTYNAME_R always.
9651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9652         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9653         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9654         HAVE_TTYNAME_R.
9655         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9656
9657 2010-12-20  Bruno Haible  <bruno@clisp.org>
9658
9659         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9660         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9661         * doc/posix-functions/getlogin_r.texi: Likewise.
9662         * tests/test-getlogin.c: Include <errno.h>.
9663         (main): Avoid test failure on HP-UX 11.11.
9664         * tests/test-getlogin_r.c (main): Likewise.
9665
9666 2010-12-20  Bruno Haible  <bruno@clisp.org>
9667
9668         getlogin_r: Add missing declaration on HP-UX 11.
9669         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9670         declared also when it exists as a function.
9671         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9672
9673 2010-12-20  Bruno Haible  <bruno@clisp.org>
9674
9675         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9676         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9677         through wcrtomb.
9678
9679 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9680
9681         ftoastr: fix comment
9682         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9684
9685 2010-12-19  Bruno Haible  <bruno@clisp.org>
9686
9687         isnan: Ensure it is a macro.
9688         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9689         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9690         Solaris.
9691
9692 2010-12-19  Bruno Haible  <bruno@clisp.org>
9693
9694         ldexpl test: Fix link error on OSF/1 5.1.
9695         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9696
9697 2010-12-19  Bruno Haible  <bruno@clisp.org>
9698
9699         wctype: Make it work in C++ mode on OSF/1 5.1.
9700         * lib/wctype.in.h (iswblank): Declare but not define here.
9701         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9702         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9703         * modules/wctype (Files): Add lib/iswblank.c.
9704
9705 2010-12-19  Bruno Haible  <bruno@clisp.org>
9706
9707         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9708         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9709         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9710
9711 2010-12-19  Bruno Haible  <bruno@clisp.org>
9712
9713         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9715         _POSIX_PII_SOCKET.
9716         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9717         * doc/posix-functions/recvfrom.texi: Likewise.
9718         * doc/posix-functions/send.texi: Likewise.
9719         * doc/posix-functions/sendto.texi: Likewise.
9720
9721 2010-12-19  Bruno Haible  <bruno@clisp.org>
9722
9723         tcgetsid: Add missing declaration on OSF/1 5.1.
9724         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9725         HAVE_TCGETSID.
9726         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9727         Don't set HAVE_TCGETSID.
9728         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9729         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9730         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9731         HAVE_TCGETSID.
9732         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9733
9734 2010-12-19  Bruno Haible  <bruno@clisp.org>
9735
9736         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9737         * lib/stdio.in.h: During the include_next statement, let recursive
9738         includes of this file include only the system header file.
9739
9740 2010-12-19  Bruno Haible  <bruno@clisp.org>
9741
9742         iconv_open: Fix regression from 2010-12-04.
9743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9744         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9745
9746 2010-12-19  Bruno Haible  <bruno@clisp.org>
9747
9748         stdbool test: Avoid a gcc warning.
9749         * tests/test-stdbool.c (main): Fail if e1 is false.
9750         Reported by Jim Meyering.
9751
9752 2010-12-19  Jim Meyering  <meyering@redhat.com>
9753
9754         setenv: restore to working order
9755         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9756         mistakenly removed.
9757         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9758         HAVE_SETENV.
9759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9760         HAVE_SETENV.
9761
9762 2010-12-19  Bruno Haible  <bruno@clisp.org>
9763
9764         Document some different function declarations on OSF/1 5.1.
9765         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9766         * doc/posix-functions/inet_ntop.texi: Likewise.
9767         * doc/posix-functions/gethostname.texi: Likewise.
9768         * lib/unistd.in.h (gethostname): Update comment.
9769
9770 2010-12-19  Bruno Haible  <bruno@clisp.org>
9771
9772         doc: Mention vasprintf-posix module.
9773         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9774         the 'vasprintf-posix' module.
9775         * doc/glibc-functions/vasprintf.texi: Likewise.
9776
9777 2010-12-19  Bruno Haible  <bruno@clisp.org>
9778
9779         unsetenv: Add missing declaration on OSF/1 5.1.
9780         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9781         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9782         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9784         not HAVE_UNSETENV.
9785         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9786         HAVE_UNSETENV.
9787         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9788
9789 2010-12-19  Bruno Haible  <bruno@clisp.org>
9790
9791         setenv: Add missing declaration on OSF/1 5.1.
9792         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9793         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9794         declared. Don't set HAVE_SETENV.
9795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9796         not HAVE_SETENV.
9797         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9798         HAVE_SETENV.
9799         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9800
9801 2010-12-19  Bruno Haible  <bruno@clisp.org>
9802
9803         nl_langinfo tests: Avoid gcc warning.
9804         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9805
9806 2010-12-19  Bruno Haible  <bruno@clisp.org>
9807
9808         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9809         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9810         _GL_CXXALIAS_SYS.
9811
9812 2010-12-19  Bruno Haible  <bruno@clisp.org>
9813
9814         stdbool: Relax test.
9815         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9816         address to 'bool' work in static initializer, for compilers other than
9817         GCC.
9818
9819 2010-12-19  Bruno Haible  <bruno@clisp.org>
9820
9821         ftello: Add missing declaration on OSF/1 5.1.
9822         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9823         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9825         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9826         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9827
9828 2010-12-19  Bruno Haible  <bruno@clisp.org>
9829
9830         fseeko: Add missing declaration on OSF/1 5.1.
9831         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9832         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9834         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9835         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9836
9837 2010-12-19  Bruno Haible  <bruno@clisp.org>
9838
9839         fchdir: Add missing declaration on OSF/1 5.1.
9840         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9843         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9844         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9845
9846 2010-12-19  Bruno Haible  <bruno@clisp.org>
9847
9848         relocatable-prog-wrapper: Separate from relocatable-prog.
9849         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9850         uninstall-relocwrapper rule here.
9851         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9852         Reported by Ian Beckwith <ianb@erislabs.net>.
9853
9854 2010-12-19  Bruno Haible  <bruno@clisp.org>
9855
9856         unistr/u8-mbsnlen: Add missing dependency.
9857         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9858         Reported by Ian Beckwith <ianb@erislabs.net>.
9859
9860 2010-12-19  Bruno Haible  <bruno@clisp.org>
9861
9862         iconv: Make it possible again to use this module without 'iconv-h'.
9863         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9864         if it is not defined.
9865         Reported by Ian Beckwith <ianb@erislabs.net>.
9866
9867 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         acl: port to Solaris 8 when copying from tmpfs to ufs
9870         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9871         error number.  Problem observed on Solaris 8 with latest
9872         coreutils, with "mv A B", where A is on a tmpfs file system and B
9873         is on a ufs file system.  This caused coreutils' mv/part-symlink
9874         test to fail.
9875
9876         tests: set fail=0 at start
9877         * tests/init.sh (setup_): Move fail=0 initialization here ...
9878         (mktempd_): ... from here, so that tests can rely on fail being
9879         set to 0 initially.  This fixes a problem in coreutils; see:
9880         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9881
9882 2010-12-18  Bruno Haible  <bruno@clisp.org>
9883
9884         memmem-simple: Stylistic changes.
9885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9886         Fix preprocessor directive indentation.
9887
9888 2010-12-15  Pádraig Brady <P@draigBrady.com>
9889
9890         memmem, memmem-simple: reorganize and expand empty needle check
9891         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9892         functional checks to memmem-simple so that one has a fully functional
9893         memmem by using just this module.
9894         Restrict the performance only check to the memmem module.
9895         Also expand the empty needle check to ensure the correct
9896         pointer is returned, not just a non NULL pointer.
9897         * doc/glibc-functions/memmem.texi: Rearrange the portability
9898         documentation to correlate with the rearranged checks.
9899         Clarify exactly how the memmem and memmem-simple modules
9900         relate to each other.
9901
9902 2010-12-15  Pádraig Brady <P@draigBrady.com>
9903             Bruno Haible  <bruno@clisp.org>
9904
9905         Improve cross-compilation guesses for uClibc.
9906         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9907         that uClibc does not have the glibc bug.
9908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9909         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9910
9911 2010-12-14  Eric Blake  <eblake@redhat.com>
9912
9913         configmake: provide fallbacks for oldest supported autotools
9914         * m4/configmake.m4: New file.
9915         * modules/configmake (Files): Ship it.
9916         (configure.ac): Use it to guarantee fallbacks.
9917
9918 2010-12-13  Pádraig Brady <P@draigBrady.com>
9919
9920         read-file: Improve handling of large files
9921         * lib/read-file.c (fread_file): Minimize realloc()s
9922         for regular files, and better manage sizes around SIZE_MAX.
9923
9924 2010-12-13  Eric Blake  <eblake@redhat.com>
9925
9926         cloexec, fcntl: relax license
9927         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9928         consent from all contributors.
9929         * modules/fcntl (License): Likewise.
9930
9931 2010-12-10  Bruno Haible  <bruno@clisp.org>
9932
9933         Tests for module 'pipe-posix'.
9934         * modules/pipe-posix-tests: New file.
9935         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9936
9937 2010-12-10  Bruno Haible  <bruno@clisp.org>
9938
9939         pipe-posix: Make it work in C++ mode.
9940         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9941         (pipe): Use common idiom, not a macro definition.
9942         * lib/pipe.c: New file.
9943         * m4/pipe.m4: New file.
9944         * modules/pipe-posix (Description): Enhance.
9945         (Files): Add lib/pipe.c, m4/pipe.m4.
9946         (configure.ac): Invoke gl_FUNC_PIPE.
9947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9948         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9949         * tests/test-unistd-c++.cc: Check the signature of pipe.
9950
9951 2010-12-10  Bruno Haible  <bruno@clisp.org>
9952
9953         Rename module 'pipe' to 'spawn-pipe'.
9954         * modules/spawn-pipe: New file, renamed from modules/pipe.
9955         (Files, configure.ac, Makefile.am): Update.
9956         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9957         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9958         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9959         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9960         "spawn-pipe.h" instead of "pipe.h".
9961         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9962         to gl_SPAWN_PIPE.
9963         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9964         (Files, Makefile.am): Update.
9965         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9966         Update.
9967         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9968         Include "spawn-pipe.h" instead of "pipe.h".
9969         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9970         * lib/javacomp.c: Likewise.
9971         * lib/javaversion.c: Likewise.
9972         * lib/pipe-filter-gi.c: Likewise.
9973         * lib/pipe-filter-ii.c: Likewise.
9974         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9975         * modules/javacomp (Depends-on): Likewise.
9976         * modules/javaversion (Depends-on): Likewise.
9977         * modules/pipe-filter-gi (Depends-on): Likewise.
9978         * modules/pipe-filter-ii (Depends-on): Likewise.
9979         * MODULES.html.sh (Executing programs): Update.
9980         * NEWS: Mention the change.
9981
9982 2010-12-10  Eric Blake  <eblake@redhat.com>
9983
9984         pipe-posix: new module
9985         * modules/pipe-posix: New file.
9986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9987         (gl_UNISTD_H): Check for declaration.
9988         * modules/unistd (Makefile.am): Substitute it.
9989         * lib/unistd.in.h (pipe): Provide it for mingw.
9990         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9991         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9992
9993 2010-12-07  Bruno Haible  <bruno@clisp.org>
9994
9995         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9996         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9997         u8_strcmp_gnu.
9998         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9999
10000 2010-12-06  Bruno Haible  <bruno@clisp.org>
10001
10002         Update internal documentation.
10003         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10004
10005 2010-12-04  Bruno Haible  <bruno@clisp.org>
10006
10007         Put more information about failed tests into the test return codes.
10008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10009         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10010         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10012         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10013         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10014         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10015         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10016         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10019         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10020         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10021         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10022         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10023         returns a bit mask.
10024         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10025         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10026         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10027         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10032         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10034         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10035         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10036         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10038         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10039         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10040         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10041         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10042         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10043         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10044         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10045         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10047         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10048         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10049         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10050         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10051         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10052         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10053         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10054         gl_PRINTF_PRECISION): Likewise.
10055         * m4/regex.m4 (gl_REGEX): Likewise.
10056         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10057         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10058         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10059         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10060         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10063         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10064         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10065         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10066         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10067         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10068         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10069         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10070         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10071         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10072         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10076         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10077         enumerated value.
10078         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10079
10080 2010-12-04  Bruno Haible  <bruno@clisp.org>
10081
10082         Update for Solaris 11 2010-11.
10083         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10084         Express, released in November 2010.
10085
10086 2010-12-04  Bruno Haible  <bruno@clisp.org>
10087
10088         nproc: Relax license.
10089         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10090         and Paul Eggert.
10091         Requested by Ludovic Courtès <ludo@gnu.org>.
10092
10093 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10094
10095         utimecmp: fine-grained src to nearby coarse-grained dest
10096
10097         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10098         and the source is on a file system with higher-resolution time
10099         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10100         not work, and the time stamps are close together, the algorithm to
10101         determine the exact resolution from the read-back mtime was buggy:
10102         it had a "!=" where it should have had an "==".  This bug has been
10103         in the code ever since it was introduced to gnulib.
10104         Problem reported by Dan Jacobson in
10105         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10106
10107 2010-11-30  Bruno Haible  <bruno@clisp.org>
10108
10109         strerror_r-posix: Fix autoconf test.
10110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10111
10112 2010-11-28  Bruno Haible  <bruno@clisp.org>
10113             Paul Eggert  <eggert@cs.ucla.edu>
10114
10115         Tests for module 'getdomainname'.
10116         * modules/getdomainname-tests: New file.
10117         * tests/test-getdomainname.c: New file, based on
10118         tests/test-gethostname.c.
10119
10120 2010-11-28  Bruno Haible  <bruno@clisp.org>
10121             Paul Eggert  <eggert@cs.ucla.edu>
10122
10123         getdomainname: Use the system function when possible.
10124         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10125         (getdomainname): Replace if needed. Provide the declaration if it is
10126         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10127         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10128         (getdomainname): When the system has getdomainname, call the system
10129         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10130         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10131         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10132         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10133         the function if its second argument is of type 'int' or if it is found
10134         in libnsl.
10135         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10136         <sys/systeminfo.h> and sysinfo().
10137         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10139         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10140         HAVE_GETDOMAINNAME.
10141         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10142         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10143         * doc/glibc-functions/getdomainname.texi: Document the problems with
10144         the getdomainname declaration.
10145
10146 2010-11-28  Bruno Haible  <bruno@clisp.org>
10147
10148         sys_socket: Ensure ss_family field on AIX.
10149         * lib/sys_socket.in.h (ss_family): New macro definition.
10150         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10151         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10152         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10153         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10154         * modules/sys_socket (Makefile.am): Substitute
10155         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10156         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10157
10158 2010-11-27  Bruno Haible  <bruno@clisp.org>
10159
10160         readline: Improve configure output.
10161         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10162         "checking for readline..." result understandable.
10163
10164 2010-11-27  Bruno Haible  <bruno@clisp.org>
10165
10166         *printf-posix: Detect a bug on Solaris 10/x86.
10167         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10168         for floating-point output.
10169         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10170         directive.
10171         * tests/test-snprintf-posix.h (test_function): Likewise.
10172         * tests/test-sprintf-posix.h (test_function): Likewise.
10173         * tests/test-vasprintf-posix.c (test_function): Likewise.
10174         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10175         * doc/posix-functions/printf.texi: Likewise.
10176         * doc/posix-functions/snprintf.texi: Likewise.
10177         * doc/posix-functions/sprintf.texi: Likewise.
10178         * doc/posix-functions/vfprintf.texi: Likewise.
10179         * doc/posix-functions/vprintf.texi: Likewise.
10180         * doc/posix-functions/vsnprintf.texi: Likewise.
10181         * doc/posix-functions/vsprintf.texi: Likewise.
10182         * doc/glibc-functions/obstack_printf.texi: Likewise.
10183         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10184
10185 2010-11-27  Bruno Haible  <bruno@clisp.org>
10186
10187         Fix link error when module libunistring-optional is in use.
10188         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10189         * modules/striconveha-tests (Makefile.am): Likewise.
10190
10191 2010-11-27  Bruno Haible  <bruno@clisp.org>
10192
10193         regex: Mention link dependencies.
10194         * modules/regex (Link): New section.
10195         * modules/rpmatch (Link): Likewise.
10196         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10197
10198 2010-11-27  Bruno Haible  <bruno@clisp.org>
10199
10200         ftoastr: Fix compilation error on Solaris.
10201         * lib/ftoastr.c: Include <config.h>.
10202
10203 2010-11-27  Bruno Haible  <bruno@clisp.org>
10204
10205         getloadavg: Update documentation.
10206         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10207
10208 2010-11-27  Bruno Haible  <bruno@clisp.org>
10209
10210         sys_socket: Fix test whether the functions are declared.
10211         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10212         not <sys/select.h>.
10213
10214 2010-11-27  Bruno Haible  <bruno@clisp.org>
10215
10216         getpass: Make sure to get system declaration on some platforms.
10217         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10218         gl_USE_SYSTEM_EXTENSIONS.
10219         * modules/getpass (Depends-on): Add extensions.
10220
10221 2010-11-26  Bruno Haible  <bruno@clisp.org>
10222
10223         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10224         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10225         'iconv' module is present.
10226         (ICONV_CONST): New macro.
10227         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10228         ICONV_CONST.
10229         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10230         set ICONV_CONST.
10231         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10232         here.
10233         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10234         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10235         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10236         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10237         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10238         present.
10239
10240 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10241
10242         ftoastr: comment fix
10243         * lib/ftoastr.c: "little" -> "little or no" in comment
10244
10245 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10246
10247         stdint: port to GCC 4.3 + OSX + Octave
10248         On this platform, stdint.h is buggy and defines int64_t to long
10249         long int.  The replacement defined it to long int, causing
10250         problems with C++ style name mangling.  Instead, trust the system
10251         definition if INT64_MAX is defined, and likewise for the unsigned
10252         variant.   Problem reported by Jarno Rajahalme in
10253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10254         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10255         and don't mess with int64_t and INT64_MAX in this case.
10256         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10257
10258 2010-11-24  Bruno Haible  <bruno@clisp.org>
10259
10260         doc: Corrections regarding MacOS X 10.4 and 10.5.
10261         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10262         MacOS X.
10263         Reported by Simon Josefsson.
10264
10265 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10266
10267         Uninstall ".bin" files installed by relocwrapper.
10268         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10269         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10270         unless it is already there.
10271
10272 2010-11-21  Bruno Haible  <bruno@clisp.org>
10273
10274         Update for NetBSD 5.0.
10275         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10276         NetBSD; the test fails on NetBSD 5.0.
10277         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10278         about NetBSD.
10279
10280 2010-11-21  Bruno Haible  <bruno@clisp.org>
10281
10282         Update for HP-UX 11.23 and HP-UX 11.31.
10283         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10284         HP-UX.
10285
10286 2010-11-21  Bruno Haible  <bruno@clisp.org>
10287
10288         Update for MacOS X 10.5.
10289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10290         MacOS X; the test fails on MacOS X 10.5.8.
10291         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10292         about MacOS X.
10293
10294 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10295
10296         bootstrap: add bootstrap_sync option.
10297         See discussion at
10298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10300         * build-aux/bootstrap: Accept --bootstrap-sync to update
10301         bootstrap if it is not identical to the local gnulib's
10302         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10303         enable this by default.  Accept --no-bootstrap-sync to disable
10304         it.
10305
10306 2010-11-20  Bruno Haible  <bruno@clisp.org>
10307
10308         Ensure that <features.h> is included before __GLIBC__ is tested.
10309         * lib/printf-parse.h: Include <features.h>.
10310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10311         Reported by Mike Frysinger <vapier@gentoo.org>.
10312
10313         Ensure that <features.h> is included before __GLIBC__ is tested.
10314         * lib/wchar.in.h: Include <features.h>.
10315         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10316         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10317         Reported by Mike Frysinger <vapier@gentoo.org>.
10318
10319         Ensure that <features.h> is included before __GLIBC__ is tested.
10320         * lib/arpa_inet.in.h: Include <features.h>.
10321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10322         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10323         Reported by Mike Frysinger <vapier@gentoo.org>.
10324
10325         Ensure that <features.h> is included before __GLIBC__ is tested.
10326         * build-aux/link-warning.h: Include <features.h>.
10327         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10328         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10329         Reported by Mike Frysinger <vapier@gentoo.org>.
10330
10331         Ensure that <features.h> is included before __GLIBC__ is tested.
10332         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10333         Reported by Mike Frysinger <vapier@gentoo.org>.
10334
10335 2010-11-20  Bruno Haible  <bruno@clisp.org>
10336
10337         memmem: Fix autoconf test.
10338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10339
10340 2010-11-20  Bruno Haible  <bruno@clisp.org>
10341
10342         Port to uClibc.
10343         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10344         * lib/fcntl.in.h: Likewise.
10345         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10346         * lib/mbrtowc.c (mbrtowc): Likewise.
10347         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10348         * lib/strerror_r.c: Likewise.
10349         * lib/unistr/u8-strnlen.c: Likewise.
10350         * lib/vasnprintf.c (decimal_point_char): Likewise.
10351         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10352         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10353         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10354         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10355         * tests/test-sigaction.c (handler, main): Likewise.
10356         * lib/freading.h: Treat uClibc like a non-glibc platform.
10357         * lib/freading.c: Likewise.
10358         * lib/gettext.h: Likewise.
10359         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10360         Likewise.
10361         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10362         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10363         * lib/propername.c (proper_name_utf8): Likewise.
10364         * lib/spawn.in.h: Likewise.
10365         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10366         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10367         mem_cd_iconveh_internal): Likewise.
10368         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10369         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10370         strstr, strcasestr): Likewise.
10371         * lib/unicodeio.c (unicode_to_mb): Likewise.
10372         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10373         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10374         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10375         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10376         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10377         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10378         * lib/unistr/u8-stpncpy.c: Likewise.
10379         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10380         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10381         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10382         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10383         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10384         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10385         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10388         Likewise.
10389         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10390         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10395         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10396         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10397         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10398         * tests/test-striconveha.c (main): Likewise.
10399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10400         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10401         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10402         * doc/posix-functions/getline.texi: Likewise.
10403         Reported by Mike Frysinger <vapier@gentoo.org>.
10404
10405 2010-11-20  Bruno Haible  <bruno@clisp.org>
10406
10407         nproc: Fix condition.
10408         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10409         HAVE_PTHREAD_AFFINITY_NP.
10410
10411 2010-11-20  Bruno Haible  <bruno@clisp.org>
10412
10413         Fix a comment.
10414         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10415
10416 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10417
10418         ftoastr: don't assume snprintf
10419         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10420         Implement a subset of snprintf here, by using sprintf safely.
10421         * modules/ftoastr (Depends-on): Remove snprintf.
10422
10423 2010-11-19  Jim Meyering  <meyering@redhat.com>
10424
10425         test-rename.h: fix compilation failure
10426         * tests/test-rename.h (test_rename): Add omitted "}".
10427
10428 2010-11-17  Jim Meyering  <meyering@redhat.com>
10429
10430         maint.mk: add a URL discussing the no-@acronym policy
10431         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10432
10433 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         ftoastr: depend on snprintf, improve comments
10436         * lib/ftoastr.c: Also mention Loitsch's draft.
10437         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10438         needed in the current implementation, but it might simplify
10439         speeding up the code later.
10440         * modules/ftoastr: Depend on snprintf; this improves portability.
10441         Suggested by Bruno Haible in the same email.
10442
10443         ftoastr: port to hosts lacking strtof and strtold
10444         Problem reported by Bruno Haible in
10445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10446         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10447         environment and strtold (and presumably strtof) are not available.
10448         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10449         (configure.ac): Require gl_C99_STRTOLD.
10450
10451 2010-11-18  Bruno Haible  <bruno@clisp.org>
10452
10453         c-strtold: Avoid link error on AIX 7.
10454         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10455         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10456         (gl_C_STRTOLD): Test whether strtold_l exists.
10457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10458
10459 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10460
10461         intprops: new macro INT_BITS_STRLEN_BOUND
10462         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10463         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10464         not exposed.  Also, it uses a slightly tighter bound than before;
10465         though this makes no practical difference, we might as well be as
10466         tight as we easily can.
10467
10468         ftoastr: new module, for lossless conversion of floats to short strings
10469         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10470         * modules/ftoastr: New files.
10471
10472 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10473
10474         bootstrap: port to Solaris sed
10475         * build-aux/bootstrap (get_version): Port to Solaris sed.
10476         See Ralf Wildenhues's note in
10477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10478
10479 2010-11-14  Jim Meyering  <meyering@redhat.com>
10480
10481         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10482         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10483         and move definition closer to sole use.
10484
10485 2010-11-13  Jim Meyering  <meyering@redhat.com>
10486
10487         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10488         Now we require at least autoconf-2.59, which means the work-around
10489         is no longer needed.
10490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10495
10496 2010-11-13  Bruno Haible  <bruno@clisp.org>
10497
10498         rename, renameat: Avoid test failures at NFS mounted locations.
10499         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10500         functions.
10501         (test_rename): Use assert_nonexistent.
10502         * tests/test-rename.c: Include <dirent.h>.
10503         * tests/test-renameat.c: Likewise.
10504         Reported by Gary V. Vaughan <gary@gnu.org>.
10505
10506         rename, renameat: Document Linux bug with NFS
10507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10508         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10509         * doc/posix-functions/renameat.texi: Likewise.
10510         Suggested by Eric Blake.
10511
10512 2010-11-13  Bruno Haible  <bruno@clisp.org>
10513
10514         rename test: Add comments.
10515         * tests/test-rename.h (test_rename): Add structure and comments.
10516
10517 2010-11-13  Eric Blake  <eblake@redhat.com>
10518
10519         maintainer-makefile: cover a few more files
10520         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10521         scripts generated within C files, for libvirt.
10522
10523 2010-11-13  Bruno Haible  <bruno@clisp.org>
10524
10525         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10526         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10527         character, return the number of bytes that belong together, not always
10528         1.
10529         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10530         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10531         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10532         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10533         number of bytes of an invalid character.
10534         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10535         (main): Invoke it.
10536         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10537         results.
10538         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10539         malformed byte sequences.
10540         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10541         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10542         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10543         Reported by Ben Pfaff and Paolo Bonzini.
10544
10545 2010-11-13  Bruno Haible  <bruno@clisp.org>
10546
10547         openat: Work around glibc bug with fchownat() and empty file names.
10548         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10549         (gl_FUNC_FCHOWNAT): Invoke it.
10550         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10551         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10552         Reported by Gary V. Vaughan <gary@gnu.org>.
10553
10554 2010-11-13  Bruno Haible  <bruno@clisp.org>
10555
10556         openat: Ensure autoconf macro ordering.
10557         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10558         gl_USE_SYSTEM_EXTENSIONS.
10559         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10560
10561 2010-11-13  Bruno Haible  <bruno@clisp.org>
10562
10563         Update comments.
10564         * lib/unistr/u8-check.c: Update file name in comments.
10565         * lib/unistr/u8-mblen.c: Likewise.
10566         * lib/unistr/u8-prev.c: Likewise.
10567         * lib/unistr/u8-strmblen.c: Likewise.
10568         * lib/unistr/u8-strmbtouc.c: Likewise.
10569
10570 2010-11-13  Jim Meyering  <meyering@redhat.com>
10571
10572         tests: avoid test failure on Solaris 10 due to lack of PATH export
10573         * tests/test-update-copyright.sh: Don't forget to export PATH.
10574
10575         init.sh: ensure that IFS is defined, just in case...
10576         * tests/init.sh (setup_): Ensure that IFS is defined,
10577         so that saving and restoring it works as expected.  This
10578         appears to be useful at least for an old version of dash
10579         from a long time ago (RH 6).  See here for details:
10580         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10581
10582         maint.mk: tighten "test a == b" check
10583         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10584         test to files that contain something like #!/bin/sh.
10585         Without this, coreutils would get two false positives in
10586         the comments of C source files.
10587
10588 2010-11-12  Eric Blake  <eblake@redhat.com>
10589
10590         bootstrap: fix typo in previous attempt
10591         * build-aux/bootstrap (buildreq): Correct the grouping.
10592         Reported by Paul Eggert.
10593
10594         maintainer-makefile: prohibit test x == x
10595         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10596         Based on a report by Matthias Bolte.
10597
10598         bootstrap: allow FreeBSD gzip
10599         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10600         which has no '.' and goes to stderr.
10601         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10602         Reported by Matthias Bolte.
10603
10604         maintainer-makefile: check for i18n setup
10605         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10606         will likely work.
10607
10608 2010-11-12  Bruno Haible  <bruno@clisp.org>
10609
10610         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10611         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10612         * lib/nanosleep.c (nanosleep): Likewise.
10613
10614 2010-11-11  Bruno Haible  <bruno@clisp.org>
10615
10616         fcntl-h: Fix for use of C++ on glibc systems.
10617         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10618         also on glibc systems in C++ mode.
10619         Reported by Gary V. Vaughan <gary@gnu.org>.
10620
10621 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10622
10623         mknod: avoid false failure with dash
10624         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10625
10626 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         unlink: Fix "is it should" typo in diagnostic.
10629         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10631
10632 2010-11-11  Bruno Haible  <bruno@clisp.org>
10633
10634         Tests for module 'strerror_r-posix'.
10635         * modules/strerror_r-posix-tests: New file.
10636         * tests/test-strerror_r.c: New file.
10637         * tests/test-string-c++.cc: Check the signature of strerror_r.
10638
10639         New module 'strerror_r-posix'.
10640         * lib/string.in.h (strerror_r): New declaration.
10641         * lib/strerror_r.c: New file.
10642         * m4/strerror_r.m4: New file.
10643         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10644         of strerror_r.
10645         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10646         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10647         * modules/strerror_r-posix: New file.
10648         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10649         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10650         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10651         portability problems.
10652
10653 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10654
10655         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10656         line is also considered for output. Quoted function name in shell
10657         command, so temporary files for functions like MyClass::operator()
10658         are removed correctly without errors.
10659
10660 2010-11-09  Bruno Haible  <bruno@clisp.org>
10661
10662         * doc/posix-functions/strerror.texi: List more failing platforms.
10663
10664         * doc/posix-functions/strerror.texi: Add a comment.
10665
10666 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10667
10668         fdopendir: fix bug on MacOS X when low on file descriptors
10669
10670         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10671         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10672         All callers changed.
10673         (fdopendir): Invoke save_cwd at the top level, not after using
10674         multiple dup() calls to use up file descriptors.  Then retry
10675         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10676         less than the maximum number of open file descriptors, because
10677         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10678         on Mac OS X 10.6.4 for tar 1.24
10679         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10680         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10681         and for tar 1.25
10682         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10683
10684 2010-11-07  Bruno Haible  <bruno@clisp.org>
10685
10686         vasnprintf: Support I flag on glibc systems.
10687         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10688         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10689         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10690         snprintf function.
10691         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10692         glibc systems.
10693         * tests/test-vasnprintf-posix3.c: New file.
10694         * modules/vasnprintf-posix-tests (Files): Add it.
10695         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10696
10697 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10698
10699         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10700         * MODULES.html.sh: For compiler warnings, use name
10701         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10702
10703 2010-11-05  Eric Blake  <eblake@redhat.com>
10704
10705         ceil, floor: avoid spurious failure with icc
10706         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10707         [denormals-as-zero] when optimizing without -mieee-fp option.
10708         * tests/test-floorf2.c (floorf_reference): Likewise.
10709         * tests/test-ceilf1.c (dummy): New function.
10710         (main): Use it to outsmart icc's optimization.
10711         * tests/test-floorf1.c (dummy, main): Likewise.
10712
10713         tests: require working signbit
10714         * modules/ceilf-tests (Depends-on): Add signbit.
10715         * modules/ceill-tests (Depends-on): Likewise.
10716         * modules/floorf-tests (Depends-on): Likewise.
10717         * modules/floorl-tests (Depends-on): Likewise.
10718         * modules/round-tests (Depends-on): Likewise.
10719         * modules/roundf-tests (Depends-on): Likewise.
10720         * modules/roundl-tests (Depends-on): Likewise.
10721         * modules/trunc-tests (Depends-on): Likewise.
10722         * modules/truncf-tests (Depends-on): Likewise.
10723         * modules/truncl-tests (Depends-on): Likewise.
10724
10725         strtod: work around icc bug
10726         * lib/strtod.c (minus_zero): Define to working value.
10727         (strtod): Use it to avoid icc bug.
10728
10729         copysign: enhance tests
10730         * modules/copysign-tests (Files): Add minus-zero.h.
10731         * tests/test-copysign.c (main): Also test zeros.
10732
10733 2010-11-04  Eric Blake  <eblake@redhat.com>
10734
10735         ceil, floor, round, trunc: enhance tests of -0
10736         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10737         * tests/test-ceill.c (main): Likewise.
10738         * tests/test-floorf1.c (main): Likewise.
10739         * tests/test-floorl.c (main): Likewise.
10740         * tests/test-round1.c (main): Likewise.
10741         * tests/test-roundf1.c (main): Likewise.
10742         * tests/test-roundl.c (main): Likewise.
10743         * tests/test-trunc1.c (main): Likewise.
10744         * tests/test-truncf1.c (main): Likewise.
10745         * tests/test-truncl.c (main): Likewise.
10746
10747 2010-11-04  Eric Blake  <eblake@redhat.com>
10748
10749         frexp, tests: work around ICC bug with -zero
10750         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10751         works with more compilers.
10752         * tests/minus-zero.h: New file.
10753         * modules/ceilf-tests (Files): Include it.
10754         * modules/ceill-tests (Files): Likewise.
10755         * modules/floorf-tests (Files): Likewise.
10756         * modules/floorl-tests (Files): Likewise.
10757         * modules/frexp-nolibm-tests (Files): Likewise.
10758         * modules/frexp-tests (Files): Likewise.
10759         * modules/frexpl-nolibm-tests (Files): Likewise.
10760         * modules/frexpl-tests (Files): Likewise.
10761         * modules/isnan-tests (Files): Likewise.
10762         * modules/isnand-nolibm-tests (Files): Likewise.
10763         * modules/isnand-tests (Files): Likewise.
10764         * modules/isnanf-nolibm-tests (Files): Likewise.
10765         * modules/isnanf-tests (Files): Likewise.
10766         * modules/isnanl-nolibm-tests (Files): Likewise.
10767         * modules/isnanl-tests (Files): Likewise.
10768         * modules/round-tests (Files): Likewise.
10769         * modules/roundf-tests (Files): Likewise.
10770         * modules/roundl-tests (Files): Likewise.
10771         * modules/ldexpl-tests (Files): Likewise.
10772         * modules/signbit-tests (Files): Likewise.
10773         * modules/snprintf-posix-tests (Files): Likewise.
10774         * modules/sprintf-posix-tests (Files): Likewise.
10775         * modules/strtod-tests (Files): Likewise.
10776         * modules/trunc-tests (Files): Likewise.
10777         * modules/truncf-tests (Files): Likewise.
10778         * modules/truncl-tests (Files): Likewise.
10779         * modules/vsnprintf-posix-tests (Files): Likewise.
10780         * modules/vsprintf-posix-tests (Files): Likewise.
10781         * modules/vasnprintf-posix-tests (Files): Likewise.
10782         * modules/vasprintf-posix-tests (Files): Likewise.
10783         * tests/test-ceilf1.c (main): Use it.
10784         * tests/test-ceill.c (main): Likewise.
10785         * tests/test-floorf1.c (main): Likewise.
10786         * tests/test-floorl.c (main): Likewise.
10787         * tests/test-frexp.c (main): Likewise.
10788         * tests/test-frexpl.c (main): Likewise.
10789         * tests/test-isnan.c (main): Likewise.
10790         * tests/test-isnand.h (main): Likewise.
10791         * tests/test-isnanf.h (main): Likewise.
10792         * tests/test-isnanl.h (main): Likewise.
10793         * tests/test-ldexpl.c (main): Likewise.
10794         * tests/test-round.c (main): Likewise.
10795         * tests/test-roundf.c (main): Likewise.
10796         * tests/test-roundl.c (main): Likewise.
10797         * tests/test-signbit.c (test_signbitf, test_signbitd)
10798         (test_signbitl): Likewise.
10799         * tests/test-snprintf-posix.h (test_function): Likewise.
10800         * tests/test-sprintf-posix.h (test_function): Likewise.
10801         * tests/test-strtod.c (main): Likewise.
10802         * tests/test-trunc1.c (main): Likewise.
10803         * tests/test-truncf1.c (main): Likewise.
10804         * tests/test-truncl.c (main): Likewise.
10805
10806         isnanl: work around icc bug
10807         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10808
10809 2010-11-03  Eric Blake  <eblake@redhat.com>
10810
10811         tests: fix compiler warnings
10812         * tests/test-getopt.h (test_getopt): Fix condition.
10813         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10814         * tests/test-pipe2.c (main): Likewise.
10815         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10816
10817         utimens: fix broken m4 test
10818         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10819
10820 2010-10-28  Bruno Haible  <bruno@clisp.org>
10821
10822         posix_spawn*, getdtablesize: Relax license.
10823         * modules/posix_spawn (License): Change to LGPLv2+.
10824         * modules/posix_spawnp (License): Likewise.
10825         * modules/posix_spawn-internal (License): Likewise.
10826         * modules/posix_spawnattr_init (License): Likewise.
10827         * modules/posix_spawnattr_getflags (License): Likewise.
10828         * modules/posix_spawnattr_setflags (License): Likewise.
10829         * modules/posix_spawnattr_getpgroup (License): Likewise.
10830         * modules/posix_spawnattr_setpgroup (License): Likewise.
10831         * modules/posix_spawnattr_getschedparam (License): Likewise.
10832         * modules/posix_spawnattr_setschedparam (License): Likewise.
10833         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10834         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10835         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10836         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10837         * modules/posix_spawnattr_getsigmask (License): Likewise.
10838         * modules/posix_spawnattr_setsigmask (License): Likewise.
10839         * modules/posix_spawnattr_destroy (License): Likewise.
10840         * modules/posix_spawn_file_actions_init (License): Likewise.
10841         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10842         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10843         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10844         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10845         * modules/getdtablesize (License): Likewise.
10846         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10847
10848 2010-10-26  Bruno Haible  <bruno@clisp.org>
10849
10850         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10851         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10852         Cygwin and mingw.
10853         Suggested by Eric Blake.
10854
10855 2010-10-26  Bruno Haible  <bruno@clisp.org>
10856
10857         stdio: Work around compilation error due to renameat() on Solaris 10.
10858         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10859         * lib/renameat.c: Don't include <unistd.h> here.
10860         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10861         Reported by Paul Eggert and Eric Blake.
10862
10863 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10864
10865         renameat: port to Solaris 10, which declares renameat in unistd.h
10866
10867         * lib/renameat.c: Include unistd.h before stdio.h, because
10868         Solaris 10 declares renameat in unistd.h.  Problem encountered
10869         when building GNU tar 1.24 on Solaris 10.
10870
10871 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10872
10873         fdopendir: fix C89 compilation
10874         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10875         compilers.
10876
10877 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10878
10879         inttostr: simplify by removing unnecessary redundancy
10880         * lib/anytostr.c: Don't include verify.h.
10881         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10882         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10883         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10884         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10885         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10886         Likewise.
10887         * modules/inttostr (Depends-on): Remove 'verify'.
10888
10889 2010-10-23  Bruno Haible  <bruno@clisp.org>
10890
10891         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10892         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10893         Reported by Eric Blake.
10894
10895 2010-10-23  Bruno Haible  <bruno@clisp.org>
10896
10897         Tests: Fix LOCALE_JA on MirBSD 10.
10898         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10899         to an UTF-8 locale.
10900         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10901         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10902         Reported by Eric Blake.
10903
10904 2010-10-21  Bruno Haible  <bruno@clisp.org>
10905
10906         nl_langinfo test: Avoid test failure on NetBSD 5.
10907         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10908         Reported by Eric Blake.
10909
10910 2010-10-21  Eric Blake  <eblake@redhat.com>
10911
10912         c-stack: work around libsigsegv 2.8 bug
10913         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10914         overflow on at least PowerPC64.
10915
10916 2010-10-17  Bruno Haible  <bruno@clisp.org>
10917
10918         userspec: Drop redundant file.
10919         * modules/userspec (Files): Remove lib/inttostr.h.
10920
10921 2010-10-17  Bruno Haible  <bruno@clisp.org>
10922
10923         nl_langinfo tests: Silence some warnings.
10924         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10925         Reported by Jim Meyering.
10926
10927 2010-10-17  Bruno Haible  <bruno@clisp.org>
10928
10929         Make use of GCC's attribute __alloc_size__.
10930         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10931         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10932         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10933         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10934         __alloc_size__.
10935         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10936         Suggested by Jim Meyering.
10937
10938 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10939
10940         bootstrap: anchor .gitignore entries.
10941         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10942         with...
10943         (insert_vc_ignore): ... this new function, which prepends `/' to
10944         all .gitignore entries before passing them to
10945         insert_sorted_if_absent.
10946
10947 2010-10-16  Bruno Haible  <bruno@clisp.org>
10948
10949         nextafter: Fix configure check.
10950         * modules/nextafter (configure.ac): Correct expected prototype.
10951
10952 2010-10-16  Bruno Haible  <bruno@clisp.org>
10953
10954         termios: Update documentation.
10955         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10956
10957 2010-10-16  Bruno Haible  <bruno@clisp.org>
10958
10959         tests: Make them compile with TinyCC.
10960         * tests/test-strstr.c (main): Remove parentheses around array
10961         initializer.
10962
10963 2010-10-15  Eric Blake  <eblake@redhat.com>
10964
10965         ignore-value: make header idempotent
10966         * lib/ignore-value.h: Add double-inclusion guards.
10967         Reported by Stefan Berger.
10968
10969 2010-10-15  Jim Meyering  <meyering@redhat.com>
10970
10971         GNUmakefile: handle "stable" target, not "major"
10972         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10973         lists in maint.mk and announce-gen.  Without this, "make stable"
10974         would fail to ensure that $(VERSION) is up to date.
10975
10976 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10977
10978         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10979         & co.
10980
10981 2010-10-14  Bruno Haible  <bruno@clisp.org>
10982
10983         vasnprintf: Don't set errno to 0.
10984         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10985         block that sets it to 0.
10986         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10987
10988 2010-10-14  Bruno Haible  <bruno@clisp.org>
10989
10990         socketlib: Fix.
10991         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10992         gl_PREREQ_SYS_H_WINSOCK2.
10993         Reported by Ian Beckwith <ianb@erislabs.net>.
10994
10995 2010-10-13  Jim Meyering  <meyering@redhat.com>
10996
10997         test-select-stdin.c: avoid warn_unused_result warnings
10998         * tests/test-select-stdin.c: Include "macros.h".
10999         ASSERT that read and fflush succeed.
11000
11001 2010-10-13  Jim Meyering  <meyering@redhat.com>
11002
11003         git-version-gen: do require git-VC'd files in cwd
11004         * build-aux/git-version-gen: Reject a git version string
11005         if there are no commits associated with the current directory.
11006         This avoids an unlikely false-positive (unrelated dir whose parent
11007         repository also contains a tag matching v*), as pointed out
11008         by Giuseppe Scrivano in
11009         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11010
11011 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11012
11013         argv-iter: omit nonconforming declaration
11014         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11015         enum arg_iter_err declaration, which doesn't conform to C99.
11016         Solaris 10 cc warns about this.
11017
11018 2010-10-13  Eric Blake  <eblake@redhat.com>
11019
11020         termios: fix compilation on mingw
11021         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11022         (gl_TERMIOS_H): Adjust it on mingw.
11023         * modules/termios (Makefile.am): Substitute new key.
11024         * lib/termios.in.h (includes): Make include_next conditional.
11025         * doc/posix-headers/termios.texi (termios.h): Update
11026         documentation.
11027         Reported by Daniel P. Berrange.
11028
11029 2010-10-13  Jim Meyering  <meyering@redhat.com>
11030
11031         git-version-gen: don't require that .git/ be in the current dir
11032         * build-aux/git-version-gen: Adjust this script so that it works
11033         when run from any working directory beneath the top-level .git/-
11034         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11036
11037         test-select: avoid warn_unused_result warnings
11038         * tests/test-select.c: Include "macros.h".
11039         ASSERT that each call to read, write, and pipe succeeds.
11040         While not technically required, also check each "close".
11041         * modules/select-tests (Files): Add tests/macros.h.
11042
11043         test-symlinkat: remove declaration of unused local
11044         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11045
11046         test-inttostr: avoid shadowing warnings
11047         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11048         and use malloc rather than the stack for the same reason as
11049         mentioned in the comment justifying the other allocation.
11050
11051 2010-10-11  Bruno Haible  <bruno@clisp.org>
11052
11053         stdlib: Allow multiple gnulib generated replacements to coexist.
11054         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11055         Reported by Sam Steingold <sds@gnu.org>.
11056
11057 2010-10-11  Jim Meyering  <meyering@redhat.com>
11058
11059         fix a documentation typo
11060         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11061
11062 2010-10-11  Eric Blake  <eblake@redhat.com>
11063
11064         futimens: work around Solaris 11 bug
11065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11066         * tests/test-futimens.h (test_futimens): Enhance, rather than
11067         weaken test.
11068         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11069
11070 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11071
11072         Indentation.
11073         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11074         higher-level operators more to the left.
11075
11076 2010-10-11  Jim Meyering  <meyering@redhat.com>
11077
11078         test-futimens: avoid unwarranted test failure on Solaris 5.11
11079         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11080         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11081         because it tries to dereference the NULL name argument.
11082
11083 2010-10-11  Bruno Haible  <bruno@clisp.org>
11084
11085         Indentation.
11086         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11087         indentation.
11088
11089 2010-10-11  Jim Meyering  <meyering@redhat.com>
11090
11091         spawn.in.h: make indentation consistent with parentheses
11092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11093         Make indentation consistent with parentheses.
11094
11095 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11096
11097         Fix mismatched parens in previous commit
11098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11099         parens.
11100
11101 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11102
11103         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11104
11105         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11106         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11107         * lib/malloca.c: Include "verify.h".
11108         (verify1): Remove, replacing with a verify call.
11109         * lib/relocwrapper.c (verify1): Likewise.
11110         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11111         Likewise.
11112         * modules/malloca (Depends-on): Add 'verify'.
11113         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11114         * modules/vasnprintf (Depends-on): Add 'verify'.
11115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11116         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11117         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11118         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11119         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11120         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11121         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11122
11123         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11124
11125         Formerly the style was sometimes 2*X - 1, because the C standard
11126         was wrongly thought to disallow ?: in integral constant expressions.
11127         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11128         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11130         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11131         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11132         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11133         verify that time_t cannot be floating.
11134
11135 2010-10-08  Eric Blake  <eblake@redhat.com>
11136
11137         time: enforce recent POSIX ruling that time_t is integral
11138         * lib/time.in.h (__time_t_must_be_integral): Detect any
11139         problematic systems, allowing the rest of gnulib to assume POSIX.
11140
11141 2010-10-08  Jim Meyering  <meyering@redhat.com>
11142
11143         fdopendir: fix a bug on systems lacking openat and /proc support
11144         OpenBSD 4.7 is one such system.  The most noticeable effect was
11145         failure of any application making nontrivial use of fts: rm, du,
11146         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11147           ./rm: traversal failed: `a': Bad file descriptor
11148         Debugging that, you see that even though FD 6 was closed just
11149         prior to the opendir call in fd_clone_opendir, its resulting
11150         dir->dd_fd was 8, rather than the expected value of 6:
11151
11152         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11153         93                close (fd);
11154         (gdb) n
11155         94                dir = fd_clone_opendir (dupfd);
11156         (gdb) n
11157         95                saved_errno = errno;
11158         (gdb) p dir->dd_fd
11159         $11 = 8
11160
11161         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11162         The problem is that on OpenBSD, fd_clone_opendir has to resort
11163         to using the old-style save/restore CWD mechanism, due to its
11164         lack of openat/proc support, and *that* would steal the FD (6)
11165         that opendir was supposed to use.
11166
11167         The fix is to squirrel away the desired FD so that save_cwd uses a
11168         different one, and then free the dest FD right before calling opendir.
11169         That guarantees opendir will use the required file descriptor.
11170
11171         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11172
11173 2010-10-08  Bruno Haible  <bruno@clisp.org>
11174
11175         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11176         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11177
11178 2010-10-08  Bruno Haible  <bruno@clisp.org>
11179
11180         nanosleep: Make replacement POSIX compliant.
11181         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11182         is out of range.
11183         Reported by Jim Meyering.
11184
11185 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11186
11187         bootstrap: add hook for altering gnulib.mk, for Bison
11188         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11189         the Bison bootstrapping process can rewrite file names and variables
11190         in this file before later parts of 'bootstrap' use the file.
11191         Bison wants to include lib/gnulib.mk from the top-level makefile,
11192         so it needs the file names in this file to be relative to the top
11193         level, not relative to lib; plus it needs variable names to be
11194         rewritten.
11195         (slurp): Use the new function.
11196
11197         bootstrap: reformat for readability
11198         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11199
11200 2010-10-08  Eric Blake  <eblake@redhat.com>
11201
11202         docs: update cygwin progress
11203         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11204         1.7.7.
11205         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11206         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11207         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11208         * doc/posix-functions/carg.texi (carg): Likewise.
11209         * doc/posix-functions/cargf.texi (cargf): Likewise.
11210         * doc/posix-functions/casin.texi (casin): Likewise.
11211         * doc/posix-functions/casinf.texi (casinf): Likewise.
11212         * doc/posix-functions/casinh.texi (casinh): Likewise.
11213         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11214         * doc/posix-functions/catan.texi (catan): Likewise.
11215         * doc/posix-functions/catanf.texi (catanf): Likewise.
11216         * doc/posix-functions/catanh.texi (catanh): Likewise.
11217         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11218         * doc/posix-functions/ccos.texi (ccos): Likewise.
11219         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11220         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11221         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11222         * doc/posix-functions/cexp.texi (cexp): Likewise.
11223         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11224         * doc/posix-functions/cimag.texi (cimag): Likewise.
11225         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11226         * doc/posix-functions/clog.texi (clog): Likewise.
11227         * doc/posix-functions/clogf.texi (clogf): Likewise.
11228         * doc/posix-functions/conj.texi (conj): Likewise.
11229         * doc/posix-functions/conjf.texi (conjf): Likewise.
11230         * doc/posix-functions/cpow.texi (cpow): Likewise.
11231         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11232         * doc/posix-functions/cproj.texi (cproj): Likewise.
11233         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11234         * doc/posix-functions/creal.texi (creal): Likewise.
11235         * doc/posix-functions/crealf.texi (crealf): Likewise.
11236         * doc/posix-functions/csin.texi (csin): Likewise.
11237         * doc/posix-functions/csinf.texi (csinf): Likewise.
11238         * doc/posix-functions/csinh.texi (csinh): Likewise.
11239         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11240         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11241         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11242         * doc/posix-functions/ctan.texi (ctan): Likewise.
11243         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11244         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11245         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11246         * doc/posix-headers/complex.texi (complex.h): Likewise.
11247
11248 2010-10-07  Jim Meyering  <meyering@redhat.com>
11249
11250         parse-datetime: avoid compilation failure on OpenBSD 4.7
11251         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11252         This works around a compilation failure on OpenBSD 4.7:
11253         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11254
11255 2010-10-07  Eric Blake  <eblake@redhat.com>
11256
11257         docs: update cygwin progress
11258         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11259         1.7.6.
11260         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11261         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11262         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11263         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11264         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11265         Likewise.
11266         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11267         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11268         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11269         Likewise.
11270         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11271         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11272         Likewise.
11273         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11274         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11275         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11276         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11277         Likewise.
11278         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11279         Likewise.
11280         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11281
11282         docs: update parse-datetime history
11283         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11284         documentation of this function's history and alternatives.
11285
11286         cygwin: use more robust version check
11287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11288         exclude an eventual cygwin 1.9.1.
11289         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11291         (gl_FUNC_STRCASESTR): Likewise.
11292         Reported by Bruno Haible.
11293
11294 2010-10-06  Bruno Haible  <bruno@clisp.org>
11295
11296         string, sys_select: Avoid #including large headers unless necessary.
11297         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11298         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11299         OSF/1, BeOS, Haiku.
11300         Reported by Jim Meyering.
11301
11302 2010-10-05  Eric Blake  <eblake@redhat.com>
11303
11304         memmem, strstr, strcasestr: fix bug with long periodic needle
11305         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11306         periodic needle having false positive.
11307         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11308         and cygwin 1.7.7.
11309         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11311         (gl_FUNC_STRCASESTR): Likewise.
11312         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11313         * tests/test-memmem.c (main): Expose the bug.
11314         * tests/test-strcasestr.c (main): Likewise.
11315         * tests/test-strstr.c (main): Likewise.
11316         * tests/test-c-strcasestr.c (main): Likewise.
11317         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11318         * doc/posix-functions/strstr.texi (strstr): Likewise.
11319         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11320         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11321
11322 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11323
11324         parse-datetime: do some more renaming
11325         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11326         parse_datetime, not get_date.  Mention the renaming.
11327         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11328         in comments.
11329         * m4/bison.m4: Likewise.
11330
11331 2010-10-05  Eric Blake  <eblake@redhat.com>
11332
11333         parse-datetime: better name than get_date
11334         * NEWS: Reword the deprecation notice.
11335         * modules/get_date: Rename to modules/parse-datetime.
11336         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11337         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11338         * lib/get_date.y: Rename to lib/parse-datetime.y.
11339         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11340         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11341         * doc/getdate.texi: Provide fallback wrapper.
11342         * lib/getdate.h: Move guts, and wrap...
11343         * lib/parse-datetime.h: ...new file.
11344         * lib/parse-datetime.y (get_date): Rename...
11345         (parse_datetime): ...to this.
11346         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11347         (gl_PARSE_DATETIME): ...to this.
11348         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11349         documentation.
11350         * modules/getdate (Files): Provide fallback docs and header.
11351         (Notice, Depends-on): Update references.
11352         * tests/test-parse-datetime.c: Likewise.
11353         * DEPENDENCIES: Likewise.
11354         * MODULES.html.sh (Date and time <time.h>): Likewise.
11355         * doc/parse-datetime.texi (Date input formats)
11356         (Authors of parse_datetime): Likewise.
11357         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11358         (Include): Likewise.
11359         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11360         * gnulib-tool: Likewise.
11361         * m4/bison.m4 (gl_BISON): Likewise.
11362         Suggested by Bruno Haible.
11363
11364 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11365
11366         more ports to Solaris tr, which needs [] around ranges
11367         * gnulib-tool: Solaris tr needs [] around ranges.
11368         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11369         * tests/test-pipe-filter-gi1.c (main): Likewise.
11370         * tests/test-pipe-filter-ii1.c (main): Likewise.
11371
11372 2010-10-05  Eric Blake  <eblake@redhat.com>
11373
11374         bootstrap: fix Solaris regression
11375         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11376         around ranges.
11377         Reported by Pádraig Brady.
11378
11379         bootstrap: work with pkg-config
11380         * build-aux/bootstrap (check_versions): Also transliterate - in
11381         prerequisite name.
11382         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11383         prerequisites that were already found, to avoid confusion.
11384         Reported by Justin Clift.
11385
11386         faccessat: remove unused wrappers
11387         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11388         presence of these wrappers dragged in -lgen on Solaris.
11389         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11390
11391 2010-10-05  Jim Meyering  <meyering@redhat.com>
11392
11393         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11394         * Makefile (sc_pragma_columns): New syntax-check rule.
11395
11396 2010-10-04  Bruno Haible  <bruno@clisp.org>
11397
11398         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11399         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11400         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11401         Reported by Bruce Korb and Eric Blake.
11402
11403 2010-10-04  Bruno Haible  <bruno@clisp.org>
11404
11405         threadlib: Make option --with-libpth-prefix work.
11406         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11407         use $LIBPTH, not just -lpth.
11408
11409 2010-10-04  Bruno Haible  <bruno@clisp.org>
11410
11411         Avoid line length limitation from HP NonStop system header files.
11412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11413         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11414         * lib/ctype.in.h: Likewise.
11415         * lib/dirent.in.h: Likewise.
11416         * lib/errno.in.h: Likewise.
11417         * lib/fcntl.in.h: Likewise.
11418         * lib/float.in.h: Likewise.
11419         * lib/getopt.in.h: Likewise.
11420         * lib/iconv.in.h: Likewise.
11421         * lib/inttypes.in.h: Likewise.
11422         * lib/langinfo.in.h: Likewise.
11423         * lib/locale.in.h: Likewise.
11424         * lib/math.in.h: Likewise.
11425         * lib/netdb.in.h: Likewise.
11426         * lib/netinet_in.in.h: Likewise.
11427         * lib/poll.in.h: Likewise.
11428         * lib/pthread.in.h: Likewise.
11429         * lib/pty.in.h: Likewise.
11430         * lib/sched.in.h: Likewise.
11431         * lib/se-selinux.in.h: Likewise.
11432         * lib/search.in.h: Likewise.
11433         * lib/signal.in.h: Likewise.
11434         * lib/spawn.in.h: Likewise.
11435         * lib/stdarg.in.h: Likewise.
11436         * lib/stddef.in.h: Likewise.
11437         * lib/stdint.in.h: Likewise.
11438         * lib/stdio.in.h: Likewise.
11439         * lib/stdlib.in.h: Likewise.
11440         * lib/string.in.h: Likewise.
11441         * lib/strings.in.h: Likewise.
11442         * lib/sys_file.in.h: Likewise.
11443         * lib/sys_ioctl.in.h: Likewise.
11444         * lib/sys_select.in.h: Likewise.
11445         * lib/sys_socket.in.h: Likewise.
11446         * lib/sys_stat.in.h: Likewise.
11447         * lib/sys_time.in.h: Likewise.
11448         * lib/sys_times.in.h: Likewise.
11449         * lib/sys_utsname.in.h: Likewise.
11450         * lib/sys_wait.in.h: Likewise.
11451         * lib/sysexits.in.h: Likewise.
11452         * lib/termios.in.h: Likewise.
11453         * lib/time.in.h: Likewise.
11454         * lib/unistd.in.h: Likewise.
11455         * lib/wchar.in.h: Likewise.
11456         * lib/wctype.in.h: Likewise.
11457         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11458         * modules/ctype (Makefile.am): Likewise.
11459         * modules/dirent (Makefile.am): Likewise.
11460         * modules/errno (Makefile.am): Likewise.
11461         * modules/fcntl-h (Makefile.am): Likewise.
11462         * modules/float (Makefile.am): Likewise.
11463         * modules/getopt-posix (Makefile.am): Likewise.
11464         * modules/iconv-h (Makefile.am): Likewise.
11465         * modules/inttypes (Makefile.am): Likewise.
11466         * modules/langinfo (Makefile.am): Likewise.
11467         * modules/locale (Makefile.am): Likewise.
11468         * modules/math (Makefile.am): Likewise.
11469         * modules/netdb (Makefile.am): Likewise.
11470         * modules/netinet_in (Makefile.am): Likewise.
11471         * modules/poll-h (Makefile.am): Likewise.
11472         * modules/pthread (Makefile.am): Likewise.
11473         * modules/pty (Makefile.am): Likewise.
11474         * modules/sched (Makefile.am): Likewise.
11475         * modules/search (Makefile.am): Likewise.
11476         * modules/selinux-h (Makefile.am): Likewise.
11477         * modules/signal (Makefile.am): Likewise.
11478         * modules/spawn (Makefile.am): Likewise.
11479         * modules/stdarg (Makefile.am): Likewise.
11480         * modules/stddef (Makefile.am): Likewise.
11481         * modules/stdint (Makefile.am): Likewise.
11482         * modules/stdio (Makefile.am): Likewise.
11483         * modules/stdlib (Makefile.am): Likewise.
11484         * modules/string (Makefile.am): Likewise.
11485         * modules/strings (Makefile.am): Likewise.
11486         * modules/sys_file (Makefile.am): Likewise.
11487         * modules/sys_ioctl (Makefile.am): Likewise.
11488         * modules/sys_select (Makefile.am): Likewise.
11489         * modules/sys_socket (Makefile.am): Likewise.
11490         * modules/sys_stat (Makefile.am): Likewise.
11491         * modules/sys_time (Makefile.am): Likewise.
11492         * modules/sys_times (Makefile.am): Likewise.
11493         * modules/sys_utsname (Makefile.am): Likewise.
11494         * modules/sys_wait (Makefile.am): Likewise.
11495         * modules/sysexits (Makefile.am): Likewise.
11496         * modules/termios (Makefile.am): Likewise.
11497         * modules/time (Makefile.am): Likewise.
11498         * modules/unistd (Makefile.am): Likewise.
11499         * modules/wchar (Makefile.am): Likewise.
11500         * modules/wctype (Makefile.am): Likewise.
11501
11502 2010-10-04  Bruno Haible  <bruno@clisp.org>
11503
11504         read-file tests: Avoid a test failure on NonStop Kernel.
11505         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11506         a regular file.
11507         Reported by Joachim Schmitz <schmitz@hp.com>.
11508
11509 2010-10-03  Bruno Haible  <bruno@clisp.org>
11510
11511         gnulib-tool: Fixes for --create-testdir with --libtool.
11512         * gnulib-tool (func_get_automake_snippet): Don't augment
11513         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11514         an executable.
11515         (func_create_testdir): Handle module 'alloca' like func_import.
11516         Reported by Bruce Korb <bruce.korb@gmail.com>.
11517
11518 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11519
11520         Avoid some lines longer than 80 characters.
11521         * lib/stdint.in.h: Break long comment lines.
11522         * lib/math.in.h: Likewise.
11523         (_GL_NUM_UINT_WORDS): New macro, for readability.
11524         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11525         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11526         * lib/stdlib.in.h: Likewise.
11527         * lib/spawn.in.h: Likewise.
11528         * lib/sys_socket.in.h: Update an URL.
11529         * lib/sys_stat.in.h: Break long line.
11530
11531 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11532
11533         Improve pmccabe2html.
11534         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11535         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11536         when the sources change. Remove the line in the HTML about "Used
11537         ranges" (which implied that there might be other unused ranges),
11538         rename "Resume" to "Summary" (easier to understand for more users).
11539         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11540         styles, and some unnecessary blank lines.
11541
11542 2010-10-03  Bruno Haible  <bruno@clisp.org>
11543             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11544
11545         acl: Add support for ACLs on NonStop Kernel.
11546         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11547         Check whether the function aclsort() exists.
11548         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11549         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11550         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11551         (acl_nontrivial [HAVE_ACLSORT]: New function.
11552         (file_has_acl): Implement for NonStop Kernel.
11553         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11554         (qset_acl): Implement for NonStop Kernel.
11555         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11556         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11557         (main): Implement for NonStop Kernel.
11558         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11559         Kernel. Handle this flavor.
11560         * tests/test-set-mode-acl.sh: Likewise.
11561         * tests/test-copy-acl.sh: Likewise.
11562         * tests/test-copy-file.sh: Likewise.
11563
11564 2010-10-03  Bruno Haible  <bruno@clisp.org>
11565
11566         Info about ACLs on NonStop Kernel.
11567         * doc/acl-resources.txt: Add info about NonStop Kernel.
11568         References by Joachim Schmitz <schmitz@hp.com>.
11569
11570 2010-10-02  Bruno Haible  <bruno@clisp.org>
11571
11572         Define missing EDQUOT on NonStop Kernel.
11573         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11574         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11575         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11576         missing.
11577         * doc/posix-headers/errno.texi: Mention the NSK bug.
11578         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11579         Reported by Joachim Schmitz <schmitz@hp.com>.
11580
11581 2010-10-02  Bruno Haible  <bruno@clisp.org>
11582
11583         Update doc for POSIX:2008.
11584         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11585         Update URL of POSIX specification.
11586
11587 2010-10-02  Bruno Haible  <bruno@clisp.org>
11588
11589         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11590         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11591         from gnulib, not from Automake.
11592
11593 2010-10-02  Bruno Haible  <bruno@clisp.org>
11594
11595         New module 'system-posix'.
11596         * modules/system-posix: New file.
11597         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11598         module is present.
11599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11600         GNULIB_SYSTEM_POSIX.
11601         * modules/stdlib (Depends-on): Remove sys_wait.
11602         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11603         * doc/posix-functions/system.texi: Mention the new module.
11604         * doc/posix-headers/stdlib.texi: Likewise.
11605         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11606         define test_sys_wait_macros to a no-op.
11607         Reported by Sam Steingold <sds@gnu.org>.
11608
11609 2010-09-30  Bruno Haible  <bruno@clisp.org>
11610
11611         More renaming from 'getdate' to 'get_date'.
11612         * doc/get_date.texi: Renamed from doc/getdate.texi.
11613         * modules/get_date (Files): Update.
11614         * MODULES.html.sh (Date and time <time.h>): Update.
11615         * DEPENDENCIES: Update.
11616         * gnulib-tool: Update comment.
11617         * m4/bison.m4 (gl_BISON): Likewise.
11618         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11619
11620 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11621
11622         bootstrap: support ACLOCAL_FLAGS during aclocal
11623         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11624         can add additional -I dir for third-party .m4 files.
11625
11626 2010-09-30  Eric Blake  <eblake@redhat.com>
11627
11628         bootstrap: use glibtoolize on MacOS
11629         * build-aux/bootstrap (check_versions): Convert libtool into
11630         libtoolize.
11631         (tool search): Move libtool check earlier, and look for
11632         glibtoolize for MacOS.
11633         (gnulib_tool_options): Auto-add --libtool when appropriate.
11634         Reported by Justin Clift.
11635
11636         poll: fix typo that broke test on MacOS
11637         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11638         Reported by Justin Clift.
11639
11640         getdate: rename to get_date
11641         Note: getdate.h is not renamed, to minimize client impact.
11642         * modules/getdate: Mark obsolete.  Move old contents...
11643         * modules/get_date: ...to new module name.
11644         * modules/getdate-tests: Move...
11645         * modules/get_date-tests: ...here.
11646         * m4/getdate.m4: Move...
11647         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11648         * lib/getdate.y: Move...
11649         * lib/get_date.y: ...here.
11650         * tests/test-getdate.c: Move...
11651         * tests/test-get_date.c: ...here.
11652         * doc/posix-functions/getdate.texi (getdate): Update name.
11653         * NEWS: Mention the change.
11654
11655 2010-09-29  Bruno Haible  <bruno@clisp.org>
11656
11657         Separate the module 'waitpid' from the module 'sys_wait'.
11658         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11659         present.
11660         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11661         gl_MODULE_INDICATOR_FOR_TESTS.
11662         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11663         * modules/sys_wait (Depends-on): Remove waitpid.
11664         (Makefile.am): Substitute GNULIB_WAITPID.
11665         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11666         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11667         signature only if the 'waitpid' module is present.
11668         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11669         * NEWS: Mention the change.
11670         * modules/grantpt (Depends-on): Add waitpid.
11671         * modules/wait-process (Depends-on): Likewise.
11672
11673 2010-09-29  Bruno Haible  <bruno@clisp.org>
11674
11675         More tests for module 'sys_wait'.
11676         * modules/sys_wait-c++-tests: New file.
11677         * tests/test-sys_wait-c++.cc: New file.
11678         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11679         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11680
11681 2010-09-29  Bruno Haible  <bruno@clisp.org>
11682
11683         New module 'waitpid'.
11684         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11685         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11686         Don't include <process.h>.
11687         (waitpid): Declare only, using modern idiom.
11688         * m4/waitpid.m4: New file.
11689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11690         * modules/waitpid: New file.
11691         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11692         (Makefile.am): Update.
11693         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11694
11695 2010-09-28  Bruno Haible  <bruno@clisp.org>
11696
11697         poll: Assume ANSI C.
11698         * lib/poll.c (poll): Use an ANSI C declaration.
11699
11700 2010-09-28  Bruno Haible  <bruno@clisp.org>
11701
11702         poll-h: Create poll.h on all platforms.
11703         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11704         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11705         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11706         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11707         (gl_REPLACE_POLL_H): Don't set POLL_H.
11708         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11709         * modules/poll-h (Depends-on): Add include_next.
11710         (Makefile.am): Create poll.h unconditionally. Substitute also
11711         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11712
11713 2010-09-28  Bruno Haible  <bruno@clisp.org>
11714
11715         Tests for module 'poll-h'.
11716         * modules/poll-h-c++-tests: New file.
11717         * tests/test-poll-h-c++.cc: New file.
11718
11719         Tests for module 'poll-h'.
11720         * modules/poll-h-tests: New file.
11721         * tests/test-poll-h.c: New file.
11722
11723 2010-09-28  Bruno Haible  <bruno@clisp.org>
11724
11725         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11726         * modules/poll-h (Depends-on): Add 'extensions'.
11727
11728 2010-09-28  Bruno Haible  <bruno@clisp.org>
11729
11730         New module 'poll-h'.
11731         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11732         (poll): Use modern idiom.
11733         * modules/poll-h: New file.
11734         * modules/poll (Files): Remove lib/poll.in.h.
11735         (Depends-on): Add poll-h.
11736         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11737         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11738         * m4/poll_h.m4: New file.
11739         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11740         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11741         and invoke gl_REPLACE_POLL_H.
11742         * lib/poll.c: Use common idiom.
11743         * tests/test-poll.c: Likewise.
11744         * doc/posix-headers/poll.texi: Mention the poll-h module.
11745         Suggested by Eric Blake.
11746
11747 2010-09-26  Bruno Haible  <bruno@clisp.org>
11748
11749         sys_wait: Implement WSTOPSIG.
11750         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11751         Reported by Simon Josefsson.
11752
11753 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11754
11755         stdlib, sys_wait: Avoid compilation error on mingw.
11756         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11757
11758 2010-09-26  Bruno Haible  <bruno@clisp.org>
11759
11760         stdlib tests: Avoid code duplication.
11761         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11762         * modules/sys_wait-tests (Files): Likewise.
11763         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11764         * tests/test-stdlib.c: Include test-sys_wait.h.
11765         (main): Invoke test_sys_wait_macros.
11766         * tests/test-sys_wait.c: Include test-sys_wait.h.
11767         (main): Invoke test_sys_wait_macros.
11768
11769 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11770
11771         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11772         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11773         sure Windows sockets are working before calling getaddrinfo.
11774         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11775         * doc/gnulib.texi (Windows sockets): Fix typo.
11776
11777 2010-09-25  Bruno Haible  <bruno@clisp.org>
11778
11779         Tests for module 'regex-quote'.
11780         * modules/regex-quote-tests: New file.
11781         * tests/test-regex-quote.c: New file.
11782
11783         New module 'regex-quote'.
11784         * lib/regex-quote.h: New file.
11785         * lib/regex-quote.c: New file.
11786         * modules/regex-quote: New file.
11787         Suggested by Reuben Thomas <rrt@sc3d.org>.
11788
11789 2010-09-24  Bruno Haible  <bruno@clisp.org>
11790
11791         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11792         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11793
11794 2010-09-23  Bruno Haible  <bruno@clisp.org>
11795
11796         setenv: Relax license.
11797         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11798         Blake.
11799         Requested by Eric Blake.
11800
11801 2010-09-22  Bruno Haible  <bruno@clisp.org>
11802
11803         termios: Relax license.
11804         * modules/termios (License): Change to LGPLv2+.
11805         Requested by Eric Blake.
11806
11807 2010-09-22  Bruno Haible  <bruno@clisp.org>
11808
11809         threadlib: Allow the package to change the default to 'no'.
11810         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11811         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11812         Reported by Paul Eggert.
11813
11814 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11815             Bruno Haible  <bruno@clisp.org>
11816
11817         Fix endless loop in mbmemcasecoll.
11818         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11819         byte.
11820         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11821
11822 2010-09-22  Bruno Haible  <bruno@clisp.org>
11823
11824         Tests for module 'memcoll'.
11825         * modules/memcoll-tests: New file.
11826         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11827
11828         memcoll, xmemcoll: Clarify size vs. length.
11829         * modules/memcoll.c (memcoll0): Clarify specification.
11830         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11831         passed to collate_error.
11832
11833 2010-09-22  Bruno Haible  <bruno@clisp.org>
11834
11835         Tests for module 'memcasecmp'.
11836         * modules/memcasecmp-tests: New file.
11837         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11838
11839 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11840
11841         * lib/pthread.in.h: Add split double-inclusion guard, and include
11842         system <pthread.h> if there is one.  Use @@-style as in other
11843         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11844         pthread.h doesn't.
11845         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11846         (pthread_mutexattr_settype, pthread_mutex_trylock):
11847         New static inline functions, if there's no system <pthread.h>.
11848         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11849         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11850         Approximate with mutexes if the system lacks spinlocks, as in
11851         MacOS.
11852         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11853         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11854         @@-style.  Check for spinlocks separately.
11855         (gl_PTHREAD_DEFAULTS): New macro.
11856         * modules/pthread: Redo to use a more typical style for in.h files.
11857
11858 2010-09-21  Eric Blake  <eblake@redhat.com>
11859
11860         net_if: enhance tests
11861         * tests/test-net_if.c (main): Move signature checks earlier.
11862         Print failures to stderr.
11863         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11864         Document the bug that we do not yet fix.
11865
11866 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11867
11868         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11869         about gnulib, not GSS.
11870
11871 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11872
11873         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11874         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11875         for Emacs.
11876         * build-aux/pmccabe2html: Make Makefile.am example code more
11877         cut-and-paste friendly.
11878
11879 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11880
11881         * tests/test-net_if.c: New file.
11882         * modules/net_if-tests: New file.
11883
11884 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11885
11886         pthread: add pthread_spin_destroy
11887         * lib/pthread.in.h (pthread_spin_destroy): New function.
11888
11889 2010-09-19  Bruno Haible  <bruno@clisp.org>
11890
11891         gnulib-tool: Fix --help output.
11892         * gnulib-tool (func_usage): Fix help message.
11893         Reported by Reuben Thomas <rrt@sc3d.org>.
11894
11895 2010-09-18  Jim Meyering  <meyering@redhat.com>
11896
11897         maint.mk: avoid unexpanded \n in two diagnostics
11898         * top/maint.mk (sc_prohibit_always_true_header_tests):
11899         Don't use a literal \n in a halt=... assignment.  It would not be
11900         expanded, and the two \n bytes would appear in the diagnostic output
11901         rather than the desired newline.  Use halt=$$(printf ... instead.
11902         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11903
11904 2010-09-18  Bruno Haible  <bruno@clisp.org>
11905
11906         netinet_in: Doc tweak.
11907         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11909
11910 2010-09-18  Jim Meyering  <meyering@redhat.com>
11911
11912         init.sh: correct an outdated comment
11913         * tests/init.sh (create_exe_shims_):  s/function/alias/
11914
11915         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11916         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11917         a file named "*.exe" is removed between the glob expansion and the
11918         processing of that oddly named file.
11919
11920 2010-09-17  Eric Blake  <eblake@redhat.com>
11921
11922         mirbsd: add some more support
11923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11924         in BSD family.
11925         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11926         devices as OpenBSD.
11927         * m4/host-os.m4 (mirbsd): Add MirBSD.
11928
11929         tests: fix unportable assumption on sys/wait.h
11930         * tests/test-sys_wait.c (main): Relax test.
11931         * tests/test-stdlib.c (main): Likewise.
11932
11933         init.sh: accomodate directory with no .exes
11934         * tests/init.sh: Accomodate directory containing only scripts.
11935
11936         tests: avoid compiler warning
11937         * tests/test-stdlib.c (main): Use the variable.
11938
11939         fdutimens, fdutimensat: update signature, again
11940         * lib/utimens.h (gl_futimens): Delete, and move signature...
11941         (fdutimens): ...here.
11942         (fdutimensat): Rearrange signature.
11943         (lutimensat): Rename variable for clarity.
11944         * lib/fdutimensat.c (fdutimensat): Update signature.
11945         * lib/utimens.c (fdutimens): Likewise.
11946         (gl_futimens): Delete.
11947         (utimens, lutimens): Update callers.
11948         * lib/futimens.c (futimens): Likewise.
11949         * tests/test-fdutimensat.c: Likewise.
11950         * tests/test-utimens.c: Likewise.
11951         * tests/test-futimens.h: Update comment.
11952         * NEWS: Mention this.
11953         Suggested by Paul Eggert.
11954
11955 2010-09-17  Bruno Haible  <bruno@clisp.org>
11956
11957         Take over the maintenance of some older macros from Autoconf.
11958         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11959         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11960         GNU Autoconf.
11961         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11962         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11963
11964 2010-09-17  Eric Blake  <eblake@redhat.com>
11965
11966         fdutimensat: drop atflag validation
11967         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11968         with valid fd, to close a race scenario where futimens is
11969         unsupported and FILE was replaced by a symlink.
11970         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11971         accordingly.
11972         Suggested by Paul Eggert.
11973
11974 2010-09-16  Bruno Haible  <bruno@clisp.org>
11975
11976         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11977         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11978
11979 2010-09-16  Bruno Haible  <bruno@clisp.org>
11980
11981         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11982         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11983         login_tty exists.
11984         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11985
11986 2010-09-16  Bruno Haible  <bruno@clisp.org>
11987
11988         login_tty: Make the replacement code work on BSD systems.
11989         * lib/login_tty.c: Include <sys/ioctl.h>.
11990         (login_tty): Use ioctl TIOCSCTTY when available.
11991         * modules/login_tty (Depends-on): Add sys_ioctl.
11992         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11993
11994 2010-09-16  Bruno Haible  <bruno@clisp.org>
11995
11996         login_tty: Stricter unit test.
11997         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11998         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11999         and tcgetsid() after login_tty.
12000         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12001
12002 2010-09-16  Bruno Haible  <bruno@clisp.org>
12003
12004         New module 'tcgetsid'.
12005         * lib/tcgetsid.c: New file.
12006         * m4/tcgetsid.m4: New file.
12007         * modules/tcgetsid: New file.
12008         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12009         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12010         GNULIB_TCGETSID, HAVE_TCGETSID.
12011         * lib/termios.in.h: Include <sys/types.h>.
12012         (tcgetsid): New declaration.
12013         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12014         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12015         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12016         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12017
12018 2010-09-16  Bruno Haible  <bruno@clisp.org>
12019
12020         Tests for module 'termios'.
12021         * modules/termios-c++-tests: New file.
12022         * modules/termios-tests: New file.
12023         * tests/test-termios-c++.cc: New file.
12024         * tests/test-termios.c: New file.
12025
12026         New module 'termios'.
12027         * modules/termios: New file.
12028         * lib/termios.in.h: New file.
12029         * m4/termios_h.m4: New file.
12030         * doc/posix-headers/termios.texi: Mention the new module.
12031
12032 2010-09-16  Eric Blake  <eblake@redhat.com>
12033
12034         fdutimensat: add an atflag parameter
12035         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12036         * lib/utimens.h (fdutimensat): Update prototype.
12037         * tests/test-fdutimensat.c: Adjust test to match.
12038         * NEWS: Document the change.
12039         Suggested by Paul Eggert.
12040
12041 2010-09-16  Bruno Haible  <bruno@clisp.org>
12042
12043         Fix typos in comments.
12044         * lib/striconveh.h: Fix typo in comment.
12045         * lib/login_tty.c (login_tty): Likewise.
12046
12047 2010-09-15  Bruno Haible  <bruno@clisp.org>
12048
12049         stdlib: clarify MirBSD WEXITSTATUS bug
12050         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12051         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12052
12053 2010-09-15  Eric Blake  <eblake@redhat.com>
12054
12055         stdlib: work around MirBSD WEXITSTATUS bug
12056         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12057         * modules/stdlib (Depends-on): Add sys_wait.
12058         * tests/test-sys_wait.c (main): Enhance test.
12059         * tests/test-stdlib.c (main): Likewise.
12060         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12061
12062         docs: mention MacOS issue with WEXITSTATUS(constant)
12063         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12064         issue.
12065         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12066
12067         strnlen: add tests
12068         * modules/strnlen-tests: New file.
12069         * tests/test-strnlen.c: Likewise.
12070
12071 2010-09-14  Bruno Haible  <bruno@clisp.org>
12072
12073         unistr/base: Avoid link errors when module 'libunistring' is also used.
12074         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12075         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12076         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12077         Declare also when HAVE_LIBUNISTRING is set.
12078         Reported by Pádraig Brady <P@draigbrady.com>.
12079
12080 2010-09-14  Eric Blake  <eblake@redhat.com>
12081
12082         test-rawmemchr: make more robust
12083         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12084         (Depends-on, configure.ac): Add needed prerequisites to use it.
12085         * modules/memchr-tests (Files, Depends-on, configure.ac):
12086         Likewise, to avoid implicit reliance on memchr module prereqs.
12087         * tests/test-memchr.c (main): Ensure proper masking.
12088         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12089         reads.
12090
12091         memchr: detect glibc Alpha bug
12092         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12093         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12094         Alpha.
12095         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12096         * tests/test-memchr.c (main): Enhance test.
12097         Reported by Nelson H. F. Beebe.
12098
12099 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12100
12101         fts, getcwd, glob: audit for dirfd returning -1
12102         * lib/fts.c (opendir): Remove #define; no longer used.
12103         (opendirat): New arg PDIR_FD.  All callers changed.
12104         (fts_build, _opendir2): Use new opendirat to avoid the need for
12105         dirfd, or for checking whether dirfd returns a negative value.
12106         Don't use opendir; always use openat followed by fdopendir.
12107         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12108         it.
12109         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12110         returns -1 here.
12111         * modules/fts (Depends-on): Remove dirfd.
12112         * modules/getcwd (Depends-on): Likewise.
12113
12114 2010-09-13  Eric Blake  <eblake@redhat.com>
12115
12116         float: fix broken MirBSD header
12117         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12118         * doc/posix-headers/float.texi (float.h): Document it.
12119
12120 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12121
12122         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12123         * lib/fts.c (opendirat): New arg extra_flags.
12124         (__opendir2): Use it to avoid following symlinks when opening
12125         a directory, if symlinks are not supposed to be followed.  See
12126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12127
12128         fdopendir: preserve argument fd before returning
12129         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12130         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12131         (fdopendir): Use them, arranging for FD to be open to the same
12132         directory that it was when it started.  (It might be temporarily
12133         closed while fdopendir is running, so this not thread- or
12134         signal-safe.)  Be careful to do the right thing even when file
12135         descriptors are scarce and dup fails with errno == EMFILE.  See
12136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12137
12138 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12139
12140         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12141         * NEWS: Document change.
12142         * m4/regex.m4: Disable test for regoff_t size.
12143
12144 2010-09-13  Jim Meyering  <meyering@redhat.com>
12145
12146         fts: don't operate on an invalid file descriptor after failed dup
12147         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12148         negative file descriptor.
12149
12150 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12151
12152         savedir: add streamsavedir, deprecate fdsavedir
12153         * NEWS: Mention deprecation of fdsavedir.
12154         * lib/savedir.c (streamsavedir): New extern function, whose name
12155         ends in "savedir" to be consistent with the others.  This differs
12156         from savedirstream in that it doesn't close its argument.  The
12157         next version of GNU tar will use this instead of fdsavedir, to
12158         avoid some race conditions and conserve file descriptors.
12159         (savedirstream): Reimplement as a wrapper around streamsavedir.
12160         (fdsavedir): Add a comment deprecating this function.  As far as
12161         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12162         * lib/savedir.h (streamsavedir): New decl.
12163         (fdsavedir): Add a comment deprecating this.
12164
12165 2010-09-10  Bruno Haible  <bruno@clisp.org>
12166
12167         langinfo: Fix last commit.
12168         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12169         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12171
12172 2010-09-10  Bruno Haible  <bruno@clisp.org>
12173
12174         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12175         * lib/progreloc.c (O_EXEC): Define fallback.
12176
12177 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12178
12179         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12180         * NEWS: Document recent changes to fcntl-h.
12181         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12182         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12183         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12184         Similarly for O_SEARCH; this last was already true, but not documented.
12185         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12186         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12187         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12188         Likewise.
12189         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12190         is zero, not whether it is defined.
12191         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12192         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12193         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12194
12195 2010-09-10  Bruno Haible  <bruno@clisp.org>
12196
12197         langinfo, nl_langinfo: Fix for IRIX 5.3.
12198         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12199         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12200         HAVE_LANGINFO_YESEXPR.
12201         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12202         HAVE_LANGINFO_YESEXPR.
12203         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12204         HAVE_LANGINFO_T_FMT_AMPM is 0.
12205         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12206         HAVE_LANGINFO_YESEXPR is 0.
12207         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12208         NOEXPR.
12209         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12210         * doc/posix-functions/nl_langinfo.texi: Likewise.
12211         Reported by Eric Blake.
12212
12213 2010-09-10  Bruno Haible  <bruno@clisp.org>
12214
12215         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12216         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12217         on FreeBSD 8.0 and OpenBSD 4.6.
12218         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12219         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12220         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12221         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12222         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12223         ac_includes_default.
12224         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12225
12226 2010-09-09  Eric Blake  <eblake@redhat.com>
12227
12228         strsignal: work around NetBSD bug
12229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12230         * lib/string.in.h (includes): Likewise.
12231         * doc/posix-functions/strsignal.texi (strsignal): Document the
12232         bug.
12233         Reported by Nelson H. F. Beebe.
12234
12235         gnulib-tool: work with NetBSD /bin/sh
12236         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12237         (func_get_description, func_get_comment, func_get_status)
12238         (func_get_notice, func_get_applicability, func_get_filelist)
12239         (func_get_dependencies, func_get_autoconf_early_snippet)
12240         (func_get_autoconf_snippet, func_get_automake_snippet)
12241         (func_get_include_directive, func_get_link_directive)
12242         (func_get_license, func_get_maintainer, func_import): Avoid
12243         shell syntax errors from parsing syntax extensions.
12244
12245 2010-09-09  Bruno Haible  <bruno@clisp.org>
12246
12247         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12248         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12249         a reliable way to determine whether the 'alias' command works.
12250
12251 2010-09-08  Jim Meyering  <meyering@redhat.com>
12252
12253         init.sh: penalize a set-x-impaired shell; don't disqualify it
12254         * tests/init.sh: Too many shells corrupt application stderr when
12255         you set -x, so we can't afford to disqualify them, since at least
12256         on Irix-6.5, that would disqualify all bourne shells.
12257         Instead, use a two-pass approach.
12258         On the first pass, try to find a shell that meets the stricter
12259         condition that set -x does not corrupt stderr.
12260         If no shell meets the stricter condition, retest each candidate
12261         shell, but without that extra condition.  Finally, when
12262         VERBOSE=yes is requested and set -x might cause trouble, simply
12263         issue a warning and refrain from enabling debug output.
12264
12265 2010-09-08  Eric Blake  <eblake@redhat.com>
12266
12267         unsetenv: fix OpenBSD bug
12268         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12269         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12270         documentation.
12271         Reported by Jim Meyering.
12272
12273         strtod: work around IRIX 6.5 bug
12274         * lib/strtod.c (strtod): Reparse number on shorter string if
12275         exponent parse was invalid.
12276         * tests/test-strtod.c (main): Add check for "0x1p 2".
12277         Reported by Tom G. Christensen.
12278
12279         getopt: optimize previous patch
12280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12281         empty variable.  Speed up awk script.
12282         Reported by Paolo Bonzini.
12283
12284 2010-09-08  Jim Meyering  <meyering@redhat.com>
12285
12286         test.sh: disqualify shells for which set -x corrupts stderr
12287         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12288         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12289         appear in stderr output.  For example, this command:
12290             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12291         prints "P=1" on those two systems:
12292
12293 2010-09-08  Bruno Haible  <bruno@clisp.org>
12294
12295         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12296         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12297         commands, because some shells ignore redirections when there is an
12298         error in the command lookup.
12299         Reported by Eric Blake.
12300
12301 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12302
12303         * lib/regex.h: Fix a mention of `regex_compile' (should be
12304         `re_compile_pattern').
12305         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12306         (re_set_registers): Correct name of parameter in comment.
12307
12308         * doc/regex.texi: Add documentation for missing syntax flags.
12309         Remove commented-out documentation of defunct syntax option
12310         RE_NO_EMPTY_ALTS.
12311         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12312         Add documentation of re_set_registers.
12313         Document trick to re-use a pattern buffer by setting fastmap manually.
12314         Update documentation of struct re_pattern_buffer per public members.
12315         Uncomment documentation of equivalence class operators and
12316         collating symbol operators, since they are now implemented,
12317         Explain leftmost-longest matching in relation to alternatives.
12318         Tidy documentation of substring matching.
12319         Remove POSIX documentation, which is done better in
12320         glibc, and refer the reader there. Keep BSD API documentation, as
12321         that is not readily available elsewhere.
12322
12323 2010-09-07  Eric Blake  <eblake@redhat.com>
12324
12325         getopt: handle POSIXLY_CORRECT set but not exported
12326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12327         export state of POSIXLY_CORRECT, due to bash set -o posix.
12328         Reported by Dustin J. Mitchell.
12329
12330 2010-09-05  Bruno Haible  <bruno@clisp.org>
12331
12332         gnulib-tool: Highlight the changed options.
12333         * gnulib-tool (func_usage): Display the --import, --add-import,
12334         --remove-import explanations in bold font.
12335
12336 2010-09-06  Karl Berry  <karl@gnu.org>
12337
12338         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12339
12340 2010-09-05  Bruno Haible  <bruno@clisp.org>
12341
12342         uniwidth/width: Update comment.
12343         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12344         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12345
12346 2010-09-05  Bruno Haible  <bruno@clisp.org>
12347
12348         isinf, isnan: Relax license.
12349         * modules/isinf (License): Change from GPL to LGPL, with consent from
12350         Ben Pfaff.
12351         * modules/isnan (License): Likewise.
12352         Requested by Ludovic Courtès.
12353
12354 2010-09-04  Bruno Haible  <bruno@clisp.org>
12355
12356         gnulib-tool: Help migration from --import to --add-import or --update.
12357         * gnulib-tool: Emit a verbose error message when --import is used
12358         without any module name.
12359
12360 2010-09-04  Bruno Haible  <bruno@clisp.org>
12361
12362         Update doc about gnulib-tool.
12363         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12364         'gnulib-tool --update' in more detail.
12365         Reported by Eric Blake.
12366
12367 2010-09-04  Bruno Haible  <bruno@clisp.org>
12368
12369         gnulib-tool: Change --import. New options --add/remove-import.
12370         * gnulib-tool: New options --add-import, --remove-import.
12371         (func_usage): Document them.
12372         (have_associative): Define always.
12373         (func_import): In import mode, don't merge the specified settings with
12374         the cached settings. Implement remove-import mode.
12375         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12376         Explain when to use them versus --import.
12377         (Simple update): Use --add-import instead of --import.
12378         * NEWS: Mention the change.
12379
12380 2010-09-04  Bruno Haible  <bruno@clisp.org>
12381
12382         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12383         separate gnulib.mk.
12384
12385 2010-09-04  Bruno Haible  <bruno@clisp.org>
12386
12387         gnulib-tool: Don't talk about CVS any more.
12388         * gnulib-tool (func_usage, func_import): Write "version control"
12389         instead of CVS.
12390
12391 2010-09-04  Jim Meyering  <meyering@redhat.com>
12392
12393         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12394         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12395         false positives (whose names may be ill-chosen) when searching
12396         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12397         would cause a false-positive.
12398
12399         avoid coreutils "make distcheck" failure
12400         Coreutils tests with an absolute build directory name that contains
12401         a space.  Not quoting this directory name caused a failure.
12402         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12403         * tests/test-vc-list-files-cvs.sh: Likewise.
12404
12405 2010-09-04  Bruno Haible  <bruno@clisp.org>
12406
12407         gnulib-tool: Avoid error when run in a package without Makefile.am.
12408         * gnulib-tool: When collecting the m4dirs in a package that does not
12409         have a Makefile.am, eliminate those directories that contain no
12410         gnulib-cache.m4. Fix expression that counts these directories.
12411
12412 2010-09-04  Bruno Haible  <bruno@clisp.org>
12413
12414         update-copyright test: Improve output when perl is missing or too old.
12415         * tests/test-update-copyright.sh: Move test of Perl version down after
12416         the test whether Perl exists. Provide an explanation relating Perl's
12417         error message to Automake's SKIP: message.
12418
12419 2010-09-04  Bruno Haible  <bruno@clisp.org>
12420
12421         Don't augment PATH in TESTS_ENVIRONMENT.
12422         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12423         set abs_aux_dir instead of augmenting PATH.
12424         * modules/vc-list-files-tests (Makefile.am): Likewise.
12425         * tests/test-update-copyright.sh: Augment PATH here.
12426         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12427         path_prepend_.
12428         * tests/test-vc-list-files-git.sh: Likewise.
12429
12430 2010-09-04  Jim Meyering  <meyering@redhat.com>
12431
12432         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12433         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12434
12435 2010-09-04  Bruno Haible  <bruno@clisp.org>
12436
12437         strdup: Fix compilation error in C++ mode.
12438         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12439         the macro.
12440
12441 2010-09-04  Bruno Haible  <bruno@clisp.org>
12442
12443         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12444         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12445         macro into a function.
12446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12447
12448 2010-09-04  Bruno Haible  <bruno@clisp.org>
12449
12450         Set PATH_SEPARATOR the same way autoconf does.
12451         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12452         the value of PATH_SEPARATOR the same way autoconf-generated configure
12453         scripts do.
12454         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12455         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12456
12457 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12458
12459         Set PATH_SEPARATOR the same way autoconf does.
12460         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12461         the same way autoconf-generated configure scripts do.
12462         * posix-modules: Likewise.
12463
12464 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12465
12466         hash: fix safe_hasher const typo
12467         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12468         const; otherwise, there is a type error later.
12469
12470 2010-09-02  Jim Meyering  <meyering@redhat.com>
12471
12472         test-update-copyright.sh: require perl 5.8.0
12473         * tests/test-update-copyright.sh: Require 5.8.0,
12474         which Tom G. Christensen has confirmed is adequate,
12475         while 5.6.1 is not.
12476
12477 2010-09-02  Eric Blake  <eblake@redhat.com>
12478
12479         tests: init.sh improvements for re-exec'ing with zsh
12480         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12481         -vx through shell re-exec.
12482         Reported by Tom G. Christensen.
12483
12484         wctype: fix typo in previous commit
12485         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12486         Reported by Ludovic Courtès.
12487
12488 2010-09-02  Jim Meyering  <meyering@redhat.com>
12489
12490         test-update-copyright.sh: skip test if Perl is too old
12491         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12492         Reported by Tom G. Christensen.
12493
12494 2010-09-02  Bruno Haible  <bruno@clisp.org>
12495
12496         wctype: Avoid compilation error on IRIX 6.5.30.
12497         * lib/wctype.in.h (iswblank): Declare with a replacement if
12498         REPLACE_ISWBLANK is set.
12499         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12500         declared. Set REPLACE_ISWBLANK.
12501         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12502         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12503         * doc/posix-headers/wctype.texi: Likewise.
12504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12505
12506 2010-09-01  Bruno Haible  <bruno@clisp.org>
12507
12508         New module 'socketlib'.
12509         * modules/socketlib: New file.
12510         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12511         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12512         * modules/sockets (Depends-on): Add socketlib.
12513         Suggested by Sam Steingold <sds@gnu.org>.
12514
12515 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12516
12517         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12518
12519         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12520         when one needs search access to a directory but not read access.
12521         On systems where it is available, it works in some cases where
12522         O_RDONLY does not, namely on directories that are searchable but
12523         not readable, and which need only to be searchable.  If O_SEARCH
12524         is not available, fall back to the traditional method of using
12525         O_RDONLY.
12526
12527         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12528         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12529         when opening a directory that needs only to be searchable.
12530         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12531         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12532         * lib/openat-proc.c (openat_proc_name): Likewise.
12533         * lib/openat.c (openat_needs_fchdir): Likewise.
12534         * lib/save-cwd.c (save_cwd): Likewise.
12535         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12536
12537 2010-08-28  Bruno Haible  <bruno@clisp.org>
12538
12539         New module 'host-cpu-c-abi'.
12540         * modules/host-cpu-c-abi: New file.
12541         * m4/host-cpu-c-abi.m4: New file, based on part of
12542         clisp/src/m4/general.m4.
12543         Requested by Sam Steingold <sds@gnu.org>.
12544
12545 2010-08-31  Eric Blake  <eblake@redhat.com>
12546         and Jim Meyering  <meyering@redhat.com>
12547
12548         hash: factor, and guard against misbehaving hasher function
12549         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12550         of table->hasher's return value.  Also protect against a hash value
12551         so large that adding it to table->bucket results in a NULL pointer.
12552         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12553         Use it in place of open-coded check-and-abort.
12554
12555 2010-08-30  Bruno Haible  <bruno@clisp.org>
12556
12557         hash: silence spurious clang warning
12558         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12559         Reported by Eric Blake.
12560
12561 2010-08-30  Eric Blake  <eblake@redhat.com>
12562
12563         strstr, memmem, strcasestr: avoid leaked shell message
12564         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12565         FreeBSD.
12566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12568
12569         tests: silence clang warning
12570         * tests/test-malloca.c (do_allocation): Avoid dead store.
12571
12572 2010-08-29  Bruno Haible  <bruno@clisp.org>
12573
12574         gettext: Fix recent mistake.
12575         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12576
12577 2010-08-29  Bruno Haible  <bruno@clisp.org>
12578
12579         selinux-h: Offer a --without-selinux option.
12580         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12581         --without-selinux was specified, skip all tests and define
12582         HAVE_SELINUX_SELINUX_H to 0.
12583         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12584         set LIB_SELINUX to empty.
12585         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12586         gl_LIBSELINUX. If --without-selinux was specified, replace
12587         selinux/context.h.
12588         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12589
12590 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12591             Bruno Haible  <bruno@clisp.org>
12592
12593         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12594         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12595         of HAVE_REALLOC.
12596         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12597         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12598         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12599         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12600
12601 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12602             Bruno Haible  <bruno@clisp.org>
12603
12604         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12605         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12606         HAVE_CALLOC.
12607         * lib/xmalloc.c: Update accordingly.
12608         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12609         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12610         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12611
12612 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12613             Bruno Haible  <bruno@clisp.org>
12614
12615         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12616         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12617         HAVE_MALLOC.
12618         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12619         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12620         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12621
12622 2010-08-29  Bruno Haible  <bruno@clisp.org>
12623
12624         Update modules list.
12625         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12626         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12627         (String handling <string.h>): Add astrxfrm.
12628         (File system functions): Add readlinkat.
12629
12630 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12631
12632         Tests for module 'realloc-gnu'.
12633         * modules/realloc-gnu-tests: New file.
12634         * tests/test-realloc-gnu.c: New file.
12635
12636         Tests for module 'calloc-gnu'.
12637         * modules/calloc-gnu-tests: New file.
12638         * tests/test-calloc-gnu.c: New file.
12639
12640         Tests for module 'malloc-gnu'.
12641         * modules/malloc-gnu-tests: New file.
12642         * tests/test-malloc-gnu.c: New file.
12643
12644 2010-08-28  Bruno Haible  <bruno@clisp.org>
12645
12646         Rename module 'realloc' -> 'realloc-gnu'.
12647         * modules/realloc-gnu: New file, copied from modules/realloc.
12648         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12649         obsolete.
12650         * modules/mgetgroups (Depends-on): Update.
12651         * doc/posix-functions/realloc.texi: Update.
12652         * NEWS: Mention the change.
12653
12654         Rename module 'calloc' -> 'calloc-gnu'.
12655         * modules/calloc-gnu: New file, copied from modules/calloc.
12656         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12657         obsolete.
12658         * doc/posix-functions/calloc.texi: Update.
12659         * NEWS: Mention the change.
12660
12661         Rename module 'malloc' -> 'malloc-gnu'.
12662         * modules/malloc-gnu: New file, copied from modules/malloc.
12663         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12664         obsolete.
12665         * modules/argp (Depends-on): Update.
12666         * modules/regex (Depends-on): Update.
12667         * doc/posix-functions/malloc.texi: Update.
12668         * NEWS: Mention the change.
12669
12670 2010-08-28  Eric Blake  <eblake@redhat.com>
12671
12672         pread, pwrite: add missing dependency
12673         * modules/pread (Depends-on): Add extensions.
12674         * modules/pwrite (Depends-on): Likewise.
12675
12676 2010-08-28  Bruno Haible  <bruno@clisp.org>
12677
12678         unistr/u*-strchr: Fix tests dependencies.
12679         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12680         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12681         Reported by Ian Beckwith <ianb@erislabs.net>.
12682
12683 2010-08-28  Bruno Haible  <bruno@clisp.org>
12684
12685         read-file: Don't occupy too much unused memory.
12686         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12687
12688 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12689             Eric Blake  <eblake@redhat.com>
12690             Bruno Haible  <bruno@clisp.org>
12691
12692         read-file: Avoid memory reallocations with regular files.
12693         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12694         (fread_file): With regular files, use the remaining length as the
12695         initial buffer size.  Check against overflow.
12696         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12697         sys_stat.
12698
12699 2010-08-28  Bruno Haible  <bruno@clisp.org>
12700
12701         ftello: Relax license.
12702         * modules/ftello (License): Relax to LGPLv2+.
12703         Reported by Eric Blake.
12704
12705 2010-08-28  Bruno Haible  <bruno@clisp.org>
12706
12707         Avoid relocwrapper link errors due to gnulib replacement functions.
12708         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12709         function.
12710         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12711
12712 2010-08-28  Bruno Haible  <bruno@clisp.org>
12713
12714         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12715         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12716         defined.
12717         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12718         Suggested by Eric Blake.
12719
12720 2010-08-28  Bruno Haible  <bruno@clisp.org>
12721
12722         sys_socket, netdb: Ensure socklen_t gets defined.
12723         * modules/sys_socket (Depends-on): Add socklen.
12724         * modules/netdb (Depends-on): Likewise.
12725         * modules/getaddrinfo (Depends-on): Remove socklen.
12726         * modules/getsockopt (Depends-on): Likewise.
12727         * modules/setsockopt (Depends-on): Likewise.
12728         * tests/test-sys_socket.c: Check that socklen_t is defined.
12729         * tests/test-netdb.c: Likewise.
12730         * m4/socklen.m4: Update comments.
12731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12732
12733 2010-08-27  Eric Blake  <eblake@redhat.com>
12734
12735         login_tty: add missing dependency
12736         * modules/login_tty (Depends-on): Add pty.
12737
12738 2010-08-26  Eric Blake  <eblake@redhat.com>
12739
12740         lib-symbol-versions: fix m4 quoting
12741         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12742         format for AC_LINK_IFELSE.
12743
12744         glob: fix compile test
12745         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12746
12747         btowc: fix missing file
12748         * modules/btowc (Files): Also ship locale-fr.m4.
12749
12750         lseek: fix link test
12751         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12752         AC_LINK_IFELSE.
12753
12754         include_next: silence autoconf 2.68 warning
12755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12756         AC_COMPILE_IFELSE as special.
12757         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12758         autoconf < 2.68.
12759
12760         acl: fix compilation test
12761         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12762         AC_COMPILE_IFELSE.
12763
12764 2010-08-26  Bruno Haible  <bruno@clisp.org>
12765
12766         Modernize AC_TRY_RUN invocations.
12767         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12768         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12769         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12770         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12771         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12772         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12775         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12776         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12777         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12778         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12779         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12780         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12781         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12782         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12783         gl_MBRLEN_NUL_RETVAL): Likewise.
12784         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12785         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12786         Likewise.
12787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12788         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12789         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12790         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12791         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12792         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12793         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12794         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12795         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12796         Likewise.
12797         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12798         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12802         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12804         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12805         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12807
12808 2010-08-26  Bruno Haible  <bruno@clisp.org>
12809
12810         Modernize AC_TRY_LINK invocations.
12811         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12812         AC_TRY_LINK.
12813         * m4/argp.m4 (gl_ARGP): Likewise.
12814         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12815         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12816         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12820         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12821         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12822         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12824         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12825         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12826         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12827         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12828         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12829         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12830         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12831         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12832         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12833         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12834         Likewise.
12835         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12836         Likewise.
12837         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12838         Likewise.
12839         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12840         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12841         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12842         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12843         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12844         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12845         * m4/servent.m4 (gl_SERVENT): Likewise.
12846         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12847         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12849         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12850         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12851         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12852         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12854         * modules/tsearch-tests (configure.ac): Likewise.
12855
12856 2010-08-26  Bruno Haible  <bruno@clisp.org>
12857
12858         Modernize AC_TRY_COMPILE invocations.
12859         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12860         AC_TRY_COMPILE.
12861         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12862         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12863         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12864         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12865         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12866         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12867         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12868         * m4/lock.m4 (gl_LOCK): Likewise.
12869         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12870         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12871         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12872         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12873         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12874         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12875         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12877         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12878         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12879         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12881         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12882         extraneous semicolon.
12883
12884 2010-08-26  Jim Meyering  <meyering@redhat.com>
12885
12886         stat-time: relax license LGPL
12887         * modules/stat-time (License): Change from GPL to LGPL,
12888         with consent from all contributors, for use in libguile.
12889         Requested by Ludovic Courtès.
12890
12891 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12892
12893         poll: return immediately on POLLHUP.
12894         * lib/poll.c (poll): Always set timeout before wait_timeout is
12895         computed.
12896
12897 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12898
12899         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12900         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12901         rmdir ("dir/.//"), unlinkat.
12902
12903 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12904
12905         stdbool: avoid spurious failure with modern xlc
12906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12907
12908 2010-08-24  Bruno Haible  <bruno@clisp.org>
12909
12910         getloadavg: simplify code
12911         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12912         gl_have_func. Update comments.
12913
12914 2010-08-24  Eric Blake  <eblake@redhat.com>
12915
12916         getloadavg: don't define SVR4 on cygwin
12917         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12918         only define SVR4 when -lkvm is required.
12919         Reported by Yaakov Selkowitz.
12920
12921 2010-08-24  Bruno Haible  <bruno@clisp.org>
12922
12923         priv-set: fix comment
12924         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12925
12926 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12927
12928         priv-set: fix comments
12929         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12930         to match code, as suggested by David Bartley in:
12931         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12932
12933 2010-08-23  Eric Blake  <eblake@redhat.com>
12934
12935         stdbool: avoid rejecting clang
12936         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12937         * tests/test-stdbool.c: Enable more tests if using the system
12938         <stdbool.h> instead of the gnulib replacement.
12939         (main): Move xlc bug test to a runtime test for all compilers.
12940         Reported by Anders Kaseorg.
12941
12942         argz: fix shell quoting issue
12943         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12944         Reported by Charles Wilson.
12945
12946 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12947             Erik Faye-Lund <kusmabite@gmail.com>
12948
12949         poll, select: handle ERROR_BROKEN_PIPE.
12950         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12951         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12952         * lib/select.c (win32_compute_revents): Do not mark a pipe
12953         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12954
12955 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12956
12957         fts: allow compilation with C++
12958         * lib/fts_.h: Specify extern "C" linkage with C++.
12959
12960 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12961
12962         Fix gnulib-tool sed script de-commentation for AIX sed.
12963         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12964         sed.
12965
12966 2010-08-17  Eric Blake  <eblake@redhat.com>
12967
12968         test-stddef: test for (some) offsetof bugs
12969         * tests/test-stddef.c: Enhance test to ensure correct type of
12970         offsetof.
12971         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12972         that we are not fixing at this time.
12973
12974 2010-08-15  Bruno Haible  <bruno@clisp.org>
12975
12976         stpncpy: Allow stpncpy to be defined as a macro.
12977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12978         if it's already correctly declared.
12979         * lib/string.in.h (stpncpy): Undefine before redefining.
12980         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12981
12982 2010-08-14  Bruno Haible  <bruno@clisp.org>
12983
12984         Rename module 'memxfrm' to 'amemxfrm'.
12985         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12986         (amemxfrm): Renamed from memxfrm.
12987         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12988         (amemxfrm): Renamed from memxfrm.
12989         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12990         * NEWS: Mention the change.
12991         * MODULES.html.sh (String handling <string.h>): Update.
12992         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12993         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12994         * lib/unicase/u16-casexfrm.c: Likewise.
12995         * lib/unicase/u32-casexfrm.c: Likewise.
12996         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12997         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12998         * lib/uninorm/u16-normxfrm.c: Likewise.
12999         * lib/uninorm/u32-normxfrm.c: Likewise.
13000         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13001         memxfrm.
13002         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13003         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13004         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13005         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13006         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13007         Suggested by Paul Eggert.
13008
13009 2010-08-14  Bruno Haible  <bruno@clisp.org>
13010
13011         Tests for module 'astrxfrm'.
13012         * modules/astrxfrm-tests: New file.
13013         * tests/test-astrxfrm.c: New file.
13014
13015         New module 'astrxfrm'.
13016         * lib/astrxfrm.h: New file.
13017         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13018         * modules/astrxfrm: New file.
13019
13020 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13021
13022         regex: Tweak doc.
13023         * doc/regex.texi (Overview): Don't mention regex.c.
13024         (GNU Regular Expression Compiling): Likewise.
13025         (Match-end-of-line Operator): Mention 'not_eol'.
13026
13027 2010-08-14  Brian Gough  <bjg@gnu.org>
13028             Bruno Haible  <bruno@clisp.org>
13029
13030         git-merge-changelog: add doc relating to use with bzr and hg.
13031         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13032
13033 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13034
13035         pthread: fix pthread.h creation for srcdir != builddir
13036         * modules/pthread (Makefile.am): Fix the rule to work also in a
13037         non-srcdir build.
13038
13039 2010-08-13  Karl Berry  <karl@gnu.org>
13040
13041         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13042         * doc/posix-*/*: force line break before @url of POSIX
13043         specifications.
13044         Suggested by Werner Lemberg.
13045
13046 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         strtod: fix const diagnostic
13049         * lib/strtod.c (strtod): Don't assign const char * to char *,
13050         as this elicits a warning from GCC when warnings are enabled.
13051
13052 2010-08-10  Pádraig Brady <P@draigbrady.com>
13053         and Eric Blake  <eblake@redhat.com>
13054
13055         copy-acl: ignore ENOTSUP on HP-UX
13056         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13057         so that it is available for HP-UX.
13058         * lib/copy-acl.c (qcopy_acl): Use it.
13059         Reported by Patrick M. Callahan.
13060
13061 2010-08-10  Eric Blake  <eblake@redhat.com>
13062
13063         open, chown: relax license
13064         * modules/open (License): Change to LGPLv2+, with consent by all
13065         authors, for use in augeas.
13066         * modules/chown (License): Likewise.
13067         * modules/lchown (Likewise): Likewise.
13068         Requested by Adam Stokes.
13069
13070 2010-08-09  Karl Berry  <karl@gnu.org>
13071
13072         * build-aux/ar-lib: new file, import from Automake.
13073         * config/srclist.txt: autocheck for updates.
13074
13075 2010-08-09  Eric Blake  <eblake@redhat.com>
13076
13077         readlinkat: adjust client modules
13078         * modules/areadlinkat (Depends-on): Use readlinkat, not
13079         symlinkat.
13080         * modules/areadlinkat-with-size (Depends-on): Likewise.
13081
13082         mknod: be more vocal about danger of running tests as root
13083         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13084         root, since that is just asking for problems.
13085         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13086
13087         readlinkat: split into its own module
13088         * modules/symlinkat: Split readlinkat...
13089         * modules/readlinkat: ...into separate module.
13090         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13091         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13092         * lib/symlinkat.c (readlinkat): Move...
13093         * lib/readlinkat.c: ...into new file.
13094         * modules/symlinkat-tests: Split readlinkat test...
13095         * modules/readlinkat-tests: ...into separate module.
13096         * tests/test-symlinkat.c: Split...
13097         * tests/test-readlinkat.c: ...into new file.
13098         * NEWS: Document the split.
13099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13100         * lib/unistd.in.h (readlinkat): Likewise.
13101         Suggested by Bruno Haible.
13102
13103 2010-08-08  Bruno Haible  <bruno@clisp.org>
13104
13105         memxfrm: Speed up.
13106         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13107         that usually only one call to strxfrm is necessary for each string
13108         part.
13109         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13110
13111 2010-08-07  Karl Berry  <karl@gnu.org>
13112
13113         * doc/posix-headers/limits.texi,
13114         * doc/posix-functions/malloc.texi,
13115         * doc/posix-functions/strsignal.texi: missing @item.
13116         * doc/ld-version-script.texi: spurious leading i.
13117         * doc/regex.texi (Interval Operators): no commas inside @var.
13118
13119 2010-08-01  Bruno Haible  <bruno@clisp.org>
13120
13121         Integrate the regex documentation.
13122         * doc/gnulib.texi: Define 'cn' index.
13123         (Regular expressions): New a chapter that includes regex.texi and
13124         regexprops-generic.texi.
13125         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13126         syntax.
13127
13128         Whitespace cleanup.
13129         * doc/regex.texi: Remove trailing spaces.
13130
13131         Add regex documentation.
13132         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13133         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13134         Written by Kathy A. Hargreaves and Karl Berry.
13135
13136 2010-08-01  Bruno Haible  <bruno@clisp.org>
13137
13138         link: Update documentation.
13139         * doc/posix-functions/link.texi: Update regarding Solaris.
13140
13141 2010-07-31  Bruno Haible  <bruno@clisp.org>
13142
13143         Update modules list.
13144         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13145         (String handling <string.h>): Add memcmp2, memxfrm.
13146         (Container data structures): Add xlist, xsublist, xoset.
13147         (Core language properties): Add alignof, unused-parameter.
13148         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13149         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13150         (Unibyte characters <ctype.h>): New section.
13151         (String handling <string.h>): New section.
13152         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13153         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13154         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13155         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13156         tan, tanh, tanl, y0, y1, yn.
13157         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13158         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13159         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13160         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13161         unlockpt, vdprintf, vdprintf-posix.
13162         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13163         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13164         xconcat-filename.
13165         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13166         getdtablesize, pipe2, pipe2-safer.
13167         (Security): New section.
13168         (Networking functions): Add accept4.
13169         (Signal handling): Add sigpipe.
13170         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13171         mbmemcasecoll.
13172         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13173         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13174         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13175         pipe-filter-ii.
13176         (Misc): Add argp-version-etc, login_tty, parse-duration.
13177
13178 2010-07-31  Bruno Haible  <bruno@clisp.org>
13179
13180         Improve doc in MODULES.html.
13181         * modules/linkat (Description): Add the word "function".
13182         * modules/mkfifo (Description): Likewise.
13183         * modules/mknod (Description): Likewise.
13184         * modules/remove (Description): Likewise.
13185         * modules/renameat (Description): Likewise.
13186         * modules/stat (Description): Likewise.
13187         * modules/symlink (Description): Likewise.
13188         * modules/unlink (Description): Likewise.
13189
13190 2010-07-31  Bruno Haible  <bruno@clisp.org>
13191
13192         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13193         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13194         option --enable/disable-c++ instead of --enable/disable-cxx.
13195         * NEWS: Mention the change.
13196
13197 2010-07-31  Bruno Haible  <bruno@clisp.org>
13198
13199         readlink, areadlink: Relax test a bit.
13200         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13201         alternative to ENOTDIR.
13202         * tests/test-areadlink.h (test_areadlink): Likewise.
13203         Reported by Rainer Tammer.
13204
13205 2010-07-31  Bruno Haible  <bruno@clisp.org>
13206
13207         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13208         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13209         character, perform the search using U_STRCHR.
13210         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13211         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13212         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13213         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13214         Suggested by Paolo Bonzini.
13215
13216 2010-07-31  Bruno Haible  <bruno@clisp.org>
13217
13218         unistr/u*-strstr: Fix dependencies.
13219         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13220         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13221         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13222
13223 2010-07-31  Bruno Haible  <bruno@clisp.org>
13224
13225         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13226         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13227         the beginning of the loop.
13228         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13229         cases in 'switch' statement.
13230
13231         unistr/u8-strchr: Fix several bugs.
13232         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13233         the string. When not found, return NULL, not a pointer near the end.
13234
13235         More tests for unistr/u8-strchr.
13236         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13237         that the function does not read past the first occurrence of the byte
13238         being searched.
13239         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13240         * tests/unistr/test-u16-strchr.c (main): New function.
13241         * tests/unistr/test-u32-strchr.c (main): New function.
13242
13243 2010-07-31  Bruno Haible  <bruno@clisp.org>
13244
13245         posix-modules: Ignore backup files of documentation files.
13246         * posix-modules: grep only through files named *.texi.
13247
13248 2010-07-31  Bruno Haible  <bruno@clisp.org>
13249
13250         symlinkat: Fix documentation.
13251         * doc/posix-functions/readlinkat.texi: Fix module name.
13252
13253 2010-07-31  Bruno Haible  <bruno@clisp.org>
13254
13255         fchownat: Replace also when chown has the trailing slash bug.
13256         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13257         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13258         introduced on 2010-04-10.
13259         Reported by Rainer Tammer.
13260
13261 2010-07-31  Bruno Haible  <bruno@clisp.org>
13262
13263         linkat: Work around AIX 7.1 bug.
13264         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13265         whether linkat handles trailing slash correctly. If not, replace linkat
13266         and define LINKAT_TRAILING_SLASH_BUG.
13267         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13268         check whether (fd1,file1) points to a directory if file1 or file2 ends
13269         in a slash. Code taken from lib/link.c.
13270         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13271         Reported by Rainer Tammer.
13272
13273 2010-07-31  Bruno Haible  <bruno@clisp.org>
13274
13275         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13276         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13277         This disables an xlc optimization that was causing wrong test results.
13278         Reported by Rainer Tammer.
13279
13280 2010-07-31  Bruno Haible  <bruno@clisp.org>
13281
13282         iconv: Work around AIX 6.1..7.1 bug.
13283         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13284         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13285         cross-compiling, guess no on all versions of AIX.
13286         Reported by Rainer Tammer.
13287
13288 2010-07-31  Bruno Haible  <bruno@clisp.org>
13289
13290         readlink: Relax test a bit.
13291         * tests/test-readlink.h (test_readlink): Allow different errno value
13292         when readlink is called with a file name that ends in / and refers to
13293         a file.
13294         Suggested by Eric Blake.
13295         Reported by Rainer Tammer.
13296
13297 2010-07-31  Bruno Haible  <bruno@clisp.org>
13298
13299         copysign: Does not require -lm on glibc systems.
13300         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13301         gl_COMMON_DOUBLE_MATHFUNC.
13302         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13303
13304 2010-07-31  Bruno Haible  <bruno@clisp.org>
13305
13306         duplocale: Work around AIX 7.1 bug.
13307         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13308         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13309         * lib/duplocale.c (rpl_duplocale): Update comment.
13310         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13311         Reported by Rainer Tammer.
13312
13313 2010-07-30  Bruno Haible  <bruno@clisp.org>
13314
13315         dirfd: Avoid link error on AIX 7.1.
13316         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13317         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13318         exist, set REPLACE_DIRFD.
13319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13320         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13321         * doc/posix-functions/dirfd.texi: Update.
13322         Reported by Rainer Tammer.
13323
13324 2010-07-30  Eric Blake  <eblake@redhat.com>
13325
13326         strtod: next round of AIX fixes
13327         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13328         exponent.
13329         * tests/test-strtod.c (main): Enhance tests.
13330         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13331         Reported by Rainer Tammer.
13332
13333         futimens: fix configure check
13334         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13335         Reported by Bruno Haible.
13336
13337 2010-07-30  Bruno Haible  <bruno@clisp.org>
13338
13339         getline: Update regarding AIX.
13340         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13341         Reported by Rainer Tammer.
13342
13343 2010-07-30  Bruno Haible  <bruno@clisp.org>
13344
13345         wcwidth: Drop replacement on AIX 7.
13346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13347         AIX 7.
13348         Reported by Rainer Tammer.
13349
13350 2010-07-30  Bruno Haible  <bruno@clisp.org>
13351
13352         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13354         a 'char *'.
13355         Reported by Rainer Tammer.
13356
13357 2010-07-30  Bruno Haible  <bruno@clisp.org>
13358
13359         unlink: Update regarding AIX.
13360         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13361         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13362         Reported by Rainer Tammer.
13363
13364 2010-07-30  Bruno Haible  <bruno@clisp.org>
13365
13366         symlink: Update regarding AIX.
13367         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13368         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13369         Reported by Rainer Tammer.
13370
13371 2010-07-30  Bruno Haible  <bruno@clisp.org>
13372
13373         strndup: Update regarding AIX.
13374         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13375         AIX 7.
13376         Reported by Rainer Tammer.
13377
13378 2010-07-30  Bruno Haible  <bruno@clisp.org>
13379
13380         stat: Update regarding AIX.
13381         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13382         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13383         Reported by Rainer Tammer.
13384
13385 2010-07-30  Bruno Haible  <bruno@clisp.org>
13386
13387         truncl: Fix autoconf test.
13388         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13389         whether truncl works.
13390         Reported by Rainer Tammer.
13391
13392 2010-07-30  Bruno Haible  <bruno@clisp.org>
13393
13394         round: Update regarding AIX.
13395         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13396         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13397         Reported by Rainer Tammer.
13398
13399 2010-07-30  Bruno Haible  <bruno@clisp.org>
13400
13401         rename: Update regarding AIX.
13402         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13403         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13404         Reported by Rainer Tammer.
13405
13406 2010-07-30  Bruno Haible  <bruno@clisp.org>
13407
13408         printf.m4: Update regarding AIX.
13409         * m4/printf.m4: Update comments regarding AIX.
13410         Reported by Rainer Tammer.
13411
13412 2010-07-30  Bruno Haible  <bruno@clisp.org>
13413
13414         iconv: Update regarding AIX.
13415         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13416         AIX 7.
13417         Reported by Rainer Tammer.
13418
13419 2010-07-30  Bruno Haible  <bruno@clisp.org>
13420
13421         getopt: Update regarding AIX.
13422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13423         no on AIX.
13424         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13425         Reported by Rainer Tammer.
13426
13427 2010-07-30  Bruno Haible  <bruno@clisp.org>
13428
13429         ldexpl; Update regarding AIX.
13430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13431         on AIX 7.
13432         Reported by Rainer Tammer.
13433
13434 2010-07-30  Bruno Haible  <bruno@clisp.org>
13435
13436         frexpl: Update regarding AIX.
13437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13438         on AIX 7.
13439         Reported by Rainer Tammer.
13440
13441 2010-07-30  Bruno Haible  <bruno@clisp.org>
13442
13443         open, fopen: Update regarding AIX.
13444         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13445         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13446         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13447         * doc/posix-functions/fopen.texi: Likewise.
13448         Reported by Rainer Tammer.
13449
13450 2010-07-30  Bruno Haible  <bruno@clisp.org>
13451
13452         chown: Update doc regarding AIX.
13453         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13454         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13455         Reported by Rainer Tammer.
13456
13457 2010-07-30  Eric Blake  <eblake@redhat.com>
13458
13459         strtod: fix bug in replacement function on AIX
13460         * lib/strtod.c (strtod): Special case broken "0x" parse in
13461         underlying strtod.
13462         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13463         * doc/posix-functions/strtod.texi (strtod): Likewise.
13464         Reported by Rainer Tammer.
13465
13466 2010-07-30  Bruno Haible  <bruno@clisp.org>
13467
13468         mbrlen: Fix cross-compilation guess for AIX.
13469         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13470         guess. Leftover from 2008-12-22.
13471
13472 2010-07-30  Bruno Haible  <bruno@clisp.org>
13473
13474         mbrtowc: Fix cross-compilation guess for AIX.
13475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13476         guess. Leftover from 2008-12-21.
13477
13478 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13479
13480         init.sh: work around trap limitation of some shells
13481         * tests/init.sh (setup_): Move exit trap outside of shell function.
13482
13483 2010-07-29  Eric Blake  <eblake@redhat.com>
13484
13485         strtod: aid debugging
13486         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13487         understanding why strtod is rejected.
13488
13489 2010-07-28  Bruno Haible  <bruno@clisp.org>
13490
13491         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13492         * lib/unistr/u8-chr.c: Include <string.h>.
13493         * tests/unistr/test-u8-chr.c: Likewise.
13494         * tests/unistr/test-u16-chr.c: Likewise.
13495         * tests/unistr/test-u32-chr.c: Likewise.
13496         * tests/unistr/test-u8-strchr.c: Likewise.
13497         * tests/unistr/test-u16-strchr.c: Likewise.
13498         * tests/unistr/test-u32-strchr.c: Likewise.
13499         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13500         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13501         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13502         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13503
13504 2010-07-28  Bruno Haible  <bruno@clisp.org>
13505
13506         Use spaces for indentation, not tabs.
13507         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13508
13509 2010-07-27  Bruno Haible  <bruno@clisp.org>
13510
13511         mbspcasecmp: Fix function specification.
13512         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13513         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13514         Reported by Eric Blake <eblake@redhat.com>.
13515
13516 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13517
13518         timespec: use cast and not conditional, as truncation isn't possible
13519         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13520         instead of a conditional.  Comment about the situation in more detail.
13521         This undoes most of the 2009-10-29 patch.
13522
13523 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13524
13525         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13526         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13527         * lib/unistr/u8-strchr.c: Likewise.
13528         * modules/unistr/u8-chr: Depend on memchr.
13529
13530         unistr/u*-strchr: add tests
13531         * modules/unistr/u8-strchr-tests: New file.
13532         * modules/unistr/u16-strchr-tests: New file.
13533         * modules/unistr/u32-strchr-tests: New file.
13534         * tests/unistr/test-strchr.h: New file.
13535         * tests/unistr/test-u8-strchr.c: New file.
13536         * tests/unistr/test-u16-strchr.c: New file.
13537         * tests/unistr/test-u32-strchr.c: New file.
13538
13539         unistr/u*-chr: test multibyte sequences more
13540         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13541         test vector.
13542         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13543         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13544         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13545
13546         unistr/u*-chr: test multibyte sequences
13547         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13548
13549         unistr/u*-chr: prepare for multibyte tests
13550         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13551         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13552         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13553         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13554         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13555         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13556
13557 2010-07-18  Bruno Haible  <bruno@clisp.org>
13558
13559         unistr/u8-strchr: Optimize non-ASCII argument case.
13560         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13561         because the first byte often matches anyway.
13562         Reported by Pádraig Brady <P@draigbrady.com>.
13563
13564 2010-07-15  Karl Berry  <karl@gnu.org>
13565
13566         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13567
13568 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13569
13570         getcwd: on Solaris, work better if ancestors are inaccessible
13571         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13572         buffer and size, try again with a large buffer.  This works better
13573         on Solaris, since its getcwd succeeds even if the path to the root
13574         is inaccessible, and this is helpful in common cases such as .zfs
13575         hidden directories.  Problem reported by J Chapman Flack in
13576         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13577         Use system getcwd if it's declared, not merely if it's partly
13578         working; use the partly-working test only to avoid needless effort
13579         if the system getcwd fails.
13580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13581         comment that was already obsolete and is now even more obsolete.
13582         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13583         now might call strdup.
13584
13585 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13586
13587         pthread: Add enough so that coreutils/src/sort.c compiles.
13588         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13589         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13590         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13591         Include <sys/types.h>, in case it defines pthread_t.
13592         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13593         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13594         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13595         (pthread_rwlockattr_t, pthread_spinlock_t):
13596         New typedefs, if HAVE_PTHREAD_T is not defined.
13597         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13598         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13599         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13600         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13601         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13602         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13603         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13604         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13605         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13606         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13607         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13608         New macros.
13609         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13610         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13611         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13612         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13613         (pthread_spin_unlock): New dummy functions.
13614         (pthread_create): Return EAGAIN; don't set errno.
13615         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13616         require AC_C_INLINE.
13617         * modules/pthread (Depends-on): Add sched, time.
13618         (pthread.h): Use AM_V_GEN.
13619
13620 2010-07-13  Bruno Haible  <bruno@clisp.org>
13621
13622         striconveh: Don't malloc memory if the result buffer is sufficient.
13623         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13624         buffer if its size is sufficient.
13625         Reported by Ludovic Courtès <ludo@gnu.org>.
13626
13627 2010-07-13  Bruno Haible  <bruno@clisp.org>
13628
13629         strtod: Add safety check.
13630         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13631
13632 2010-07-12  Bruno Haible  <bruno@clisp.org>
13633
13634         Unify tests that set gl_cv_func_ldexpl_no_libm.
13635         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13636         gl_FUNC_LDEXPL.
13637         (gl_FUNC_LDEXPL): Invoke it.
13638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13639
13640 2010-07-12  Bruno Haible  <bruno@clisp.org>
13641
13642         Unify tests that set gl_cv_func_ldexp_no_libm.
13643         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13644         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13645         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13646         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13647         * modules/strtod (Files): Add m4/ldexp.m4.
13648
13649 2010-07-12  Bruno Haible  <bruno@clisp.org>
13650
13651         Unify tests that set gl_cv_func_frexpl_no_libm.
13652         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13653         gl_FUNC_FREXPL_NO_LIBM.
13654         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13655         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13656
13657 2010-07-12  Bruno Haible  <bruno@clisp.org>
13658
13659         Unify tests that set gl_cv_func_frexp_no_libm.
13660         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13661         gl_FUNC_FREXP_NO_LIBM.
13662         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13663         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13664
13665 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13666
13667         memcoll: clarify sizes versus lengths, document better, and tweak perf
13668         * lib/memcoll.c (strcoll_loop, memcoll0):
13669         Improve quality of descriptive comments.  Name variables
13670         consistently as to whether they are lengths (which do not include
13671         terminating null) versus sizes (which do).
13672         * lib/xmemcoll.c (xmemcoll0): Likewise.
13673         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13674         returned when s1size == 0; this is easier to compile and saves
13675         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13676
13677 2010-07-12  Bruno Haible  <bruno@clisp.org>
13678
13679         Tests for module '_Exit'.
13680         * modules/_Exit-tests: New file.
13681         * tests/test-_Exit.sh: New file.
13682         * tests/test-_Exit.c: New file.
13683
13684         New module '_Exit'.
13685         * lib/stdlib.in.h (__attribute__): New macro.
13686         (_Exit): New declaration.
13687         * lib/_Exit.c: New file.
13688         * m4/_Exit.m4: New file.
13689         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13690         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13691         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13692         * modules/_Exit: New file.
13693         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13694         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13695
13696 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13697
13698         strtod: make it more-accurate typically, and don't require libm
13699         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13700         Include limits.h.  Don't include string.h.
13701         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13702         (locale_isspace): New function, so that no casts are needed to
13703         check whether *s is a space.
13704         (ldexp): Provide an unused dummy if not available.
13705         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13706         (strtod): Use them.  This implementation prefers to use the
13707         underlying strtod if available, falling back on our own code
13708         only to fix known bugs.  This is more likely to produce an
13709         accurate result.  Also, it avoids the use of libm functions.
13710         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13711         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13712         was absent, but it caused a test failure with coreutils.
13713         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13714         with libm.
13715         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13716         * modules/strtod-tests (Makefile.am): Likewise.
13717
13718 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13719             Bruno Haible  <bruno@clisp.org>
13720
13721         unistr/u8-strchr: Optimize ASCII argument case.
13722         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13723
13724 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13725
13726         (x)memcoll: minor tweaks
13727         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13728         is after the type that it qualifies.
13729         (memcoll0): Likewise.
13730         * lib/memcoll.h (memcoll0): Likewise.
13731         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13732         * lib/xmemcoll.h (xmemcoll0): Likewise.
13733         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13734         differs from memcoll in that the NUL byte is part of the argument.
13735         Omit the abort-checks, as performance is a real issue here.  Plus,
13736         the checks were wrong anyway (an off-by-one error).  Omit local
13737         variable 'diff', as it's a bit clearer that way.
13738         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13739         no longer needed.
13740
13741 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13742
13743         (x)memcoll: speedup when input is known to be NUL delimited
13744         * lib/memcoll.c: Include stdlib.
13745         (memcoll0): New function.
13746         (strcoll_loop): New function, refactored for use in both memcoll
13747         and memcoll0.
13748         * lib/memcoll.h (memcoll0): Add prototype.
13749         * lib/xmemcoll.c (xmemcoll0): New function.
13750         (collate_error): New function, refactored for use in both xmemcoll
13751         and xmemcoll0.
13752         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13753         * m4/memcoll.m4: add inline invocation.
13754
13755 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13756
13757         * build-aux/bootstrap: Remove any local translations
13758         from the translation project synchronization directory,
13759         so that local only translations are not distributed.
13760
13761 2010-07-04  Bruno Haible  <bruno@clisp.org>
13762
13763         fsusage: Clarify which code applies to which platforms.
13764         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13765         platform.
13766         * lib/fsusage.c (get_fs_usage): Likewise.
13767
13768 2010-07-04  Bruno Haible  <bruno@clisp.org>
13769
13770         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13771         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13772         Reported by Martin Lambers <marlam@marlam.de>.
13773
13774 2010-07-04  Jim Meyering  <meyering@redhat.com>
13775
13776         hash: once again explicitly disallow insertion of NULL
13777         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13778         inserting a NULL pointer cannot work with these functions.
13779         Add a comment with details.
13780         This reverts part of the 2010-07-01 commit, 5bef1a35
13781         "hash: extend module to deal with non-pointer keys".
13782
13783 2010-07-01  Bruno Haible  <bruno@clisp.org>
13784
13785         stdbool: Update doc.
13786         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13787         Info from Christian Weisgerber <naddy@mips.inka.de>.
13788
13789 2010-07-01  Jim Meyering  <meyering@redhat.com>
13790
13791         hash: extend module to deal with non-pointer keys
13792         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13793         but that allows insertion of non-pointer entries.
13794         Do not disallow an ENTRY value of NULL.
13795         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13796         * lib/hash.h (hash_insert0): Declare.
13797
13798 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13799
13800         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13801         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13802         not present (i.e. with autoconf 2.59 and when using gettextize, not
13803         gnulib), require AC_GNU_SOURCE instead.
13804
13805 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13806
13807         idpriv-drop: Fix tests.
13808         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13809         not to the test-idpriv-droptemp program.
13810
13811 2010-06-29  Bruno Haible  <bruno@clisp.org>
13812
13813         string: Fix syntax error with g++ 2.96.
13814         * lib/string.in.h (__pure__): Remove definition.
13815         (_GL_ATTRIBUTE_PURE): New macro.
13816         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13817         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13818         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13819
13820 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13821
13822         unitypes: Fix bug introduced on 2010-05-18.
13823         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13824
13825 2010-06-22  Eric Blake  <eblake@redhat.com>
13826
13827         memmem: slight optimization
13828         * lib/str-two-way.h (critical_factorization): Update comments.
13829         Reduce work during factorization phase.
13830         Reported by Carlos Bueno <carlos@bueno.org>.
13831
13832 2010-06-21  Bruno Haible  <bruno@clisp.org>
13833
13834         Fix HAVE_CALLOC_POSIX misnomer.
13835         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13836         !HAVE_CALLOC_POSIX.
13837         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13838         HAVE_CALLOC_POSIX.
13839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13840         instead of HAVE_CALLOC_POSIX.
13841         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13842         HAVE_CALLOC_POSIX.
13843
13844         Use modern idiom for calloc() replacement.
13845         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13846         AC_FUNC_CALLOC.
13847         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13848         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13849         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13850         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13851         (gl_REPLACE_CALLOC): New macro.
13852
13853 2010-06-21  Bruno Haible  <bruno@clisp.org>
13854
13855         Fix HAVE_REALLOC_POSIX misnomer.
13856         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13857         !HAVE_REALLOC_POSIX.
13858         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13859         HAVE_REALLOC_POSIX.
13860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13861         instead of HAVE_REALLOC_POSIX.
13862         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13863         HAVE_REALLOC_POSIX.
13864
13865         Use modern idiom for realloc() replacement.
13866         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13867         AC_FUNC_REALLOC.
13868         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13869         Autoconf's AC_FUNC_REALLOC.
13870         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13871         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13872         (gl_REPLACE_REALLOC): New macro.
13873         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13874
13875 2010-06-21  Bruno Haible  <bruno@clisp.org>
13876
13877         Fix HAVE_MALLOC_POSIX misnomer.
13878         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13879         !HAVE_MALLOC_POSIX.
13880         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13881         HAVE_MALLOC_POSIX.
13882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13883         instead of HAVE_MALLOC_POSIX.
13884         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13885         HAVE_MALLOC_POSIX.
13886
13887         Use modern idiom for malloc() replacement.
13888         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13889         AC_FUNC_MALLOC.
13890         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13891         Autoconf's AC_FUNC_MALLOC.
13892         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13893         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13894         (gl_REPLACE_MALLOC): New macro.
13895         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13896
13897 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13898
13899         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13900         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13901         This macro takes 3 arguments, not 4.
13902
13903 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13904
13905         ipv6: fix detection under mingw
13906         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13907         in6_addr.
13908
13909 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13910
13911         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13912         that strtod() works when cross-compiling to a glibc version known
13913         to work.
13914
13915 2010-06-15  Bruno Haible  <bruno@clisp.org>
13916
13917         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13918
13919 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13920
13921         select: Correct timeout.
13922         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13923
13924 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13925
13926         git-version-gen: init shell var to avoid env var influence
13927         * build-aux/git-version-gen (v): Init shell var to empty.
13928
13929 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13930
13931         priv-set: Don't assume that priv.h exists merely because getppriv does.
13932         See Jan Andersen's bug report about AIX 5L in
13933         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13934         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13935         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13936         * lib/priv-set.h: Likewise.
13937         * tests/test-priv-set.c: Likewise.
13938
13939 2010-06-13  Bruno Haible  <bruno@clisp.org>
13940
13941         relocatable: Make it easier to test whether to install wrappers.
13942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13943         RELOCATABLE_VIA_WRAPPER.
13944
13945 2010-06-13  Bruno Haible  <bruno@clisp.org>
13946
13947         gnulib-tool: Display specified modules and dependencies differently.
13948         * gnulib-tool (func_show_module_list): New function.
13949         (func_import, func_create_testdir): Invoke it.
13950         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13951
13952 2010-06-13  Bruno Haible  <bruno@clisp.org>
13953
13954         gnulib-tool: Align code of func_import and func_create_testdir.
13955         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13956         specified_modules.
13957
13958 2010-06-12  Jim Meyering  <meyering@redhat.com>
13959
13960         test-inttostr: avoid spurious failure on Solaris 9
13961         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13962         to accept "%ju".  Reported by Bruno Haible.
13963
13964 2010-06-11  Jim Meyering  <meyering@redhat.com>
13965
13966         test-sys_socket: mark variables as used more readably
13967         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13968         as "used" explicitly via (void) statement casts.  This is more
13969         readable than using them in an artificial return expression.
13970         Suggestion from Bruno Haible.
13971
13972 2010-06-11  Bruno Haible  <bruno@clisp.org>
13973
13974         Avoid some more warnings from "gcc -Wwrite-strings".
13975         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13976         to 'const char *'.
13977         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13978         * tests/test-c-strcasestr.c (main): Likewise.
13979         * tests/test-mbscasestr1.c (main): Likewise.
13980         * tests/test-mbscasestr2.c (main): Likewise.
13981         * tests/test-memmem.c (main): Likewise.
13982         * tests/test-strstr.c (main): Likewise.
13983         * tests/test-strcasestr.c (main): Likewise.
13984
13985 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13986
13987         init.sh: change framework_failure_ to fail with status 99, not 1
13988         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13989         automake's parallel-tests rule that this is an unexpected failure,
13990         even if the test is listed in XFAIL_TESTS.
13991
13992 2010-06-11  Jim Meyering  <meyering@redhat.com>
13993
13994         test-inttostr: avoid warnings about 4-6KB literal strings
13995         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13996         Include "macros.h", for its definition of ASSERT.
13997         (CK): s/assert/ASSERT/
13998         * modules/inttostr-tests (Files): Add macros.h.
13999
14000         init.sh: don't use $ME_ or skip_ before they are defined
14001         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14002         their first uses.  Also hoist their companions: warn_, fail_,
14003         framework_failure_, $stderr_fileno.  Prompted by a patch from
14004         Stefano Lattarini.
14005
14006         test-sys_socket: avoid set-but-not-used warnings from gcc
14007         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14008         avoid warning about set-but-not-used variables.
14009
14010         test-xvasprintf: avoid 'const' discard warnings
14011         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14012         "const" when assigning from literal strings.
14013         (test_xasprintf): Add "void" in function argument list to placate
14014         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14015
14016         tests: avoid compilation warnings in argmatch and exclude tests...
14017         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14018         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14019         Since it always exits, declare with the "noreturn" attribute.
14020         * tests/test-argmatch.c: Likewise.
14021
14022         tests: avoid 'const' discard warnings in mbsstr tests
14023         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14024         * tests/test-mbsstr2.c (main): Likewise.
14025
14026         test-verify: avoid warning from gcc's -Wmissing-declarations
14027         * tests/test-verify.c (function): Declare to be static.
14028
14029         test-inttostr.c: include <string.h> for use of strcmp
14030         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14031
14032         test-linkat: avoid failed assertion on "other" architectures
14033         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14034         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14035         sparc: https://bugs.launchpad.net/bugs/591968
14036
14037 2010-06-11  Jim Meyering  <meyering@redhat.com>
14038
14039         printf.m4: avoid autoconf's "Expanded Before Required" warning
14040         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14041         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14042         autoconf warning.
14043
14044 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14045
14046         Replacement header templates are now named with ".in", not "_".
14047         * doc/gnulib-intro.texi: Correct.
14048
14049 2010-06-10  Jim Meyering  <meyering@redhat.com>
14050
14051         inttostr-tests: depend on snprintf, not snprintf-posix
14052         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14053         snprintf-posix, to avoid this aclocal failure:
14054           missing file gnulib-tests/vasnprintf.c
14055           configure.ac:45: error: expected source file, required through \
14056           AC_LIBSOURCES, not found
14057
14058 2010-06-10  Jim Meyering  <meyering@redhat.com>
14059
14060         inttostr: add a new function, inttostr, and tests
14061         The namesake function was not available.  The existence of the
14062         template file, inttostr.c makes its addition nontrivial.
14063         * lib/anytostr.c: Rename from inttostr.c.
14064         (anytostr): Rename from inttostr.
14065         * lib/inttostr.c: New file.
14066         * modules/inttostr (Files): Add anytostr.c.
14067         (Makefile.am): Set lib_SOURCES instead of ...
14068         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14069         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14070         * lib/offtostr.c: Likewise.
14071         * lib/uinttostr.c: Likewise.
14072         * lib/umaxtostr.c: Likewise.
14073         * modules/inttostr-tests: New file.
14074         * tests/test-inttostr.c: New file.  Test these functions.
14075
14076 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14077             Bruno Haible  <bruno@clisp.org>
14078
14079         Add "Extending Gnulib" chapter to manual.
14080         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14081         chapter.
14082         (Extending Gnulib): New chapter.
14083         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14084         chapter.
14085
14086 2010-06-09  Bruno Haible  <bruno@clisp.org>
14087
14088         Avoid relocwrapper link errors due to gnulib replacement functions.
14089         * lib/areadlink.c: Use the system's malloc, realloc functions.
14090         (areadlink): Set errno to ENOMEM explicitly.
14091         * modules/areadlink (Depends-on): Remove malloc-posix.
14092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14093
14094 2010-06-09  Bruno Haible  <bruno@clisp.org>
14095
14096         Avoid relocwrapper link errors due to gnulib replacement functions.
14097         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14098         * lib/malloca.c: Likewise.
14099         * lib/relocatable.c: Likewise.
14100         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14101         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14102         * lib/setenv.c: Use the system's malloc, realloc functions.
14103         * lib/strerror.c: Use the system's sprintf function.
14104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14105
14106 2010-06-04  Bruno Haible  <bruno@clisp.org>
14107
14108         Prefer documented low-level autoconf macro names.
14109         * m4/lib-link.m4: Use m4_translit instead of translit.
14110         * m4/environ.m4: Likewise.
14111         * m4/mathfunc.m4: Likewise.
14112         * m4/onceonly.m4: Likewise.
14113         * m4/stdint.m4: Likewise.
14114         Suggested by Eric Blake.
14115
14116 2010-06-04  Martin Lambers  <marlam@marlam.de>
14117             Bruno Haible  <bruno@clisp.org>
14118
14119         havelib: Allow library names with '+' characters.
14120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14121         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14122
14123 2010-06-09  Bruno Haible  <bruno@clisp.org>
14124
14125         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14126         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14127         realloc failed.
14128
14129 2010-06-08  Peter Simons  <simons@cryp.to>
14130
14131         maint.mk: make the news-check rule more configurable
14132         * top/maint.mk (news-check-lines-spec): New variable.
14133         (news-check): Use "sed -n 1,10p" in place of "head".
14134
14135 2010-06-07  Jim Meyering  <meyering@redhat.com>
14136
14137         do-release-commit-and-tag: fix typo in --help
14138         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14139
14140         regex: avoid new dead-code warning with gcc-4.6.0
14141         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14142         if-block containing a while-loop.  It's been unused for at least
14143         5 years.
14144
14145 2010-06-05  Bruno Haible  <bruno@clisp.org>
14146
14147         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14148         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14149
14150 2010-06-04  Bruno Haible  <bruno@clisp.org>
14151
14152         Update to GNU gettext 0.18.1.
14153         * modules/gettext (configure.ac): Require gettext infrastructure from
14154         version 0.18.1.
14155
14156 2010-06-03  Bruno Haible  <bruno@clisp.org>
14157
14158         Don't use AC_LIBOBJ with file names in subdirectories.
14159         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14160         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14161         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14162         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14163         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14164         gl_LIBUNISTRING_LIBSOURCE.
14165         (Makefile.am): Augment lib_SOURCES here, conditionally.
14166         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14167
14168 2010-06-03  Bruno Haible  <bruno@clisp.org>
14169
14170         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14171         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14172         expansion does not end with a newline.
14173         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14174         unnecessary newline.
14175
14176 2010-06-03  Bruno Haible  <bruno@clisp.org>
14177
14178         Reduce dependencies.
14179         * tests/test-quotearg.h: New file, extracted from
14180         tests/test-quotearg.c.
14181         * tests/test-quotearg-simple.c: New file, extracted from
14182         tests/test-quotearg.c.
14183         * tests/test-quotearg.c: Don't include <ctype.h>.
14184         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14185         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14186         use_quote_double_quotes, use_quotearg_colon): Moved to
14187         tests/test-quotearg.h.
14188         (results_g, flag_results, custom_quotes, custom_results): Moved
14189         to tests/test-quotearg-simple.c.
14190         (main): Moved the part that does not depend on gettext to
14191         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14192         performed.
14193         * modules/quotearg-simple: New file.
14194         * modules/quotearg-simple-tests: New file.
14195         * modules/quotearg (Depends-on): Add quotearg-simple.
14196         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14197         (Files): Add tests/test-quotearg.h.
14198         Reported by Paolo Bonzini.
14199
14200 2010-06-03  Bruno Haible  <bruno@clisp.org>
14201
14202         Reduce dependencies.
14203         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14204
14205 2010-06-03  Bruno Haible  <bruno@clisp.org>
14206
14207         time: Undefine more broken macros.
14208         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14209         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14210         Reported by Eric Blake.
14211
14212 2010-06-03  Bruno Haible  <bruno@clisp.org>
14213
14214         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14215         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14216         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14217         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14218         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14219         Reported by Ludovic Courtès <ludo@gnu.org>.
14220
14221 2010-06-02  Eric Blake  <eblake@redhat.com>
14222
14223         time: work with mingw + pthreads-win32 library
14224         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14225         if timespec is defined only in pthread.h.
14226         * modules/time (Makefile.am): Substitute it.
14227         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14228         <pthread.h>, when needed.
14229         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14230         from the library.
14231
14232 2010-05-31  Bruno Haible  <bruno@clisp.org>
14233
14234         Avoid expanding two macros in the wrong order.
14235         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14236         gl_LIBUNISTRING if it is defined.
14237         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14238         autoconf >= 2.64.
14239         Reported by Ludovic Courtès <ludo@gnu.org>.
14240
14241 2010-05-27  Jim Meyering  <meyering@redhat.com>
14242
14243         maint.mk: also prohibit "#undef" of always-defined symbols
14244         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14245         Allow more than one space before the symbol name.
14246         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14247         the regexp uses alternation.
14248
14249 2010-05-26  Eric Blake  <eblake@redhat.com>
14250
14251         maint.mk: avoid echo -e
14252         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14253         Convert all uses of echo -* to printf.
14254         Reported by Matthias Bolte.
14255
14256 2010-05-25  Bruno Haible  <bruno@clisp.org>
14257
14258         Update to GNU gettext 0.18, part 2.
14259         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14260         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14261
14262 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14263
14264         Add missing include in test-pwrite.c.
14265         * tests/test-pwrite.c: Include string.h, for strcmp.
14266
14267 2010-05-24  Bruno Haible  <bruno@clisp.org>
14268
14269         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14270
14271 2010-05-24  Bruno Haible  <bruno@clisp.org>
14272
14273         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14274         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14275         iconveh_error argument.
14276         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14277         U_STRCONV_TO_LOCALE.
14278         * lib/unistr/u16-strcoll.c: Likewise.
14279         * lib/unistr/u32-strcoll.c: Likewise.
14280         * modules/unistr/u8-strcoll (Depends-on): Add
14281         uniconv/u8-strconv-to-enc, localcharset. Remove
14282         uniconv/u8-strconv-to-locale.
14283         (configure.ac): Bump version number.
14284         * modules/unistr/u16-strcoll (Depends-on): Add
14285         uniconv/u16-strconv-to-enc, localcharset. Remove
14286         uniconv/u16-strconv-to-locale.
14287         (configure.ac): Bump version number.
14288         * modules/unistr/u32-strcoll (Depends-on): Add
14289         uniconv/u32-strconv-to-enc, localcharset. Remove
14290         uniconv/u32-strconv-to-locale.
14291         (configure.ac): Bump version number.
14292
14293 2010-05-24  Bruno Haible  <bruno@clisp.org>
14294
14295         Avoid a test failure on NetBSD 5.0.
14296         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14297         an iconv() bug.
14298
14299 2010-05-24  Bruno Haible  <bruno@clisp.org>
14300
14301         Adjust #include directive style.
14302         * modules/regex (Includes): Recommend to write <regex.h>.
14303
14304 2010-05-24  Bruno Haible  <bruno@clisp.org>
14305
14306         regex: Don't require alloca.
14307         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14308         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14309         only inside if (0).
14310
14311 2010-05-23  Jim Meyering  <meyering@redhat.com>
14312
14313         test-renameat.c: include <sys/stat.h>
14314         * tests/test-renameat.c: Include <sys/stat.h>; required for
14315         definition of S_IS* macros.
14316
14317 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14318
14319         Update maintainer documentation for 'relocatable-prog' module.
14320         * doc/relocatable-maint.texi: Update.
14321         Comments by Bruno Haible.
14322
14323 2010-05-23  Bruno Haible  <bruno@clisp.org>
14324
14325         git-merge-changelog: Enable --split-merged-entry by default.
14326         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14327         (usage): Don't mention this option any more.
14328         Reported by Ralf Wildenhues.
14329
14330 2010-05-23  Jim Meyering  <meyering@redhat.com>
14331
14332         test-pwrite: do not leave behind a test file named "out"
14333         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14334         The trivial-looking use of init.sh is really necessary.
14335         It ensures that the temporary file, "out", is created in
14336         a temporary directory, and removed upon termination.
14337         * tests/test-pwrite.sh: Re-add file.
14338         * modules/pwrite-tests: Reference it.
14339
14340 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14341
14342         Fix output redirection buglet in init.sh.
14343         * tests/init.sh: Fix redirection of stderr.
14344
14345 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14346
14347         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14348
14349 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14350
14351         * modules/valgrind-tests: New file.
14352         * m4/valgrind-tests.m4: New file.
14353         * doc/valgrind-tests.texi: New file.
14354         * doc/gnulib.texi (Running self-tests under valgrind): New
14355         section.
14356
14357 2010-05-19  Bruno Haible  <bruno@clisp.org>
14358
14359         Clean up dead code in recent commit.
14360         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14361         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14362         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14363         Suggested by Paolo Bonzini.
14364
14365 2010-05-19  Bruno Haible  <bruno@clisp.org>
14366
14367         Avoid valgrind error reports from libunistring.
14368         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14369         * modules/libunistring (Files): Add it.
14370         * modules/libunistring-optional (Files): Likewise.
14371
14372 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14373             Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'libunistring-optional'.
14376         * modules/libunistring-optional: New file.
14377         * m4/libunistring-base.m4: New file.
14378         * m4/libunistring-optional.m4: New file.
14379         * lib/unicase.in.h: Renamed from lib/unicase.h.
14380         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14381         * lib/unictype.in.h: Renamed from lib/unictype.h.
14382         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14383         * lib/uniname.in.h: Renamed from lib/uniname.h.
14384         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14385         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14386         * lib/unistr.in.h: Renamed from lib/unistr.h.
14387         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14388         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14389         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14390         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14391         gl_LIBUNISTRING. If the library was found, determine the installed
14392         version and set LIBUNISTRING_VERSION.
14393         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14394         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14395         handle a configuration option --with-included-libunistring.
14396         * modules/libunistring (Files): Add m4/absolute-header.m4.
14397         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14398         Add m4/libunistring-base.m4.
14399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14400         (Makefile.am): Build unicase.h from unicase.in.h.
14401         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14402         Add m4/libunistring-base.m4.
14403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14404         (Makefile.am): Build uniconv.h from uniconv.in.h.
14405         * modules/unictype/base (Files): Use unictype.in.h instead of
14406         unictype.h. Add m4/libunistring-base.m4.
14407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14408         (Makefile.am): Build unictype.h from unictype.in.h.
14409         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14410         Add m4/libunistring-base.m4.
14411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14412         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14413         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14414         Add m4/libunistring-base.m4.
14415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14416         (Makefile.am): Build uniname.h from uniname.in.h.
14417         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14418         Add m4/libunistring-base.m4.
14419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14420         (Makefile.am): Build uninorm.h from uninorm.in.h.
14421         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14422         unistdio.h. Add m4/libunistring-base.m4.
14423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14424         (Makefile.am): Build unistdio.h from unistdio.in.h.
14425         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14426         Add m4/libunistring-base.m4.
14427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14428         (Makefile.am): Build unistr.h from unistr.in.h.
14429         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14430         Add m4/libunistring-base.m4.
14431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14432         (Makefile.am): Build unitypes.h from unitypes.in.h.
14433         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14434         Add m4/libunistring-base.m4.
14435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14436         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14437         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14438         uniwidth.h. Add m4/libunistring-base.m4.
14439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14440         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14441         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14442         instead of augmenting lib_SOURCES.
14443         * modules/unicase/empty-suffix-context: Likewise.
14444         * modules/unicase/locale-language: Likewise.
14445         * modules/unicase/tolower: Likewise.
14446         * modules/unicase/totitle: Likewise.
14447         * modules/unicase/toupper: Likewise.
14448         * modules/unicase/u8-casecmp: Likewise.
14449         * modules/unicase/u8-casecoll: Likewise.
14450         * modules/unicase/u8-casefold: Likewise.
14451         * modules/unicase/u8-casexfrm: Likewise.
14452         * modules/unicase/u8-ct-casefold: Likewise.
14453         * modules/unicase/u8-ct-tolower: Likewise.
14454         * modules/unicase/u8-ct-totitle: Likewise.
14455         * modules/unicase/u8-ct-toupper: Likewise.
14456         * modules/unicase/u8-is-cased: Likewise.
14457         * modules/unicase/u8-is-casefolded: Likewise.
14458         * modules/unicase/u8-is-lowercase: Likewise.
14459         * modules/unicase/u8-is-titlecase: Likewise.
14460         * modules/unicase/u8-is-uppercase: Likewise.
14461         * modules/unicase/u8-prefix-context: Likewise.
14462         * modules/unicase/u8-suffix-context: Likewise.
14463         * modules/unicase/u8-tolower: Likewise.
14464         * modules/unicase/u8-totitle: Likewise.
14465         * modules/unicase/u8-toupper: Likewise.
14466         * modules/unicase/u16-casecmp: Likewise.
14467         * modules/unicase/u16-casecoll: Likewise.
14468         * modules/unicase/u16-casefold: Likewise.
14469         * modules/unicase/u16-casexfrm: Likewise.
14470         * modules/unicase/u16-ct-casefold: Likewise.
14471         * modules/unicase/u16-ct-tolower: Likewise.
14472         * modules/unicase/u16-ct-totitle: Likewise.
14473         * modules/unicase/u16-ct-toupper: Likewise.
14474         * modules/unicase/u16-is-cased: Likewise.
14475         * modules/unicase/u16-is-casefolded: Likewise.
14476         * modules/unicase/u16-is-lowercase: Likewise.
14477         * modules/unicase/u16-is-titlecase: Likewise.
14478         * modules/unicase/u16-is-uppercase: Likewise.
14479         * modules/unicase/u16-prefix-context: Likewise.
14480         * modules/unicase/u16-suffix-context: Likewise.
14481         * modules/unicase/u16-tolower: Likewise.
14482         * modules/unicase/u16-totitle: Likewise.
14483         * modules/unicase/u16-toupper: Likewise.
14484         * modules/unicase/u32-casecmp: Likewise.
14485         * modules/unicase/u32-casecoll: Likewise.
14486         * modules/unicase/u32-casefold: Likewise.
14487         * modules/unicase/u32-casexfrm: Likewise.
14488         * modules/unicase/u32-ct-casefold: Likewise.
14489         * modules/unicase/u32-ct-tolower: Likewise.
14490         * modules/unicase/u32-ct-totitle: Likewise.
14491         * modules/unicase/u32-ct-toupper: Likewise.
14492         * modules/unicase/u32-is-cased: Likewise.
14493         * modules/unicase/u32-is-casefolded: Likewise.
14494         * modules/unicase/u32-is-lowercase: Likewise.
14495         * modules/unicase/u32-is-titlecase: Likewise.
14496         * modules/unicase/u32-is-uppercase: Likewise.
14497         * modules/unicase/u32-prefix-context: Likewise.
14498         * modules/unicase/u32-suffix-context: Likewise.
14499         * modules/unicase/u32-tolower: Likewise.
14500         * modules/unicase/u32-totitle: Likewise.
14501         * modules/unicase/u32-toupper: Likewise.
14502         * modules/unicase/ulc-casecmp: Likewise.
14503         * modules/unicase/ulc-casecoll: Likewise.
14504         * modules/unicase/ulc-casexfrm: Likewise.
14505         * modules/uniconv/u8-conv-from-enc: Likewise.
14506         * modules/uniconv/u8-conv-to-enc: Likewise.
14507         * modules/uniconv/u8-strconv-from-enc: Likewise.
14508         * modules/uniconv/u8-strconv-from-locale: Likewise.
14509         * modules/uniconv/u8-strconv-to-enc: Likewise.
14510         * modules/uniconv/u8-strconv-to-locale: Likewise.
14511         * modules/uniconv/u16-conv-from-enc: Likewise.
14512         * modules/uniconv/u16-conv-to-enc: Likewise.
14513         * modules/uniconv/u16-strconv-from-enc: Likewise.
14514         * modules/uniconv/u16-strconv-from-locale: Likewise.
14515         * modules/uniconv/u16-strconv-to-enc: Likewise.
14516         * modules/uniconv/u16-strconv-to-locale: Likewise.
14517         * modules/uniconv/u32-conv-from-enc: Likewise.
14518         * modules/uniconv/u32-conv-to-enc: Likewise.
14519         * modules/uniconv/u32-strconv-from-enc: Likewise.
14520         * modules/uniconv/u32-strconv-from-locale: Likewise.
14521         * modules/uniconv/u32-strconv-to-enc: Likewise.
14522         * modules/uniconv/u32-strconv-to-locale: Likewise.
14523         * modules/unictype/bidicategory-byname: Likewise.
14524         * modules/unictype/bidicategory-name: Likewise.
14525         * modules/unictype/bidicategory-of: Likewise.
14526         * modules/unictype/bidicategory-test: Likewise.
14527         * modules/unictype/block-list: Likewise.
14528         * modules/unictype/block-test: Likewise.
14529         * modules/unictype/category-C: Likewise.
14530         * modules/unictype/category-Cc: Likewise.
14531         * modules/unictype/category-Cf: Likewise.
14532         * modules/unictype/category-Cn: Likewise.
14533         * modules/unictype/category-Co: Likewise.
14534         * modules/unictype/category-Cs: Likewise.
14535         * modules/unictype/category-L: Likewise.
14536         * modules/unictype/category-Ll: Likewise.
14537         * modules/unictype/category-Lm: Likewise.
14538         * modules/unictype/category-Lo: Likewise.
14539         * modules/unictype/category-Lt: Likewise.
14540         * modules/unictype/category-Lu: Likewise.
14541         * modules/unictype/category-M: Likewise.
14542         * modules/unictype/category-Mc: Likewise.
14543         * modules/unictype/category-Me: Likewise.
14544         * modules/unictype/category-Mn: Likewise.
14545         * modules/unictype/category-N: Likewise.
14546         * modules/unictype/category-Nd: Likewise.
14547         * modules/unictype/category-Nl: Likewise.
14548         * modules/unictype/category-No: Likewise.
14549         * modules/unictype/category-P: Likewise.
14550         * modules/unictype/category-Pc: Likewise.
14551         * modules/unictype/category-Pd: Likewise.
14552         * modules/unictype/category-Pe: Likewise.
14553         * modules/unictype/category-Pf: Likewise.
14554         * modules/unictype/category-Pi: Likewise.
14555         * modules/unictype/category-Po: Likewise.
14556         * modules/unictype/category-Ps: Likewise.
14557         * modules/unictype/category-S: Likewise.
14558         * modules/unictype/category-Sc: Likewise.
14559         * modules/unictype/category-Sk: Likewise.
14560         * modules/unictype/category-Sm: Likewise.
14561         * modules/unictype/category-So: Likewise.
14562         * modules/unictype/category-Z: Likewise.
14563         * modules/unictype/category-Zl: Likewise.
14564         * modules/unictype/category-Zp: Likewise.
14565         * modules/unictype/category-Zs: Likewise.
14566         * modules/unictype/category-and: Likewise.
14567         * modules/unictype/category-and-not: Likewise.
14568         * modules/unictype/category-byname: Likewise.
14569         * modules/unictype/category-name: Likewise.
14570         * modules/unictype/category-none: Likewise.
14571         * modules/unictype/category-of: Likewise.
14572         * modules/unictype/category-or: Likewise.
14573         * modules/unictype/category-test: Likewise.
14574         * modules/unictype/combining-class: Likewise.
14575         * modules/unictype/ctype-alnum: Likewise.
14576         * modules/unictype/ctype-alpha: Likewise.
14577         * modules/unictype/ctype-blank: Likewise.
14578         * modules/unictype/ctype-cntrl: Likewise.
14579         * modules/unictype/ctype-digit: Likewise.
14580         * modules/unictype/ctype-graph: Likewise.
14581         * modules/unictype/ctype-lower: Likewise.
14582         * modules/unictype/ctype-print: Likewise.
14583         * modules/unictype/ctype-punct: Likewise.
14584         * modules/unictype/ctype-space: Likewise.
14585         * modules/unictype/ctype-upper: Likewise.
14586         * modules/unictype/ctype-xdigit: Likewise.
14587         * modules/unictype/decimal-digit: Likewise.
14588         * modules/unictype/digit: Likewise.
14589         * modules/unictype/mirror: Likewise.
14590         * modules/unictype/numeric: Likewise.
14591         * modules/unictype/property-alphabetic: Likewise.
14592         * modules/unictype/property-ascii-hex-digit: Likewise.
14593         * modules/unictype/property-bidi-arabic-digit: Likewise.
14594         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14595         * modules/unictype/property-bidi-block-separator: Likewise.
14596         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14597         * modules/unictype/property-bidi-common-separator: Likewise.
14598         * modules/unictype/property-bidi-control: Likewise.
14599         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14600         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14601         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14602         * modules/unictype/property-bidi-european-digit: Likewise.
14603         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14604         * modules/unictype/property-bidi-left-to-right: Likewise.
14605         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14606         * modules/unictype/property-bidi-other-neutral: Likewise.
14607         * modules/unictype/property-bidi-pdf: Likewise.
14608         * modules/unictype/property-bidi-segment-separator: Likewise.
14609         * modules/unictype/property-bidi-whitespace: Likewise.
14610         * modules/unictype/property-byname: Likewise.
14611         * modules/unictype/property-combining: Likewise.
14612         * modules/unictype/property-composite: Likewise.
14613         * modules/unictype/property-currency-symbol: Likewise.
14614         * modules/unictype/property-dash: Likewise.
14615         * modules/unictype/property-decimal-digit: Likewise.
14616         * modules/unictype/property-default-ignorable-code-point: Likewise.
14617         * modules/unictype/property-deprecated: Likewise.
14618         * modules/unictype/property-diacritic: Likewise.
14619         * modules/unictype/property-extender: Likewise.
14620         * modules/unictype/property-format-control: Likewise.
14621         * modules/unictype/property-grapheme-base: Likewise.
14622         * modules/unictype/property-grapheme-extend: Likewise.
14623         * modules/unictype/property-grapheme-link: Likewise.
14624         * modules/unictype/property-hex-digit: Likewise.
14625         * modules/unictype/property-hyphen: Likewise.
14626         * modules/unictype/property-id-continue: Likewise.
14627         * modules/unictype/property-id-start: Likewise.
14628         * modules/unictype/property-ideographic: Likewise.
14629         * modules/unictype/property-ids-binary-operator: Likewise.
14630         * modules/unictype/property-ids-trinary-operator: Likewise.
14631         * modules/unictype/property-ignorable-control: Likewise.
14632         * modules/unictype/property-iso-control: Likewise.
14633         * modules/unictype/property-join-control: Likewise.
14634         * modules/unictype/property-left-of-pair: Likewise.
14635         * modules/unictype/property-line-separator: Likewise.
14636         * modules/unictype/property-logical-order-exception: Likewise.
14637         * modules/unictype/property-lowercase: Likewise.
14638         * modules/unictype/property-math: Likewise.
14639         * modules/unictype/property-non-break: Likewise.
14640         * modules/unictype/property-not-a-character: Likewise.
14641         * modules/unictype/property-numeric: Likewise.
14642         * modules/unictype/property-other-alphabetic: Likewise.
14643         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14644         * modules/unictype/property-other-grapheme-extend: Likewise.
14645         * modules/unictype/property-other-id-continue: Likewise.
14646         * modules/unictype/property-other-id-start: Likewise.
14647         * modules/unictype/property-other-lowercase: Likewise.
14648         * modules/unictype/property-other-math: Likewise.
14649         * modules/unictype/property-other-uppercase: Likewise.
14650         * modules/unictype/property-paired-punctuation: Likewise.
14651         * modules/unictype/property-paragraph-separator: Likewise.
14652         * modules/unictype/property-pattern-syntax: Likewise.
14653         * modules/unictype/property-pattern-white-space: Likewise.
14654         * modules/unictype/property-private-use: Likewise.
14655         * modules/unictype/property-punctuation: Likewise.
14656         * modules/unictype/property-quotation-mark: Likewise.
14657         * modules/unictype/property-radical: Likewise.
14658         * modules/unictype/property-sentence-terminal: Likewise.
14659         * modules/unictype/property-soft-dotted: Likewise.
14660         * modules/unictype/property-space: Likewise.
14661         * modules/unictype/property-terminal-punctuation: Likewise.
14662         * modules/unictype/property-test: Likewise.
14663         * modules/unictype/property-titlecase: Likewise.
14664         * modules/unictype/property-unassigned-code-value: Likewise.
14665         * modules/unictype/property-unified-ideograph: Likewise.
14666         * modules/unictype/property-uppercase: Likewise.
14667         * modules/unictype/property-variation-selector: Likewise.
14668         * modules/unictype/property-white-space: Likewise.
14669         * modules/unictype/property-xid-continue: Likewise.
14670         * modules/unictype/property-xid-start: Likewise.
14671         * modules/unictype/property-zero-width: Likewise.
14672         * modules/unictype/scripts: Likewise.
14673         * modules/unictype/syntax-c-ident: Likewise.
14674         * modules/unictype/syntax-c-whitespace: Likewise.
14675         * modules/unictype/syntax-java-ident: Likewise.
14676         * modules/unictype/syntax-java-whitespace: Likewise.
14677         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14678         * modules/unilbrk/u8-width-linebreaks: Likewise.
14679         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14680         * modules/unilbrk/u16-width-linebreaks: Likewise.
14681         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14682         * modules/unilbrk/u32-width-linebreaks: Likewise.
14683         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14684         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14685         * modules/uniname/uniname: Likewise.
14686         * modules/uninorm/canonical-decomposition: Likewise.
14687         * modules/uninorm/composition: Likewise.
14688         * modules/uninorm/decomposing-form: Likewise.
14689         * modules/uninorm/decomposition: Likewise.
14690         * modules/uninorm/filter: Likewise.
14691         * modules/uninorm/nfc: Likewise.
14692         * modules/uninorm/nfd: Likewise.
14693         * modules/uninorm/nfkc: Likewise.
14694         * modules/uninorm/nfkd: Likewise.
14695         * modules/uninorm/u8-normalize: Likewise.
14696         * modules/uninorm/u8-normcmp: Likewise.
14697         * modules/uninorm/u8-normcoll: Likewise.
14698         * modules/uninorm/u8-normxfrm: Likewise.
14699         * modules/uninorm/u16-normalize: Likewise.
14700         * modules/uninorm/u16-normcmp: Likewise.
14701         * modules/uninorm/u16-normcoll: Likewise.
14702         * modules/uninorm/u16-normxfrm: Likewise.
14703         * modules/uninorm/u32-normalize: Likewise.
14704         * modules/uninorm/u32-normcmp: Likewise.
14705         * modules/uninorm/u32-normcoll: Likewise.
14706         * modules/uninorm/u32-normxfrm: Likewise.
14707         * modules/unistdio/u8-asnprintf: Likewise.
14708         * modules/unistdio/u8-asprintf: Likewise.
14709         * modules/unistdio/u8-snprintf: Likewise.
14710         * modules/unistdio/u8-sprintf: Likewise.
14711         * modules/unistdio/u8-u8-asnprintf: Likewise.
14712         * modules/unistdio/u8-u8-asprintf: Likewise.
14713         * modules/unistdio/u8-u8-snprintf: Likewise.
14714         * modules/unistdio/u8-u8-sprintf: Likewise.
14715         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14716         * modules/unistdio/u8-u8-vasprintf: Likewise.
14717         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14718         * modules/unistdio/u8-u8-vsprintf: Likewise.
14719         * modules/unistdio/u8-vasnprintf: Likewise.
14720         * modules/unistdio/u8-vasprintf: Likewise.
14721         * modules/unistdio/u8-vsnprintf: Likewise.
14722         * modules/unistdio/u8-vsprintf: Likewise.
14723         * modules/unistdio/u16-asnprintf: Likewise.
14724         * modules/unistdio/u16-asprintf: Likewise.
14725         * modules/unistdio/u16-snprintf: Likewise.
14726         * modules/unistdio/u16-sprintf: Likewise.
14727         * modules/unistdio/u16-u16-asnprintf: Likewise.
14728         * modules/unistdio/u16-u16-asprintf: Likewise.
14729         * modules/unistdio/u16-u16-snprintf: Likewise.
14730         * modules/unistdio/u16-u16-sprintf: Likewise.
14731         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14732         * modules/unistdio/u16-u16-vasprintf: Likewise.
14733         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14734         * modules/unistdio/u16-u16-vsprintf: Likewise.
14735         * modules/unistdio/u16-vasnprintf: Likewise.
14736         * modules/unistdio/u16-vasprintf: Likewise.
14737         * modules/unistdio/u16-vsnprintf: Likewise.
14738         * modules/unistdio/u16-vsprintf: Likewise.
14739         * modules/unistdio/u32-asnprintf: Likewise.
14740         * modules/unistdio/u32-asprintf: Likewise.
14741         * modules/unistdio/u32-snprintf: Likewise.
14742         * modules/unistdio/u32-sprintf: Likewise.
14743         * modules/unistdio/u32-u32-asnprintf: Likewise.
14744         * modules/unistdio/u32-u32-asprintf: Likewise.
14745         * modules/unistdio/u32-u32-snprintf: Likewise.
14746         * modules/unistdio/u32-u32-sprintf: Likewise.
14747         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14748         * modules/unistdio/u32-u32-vasprintf: Likewise.
14749         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14750         * modules/unistdio/u32-u32-vsprintf: Likewise.
14751         * modules/unistdio/u32-vasnprintf: Likewise.
14752         * modules/unistdio/u32-vasprintf: Likewise.
14753         * modules/unistdio/u32-vsnprintf: Likewise.
14754         * modules/unistdio/u32-vsprintf: Likewise.
14755         * modules/unistdio/ulc-asnprintf: Likewise.
14756         * modules/unistdio/ulc-asprintf: Likewise.
14757         * modules/unistdio/ulc-fprintf: Likewise.
14758         * modules/unistdio/ulc-snprintf: Likewise.
14759         * modules/unistdio/ulc-sprintf: Likewise.
14760         * modules/unistdio/ulc-vasnprintf: Likewise.
14761         * modules/unistdio/ulc-vasprintf: Likewise.
14762         * modules/unistdio/ulc-vfprintf: Likewise.
14763         * modules/unistdio/ulc-vsnprintf: Likewise.
14764         * modules/unistdio/ulc-vsprintf: Likewise.
14765         * modules/unistr/u8-check: Likewise.
14766         * modules/unistr/u8-chr: Likewise.
14767         * modules/unistr/u8-cmp: Likewise.
14768         * modules/unistr/u8-cmp2: Likewise.
14769         * modules/unistr/u8-cpy: Likewise.
14770         * modules/unistr/u8-cpy-alloc: Likewise.
14771         * modules/unistr/u8-endswith: Likewise.
14772         * modules/unistr/u8-mblen: Likewise.
14773         * modules/unistr/u8-mbsnlen: Likewise.
14774         * modules/unistr/u8-mbtouc: Likewise.
14775         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14776         * modules/unistr/u8-mbtoucr: Likewise.
14777         * modules/unistr/u8-move: Likewise.
14778         * modules/unistr/u8-next: Likewise.
14779         * modules/unistr/u8-prev: Likewise.
14780         * modules/unistr/u8-set: Likewise.
14781         * modules/unistr/u8-startswith: Likewise.
14782         * modules/unistr/u8-stpcpy: Likewise.
14783         * modules/unistr/u8-stpncpy: Likewise.
14784         * modules/unistr/u8-strcat: Likewise.
14785         * modules/unistr/u8-strchr: Likewise.
14786         * modules/unistr/u8-strcmp: Likewise.
14787         * modules/unistr/u8-strcoll: Likewise.
14788         * modules/unistr/u8-strcpy: Likewise.
14789         * modules/unistr/u8-strcspn: Likewise.
14790         * modules/unistr/u8-strdup: Likewise.
14791         * modules/unistr/u8-strlen: Likewise.
14792         * modules/unistr/u8-strmblen: Likewise.
14793         * modules/unistr/u8-strmbtouc: Likewise.
14794         * modules/unistr/u8-strncat: Likewise.
14795         * modules/unistr/u8-strncmp: Likewise.
14796         * modules/unistr/u8-strncpy: Likewise.
14797         * modules/unistr/u8-strnlen: Likewise.
14798         * modules/unistr/u8-strpbrk: Likewise.
14799         * modules/unistr/u8-strrchr: Likewise.
14800         * modules/unistr/u8-strspn: Likewise.
14801         * modules/unistr/u8-strstr: Likewise.
14802         * modules/unistr/u8-strtok: Likewise.
14803         * modules/unistr/u8-to-u16: Likewise.
14804         * modules/unistr/u8-to-u32: Likewise.
14805         * modules/unistr/u8-uctomb: Likewise.
14806         * modules/unistr/u16-check: Likewise.
14807         * modules/unistr/u16-chr: Likewise.
14808         * modules/unistr/u16-cmp: Likewise.
14809         * modules/unistr/u16-cmp2: Likewise.
14810         * modules/unistr/u16-cpy: Likewise.
14811         * modules/unistr/u16-cpy-alloc: Likewise.
14812         * modules/unistr/u16-endswith: Likewise.
14813         * modules/unistr/u16-mblen: Likewise.
14814         * modules/unistr/u16-mbsnlen: Likewise.
14815         * modules/unistr/u16-mbtouc: Likewise.
14816         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14817         * modules/unistr/u16-mbtoucr: Likewise.
14818         * modules/unistr/u16-move: Likewise.
14819         * modules/unistr/u16-next: Likewise.
14820         * modules/unistr/u16-prev: Likewise.
14821         * modules/unistr/u16-set: Likewise.
14822         * modules/unistr/u16-startswith: Likewise.
14823         * modules/unistr/u16-stpcpy: Likewise.
14824         * modules/unistr/u16-stpncpy: Likewise.
14825         * modules/unistr/u16-strcat: Likewise.
14826         * modules/unistr/u16-strchr: Likewise.
14827         * modules/unistr/u16-strcmp: Likewise.
14828         * modules/unistr/u16-strcoll: Likewise.
14829         * modules/unistr/u16-strcpy: Likewise.
14830         * modules/unistr/u16-strcspn: Likewise.
14831         * modules/unistr/u16-strdup: Likewise.
14832         * modules/unistr/u16-strlen: Likewise.
14833         * modules/unistr/u16-strmblen: Likewise.
14834         * modules/unistr/u16-strmbtouc: Likewise.
14835         * modules/unistr/u16-strncat: Likewise.
14836         * modules/unistr/u16-strncmp: Likewise.
14837         * modules/unistr/u16-strncpy: Likewise.
14838         * modules/unistr/u16-strnlen: Likewise.
14839         * modules/unistr/u16-strpbrk: Likewise.
14840         * modules/unistr/u16-strrchr: Likewise.
14841         * modules/unistr/u16-strspn: Likewise.
14842         * modules/unistr/u16-strstr: Likewise.
14843         * modules/unistr/u16-strtok: Likewise.
14844         * modules/unistr/u16-to-u32: Likewise.
14845         * modules/unistr/u16-to-u8: Likewise.
14846         * modules/unistr/u16-uctomb: Likewise.
14847         * modules/unistr/u32-check: Likewise.
14848         * modules/unistr/u32-chr: Likewise.
14849         * modules/unistr/u32-cmp: Likewise.
14850         * modules/unistr/u32-cmp2: Likewise.
14851         * modules/unistr/u32-cpy: Likewise.
14852         * modules/unistr/u32-cpy-alloc: Likewise.
14853         * modules/unistr/u32-endswith: Likewise.
14854         * modules/unistr/u32-mblen: Likewise.
14855         * modules/unistr/u32-mbsnlen: Likewise.
14856         * modules/unistr/u32-mbtouc: Likewise.
14857         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14858         * modules/unistr/u32-mbtoucr: Likewise.
14859         * modules/unistr/u32-move: Likewise.
14860         * modules/unistr/u32-next: Likewise.
14861         * modules/unistr/u32-prev: Likewise.
14862         * modules/unistr/u32-set: Likewise.
14863         * modules/unistr/u32-startswith: Likewise.
14864         * modules/unistr/u32-stpcpy: Likewise.
14865         * modules/unistr/u32-stpncpy: Likewise.
14866         * modules/unistr/u32-strcat: Likewise.
14867         * modules/unistr/u32-strchr: Likewise.
14868         * modules/unistr/u32-strcmp: Likewise.
14869         * modules/unistr/u32-strcoll: Likewise.
14870         * modules/unistr/u32-strcpy: Likewise.
14871         * modules/unistr/u32-strcspn: Likewise.
14872         * modules/unistr/u32-strdup: Likewise.
14873         * modules/unistr/u32-strlen: Likewise.
14874         * modules/unistr/u32-strmblen: Likewise.
14875         * modules/unistr/u32-strmbtouc: Likewise.
14876         * modules/unistr/u32-strncat: Likewise.
14877         * modules/unistr/u32-strncmp: Likewise.
14878         * modules/unistr/u32-strncpy: Likewise.
14879         * modules/unistr/u32-strnlen: Likewise.
14880         * modules/unistr/u32-strpbrk: Likewise.
14881         * modules/unistr/u32-strrchr: Likewise.
14882         * modules/unistr/u32-strspn: Likewise.
14883         * modules/unistr/u32-strstr: Likewise.
14884         * modules/unistr/u32-strtok: Likewise.
14885         * modules/unistr/u32-to-u16: Likewise.
14886         * modules/unistr/u32-to-u8: Likewise.
14887         * modules/unistr/u32-uctomb: Likewise.
14888         * modules/uniwbrk/u8-wordbreaks: Likewise.
14889         * modules/uniwbrk/u16-wordbreaks: Likewise.
14890         * modules/uniwbrk/u32-wordbreaks: Likewise.
14891         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14892         * modules/uniwbrk/wordbreak-property: Likewise.
14893         * modules/uniwidth/u8-strwidth: Likewise.
14894         * modules/uniwidth/u8-width: Likewise.
14895         * modules/uniwidth/u16-strwidth: Likewise.
14896         * modules/uniwidth/u16-width: Likewise.
14897         * modules/uniwidth/u32-strwidth: Likewise.
14898         * modules/uniwidth/u32-width: Likewise.
14899         * modules/uniwidth/width: Likewise.
14900         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14901         with $(LIBUNISTRING).
14902         * modules/unicase/ignorable-tests: Likewise.
14903         * modules/unicase/locale-language-tests: Likewise.
14904         * modules/unicase/tolower-tests: Likewise.
14905         * modules/unicase/totitle-tests: Likewise.
14906         * modules/unicase/toupper-tests: Likewise.
14907         * modules/unicase/u8-casecmp-tests: Likewise.
14908         * modules/unicase/u8-casecoll-tests: Likewise.
14909         * modules/unicase/u8-casefold-tests: Likewise.
14910         * modules/unicase/u8-is-cased-tests: Likewise.
14911         * modules/unicase/u8-is-casefolded-tests: Likewise.
14912         * modules/unicase/u8-is-lowercase-tests: Likewise.
14913         * modules/unicase/u8-is-titlecase-tests: Likewise.
14914         * modules/unicase/u8-is-uppercase-tests: Likewise.
14915         * modules/unicase/u8-tolower-tests: Likewise.
14916         * modules/unicase/u8-totitle-tests: Likewise.
14917         * modules/unicase/u8-toupper-tests: Likewise.
14918         * modules/unicase/u16-casecmp-tests: Likewise.
14919         * modules/unicase/u16-casecoll-tests: Likewise.
14920         * modules/unicase/u16-casefold-tests: Likewise.
14921         * modules/unicase/u16-is-cased-tests: Likewise.
14922         * modules/unicase/u16-is-casefolded-tests: Likewise.
14923         * modules/unicase/u16-is-lowercase-tests: Likewise.
14924         * modules/unicase/u16-is-titlecase-tests: Likewise.
14925         * modules/unicase/u16-is-uppercase-tests: Likewise.
14926         * modules/unicase/u16-tolower-tests: Likewise.
14927         * modules/unicase/u16-totitle-tests: Likewise.
14928         * modules/unicase/u16-toupper-tests: Likewise.
14929         * modules/unicase/u32-casecmp-tests: Likewise.
14930         * modules/unicase/u32-casecoll-tests: Likewise.
14931         * modules/unicase/u32-casefold-tests: Likewise.
14932         * modules/unicase/u32-is-cased-tests: Likewise.
14933         * modules/unicase/u32-is-casefolded-tests: Likewise.
14934         * modules/unicase/u32-is-lowercase-tests: Likewise.
14935         * modules/unicase/u32-is-titlecase-tests: Likewise.
14936         * modules/unicase/u32-is-uppercase-tests: Likewise.
14937         * modules/unicase/u32-tolower-tests: Likewise.
14938         * modules/unicase/u32-totitle-tests: Likewise.
14939         * modules/unicase/u32-toupper-tests: Likewise.
14940         * modules/unicase/ulc-casecmp-tests: Likewise.
14941         * modules/unicase/ulc-casecoll-tests: Likewise.
14942         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14943         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14944         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14945         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14946         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14947         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14948         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14949         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14950         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14951         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14952         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14953         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14954         * modules/unictype/bidicategory-byname-tests: Likewise.
14955         * modules/unictype/bidicategory-name-tests: Likewise.
14956         * modules/unictype/bidicategory-of-tests: Likewise.
14957         * modules/unictype/bidicategory-test-tests: Likewise.
14958         * modules/unictype/block-list-tests: Likewise.
14959         * modules/unictype/block-of-tests: Likewise.
14960         * modules/unictype/block-test-tests: Likewise.
14961         * modules/unictype/category-C-tests: Likewise.
14962         * modules/unictype/category-Cc-tests: Likewise.
14963         * modules/unictype/category-Cf-tests: Likewise.
14964         * modules/unictype/category-Cn-tests: Likewise.
14965         * modules/unictype/category-Co-tests: Likewise.
14966         * modules/unictype/category-Cs-tests: Likewise.
14967         * modules/unictype/category-L-tests: Likewise.
14968         * modules/unictype/category-Ll-tests: Likewise.
14969         * modules/unictype/category-Lm-tests: Likewise.
14970         * modules/unictype/category-Lo-tests: Likewise.
14971         * modules/unictype/category-Lt-tests: Likewise.
14972         * modules/unictype/category-Lu-tests: Likewise.
14973         * modules/unictype/category-M-tests: Likewise.
14974         * modules/unictype/category-Mc-tests: Likewise.
14975         * modules/unictype/category-Me-tests: Likewise.
14976         * modules/unictype/category-Mn-tests: Likewise.
14977         * modules/unictype/category-N-tests: Likewise.
14978         * modules/unictype/category-Nd-tests: Likewise.
14979         * modules/unictype/category-Nl-tests: Likewise.
14980         * modules/unictype/category-No-tests: Likewise.
14981         * modules/unictype/category-P-tests: Likewise.
14982         * modules/unictype/category-Pc-tests: Likewise.
14983         * modules/unictype/category-Pd-tests: Likewise.
14984         * modules/unictype/category-Pe-tests: Likewise.
14985         * modules/unictype/category-Pf-tests: Likewise.
14986         * modules/unictype/category-Pi-tests: Likewise.
14987         * modules/unictype/category-Po-tests: Likewise.
14988         * modules/unictype/category-Ps-tests: Likewise.
14989         * modules/unictype/category-S-tests: Likewise.
14990         * modules/unictype/category-Sc-tests: Likewise.
14991         * modules/unictype/category-Sk-tests: Likewise.
14992         * modules/unictype/category-Sm-tests: Likewise.
14993         * modules/unictype/category-So-tests: Likewise.
14994         * modules/unictype/category-Z-tests: Likewise.
14995         * modules/unictype/category-Zl-tests: Likewise.
14996         * modules/unictype/category-Zp-tests: Likewise.
14997         * modules/unictype/category-Zs-tests: Likewise.
14998         * modules/unictype/category-and-not-tests: Likewise.
14999         * modules/unictype/category-and-tests: Likewise.
15000         * modules/unictype/category-byname-tests: Likewise.
15001         * modules/unictype/category-name-tests: Likewise.
15002         * modules/unictype/category-none-tests: Likewise.
15003         * modules/unictype/category-of-tests: Likewise.
15004         * modules/unictype/category-or-tests: Likewise.
15005         * modules/unictype/category-test-withtable-tests: Likewise.
15006         * modules/unictype/combining-class-tests: Likewise.
15007         * modules/unictype/ctype-alnum-tests: Likewise.
15008         * modules/unictype/ctype-alpha-tests: Likewise.
15009         * modules/unictype/ctype-blank-tests: Likewise.
15010         * modules/unictype/ctype-cntrl-tests: Likewise.
15011         * modules/unictype/ctype-digit-tests: Likewise.
15012         * modules/unictype/ctype-graph-tests: Likewise.
15013         * modules/unictype/ctype-lower-tests: Likewise.
15014         * modules/unictype/ctype-print-tests: Likewise.
15015         * modules/unictype/ctype-punct-tests: Likewise.
15016         * modules/unictype/ctype-space-tests: Likewise.
15017         * modules/unictype/ctype-upper-tests: Likewise.
15018         * modules/unictype/ctype-xdigit-tests: Likewise.
15019         * modules/unictype/decimal-digit-tests: Likewise.
15020         * modules/unictype/digit-tests: Likewise.
15021         * modules/unictype/mirror-tests: Likewise.
15022         * modules/unictype/numeric-tests: Likewise.
15023         * modules/unictype/property-alphabetic-tests: Likewise.
15024         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15025         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15026         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15027         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15028         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15029         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15030         * modules/unictype/property-bidi-control-tests: Likewise.
15031         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15032         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15033         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15034         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15035         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15036         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15037         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15038         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15039         * modules/unictype/property-bidi-pdf-tests: Likewise.
15040         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15041         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15042         * modules/unictype/property-byname-tests: Likewise.
15043         * modules/unictype/property-combining-tests: Likewise.
15044         * modules/unictype/property-composite-tests: Likewise.
15045         * modules/unictype/property-currency-symbol-tests: Likewise.
15046         * modules/unictype/property-dash-tests: Likewise.
15047         * modules/unictype/property-decimal-digit-tests: Likewise.
15048         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15049         * modules/unictype/property-deprecated-tests: Likewise.
15050         * modules/unictype/property-diacritic-tests: Likewise.
15051         * modules/unictype/property-extender-tests: Likewise.
15052         * modules/unictype/property-format-control-tests: Likewise.
15053         * modules/unictype/property-grapheme-base-tests: Likewise.
15054         * modules/unictype/property-grapheme-extend-tests: Likewise.
15055         * modules/unictype/property-grapheme-link-tests: Likewise.
15056         * modules/unictype/property-hex-digit-tests: Likewise.
15057         * modules/unictype/property-hyphen-tests: Likewise.
15058         * modules/unictype/property-id-continue-tests: Likewise.
15059         * modules/unictype/property-id-start-tests: Likewise.
15060         * modules/unictype/property-ideographic-tests: Likewise.
15061         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15062         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15063         * modules/unictype/property-ignorable-control-tests: Likewise.
15064         * modules/unictype/property-iso-control-tests: Likewise.
15065         * modules/unictype/property-join-control-tests: Likewise.
15066         * modules/unictype/property-left-of-pair-tests: Likewise.
15067         * modules/unictype/property-line-separator-tests: Likewise.
15068         * modules/unictype/property-logical-order-exception-tests: Likewise.
15069         * modules/unictype/property-lowercase-tests: Likewise.
15070         * modules/unictype/property-math-tests: Likewise.
15071         * modules/unictype/property-non-break-tests: Likewise.
15072         * modules/unictype/property-not-a-character-tests: Likewise.
15073         * modules/unictype/property-numeric-tests: Likewise.
15074         * modules/unictype/property-other-alphabetic-tests: Likewise.
15075         * modules/unictype/property-other-default-ignorable-code-point-tests:
15076         Likewise.
15077         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15078         * modules/unictype/property-other-id-continue-tests: Likewise.
15079         * modules/unictype/property-other-id-start-tests: Likewise.
15080         * modules/unictype/property-other-lowercase-tests: Likewise.
15081         * modules/unictype/property-other-math-tests: Likewise.
15082         * modules/unictype/property-other-uppercase-tests: Likewise.
15083         * modules/unictype/property-paired-punctuation-tests: Likewise.
15084         * modules/unictype/property-paragraph-separator-tests: Likewise.
15085         * modules/unictype/property-pattern-syntax-tests: Likewise.
15086         * modules/unictype/property-pattern-white-space-tests: Likewise.
15087         * modules/unictype/property-private-use-tests: Likewise.
15088         * modules/unictype/property-punctuation-tests: Likewise.
15089         * modules/unictype/property-quotation-mark-tests: Likewise.
15090         * modules/unictype/property-radical-tests: Likewise.
15091         * modules/unictype/property-sentence-terminal-tests: Likewise.
15092         * modules/unictype/property-soft-dotted-tests: Likewise.
15093         * modules/unictype/property-space-tests: Likewise.
15094         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15095         * modules/unictype/property-test-tests: Likewise.
15096         * modules/unictype/property-titlecase-tests: Likewise.
15097         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15098         * modules/unictype/property-unified-ideograph-tests: Likewise.
15099         * modules/unictype/property-uppercase-tests: Likewise.
15100         * modules/unictype/property-variation-selector-tests: Likewise.
15101         * modules/unictype/property-white-space-tests: Likewise.
15102         * modules/unictype/property-xid-continue-tests: Likewise.
15103         * modules/unictype/property-xid-start-tests: Likewise.
15104         * modules/unictype/property-zero-width-tests: Likewise.
15105         * modules/unictype/scripts-tests: Likewise.
15106         * modules/unictype/syntax-c-ident-tests: Likewise.
15107         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15108         * modules/unictype/syntax-java-ident-tests: Likewise.
15109         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15110         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15111         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15112         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15113         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15114         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15115         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15116         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15117         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15118         * modules/uniname/uniname-tests: Likewise.
15119         * modules/uninorm/canonical-decomposition-tests: Likewise.
15120         * modules/uninorm/compat-decomposition-tests: Likewise.
15121         * modules/uninorm/composition-tests: Likewise.
15122         * modules/uninorm/decomposing-form-tests: Likewise.
15123         * modules/uninorm/decomposition-tests: Likewise.
15124         * modules/uninorm/filter-tests: Likewise.
15125         * modules/uninorm/nfc-tests: Likewise.
15126         * modules/uninorm/nfd-tests: Likewise.
15127         * modules/uninorm/nfkc-tests: Likewise.
15128         * modules/uninorm/nfkd-tests: Likewise.
15129         * modules/uninorm/u8-normcmp-tests: Likewise.
15130         * modules/uninorm/u8-normcoll-tests: Likewise.
15131         * modules/uninorm/u16-normcmp-tests: Likewise.
15132         * modules/uninorm/u16-normcoll-tests: Likewise.
15133         * modules/uninorm/u32-normcmp-tests: Likewise.
15134         * modules/uninorm/u32-normcoll-tests: Likewise.
15135         * modules/unistdio/u8-asnprintf-tests: Likewise.
15136         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15137         * modules/unistdio/u8-vasprintf-tests: Likewise.
15138         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15139         * modules/unistdio/u8-vsprintf-tests: Likewise.
15140         * modules/unistdio/u16-asnprintf-tests: Likewise.
15141         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15142         * modules/unistdio/u16-vasprintf-tests: Likewise.
15143         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15144         * modules/unistdio/u16-vsprintf-tests: Likewise.
15145         * modules/unistdio/u32-asnprintf-tests: Likewise.
15146         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15147         * modules/unistdio/u32-vasprintf-tests: Likewise.
15148         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15149         * modules/unistdio/u32-vsprintf-tests: Likewise.
15150         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15151         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15152         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15153         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15154         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15155         * modules/unistr/u8-check-tests: Likewise.
15156         * modules/unistr/u8-chr-tests: Likewise.
15157         * modules/unistr/u8-cmp-tests: Likewise.
15158         * modules/unistr/u8-cmp2-tests: Likewise.
15159         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15160         * modules/unistr/u8-cpy-tests: Likewise.
15161         * modules/unistr/u8-mblen-tests: Likewise.
15162         * modules/unistr/u8-mbsnlen-tests: Likewise.
15163         * modules/unistr/u8-mbtouc-tests: Likewise.
15164         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15165         * modules/unistr/u8-mbtoucr-tests: Likewise.
15166         * modules/unistr/u8-move-tests: Likewise.
15167         * modules/unistr/u8-next-tests: Likewise.
15168         * modules/unistr/u8-prev-tests: Likewise.
15169         * modules/unistr/u8-set-tests: Likewise.
15170         * modules/unistr/u8-stpcpy-tests: Likewise.
15171         * modules/unistr/u8-stpncpy-tests: Likewise.
15172         * modules/unistr/u8-strcat-tests: Likewise.
15173         * modules/unistr/u8-strcmp-tests: Likewise.
15174         * modules/unistr/u8-strcoll-tests: Likewise.
15175         * modules/unistr/u8-strcpy-tests: Likewise.
15176         * modules/unistr/u8-strdup-tests: Likewise.
15177         * modules/unistr/u8-strlen-tests: Likewise.
15178         * modules/unistr/u8-strmblen-tests: Likewise.
15179         * modules/unistr/u8-strmbtouc-tests: Likewise.
15180         * modules/unistr/u8-strncat-tests: Likewise.
15181         * modules/unistr/u8-strncmp-tests: Likewise.
15182         * modules/unistr/u8-strncpy-tests: Likewise.
15183         * modules/unistr/u8-strnlen-tests: Likewise.
15184         * modules/unistr/u8-to-u16-tests: Likewise.
15185         * modules/unistr/u8-to-u32-tests: Likewise.
15186         * modules/unistr/u8-uctomb-tests: Likewise.
15187         * modules/unistr/u16-check-tests: Likewise.
15188         * modules/unistr/u16-chr-tests: Likewise.
15189         * modules/unistr/u16-cmp-tests: Likewise.
15190         * modules/unistr/u16-cmp2-tests: Likewise.
15191         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15192         * modules/unistr/u16-cpy-tests: Likewise.
15193         * modules/unistr/u16-mblen-tests: Likewise.
15194         * modules/unistr/u16-mbsnlen-tests: Likewise.
15195         * modules/unistr/u16-mbtouc-tests: Likewise.
15196         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15197         * modules/unistr/u16-mbtoucr-tests: Likewise.
15198         * modules/unistr/u16-move-tests: Likewise.
15199         * modules/unistr/u16-next-tests: Likewise.
15200         * modules/unistr/u16-prev-tests: Likewise.
15201         * modules/unistr/u16-set-tests: Likewise.
15202         * modules/unistr/u16-stpcpy-tests: Likewise.
15203         * modules/unistr/u16-stpncpy-tests: Likewise.
15204         * modules/unistr/u16-strcat-tests: Likewise.
15205         * modules/unistr/u16-strcmp-tests: Likewise.
15206         * modules/unistr/u16-strcoll-tests: Likewise.
15207         * modules/unistr/u16-strcpy-tests: Likewise.
15208         * modules/unistr/u16-strdup-tests: Likewise.
15209         * modules/unistr/u16-strlen-tests: Likewise.
15210         * modules/unistr/u16-strmblen-tests: Likewise.
15211         * modules/unistr/u16-strmbtouc-tests: Likewise.
15212         * modules/unistr/u16-strncat-tests: Likewise.
15213         * modules/unistr/u16-strncmp-tests: Likewise.
15214         * modules/unistr/u16-strncpy-tests: Likewise.
15215         * modules/unistr/u16-strnlen-tests: Likewise.
15216         * modules/unistr/u16-to-u32-tests: Likewise.
15217         * modules/unistr/u16-to-u8-tests: Likewise.
15218         * modules/unistr/u16-uctomb-tests: Likewise.
15219         * modules/unistr/u32-check-tests: Likewise.
15220         * modules/unistr/u32-chr-tests: Likewise.
15221         * modules/unistr/u32-cmp-tests: Likewise.
15222         * modules/unistr/u32-cmp2-tests: Likewise.
15223         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15224         * modules/unistr/u32-cpy-tests: Likewise.
15225         * modules/unistr/u32-mblen-tests: Likewise.
15226         * modules/unistr/u32-mbsnlen-tests: Likewise.
15227         * modules/unistr/u32-mbtouc-tests: Likewise.
15228         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15229         * modules/unistr/u32-mbtoucr-tests: Likewise.
15230         * modules/unistr/u32-move-tests: Likewise.
15231         * modules/unistr/u32-next-tests: Likewise.
15232         * modules/unistr/u32-prev-tests: Likewise.
15233         * modules/unistr/u32-set-tests: Likewise.
15234         * modules/unistr/u32-stpcpy-tests: Likewise.
15235         * modules/unistr/u32-stpncpy-tests: Likewise.
15236         * modules/unistr/u32-strcat-tests: Likewise.
15237         * modules/unistr/u32-strcmp-tests: Likewise.
15238         * modules/unistr/u32-strcoll-tests: Likewise.
15239         * modules/unistr/u32-strcpy-tests: Likewise.
15240         * modules/unistr/u32-strdup-tests: Likewise.
15241         * modules/unistr/u32-strlen-tests: Likewise.
15242         * modules/unistr/u32-strmblen-tests: Likewise.
15243         * modules/unistr/u32-strmbtouc-tests: Likewise.
15244         * modules/unistr/u32-strncat-tests: Likewise.
15245         * modules/unistr/u32-strncmp-tests: Likewise.
15246         * modules/unistr/u32-strncpy-tests: Likewise.
15247         * modules/unistr/u32-strnlen-tests: Likewise.
15248         * modules/unistr/u32-to-u16-tests: Likewise.
15249         * modules/unistr/u32-to-u8-tests: Likewise.
15250         * modules/unistr/u32-uctomb-tests: Likewise.
15251         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15252         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15253         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15254         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15255         * modules/uniwidth/u8-strwidth-tests: Likewise.
15256         * modules/uniwidth/u8-width-tests: Likewise.
15257         * modules/uniwidth/u16-strwidth-tests: Likewise.
15258         * modules/uniwidth/u16-width-tests: Likewise.
15259         * modules/uniwidth/u32-strwidth-tests: Likewise.
15260         * modules/uniwidth/u32-width-tests: Likewise.
15261         * modules/uniwidth/width-tests: Likewise.
15262
15263 2010-05-18  Richard Jones  <rjones@redhat.com>
15264
15265         doc: users.txt: list hivex
15266         * users.txt: Add hivex.
15267
15268 2010-05-18  Richard Jones  <rjones@redhat.com>
15269
15270         doc: users.txt: list febootstrap
15271         * users.txt: Add febootstrap.
15272
15273 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15274
15275         bootstrap: fix an error when gnulib is not used as a git submodule
15276         * build-aux/bootstrap (gnulib_path): If its length is zero then
15277         assign "gnulib" to it.
15278         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15279
15280 2010-05-16  Bruno Haible  <bruno@clisp.org>
15281
15282         Avoid autoconf warnings about AM_ICONV.
15283         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15284         2.64.
15285
15286 2010-05-16  Bruno Haible  <bruno@clisp.org>
15287
15288         absolute-header: Make the macro usable in more situations.
15289         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15290         from gl_ABSOLUTE_HEADER.
15291         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15292
15293 2010-05-16  James Youngman  <jay@gnu.org>
15294
15295         doc: update users.txt
15296         * users.txt: Add CSSC.
15297
15298 2010-05-16  Jim Meyering  <meyering@redhat.com>
15299
15300         init.sh: fix an error in the previous change; add more comments
15301         * tests/init.sh: Compare exit code in loop against 9, not 2.
15302         Patch by Bruno Haible.
15303         Make the two tests more similar by adding an empty "then" clause.
15304         Add comments.
15305
15306         init.sh: avoid unnecessary shell re-exec
15307         * tests/init.sh: Improve the re-exec-required check to first test the
15308         current shell.  If it passes the test, do not search for a shell that
15309         does pass, and do not re-exec.  This test is particularly contorted to
15310         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15311         of $(...) evokes a syntax error and causes immediate shell exit with
15312         status 2.  Bruno Haible reported that the re-exec made it impossible
15313         to single-step through any init.sh-using script.
15314
15315 2010-05-16  Bruno Haible  <bruno@clisp.org>
15316
15317         Fix collision between gnulib's and libintl's printf replacements.
15318         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15319         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15320         (printf): When using GNU C, map the __printf__ function to rpl_printf
15321         via __asm__. When not using GNU C, define rpl_printf instead of
15322         __printf__.
15323         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15324         commit.
15325         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15326         commit.
15327         * m4/asm-underscore.m4: New file.
15328         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15329         * modules/stdio (Files): Add m4/asm-underscore.m4.
15330         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15331         Reported by Ben Pfaff.
15332
15333 2010-05-16  Bruno Haible  <bruno@clisp.org>
15334
15335         verify: Avoid skipping the test on openSUSE 11.0.
15336         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15337
15338 2010-05-13  Bruno Haible  <bruno@clisp.org>
15339
15340         Avoid useless warnings from G++.
15341         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15342         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15344
15345 2010-05-11  Jim Meyering  <meyering@redhat.com>
15346
15347         maint.mk: tweak preceding change
15348         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15349         regexps tighter by anchoring at EOL, and make the new group "shy"
15350         for slightly decreased overhead.
15351
15352 2010-05-11  Eric Blake  <eblake@redhat.com>
15353
15354         maint.mk: gnulib doesn't guarantee NSIG
15355         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15356
15357 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15358
15359         test-pwrite.c: Remove unused variable declaration.
15360         * tests/test-pwrite.c (main): Remove read_buf declaration.
15361
15362         Remove useless test-pwrite.sh file.
15363         * tests/test-pwrite.sh: Delete file.
15364         * modules/pwrite-tests: Remove references.
15365         Reported by Bruno Haible.
15366
15367 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15368
15369         init.sh: fix a typo
15370         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15371
15372 2010-05-10  Jim Meyering  <meyering@redhat.com>
15373
15374         maint.mk: avoid using a temporary file in the always-defined-macros check
15375         * top/maint.mk (.re-defmac): Remove rule.
15376         (gl_trap_): Remove definition.
15377         (sc_prohibit_always-defined_macros): Rewrite not to create and
15378         depend on a temporary file.  Instead, depend on GNU grep's ability
15379         to read a list of regular expressions from stdin when given "-f -".
15380
15381 2010-05-09  Bruno Haible  <bruno@clisp.org>
15382
15383         Update to GNU gettext 0.18, part 1.
15384         * m4/gettext.m4: Update to GNU gettext 0.18.
15385         * m4/intl.m4: Likewise.
15386         * m4/po.m4: Likewise.
15387         * modules/gettext (Files): Add m4/fcntl-o.m4.
15388         (configure.ac): Require gettext infrastructure from version 0.18.
15389
15390 2010-05-09  Jim Meyering  <meyering@redhat.com>
15391
15392         init.sh: enable MALLOC_PERTURB_
15393         * tests/init.sh: Enable glibc's malloc-perturbing option.
15394
15395         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15396         With my recent change in init.sh from the two-line form:
15397             -#   : ${srcdir=.}
15398             -#   . "$srcdir/init.sh"; path_prepend_ .
15399             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15400         I noticed that using the one-line form would cause this test
15401         to fail with a false-positive, or to stop working altogether,
15402         depending on whether help-version changed or all the tests did.
15403         * top/maint.mk (_hv_regex): Remove this definition.
15404         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15405         (_hv_regex_strong): Use a stronger regex to check for conformance.
15406         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15407         Give a separate diagnostic for lack of conforming use.
15408
15409         maint.mk: prohibit definition of symbols defined by gnulib
15410         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15411         definition of symbols defined by gnulib.
15412
15413 2010-05-09  Bruno Haible  <bruno@clisp.org>
15414
15415         acl: Avoid test failure on Cygwin-hosted mingw.
15416         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15417
15418 2010-05-09  Bruno Haible  <bruno@clisp.org>
15419
15420         error: Use system's fcntl function.
15421         * lib/error.c (fcntl): Undefine.
15422
15423 2010-05-09  Jim Meyering  <meyering@redhat.com>
15424
15425         verify: adjust formatting to be more consistent
15426         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15427         argument-list '('s, and after one comma.
15428
15429 2010-05-09  Bruno Haible  <bruno@clisp.org>
15430
15431         error: More reliable output on mingw.
15432         * lib/error.c: Include <windows.h>.
15433         (is_open): New function.
15434         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15435         defined.
15436
15437 2010-05-09  Bruno Haible  <bruno@clisp.org>
15438
15439         vasnprintf: Fix syntax errors in libintl build on mingw.
15440         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15441         pad_ourselves and prec_ourselves after use.
15442
15443 2010-05-08  Bruno Haible  <bruno@clisp.org>
15444
15445         * lib/config.charset: Update comments for Cygwin 1.7.
15446         * lib/localcharset.c: Likewise.
15447
15448 2010-05-07  Jim Meyering  <meyering@redhat.com>
15449
15450         init.sh: improve comments
15451         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15452         . "${srcdir=.}/init.sh"; path_prepend_ .
15453         Add a note about path_prepend_ and the alternative of using
15454         TESTS_ENVIRONMENT.
15455
15456 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15457
15458         exclude: Unescape hashed patterns in wildcard mode.
15459         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15460         to the hash list.
15461         * tests/test-exclude8.sh: New test case.
15462         * modules/exclude-tests: Add new test.
15463
15464 2010-05-05  Eric Blake  <eblake@redhat.com>
15465
15466         verify: automate tests
15467         * modules/verify-tests: New module.
15468         * tests/test-verify.sh: New file.
15469         * tests/test-verify.c: Guard each negative test with a unique id.
15470         Also avoid warning about unused left hand of comma expressions.
15471
15472 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15473
15474         Further improvements to verify.h, suggested by Eric Blake.
15475         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15476         the GL_* versions, to avoid collision with OpenGL.
15477         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15478         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15479         than testing merely whether it's defined.
15480
15481         Modify verify.h to pacify gcc -Wredundant_decls.
15482         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15483         These use the prefix "GL_" since they're likely to be useful elsewhere.
15484         We may need to break them out into a different .h file.
15485         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15486         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15487         of verify_function__.
15488
15489 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15490
15491         Tests for module pwrite.
15492         * modules/pwrite-tests: New file.
15493         * tests/test-pwrite.sh: New file.
15494         * tests/test-pwrite.c: New file.
15495
15496         New module pwrite.
15497         * lib/unistd.in.h (pwrite): New declaration.
15498         * lib/pwrite.c: New file, from glibc with modifications.
15499         * m4/pwrite.m4: New file.
15500         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15501         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15502         REPLACE_PWRITE.
15503         * modules/pwrite: New file.
15504         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15505         REPLACE_PWRITE.
15506         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15507         * doc/posix-functions/pwrite.texi: Mention the new module.
15508
15509 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15510
15511         pread: Update documentation.
15512         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15513
15514 2010-05-04  Eric Blake  <eblake@redhat.com>
15515
15516         docs: update cygwin progress
15517         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15518         this bug.
15519         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15520         Added in cygwin 1.7.2.
15521         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15522         Likewise.
15523         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15524         Likewise.
15525         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15526         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15527         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15528         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15529         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15530         Mention nproc module.
15531         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15532         bug in cygwin 1.7.5 addition.
15533         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15534         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15535         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15536         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15537         1.7.5.
15538         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15539         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15540         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15541         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15542         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15543         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15544         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15545         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15546         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15547         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15548         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15549         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15550         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15551         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15552         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15553         Likewise.
15554         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15555         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15556         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15557         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15558         Likewise.
15559         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15560         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15561         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15562         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15563         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15564         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15565         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15566         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15567         Likewise.
15568         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15569         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15570         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15571         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15572         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15573         Likewise.
15574         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15575         Likewise.
15576         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15577         Likewise.
15578         * doc/glibc-functions/xdrrec_endofrecord.texi
15579         (xdrrec_endofrecord): Likewise.
15580         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15581         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15582         Likewise.
15583         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15584         Likewise.
15585
15586 2010-05-04  Jim Meyering  <meyering@redhat.com>
15587
15588         gendocs.sh: make its "-s FILE" option more useful
15589         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15590         $PACKAGE to reflect the probably-different basename of "FILE".
15591
15592 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15593
15594         bootstrap: don't ignore download_po_files failure
15595         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15596         failure.
15597
15598 2010-05-03  Jim Meyering  <meyering@redhat.com>
15599
15600         maint.mk: allow to pass options to gendocs.sh
15601         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15602         (gendocs_options_): New overridable variable.
15603
15604         gnu-web-doc-update: don't ignore configure or build failure
15605         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15606
15607         announce-gen: backslash-escape '@'s in --help output
15608         * build-aux/announce-gen: Fix syntax errors.
15609
15610         maint.mk, announce-gen: allow project-specific announcement mail headers
15611         * top/maint.mk (translation_project_): Define default.
15612         (announcement_Cc_, announcement_mail_headers_): Likewise.
15613         (announcement): Invoke announce-gen with new --mail-headers option.
15614         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15615
15616         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15617         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15618         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15619         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15620         line in the "err2" output file when running "make check" in verbose
15621         mode (i.e., with set -x enabled).
15622
15623 2010-05-03  Bruno Haible  <bruno@clisp.org>
15624
15625         wctob: Fix for weird platforms.
15626         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15627         argument value.
15628
15629 2010-05-03  Jim Meyering  <meyering@redhat.com>
15630
15631         maint.mk: prohibit unwarranted use of <strings.h>
15632         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15633         strings.h in a file that does not also use strcasecmp, strncasecmp,
15634         ffs or ffsll.
15635
15636         maint.mk: remove obsolete comments
15637         * top/maint.mk: Remove stale, commented-out rules.
15638
15639 2010-05-02  Bruno Haible  <bruno@clisp.org>
15640
15641         wcwidth: Declare also when it's aliased.
15642         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15643         macro.
15644
15645 2010-05-02  Bruno Haible  <bruno@clisp.org>
15646
15647         Fix regression from 2010-04-25.
15648         * gnulib-tool (func_modules_transitive_closure): Check the status of
15649         all modules, not only of the tests that are of the form foo-tests where
15650         foo is a module.
15651
15652 2010-05-02  Bruno Haible  <bruno@clisp.org>
15653
15654         wctob: Work around nasty Cygwin 1.7.2 bug.
15655         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15656         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15657
15658 2010-05-01  Bruno Haible  <bruno@clisp.org>
15659
15660         fpurge: Sharper test.
15661         * tests/test-fpurge.c (main): Add one more ftell check.
15662         * modules/fpurge-tests (Depends-on): Add ftell.
15663         Suggested by Eric Blake.
15664
15665 2010-05-01  Bruno Haible  <bruno@clisp.org>
15666
15667         ftello: Another test.
15668         * tests/test-ftello3.c: New file.
15669         * modules/ftello-tests (Files): Add it.
15670         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15671         MOSTLYCLEANFILES.
15672
15673         ftell: Another test.
15674         * tests/test-ftell3.c: New file.
15675         * modules/ftell-tests (Files): Add it.
15676         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15677         MOSTLYCLEANFILES.
15678
15679 2010-05-01  Bruno Haible  <bruno@clisp.org>
15680
15681         ftell, ftello: Work around Solaris bug.
15682         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15683         * lib/ftello.c: Include stdio-impl.h.
15684         (ftello): On Solaris, when _IOWRT is set, compute the result without
15685         looking at _IOREAD.
15686         * modules/ftello (Files): Add lib/stdio-impl.h.
15687         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15688         * doc/posix-functions/ftello.texi: Likewise.
15689         Reported by Eric Blake.
15690
15691 2010-05-01  Bruno Haible  <bruno@clisp.org>
15692
15693         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15694         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15695         the _IOWRT flag is also set.
15696
15697 2010-05-01  Bruno Haible  <bruno@clisp.org>
15698
15699         Fix doc about a HP-UX stdio bug.
15700         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15701         * doc/posix-functions/ftello.texi: Likewise.
15702
15703 2010-05-01  Bruno Haible  <bruno@clisp.org>
15704
15705         lseek test: Fix failure on Solaris.
15706         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15707         output.
15708
15709 2010-04-30  Jim Meyering  <meyering@redhat.com>
15710
15711         bootstrap: don't ignore failure to generate po*/Makevars
15712         * build-aux/bootstrap (with_gettext): Don't ignore failure
15713         to create po/Makevars or runtime-po/Makevars.
15714
15715 2010-04-29  Eric Blake  <eblake@redhat.com>
15716
15717         headers: relax license to LGPLv2+
15718         * modules/fcntl-h (License): Relax license.
15719         * modules/getopt-posix (License): Likewise.
15720         * modules/locale (License): Likewise.
15721         * modules/math (License): Likewise.
15722         * modules/pty (License): Likewise.
15723         * modules/sched (License): Likewise.
15724         * modules/search (License): Likewise.
15725         * modules/spawn (License): Likewise.
15726         * modules/stdarg (License): Likewise.
15727         * modules/sysexits (License): Likewise.
15728
15729 2010-04-29  Jim Meyering  <meyering@redhat.com>
15730
15731         inttypes: relax license to LGPLv2+
15732         * modules/inttypes (License): Relax license.
15733
15734 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15735
15736         * top/maint.mk (indent): Run twice to produce idempotent results.
15737
15738 2010-04-28  Bruno Haible  <bruno@clisp.org>
15739
15740         getdate: Generate getdate.c in the source directory.
15741         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15742         MOSTLYCLEANFILES.
15743         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15744
15745 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15746
15747         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15748         is not declared as a const *; avoid warnings in that case.
15749
15750 2010-04-28  Eric Blake  <eblake@redhat.com>
15751
15752         canonicalize-lgpl: avoid compiler warning
15753         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15754         declaration' / 'extraneous semicolon' warning with some compilers.
15755         Reported by Andreas Gruenbacher.
15756
15757 2010-04-28  Jim Meyering  <meyering@redhat.com>
15758
15759         init.sh: ensure a more reliable exit status when exiting via trap
15760         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15761         Inspired by patches from Dmitry V. Levin.
15762         Also trap on signal 3 (SIGQUIT).
15763
15764 2010-04-27  Bruno Haible  <bruno@clisp.org>
15765
15766         Update doc about utimes().
15767         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15768         'utimens' module.
15769         Reported by Andreas Gruenbacher <agruen@suse.de>.
15770
15771 2010-04-27  Eric Blake  <eblake@redhat.com>
15772
15773         full-read, full-write: relax license
15774         * modules/full-read (License): Drop to LGPLv2+.
15775         * modules/full-write (License): Likewise.
15776         * modules/safe-read (License): Likewise.
15777         * modules/safe-write (License): Likewise.
15778
15779         pthread: mention library for linking
15780         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15781
15782 2010-04-27  Jim Meyering  <meyering@redhat.com>
15783
15784         maint.mk: fix a bug introduced in last change
15785         * top/maint.mk (gl_assured_headers_): Now that all names are on
15786         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15787         is not anchored to end of word, it should be adequate.
15788
15789         maint.mk: avoid side-effect in latest syntax-check
15790         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15791         to run commands via $(shell...), and hence to incur cost only when
15792         the new rule is actually run.
15793
15794         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15795         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15796         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15797         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15798         (gl_assured_headers_, az_, AZ_): Define.
15799         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15800
15801 2010-04-26  Jim Meyering  <jim@meyering.net>
15802             Bruno Haible  <bruno@clisp.org>
15803
15804         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15805         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15806         Prompted by an exchange with Gilles Espinasse.
15807
15808 2010-04-26  Jim Meyering  <meyering@redhat.com>
15809
15810         git-version-gen: aesthetic tweak
15811         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15812         so that the command remains on a single line.
15813
15814 2010-04-26  Eric Blake  <eblake@redhat.com>
15815
15816         git-version-gen: allow use on EBCDIC hosts
15817         * build-aux/git-version-gen (dirty): Use literal rather than tying
15818         ourselves to ascii.
15819         Reported by Steve Goetze.
15820
15821 2010-04-25  Bruno Haible  <bruno@clisp.org>
15822
15823         netdb: Add support for GNULIB_POSIXCHECK.
15824         * lib/netdb.in.h: Include warn-on-use.h.
15825         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15826         functions are used when GNULIB_POSIXCHECK is defined and the
15827         getaddrinfo module is not in use.
15828         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15829         freeaddrinfo, gai_strerror, getnameinfo are declared.
15830         * modules/netdb (Depends-on): Add warn-on-use.
15831         (Makefile.am): Include warn-on-use.h in netdb.h.
15832
15833 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15834
15835         build: avoid "make check" failure without .git/ directory
15836         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15837         there is no .git/ directory.
15838
15839 2010-04-25  Bruno Haible  <bruno@clisp.org>
15840
15841         ptsname: Fix misuse of ttyname_r.
15842         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15843         of errno.
15844
15845 2010-04-25  Bruno Haible  <bruno@clisp.org>
15846
15847         ttyname_r: Make it work on Solaris 10.
15848         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15849         if the system function has the POSIX declaration. Test whether the
15850         function fails if the buffer is less than 128 bytes large.
15851         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15852         system's ttyname_r function. Provide a reasonably large buffer.
15853         * modules/ttyname_r (Depends-on): Add extensions.
15854         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15855
15856 2010-04-25  Bruno Haible  <bruno@clisp.org>
15857
15858         Use the 'extensions' module for some more functions on Solaris.
15859         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15860         module.
15861         * doc/posix-functions/ctime_r.texi: Likewise.
15862         * doc/posix-functions/getgrgid_r.texi: Likewise.
15863         * doc/posix-functions/getgrnam_r.texi: Likewise.
15864         * doc/posix-functions/getpwnam_r.texi: Likewise.
15865         * doc/posix-functions/getpwuid_r.texi: Likewise.
15866         * doc/posix-functions/readdir_r.texi: Likewise.
15867         * doc/posix-functions/sigwait.texi: Likewise.
15868         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15869         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15870
15871 2010-04-25  Bruno Haible  <bruno@clisp.org>
15872
15873         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15874         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15875         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15876         * lib/ttyname_r.c: Include <limits.h>.
15877         (ttyname_r): Define using the system's ttyname_r function, if it exists
15878         and not on Solaris.
15879         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15880         set.
15881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15882         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15883         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15884         Reported by Simon Josefsson.
15885
15886 2010-04-25  Bruno Haible  <bruno@clisp.org>
15887
15888         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15889         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15890         * doc/posix-functions/ctime_r.texi: Likewise.
15891         * doc/posix-functions/getgrgid_r.texi: Likewise.
15892         * doc/posix-functions/getgrnam_r.texi: Likewise.
15893         * doc/posix-functions/getlogin_r.texi: Likewise.
15894         * doc/posix-functions/getpwnam_r.texi: Likewise.
15895         * doc/posix-functions/getpwuid_r.texi: Likewise.
15896         * doc/posix-functions/readdir_r.texi: Likewise.
15897         * doc/posix-functions/sigwait.texi: Likewise.
15898         * doc/posix-functions/ttyname_r.texi: Likewise.
15899         Reported by Simon Josefsson.
15900
15901 2010-04-25  Bruno Haible  <bruno@clisp.org>
15902
15903         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15904         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15905         also to --create-testdir.
15906         (func_acceptable): Don't consider the status of *-tests modules here.
15907         (func_modules_transitive_closure): Consider it here, before including a
15908         test module.
15909         (func_import, func_create_testdir): Set inc_all_direct_tests,
15910         inc_all_indirect_tests.
15911         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15912         --create-testdir and --create-megatestdir.
15913
15914 2010-04-25  Bruno Haible  <bruno@clisp.org>
15915
15916         gnulib-tool: Add --without-*-tests options.
15917         * gnulib-tool (func_usage): Document the --without-*-tests options.
15918         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15919         excl_unportable_tests): New variables.
15920         Fail if they are specified with --import or --update.
15921         (func_acceptable): Respect the excl_*_tests variables.
15922         (func_import): Set the excl_*_tests variables to empty.
15923
15924 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15925             Bruno Haible  <bruno@clisp.org>
15926
15927         Work around a MacOS X 10.4 bug with openpty.
15928         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15929         * tests/test-openpty.c (main): Close the master side explicitly.
15930
15931 2010-04-25  Bruno Haible  <bruno@clisp.org>
15932
15933         strnlen: Fix a C++ test error on MacOS X and Solaris.
15934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15935         the function is not declared.
15936         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15937         Simon Josefsson.
15938
15939 2010-04-24  Bruno Haible  <bruno@clisp.org>
15940
15941         Avoid a gcc warning.
15942         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15943         of correct type for %08lx directive.
15944         Reported by Eric Blake.
15945
15946 2010-04-24  Bruno Haible  <bruno@clisp.org>
15947
15948         vasnprintf: Correct errno value in case of out-of-memory.
15949         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15950         or sprintf. Use the errno value from SNPRINTF or sprintf.
15951         Reported by Ian Beckwith <ianb@erislabs.net>.
15952
15953 2010-04-24  Bruno Haible  <bruno@clisp.org>
15954
15955         ansi-c++-opt: Find correct compiler when cross-compiling.
15956         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15957         AC_CHECK_PROGS.
15958         Reported by Simon Josefsson.
15959
15960 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15961
15962         vc-list-files: Add support for subversion
15963         * build-aux/vc-list-files: Use "svn list" to generate the list of
15964         files controlled by subversion.
15965
15966 2010-04-23  Jim Meyering  <meyering@redhat.com>
15967
15968         vc-list-files tests: convert to use init.sh
15969         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15970         path_prepend_.
15971         Use Exit, not exit.
15972         Use skip_ rather than open coding it.
15973         Remove trap set-up and compare definitions.
15974         * tests/test-vc-list-files-git.sh: Likewise.
15975         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15976
15977 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15978
15979         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15980         backup files.
15981
15982 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15983
15984         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15985
15986 2010-04-20  Eric Blake  <eblake@redhat.com>
15987
15988         tests: be robust to ignored SIGPIPE
15989         * tests/test-select-in.sh: Consume all output.
15990         * tests/test-lseek.sh: Check correct exit status, while avoiding
15991         EPIPE.
15992
15993 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15994             Bruno Haible  <bruno@clisp.org>
15995
15996         visibility: Don't use -fvisibility if it leads to a warning.
15997         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15998         yes, don't pretend that visibility works if it leads to a warning.
15999         Reported by Mike Gran <spk121@yahoo.com>.
16000
16001 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16002
16003         * build-aux/bootstrap: Use "git -h" for testing for supported options
16004         instead of "git --help".  The short-form option only shows a summary,
16005         and doesn't layout the full man page.  Grep for the full option name
16006         in the summary, too.
16007
16008 2010-04-19  Bruno Haible  <bruno@clisp.org>
16009
16010         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16011         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16012         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16013         mention of RELOCATABLE_STRIP.
16014         Reported by Sylvain Beucler <beuc@beuc.net>.
16015
16016 2010-04-19  Bruno Haible  <bruno@clisp.org>
16017
16018         * lib/diffseq.h: Fix typo in comment.
16019         Reported by Eric Blake.
16020
16021 2010-04-19  Bruno Haible  <bruno@clisp.org>
16022
16023         ioctl: Move autoconf macro to a .m4 file.
16024         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16025         * modules/ioctl (Files): Add it.
16026         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16027         Reported by Ian Beckwith <ianb@erislabs.net>.
16028
16029 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16030             Bruno Haible  <bruno@clisp.org>
16031
16032         diffseq: Accommodate use-case with abstract arrays.
16033         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16034         is not defined.
16035         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16036         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16037
16038 2010-04-18  Bruno Haible  <bruno@clisp.org>
16039
16040         * doc/posix-headers/stdbool.texi: More precise wording.
16041
16042 2010-04-17  Jim Meyering  <meyering@redhat.com>
16043
16044         maint.mk: use gnu-style indentation in an embedded perl script
16045         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16046         Rename variable: s/two/last_two_bytes/
16047
16048 2010-04-16  Eric Blake  <eblake@redhat.com>
16049
16050         test-stdbool: skip test that fails with Solaris CC
16051         * tests/test-stdbool.c (f): Skip test that causes compilation
16052         error under buggy C++ compiler.
16053         * lib/stdbool.in.h: Document the limitation.
16054         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16055
16056         setenv: allow compilation with C++
16057         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16058         register keyword.
16059
16060         stdint: allow test to pass with C++
16061         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16062
16063         getopt: allow compilation with C++
16064         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16065         struct.
16066         * lib/getopt.c (_getopt_internal_r): Use correct type.
16067         Reported by Dagobert Michelson, via Joel E. Denny.
16068
16069 2010-04-16  Bruno Haible  <bruno@clisp.org>
16070
16071         Override netdb.h always.
16072         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16073         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16074         Reported by Ludovic Courtès <ludo@gnu.org>.
16075
16076 2010-04-15  Bruno Haible  <bruno@clisp.org>
16077
16078         openpty: Fix mistake from 2010-03-21.
16079         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16080         Reported by Simon Josefsson.
16081
16082 2010-04-15  Eric Blake  <eblake@redhat.com>
16083
16084         test-forkpty: fix expected signature
16085         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16086         Reported by Simon Josefsson.
16087
16088 2010-04-15  Jim Meyering  <meyering@redhat.com>
16089
16090         maint.mk: texinfo_suffix_re_: correct the default regexp
16091         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16092
16093         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16094         make it configurable via texinfo_suffix_re_.
16095
16096 2010-04-14  Eric Blake  <eblake@redhat.com>
16097
16098         strtok_r: relax license to LGPLv2+
16099         * modules/strtok_r (License): Relax license.
16100         Reported by Matthias Bolte.
16101
16102 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16103
16104         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16105         version 1.4.4 by default instead of requiring the libgcrypt
16106         version used during build.  This makes it possible to use the
16107         application with older but still binary compatible libgcrypt
16108         versions.
16109
16110 2010-04-13  Eric Blake  <eblake@redhat.com>
16111
16112         getopt-gnu: match recent glibc fixes and posix ruling
16113         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16114         '+' handling, when requesting extensions.
16115         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16116         'W;' handling.
16117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16118         * doc/posix-functions/getopt.texi (getopt): Document this.
16119         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16120         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16121         Likewise.
16122
16123         getopt: merge bug fixes from glibc
16124         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16125         diagnostics.  Honor '+:' correctly.  Reject ';'.
16126
16127         getopt-posix: detect MacOS bug
16128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16129         optind when missing a required argument.
16130         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16131         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16133         Likewise.
16134
16135         getopt-posix: avoid spurious failure on Solaris
16136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16137         an indicator that setting optind=1 is sufficient for reset.
16138
16139         getopt-posix: avoid spurious failure on FreeBSD
16140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16141         in POSIX mode, since the m4 test uses it.
16142
16143         gnulib-tool: silence warning on BSD sh
16144         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16145
16146 2010-04-13  Jim Meyering  <meyering@redhat.com>
16147
16148         doc: users.txt: GNU patch now uses gnulib
16149         * users.txt: Add patch.
16150
16151 2010-04-12  Jim Meyering  <meyering@redhat.com>
16152
16153         maint.mk: generate more concise timing data for syntax-check rules
16154         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16155         " done" from each line that reports a syntax-check test duration.
16156
16157 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16158
16159         git-version-gen: use "git update-index..." rather than "git status"
16160         * build-aux/git-version-gen: Use git update-index --refresh, not
16161         "git status".  With some versions of git, "git status" would fail
16162         to update the index and result in an unwarranted "-dirty" suffix.
16163
16164 2010-04-11  Jim Meyering  <meyering@redhat.com>
16165
16166         openat: correct formatting (no semantic change)
16167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16168         Suggested by Bruno Haible.
16169
16170 2010-04-11  Bruno Haible  <bruno@clisp.org>
16171
16172         Stricter declaration checking in testdirs.
16173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16174         If for_tests is true, augment AM_CPPFLAGS to define
16175         GNULIB_STRICT_CHECKING.
16176         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16177         GNULIB_STRICT_CHECKING is defined, verify that the function is
16178         declared.
16179
16180 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16181             Bruno Haible  <bruno@clisp.org>
16182
16183         libunistring: Improve configure output.
16184         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16185         Don't say "consider installing GNU libunistring" when checking again
16186         with libiconv.
16187
16188 2010-04-11  Bruno Haible  <bruno@clisp.org>
16189
16190         libunistring: Correct value of $LTLIBUNISTRING.
16191         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16192         correct the value of $LTLIBUNISTRING.
16193
16194 2010-04-11  Bruno Haible  <bruno@clisp.org>
16195
16196         havelib: Add static libraries to LIBS in the right order.
16197         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16198         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16199
16200 2010-04-11  Bruno Haible  <bruno@clisp.org>
16201
16202         libunistring: Detect libunistring also when it depends on libiconv.
16203         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16204         the second AC_LIB_HAVE_LINKFLAGS invocation.
16205
16206 2010-04-11  James Youngman  <jay@gnu.org>
16207
16208         close-stream: declare local scalars to be "const"
16209         * lib/close-stream.c (close_stream): Make boolean variables const
16210         to document the fact that we set but do not change them.
16211
16212 2010-04-11  Bruno Haible  <bruno@clisp.org>
16213
16214         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16215
16216 2010-04-11  Jim Meyering  <meyering@redhat.com>
16217
16218         maint.mk: don't include dist-check.mk
16219         * top/maint.mk: Remove bogus include directive.
16220
16221         maint.mk: improve empty-line-at-EOF check
16222         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16223         solution, rather than tail+Perl-based one.  The latter would read
16224         a few kilobytes from the end of each file, and did not handle empty
16225         files properly.
16226
16227         maint.mk: print the elapsed time for each syntax-check rule
16228         * top/maint.mk (sc_m_rules_): Save start time in a file.
16229         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16230         (local-check): Interpose the .z rules
16231
16232 2010-04-11  Jim Meyering  <meyering@redhat.com>
16233
16234         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16235         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16236         empty file with one that ends in an empty line.
16237
16238 2010-04-10  Bruno Haible  <bruno@clisp.org>
16239
16240         mkdir: Make it work on mingw64.
16241         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16242         * lib/mkdir.c: Update comment.
16243         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16244
16245 2010-04-10  Bruno Haible  <bruno@clisp.org>
16246
16247         Don't override improved macro from newer autoconf.
16248         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16249         autoconf >= 2.62.
16250         Reported by Joel E. Denny <jdenny@clemson.edu>.
16251
16252 2010-04-10  Jim Meyering  <meyering@redhat.com>
16253
16254         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16255         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16256
16257         maint.mk: correct a diagnostic
16258         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16259         in diagnostic; now use $prohibit.
16260
16261 2010-04-10  Bruno Haible  <address@hidden>
16262
16263         fchownat: Fix a C++ test error on Solaris 8.
16264         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16265         the function does not exist.
16266
16267 2010-04-10  Bruno Haible  <bruno@clisp.org>
16268
16269         vasnprintf: Add more tests.
16270         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16271         (test_function): Test converting an invalid wide string.
16272
16273         vasnprintf: Correct handling of unconvertible wide string arguments.
16274         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16275         VASNPRINTF.
16276         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16277         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16278         smaller than the expected maximum need for the directive. Set errno to
16279         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16280         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16282         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16283         * modules/vasnprintf (Files): Add m4/printf.m4.
16284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16285
16286 2010-04-10  Bruno Haible  <bruno@clisp.org>
16287
16288         vasnprintf: Fix crash in %ls directive.
16289         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16290         string is passed as argument to %ls, with no precision and no width.
16291         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16292
16293 2010-04-10  Bruno Haible  <bruno@clisp.org>
16294
16295         vasnprintf: Fix multiple test failures on mingw.
16296         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16297         _snprintf, or snwprintf, not _snwprintf.
16298
16299 2010-04-10  Bruno Haible  <bruno@clisp.org>
16300
16301         write: Fix a C++ test error on mingw.
16302         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16303
16304 2010-04-10  Bruno Haible  <bruno@clisp.org>
16305
16306         vasnprintf test: Reduce code duplication.
16307         * tests/test-vasnprintf.c (test_function): New function, extracted from
16308         test_vasnprintf.
16309         (test_vasnprintf, test_asnprintf): Invoke it.
16310
16311 2010-04-10  Bruno Haible  <bruno@clisp.org>
16312
16313         strnlen: Fix warning in C++ mode on MacOS X.
16314         * lib/string.in.h (strnlen): Use the modern idiom.
16315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16316         defining strnlen as a macro already in <config.h>.
16317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16318         REPLACE_STRNLEN.
16319         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16321
16322 2010-04-08  James Youngman  <jay@gnu.org>
16323
16324         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16325         the example.
16326
16327 2010-04-09  Jim Meyering  <meyering@redhat.com>
16328
16329         maint.mk: print better diagnostic when there is no $(_hv_file)
16330         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16331         announce that when $(_hv_file) (aka help-version) does not exist.
16332
16333         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16334         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16335         not try to interpret its random input bytes.  Jarno Rajahalme reported
16336         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16337         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16338         (mktempd_): Likewise, just in case.
16339
16340         ftruncate: add two years to projected module removal date: 2012
16341         * m4/ftruncate.m4: Adjust comments.
16342
16343         ftruncate: mark module as obsolete; even MinGW provides it, now
16344         * modules/ftruncate (Status): Obsolete.
16345         (Notice): Say that.
16346         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16348
16349 2010-04-08  Bruno Haible  <bruno@clisp.org>
16350
16351         Fix side effects from tests-related modules.
16352         * modules/dprintf-posix (Comment): New section.
16353         * modules/fprintf-posix (Comment): Likewise.
16354         * modules/obstack-printf-posix (Comment): Likewise.
16355         * modules/printf-posix (Comment): Likewise.
16356         * modules/snprintf-posix (Comment): Likewise.
16357         * modules/sprintf-posix (Comment): Likewise.
16358         * modules/vasnprintf-posix (Comment): Likewise.
16359         * modules/vasprintf-posix (Comment): Likewise.
16360         * modules/vdprintf-posix (Comment): Likewise.
16361         * modules/vfprintf-posix (Comment): Likewise.
16362         * modules/vprintf-posix (Comment): Likewise.
16363         * modules/vsnprintf-posix (Comment): Likewise.
16364         * modules/vsprintf-posix (Comment): Likewise.
16365         * modules/xprintf-posix (Comment): Likewise.
16366         * modules/xvasprintf-posix (Comment): Likewise.
16367         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16368         * modules/floorf-tests (Depends-on): Likewise.
16369         * modules/round-tests (Depends-on): Likewise.
16370         * modules/roundf-tests (Depends-on): Likewise.
16371         * modules/trunc-tests (Depends-on): Likewise.
16372         * modules/truncf-tests (Depends-on): Likewise.
16373         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16374         'fprintf-posix' module is not present.
16375         * tests/test-floorf2.c (check): Likewise.
16376         * tests/test-trunc2.c (check): Likewise.
16377         * tests/test-truncf2.c (check): Likewise.
16378         * tests/test-round2.c (equal): Likewise.
16379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16380
16381 2010-04-07  Karl Berry  <karl@gnu.org>
16382
16383         * config/srclist.txt,
16384         * config/srclistvars.sh,
16385         * config/srclist-update: doc fixes.
16386
16387 2010-04-07  Jim Meyering  <meyering@redhat.com>
16388
16389         maint.mk: add a PATH crosschecking syntax-check rule
16390         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16391         Useful if you use a test like the one in help-version (coreutils,
16392         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16393         printed by prog --version.
16394
16395 2010-04-06  Bruno Haible  <bruno@clisp.org>
16396
16397         Fix link error on mingw.
16398         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16399         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16400
16401 2010-04-06  Bruno Haible  <bruno@clisp.org>
16402
16403         Assume rmdir exists.
16404         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16405
16406 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16407
16408         doc: update users.txt
16409         * users.txt: Add gcal.
16410
16411 2010-04-06  Jim Meyering  <meyering@redhat.com>
16412
16413         init.sh: simply unset TMPDIR rather than risking env -i
16414         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16415         although it probably works fine on all Unix-based systems, some
16416         systems (Cygwin?) cannot tolerate a totally cleared environment.
16417         Suggestion from Eric Blake.
16418
16419 2010-04-06  Jim Meyering  <meyering@redhat.com>
16420
16421         init.sh: portability fix: use env's POSIX-specified -i option not -u
16422         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16423         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16424
16425 2010-04-05  Bruno Haible  <bruno@clisp.org>
16426
16427         btowc: Work around Cygwin 1.7.2 bug.
16428         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16429         does not map NUL to 0.
16430         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16431
16432 2010-04-05  Bruno Haible  <bruno@clisp.org>
16433
16434         Make the multithread modules work on Cygwin 1.7.2.
16435         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16436         imported symbols can be declared weak, so that it returns "no" on
16437         Cygwin 1.7.2.
16438
16439 2010-04-05  Bruno Haible  <bruno@clisp.org>
16440
16441         Use the module 'strncat'.
16442         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16443
16444         Tests for module 'strncat'.
16445         * modules/strncat-tests: New file.
16446         * tests/test-strncat.c: New file.
16447
16448         New module 'strncat'.
16449         * lib/string.in.h (strncat): New declaration.
16450         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16451         * m4/strncat.m4: New file, based on m4/memchr.m4.
16452         * modules/strncat: New file.
16453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16454         is declared.
16455         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16456         REPLACE_STRNCAT.
16457         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16458         REPLACE_STRNCAT.
16459         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16460         module.
16461         * tests/test-string-c++.cc: Check signature of strncat.
16462
16463 2010-04-05  Jim Meyering  <meyering@redhat.com>
16464
16465         xstrtoumax-tests: convert to use init.sh
16466         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16467         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16468         Use Exit, not exit.
16469         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16470
16471         xstrtoimax-tests: convert to use init.sh
16472         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16473         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16474         Use Exit, not exit.
16475         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16476
16477 2010-04-05  Bruno Haible  <bruno@clisp.org>
16478
16479         sys_socket: Avoid #define replacements in C++ mode.
16480         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16481         warning to the function if possible, rather than #defining the symbol
16482         to a dysfunctional alias.
16483
16484 2010-04-05  Bruno Haible  <bruno@clisp.org>
16485
16486         fseeko: Fix C++ test error on mingw.
16487         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16488         gl_FUNC_FSEEKO.
16489         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16490         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16491         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16492         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16493
16494 2010-04-05  Bruno Haible  <bruno@clisp.org>
16495
16496         duplocale: Improve test output.
16497         * tests/test-duplocale.c (main): Print reason for skipped test.
16498
16499 2010-04-05  Bruno Haible  <bruno@clisp.org>
16500
16501         Assume rmdir exists.
16502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16503         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16504
16505 2010-04-05  Bruno Haible  <bruno@clisp.org>
16506
16507         Fix link error on Solaris 8 with cc.
16508         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16509
16510 2010-04-05  Bruno Haible  <bruno@clisp.org>
16511
16512         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16513         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16514
16515 2010-04-05  Bruno Haible  <bruno@clisp.org>
16516
16517         vasprintf: Update documentation.
16518         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16519
16520 2010-04-05  Bruno Haible  <bruno@clisp.org>
16521
16522         ptsname: Improve test.
16523         * tests/test-ptsname.c (main): Also try the various master names of BSD
16524         systems.
16525
16526 2010-04-05  Bruno Haible  <bruno@clisp.org>
16527
16528         memchr: Avoid a possible C++ test error.
16529         * lib/string.in.h (memchr): Provide declaration if function is missing.
16530         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16531         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16533         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16534
16535 2010-04-05  Bruno Haible  <bruno@clisp.org>
16536
16537         strtok_r: Improve idiom.
16538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16539         AC_LIBOBJ is used.
16540
16541 2010-04-05  Bruno Haible  <bruno@clisp.org>
16542
16543         strdup: Improve idiom.
16544         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16545         AC_LIBOBJ is used.
16546         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16547         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16548         when AC_LIBOBJ is used.
16549
16550 2010-04-05  Bruno Haible  <bruno@clisp.org>
16551
16552         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16553         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16554         don't set REPLACE_MBSINIT to 1.
16555         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16556         don't set REPLACE_MBRTOWC to 1.
16557         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16558         exist, don't set REPLACE_MBSRTOWCS to 1.
16559         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16560         exist, don't set REPLACE_MBSNRTOWCS to 1.
16561         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16562         don't set REPLACE_WCRTOMB to 1.
16563         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16564         exist, don't set REPLACE_WCSRTOMBS to 1.
16565         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16566         exist, don't set REPLACE_WCSNRTOMBS to 1.
16567
16568 2010-04-05  Bruno Haible  <bruno@clisp.org>
16569
16570         ldexpl: Improve idiom.
16571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16572         make sure to set HAVE_DECL_LDEXPL to 0.
16573
16574 2010-04-05  Jim Meyering  <meyering@redhat.com>
16575
16576         xstrtol-tests: convert to use init.sh
16577         * modules/xstrtol-tests (Files): Add tests/init.sh.
16578         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16579         Use Exit, not exit.
16580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16581
16582         atexit-tests: convert to use init.sh
16583         * modules/atexit-tests (Files): Add tests/init.sh.
16584         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16585         Use Exit, not exit.
16586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16587
16588         init.sh: fix typo
16589         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16590
16591         init.sh: make it easier for a test script to write to the tty, ...
16592         when using automake's parallel-tests mode.
16593         * tests/init.sh (stderr_fileno_): Define overridable variable.
16594         (warn_): New function, to use it.
16595         (fail_, skip_, framework_failure_): Use warn_.
16596
16597 2010-04-04  Bruno Haible  <bruno@clisp.org>
16598
16599         btowc: Avoid warning.
16600         * lib/btowc.c: Include <stdlib.h>.
16601         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16602
16603 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16604             Bruno Haible  <bruno@clisp.org>
16605
16606         wchar: Port to NetBSD 1.5.
16607         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16608         * lib/wctype.in.h (WEOF): Likewise.
16609
16610 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16611             Bruno Haible  <bruno@clisp.org>
16612
16613         Port extended stdio to NetBSD 1.5.
16614         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16615         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16616         older.
16617
16618 2010-04-04  Bruno Haible  <bruno@clisp.org>
16619
16620         string: Remove unused substitution.
16621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16622         HAVE_DECL_STRERROR.
16623         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16624
16625 2010-04-04  Bruno Haible  <bruno@clisp.org>
16626
16627         strtod: Avoid a possible C++ test error.
16628         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16629         set REPLACE_STRTOD.
16630
16631 2010-04-04  Bruno Haible  <bruno@clisp.org>
16632
16633         strerror: Update documentation.
16634         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16635
16636 2010-04-04  Bruno Haible  <bruno@clisp.org>
16637
16638         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16639         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16640         _GL_CXXALIAS_SYS_CAST.
16641
16642 2010-04-04  Bruno Haible  <bruno@clisp.org>
16643
16644         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16645         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16646         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16647         REPLACE_FREXPL to 1.
16648         * doc/posix-functions/frexpl.texi: Update documentation.
16649
16650 2010-04-04  Bruno Haible  <bruno@clisp.org>
16651
16652         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16653         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16654
16655 2010-04-04  Bruno Haible  <bruno@clisp.org>
16656
16657         Implement nanosleep for native Windows.
16658         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16659
16660 2010-04-04  Bruno Haible  <bruno@clisp.org>
16661
16662         math: Fix some C++ test errors on Solaris 8.
16663         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16664
16665 2010-04-04  Bruno Haible  <bruno@clisp.org>
16666
16667         math: Fix some C++ test errors on Cygwin.
16668         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16669         truncl): Provide declaration if the system does not have it.
16670         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16671         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16672         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16673         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16674         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16675         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16676         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16677         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16678         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16679         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16681         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16682         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16683         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16684         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16685         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16687         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16688         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16689         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16690         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16691         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16692
16693 2010-04-04  Bruno Haible  <bruno@clisp.org>
16694
16695         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16696         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16697         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16698         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16699         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16700         * m4/isinf.m4 (gl_ISINF): Likewise.
16701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16702
16703 2010-04-04  Bruno Haible  <bruno@clisp.org>
16704
16705         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16706         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16707
16708 2010-04-04  Bruno Haible  <bruno@clisp.org>
16709
16710         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16711         * modules/tmpfile (configure.ac): Update.
16712
16713         tmpfile: Fix C++ test error on mingw.
16714         * lib/stdio.in.h (tmpfile): New declaration.
16715         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16716         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16717         * modules/tmpfile (Depends-on): Add stdio.
16718         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16719         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16720         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16721         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16722         REPLACE_TMPFILE.
16723         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16724
16725 2010-04-04  Bruno Haible  <bruno@clisp.org>
16726
16727         ioctl: Fix C++ test error on mingw.
16728         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16729         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16730         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16731
16732 2010-04-03  Bruno Haible  <bruno@clisp.org>
16733
16734         wcwidth: Fix C++ test error on mingw.
16735         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16737         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16738
16739 2010-04-03  Bruno Haible  <bruno@clisp.org>
16740
16741         nanosleep: Fix C++ test error on mingw.
16742         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16743         * lib/time.in.h (nanosleep): Use modern idiom.
16744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16745         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16746         REPLACE_NANOSLEEP to 1.
16747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16748         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16749
16750 2010-04-03  Bruno Haible  <bruno@clisp.org>
16751
16752         strptime: Fix C++ test error on mingw.
16753         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16754         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16755         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16756         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16758         not REPLACE_STRPTIME.
16759         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16760         REPLACE_STRPTIME.
16761
16762 2010-04-03  Bruno Haible  <bruno@clisp.org>
16763
16764         timegm: Fix C++ test error on mingw.
16765         * lib/time.in.h (timegm): Use modern idiom.
16766         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16767         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16768         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16769         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16770
16771 2010-04-03  Bruno Haible  <bruno@clisp.org>
16772
16773         timegm: Assume declaration if function exists.
16774         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16775         if it exists. Don't clobber ac_cv_func_timegm.
16776
16777 2010-04-03  Bruno Haible  <bruno@clisp.org>
16778
16779         time_r: Fix C++ test error on mingw.
16780         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16781         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16782         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16783         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16784         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16785
16786 2010-04-03  Bruno Haible  <bruno@clisp.org>
16787
16788         time_r: Minor updates.
16789         * modules/time_r (Description): Mention the provided functions.
16790         * lib/time_r.c: Don't include <string.h>.
16791         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16792         * doc/posix-functions/localtime_r.texi: Likewise.
16793
16794 2010-04-03  Bruno Haible  <bruno@clisp.org>
16795
16796         time: Fix regression introduced on 2010-03-08.
16797         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16798         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16799
16800 2010-04-03  Jim Meyering  <meyering@redhat.com>
16801
16802         maint.mk: don't silently disable project-specific syntax-check rules
16803         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16804         that they need to convert their project-specific syntax-check rules
16805         to use the new _sc_search_regexp.
16806
16807 2010-04-03  Bruno Haible  <bruno@clisp.org>
16808
16809         fchdir: Fix regression introduced on 2010-03-08.
16810         * lib/unistd.in.h (fchdir): Fix declaration.
16811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16813         REPLACE_FCHDIR.
16814         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16815         REPLACE_FCHDIR.
16816
16817 2010-04-03  Bruno Haible  <bruno@clisp.org>
16818
16819         getpagesize: Fix C++ test error on mingw.
16820         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16821         system does not declare the function.
16822         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16823         declared.
16824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16825         HAVE_DECL_GETPAGESIZE.
16826         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16827
16828 2010-04-03  Bruno Haible  <bruno@clisp.org>
16829
16830         stdio: Make C++ tests work on mingw.
16831         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16832         does not declare the function.
16833
16834 2010-04-03  Bruno Haible  <bruno@clisp.org>
16835
16836         ftello: Fix C++ test error on mingw.
16837         * lib/stdio.in.h (ftello): Use modern idiom.
16838         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16839         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16840         is missing and that it needs to be replaced.
16841         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16843         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16844
16845 2010-04-03  Bruno Haible  <bruno@clisp.org>
16846
16847         fseeko: Fix C++ test error on mingw.
16848         * lib/stdio.in.h (fseeko): Use modern idiom.
16849         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16850         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16851         is missing and that it needs to be replaced.
16852         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16854         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16855
16856 2010-04-03  Bruno Haible  <bruno@clisp.org>
16857
16858         mkstemp: Fix C++ test error on mingw.
16859         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16861         function is missing and that it needs to be replaced.
16862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16863         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16864
16865 2010-04-03  Bruno Haible  <bruno@clisp.org>
16866
16867         stpncpy: Fix C++ test error on mingw.
16868         * lib/string.in.h (stpncpy): Use modern idiom.
16869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16870         function is missing and that it needs to be replaced.
16871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16872         REPLACE_STPNCPY.
16873         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16874
16875 2010-04-03  Bruno Haible  <bruno@clisp.org>
16876
16877         sys_stat: Fix C++ test error on mingw.
16878         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16879         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16880
16881 2010-04-03  Bruno Haible  <bruno@clisp.org>
16882
16883         pty: Update doc.
16884         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16885
16886 2010-04-03  Bruno Haible  <bruno@clisp.org>
16887
16888         unistd: Fix C++ test error on mingw.
16889         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16890
16891 2010-04-03  Bruno Haible  <bruno@clisp.org>
16892
16893         Update doc regarding mingw.
16894         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16895         * doc/glibc-functions/login_tty.texi: Likewise.
16896         * doc/glibc-functions/forkpty.texi: Likewise.
16897
16898 2010-04-03  Bruno Haible  <bruno@clisp.org>
16899
16900         stdlib: Avoid compilation failure of c-strtold on mingw.
16901         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16902
16903 2010-04-03  Bruno Haible  <bruno@clisp.org>
16904
16905         locale: Make C++ tests work on Cygwin and mingw.
16906         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16907         cannot provide the function.
16908         Reported by Simon Josefsson.
16909
16910 2010-04-03  Bruno Haible  <bruno@clisp.org>
16911
16912         localename: Port to MacOS X 10.6.
16913         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16914         memory layout of the locales in MacOS X 10.6 as well.
16915         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16916
16917 2010-04-02  Bruno Haible  <bruno@clisp.org>
16918
16919         gnulib-tool: Ensure that long-running tests are executed last.
16920         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16921         running tests after the one for the other tests.
16922
16923 2010-04-02  Bruno Haible  <bruno@clisp.org>
16924
16925         gnulib-tool: Ensure the tests in the main directory are executed first.
16926         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16927         start with the current directory.
16928
16929 2010-04-02  Bruno Haible  <bruno@clisp.org>
16930
16931         Tests for module 'havelib', moved here from GNU gettext.
16932         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16933         modifications.
16934         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16935         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16936         with modifications.
16937         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16938         modifications.
16939         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16940         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16941         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16942         with modifications.
16943         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16944         with modifications.
16945         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16946         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16947         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16948         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16949         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16950         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16951         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16952         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16953         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16954         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16955         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16956         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16957         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16958         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16959         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16960         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16961         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16962         with modifications.
16963         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16964         with modifications.
16965         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16966         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16967         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16968         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16969         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16970         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16971         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16972         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16973         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16974         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16975         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16976         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16977         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16978         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16979         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16980         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16981         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16982         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16983         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16984         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16985         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16986         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16987         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16988         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16989         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16990         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16991         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16992         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16993         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16994         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16995         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16996         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16997         * tests/havelib/rpathx/rpathx.c: New file, from
16998         gettext/autoconf-lib-link.
16999         * tests/havelib/rpathx/Makefile.am: New file, from
17000         gettext/autoconf-lib-link.
17001         * tests/havelib/rpathx/configure.ac: New file, from
17002         gettext/autoconf-lib-link with modifications.
17003         * tests/havelib/rpathy/rpathy.c: New file, from
17004         gettext/autoconf-lib-link.
17005         * tests/havelib/rpathy/Makefile.am: New file, from
17006         gettext/autoconf-lib-link.
17007         * tests/havelib/rpathy/configure.ac: New file, from
17008         gettext/autoconf-lib-link with modifications.
17009         * tests/havelib/rpathz/rpathz.c: New file, from
17010         gettext/autoconf-lib-link.
17011         * tests/havelib/rpathz/Makefile.am: New file, from
17012         gettext/autoconf-lib-link.
17013         * tests/havelib/rpathz/configure.ac: New file, from
17014         gettext/autoconf-lib-link with modifications.
17015         * tests/havelib/rpathlx/usex.c: New file, from
17016         gettext/autoconf-lib-link.
17017         * tests/havelib/rpathlx/Makefile.am: New file, from
17018         gettext/autoconf-lib-link.
17019         * tests/havelib/rpathlx/configure.ac: New file, from
17020         gettext/autoconf-lib-link with modifications.
17021         * tests/havelib/rpathly/usey.c: New file, from
17022         gettext/autoconf-lib-link.
17023         * tests/havelib/rpathly/Makefile.am: New file, from
17024         gettext/autoconf-lib-link.
17025         * tests/havelib/rpathly/configure.ac: New file, from
17026         gettext/autoconf-lib-link with modifications.
17027         * tests/havelib/rpathlz/usez.c: New file, from
17028         gettext/autoconf-lib-link.
17029         * tests/havelib/rpathlz/Makefile.am: New file, from
17030         gettext/autoconf-lib-link.
17031         * tests/havelib/rpathlz/configure.ac: New file, from
17032         gettext/autoconf-lib-link with modifications.
17033         * tests/havelib/rpathlyx/usey.c: New file, from
17034         gettext/autoconf-lib-link.
17035         * tests/havelib/rpathlyx/Makefile.am: New file, from
17036         gettext/autoconf-lib-link.
17037         * tests/havelib/rpathlyx/configure.ac: New file, from
17038         gettext/autoconf-lib-link with modifications.
17039         * tests/havelib/rpathlzyx/usez.c: New file, from
17040         gettext/autoconf-lib-link.
17041         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17042         gettext/autoconf-lib-link.
17043         * tests/havelib/rpathlzyx/configure.ac: New file, from
17044         gettext/autoconf-lib-link with modifications.
17045         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17046         with modifications.
17047
17048 2010-04-02  Bruno Haible  <bruno@clisp.org>
17049
17050         gnulib-tool: Create distributed built sources also for the tests.
17051         * gnulib-tool (func_create_testdir): Also generate distributed built
17052         sources in the tests directory.
17053
17054 2010-04-02  Bruno Haible  <bruno@clisp.org>
17055
17056         gnulib-tool: Obey user's environment variables.
17057         * gnulib-tool (func_create_testdir): When creating built sources,
17058         respect the environment variables for autoconf, automake, etc. given by
17059         the user.
17060
17061 2010-04-02  Bruno Haible  <bruno@clisp.org>
17062
17063         gnulib-tool: Provide the value of --m4-base to modules.
17064         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17065         of gl_m4_base.
17066
17067 2010-04-02  Eric Blake  <eblake@redhat.com>
17068
17069         maint.mk: fix some fallout
17070         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17071         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17072
17073 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17074
17075         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17076         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17077         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17078         (sc_cast_of_x_alloc_return_value): Likewise.
17079         (sc_cast_of_alloca_return_value): Likewise.
17080         (sc_space_tab): Likewise.
17081         (sc_prohibit_atoi_atof): Likewise.
17082         (sc_prohibit_magic_number_exit): Likewise.
17083         (sc_error_exit_success): Likewise.
17084         (sc_file_system): Likewise.
17085         (sc_prohibit_have_config_h): Likewise.
17086         (sc_require_config_h): Likewise.
17087         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17088         (sc_obsolete_symbols): Likewise.
17089         (sc_changelog): Likewise.
17090         (sc_program_name): Likewise.
17091         (sc_the_the): Likewise.
17092         (sc_trailing_blank): Likewise.
17093         (sc_two_space_separator_in_usage): Likewise.
17094         (sc_useless_cpp_parens): Likewise.
17095         (sc_GPL_version): Likewise.
17096         (sc_GFDL_version): Likewise.
17097         (sc_texinfo_acronym): Likewise.
17098         (sc_prohibit_cvs_keyword): Likewise.
17099         (sc_prohibit_stat_st_blocks): Likewise.
17100         (sc_prohibit_S_IS_definition): Likewise.
17101         (sc_redundant_const): Likewise.
17102         (sc_makefile_TAB_only_indentation): Likewise.
17103         (sc_m4_quote_check): Likewise.
17104         (sc_makefile_path_separator_check): Likewise.
17105         (sc_copyright_check): Likewise.
17106         (sc_Wundef_boolean): Likewise.
17107         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17108
17109         maint.mk: match 0 or more whitespace-before-function-call '('
17110         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17111         that have zero or two-and-more spaces between the function name
17112         and the open parenthesis.
17113         (sc_error_message_warn_fatal): Likewise.
17114         (sc_error_message_uppercase): Likewise.
17115         (sc_error_message_period): Likewise.
17116
17117 2010-03-31  Eric Blake  <eblake@redhat.com>
17118
17119         maint.mk: check for [ as well as test
17120         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17121         Based on a libvirt report by Matthias Bolte.
17122
17123         gnumakefile: don't squelch _version output
17124         * top/GNUmakefile (_version): Create one-shot dependency rather
17125         than using $(shell) when version must be regenerated.
17126         (_autoreconf): Run verbosely, by default.
17127
17128         sys_time: avoid compiler warnings
17129         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17130         unconditional, fixing regression from 2010-03-29.
17131         Reported by Simon Josefsson.
17132
17133 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17134
17135         maint.mk: s/_header_without_use/_sc_header_without_use/
17136         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17137         (sc_prohibit_assert_without_use): Use the new name.
17138         (sc_prohibit_close_stream_without_use): Likewise.
17139         (sc_prohibit_getopt_without_use): Likewise.
17140         (sc_prohibit_quotearg_without_use): Likewise.
17141         (sc_prohibit_quote_without_use): Likewise.
17142         (sc_prohibit_long_options_without_use): Likewise.
17143         (sc_prohibit_inttostr_without_use): Likewise.
17144         (sc_prohibit_ignore_value_without_use): Likewise.
17145         (sc_prohibit_error_without_use): Likewise.
17146         (sc_prohibit_xalloc_without_use): Likewise.
17147         (sc_prohibit_hash_without_use): Likewise.
17148         (sc_prohibit_hash_pjw_without_use): Likewise.
17149         (sc_prohibit_safe_read_without_use): Likewise.
17150         (sc_prohibit_argmatch_without_use): Likewise.
17151         (sc_prohibit_canonicalize_without_use): Likewise.
17152         (sc_prohibit_root_dev_ino_without_use): Likewise.
17153         (sc_prohibit_openat_without_use): Likewise.
17154         (sc_prohibit_c_ctype_without_use): Likewise.
17155         (sc_prohibit_signal_without_use): Likewise.
17156         (sc_prohibit_intprops_without_use): Likewise.
17157
17158 2010-03-30  Eric Blake  <eblake@redhat.com>
17159
17160         maint: improve module indicators
17161         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17162         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17163         columns, and avoid extra macro expansion.
17164
17165         fdopendir: work around FreeBSD bug
17166         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17167         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17168         * modules/dirent (Makefile.am): Substitute it.
17169         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17170         declaration.
17171         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17172         fix.
17173         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17174
17175 2010-03-29  Bruno Haible  <bruno@clisp.org>
17176
17177         Emit #pragma system_header after the inclusion guard, not before.
17178         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17179         guard that spans the entire file, not before. This enables an
17180         optimization in GCC's preprocessor.
17181         * lib/ctype.in.h: Likewise.
17182         * lib/dirent.in.h: Likewise.
17183         * lib/errno.in.h: Likewise.
17184         * lib/float.in.h: Likewise.
17185         * lib/getopt.in.h: Likewise.
17186         * lib/iconv.in.h: Likewise.
17187         * lib/langinfo.in.h: Likewise.
17188         * lib/locale.in.h: Likewise.
17189         * lib/math.in.h: Likewise.
17190         * lib/netdb.in.h: Likewise.
17191         * lib/netinet_in.in.h: Likewise.
17192         * lib/pty.in.h: Likewise.
17193         * lib/sched.in.h: Likewise.
17194         * lib/se-selinux.in.h: Likewise.
17195         * lib/search.in.h: Likewise.
17196         * lib/spawn.in.h: Likewise.
17197         * lib/stdarg.in.h: Likewise.
17198         * lib/stdint.in.h: Likewise.
17199         * lib/string.in.h: Likewise.
17200         * lib/strings.in.h: Likewise.
17201         * lib/sys_file.in.h: Likewise.
17202         * lib/sys_ioctl.in.h: Likewise.
17203         * lib/sys_time.in.h: Likewise.
17204         * lib/sys_times.in.h: Likewise.
17205         * lib/sys_utsname.in.h: Likewise.
17206         * lib/sys_wait.in.h: Likewise.
17207         * lib/sysexits.in.h: Likewise.
17208         * lib/wctype.in.h: Likewise.
17209
17210 2010-03-28  James Youngman  <jay@gnu.org>
17211
17212         save-cwd: don't leak a file descriptor when the caller execs.
17213         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17214         saved file descriptor.
17215         * modules/save-cwd (Depends-on): Depend on cloexec.
17216
17217 2010-03-29  Bruno Haible  <bruno@clisp.org>
17218
17219         Remove vestiges of fts-lgpl module.
17220         * lib/fts_.h: Assume GNULIB_FTS is 1.
17221         * lib/fts.c: Likewise.
17222         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17223
17224 2010-03-28  Bruno Haible  <bruno@clisp.org>
17225
17226         Fix definition of tests witness macro.
17227         * gnulib-tool (func_import): Fix definition of witness macro.
17228
17229 2010-03-28  Bruno Haible  <bruno@clisp.org>
17230
17231         Fix ioctl's protoype on glibc systems.
17232         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17233         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17234         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17235         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17236         signature. If not, arrange to replace the ioctl function.
17237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17238         REPLACE_IOCTL.
17239         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17240         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17241         Reported by Ludovic Courtès <ludo@gnu.org>.
17242
17243 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17244
17245         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17246         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17247         made it so grep -r --include=GLOB* ... did not work.
17248
17249 2010-03-26  Jim Meyering  <meyering@redhat.com>
17250             Eric Blake  <eblake@redhat.com>
17251
17252         maint.mk: prohibit use of test's -o and -a operators
17253         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17254
17255 2010-03-28  Bruno Haible  <bruno@clisp.org>
17256
17257         Remove unused GNULIB_XYZ macro definitions.
17258         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17259         invocation.
17260
17261 2010-03-28  Bruno Haible  <bruno@clisp.org>
17262
17263         Mark privileged tests modules.
17264         * modules/idpriv-drop-tests (Status): New section.
17265         * modules/idpriv-droptemp-tests (Status): New section.
17266
17267 2010-03-28  Bruno Haible  <bruno@clisp.org>
17268
17269         Split C++ tests into separate tests modules.
17270         * modules/dirent-c++-tests: New file, extracted from
17271         modules/dirent-tests.
17272         * modules/dirent-tests: Depend on it.
17273         * modules/fcntl-h-c++-tests: New file, extracted from
17274         modules/fcntl-h-tests.
17275         * modules/fcntl-h-tests: Depend on it.
17276         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17277         * modules/glob-tests: Depend on it.
17278         * modules/iconv-h-c++-tests: New file, extracted from
17279         modules/iconv-h-tests.
17280         * modules/iconv-h-tests: Depend on it.
17281         * modules/langinfo-c++-tests: New file, extracted from
17282         modules/langinfo-tests.
17283         * modules/langinfo-tests: Depend on it.
17284         * modules/locale-c++-tests: New file, extracted from
17285         modules/locale-tests.
17286         * modules/locale-tests: Depend on it.
17287         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17288         * modules/math-tests: Depend on it.
17289         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17290         * modules/pty-tests: Depend on it.
17291         * modules/search-c++-tests: New file, extracted from
17292         modules/search-tests.
17293         * modules/search-tests: Depend on it.
17294         * modules/signal-c++-tests: New file, extracted from
17295         modules/signal-tests.
17296         * modules/signal-tests: Depend on it.
17297         * modules/spawn-c++-tests: New file, extracted from
17298         modules/spawn-tests.
17299         * modules/spawn-tests: Depend on it.
17300         * modules/stdio-c++-tests: New file, extracted from
17301         modules/stdio-tests.
17302         * modules/stdio-tests: Depend on it.
17303         * modules/stdlib-c++-tests: New file, extracted from
17304         modules/stdlib-tests.
17305         * modules/stdlib-tests: Depend on it.
17306         * modules/string-c++-tests: New file, extracted from
17307         modules/string-tests.
17308         * modules/string-tests: Depend on it.
17309         * modules/sys_ioctl-c++-tests: New file, extracted from
17310         modules/sys_ioctl-tests.
17311         * modules/sys_ioctl-tests: Depend on it.
17312         * modules/sys_select-c++-tests: New file, extracted from
17313         modules/sys_select-tests.
17314         * modules/sys_select-tests: Depend on it.
17315         * modules/sys_socket-c++-tests: New file, extracted from
17316         modules/sys_socket-tests.
17317         * modules/sys_socket-tests: Depend on it.
17318         * modules/sys_stat-c++-tests: New file, extracted from
17319         modules/sys_stat-tests.
17320         * modules/sys_stat-tests: Depend on it.
17321         * modules/sys_time-c++-tests: New file, extracted from
17322         modules/sys_time-tests.
17323         * modules/sys_time-tests: Depend on it.
17324         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17325         * modules/time-tests: Depend on it.
17326         * modules/unistd-c++-tests: New file, extracted from
17327         modules/unistd-tests.
17328         * modules/unistd-tests: Depend on it.
17329         * modules/wchar-c++-tests: New file, extracted from
17330         modules/wchar-tests.
17331         * modules/wchar-tests: Depend on it.
17332         * modules/wctype-c++-tests: New file, extracted from
17333         modules/wctype-tests.
17334         * modules/wctype-tests: Depend on it.
17335         Reported by Simon Josefsson.
17336
17337 2010-03-28  Bruno Haible  <bruno@clisp.org>
17338
17339         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17340         * gnulib-tool (func_exists_module): New function, extracted from
17341         func_verify_module.
17342         (func_verify_module): Use it.
17343         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17344         'foo' only if 'foo' exists.
17345         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17346         module.
17347
17348 2010-03-28  Bruno Haible  <bruno@clisp.org>
17349
17350         gnulib-tool: Add support for special categories of tests.
17351         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17352         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17353         (func_usage): Document them.
17354         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17355         inc_unportable_tests, inc_all_tests): New variables.
17356         (func_acceptable): Consider these variables.
17357         (func_modules_transitive_closure): Make it work when the 'Status' field
17358         consists of multiple words.
17359         (func_import): Store and restore the values of inc_cxx_tests,
17360         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17361         inc_all_tests in gnulib-comp.m4.
17362         (func_create_testdir): Set inc_all_tests to true.
17363         * doc/gnulib.texi (Extra tests modules): New section.
17364         Suggested by Jim Meyering.
17365
17366 2010-03-28  Bruno Haible  <bruno@clisp.org>
17367
17368         ansi-c++-opt: Allow turning off the C++ build by default.
17369         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17370         gl_CXX_CHOICE_DEFAULT_NO is defined.
17371         Requested by Eric Blake.
17372
17373 2010-03-28  Bruno Haible  <bruno@clisp.org>
17374
17375         unistd: Avoid #define replacements in C++ mode.
17376         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17377         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17378         setsockopt, shutdown, select): In C++, attach a warning to the function
17379         if possible, rather than #defining the symbol to a dysfunctional alias.
17380         Reported by John W. Eaton <jwe@gnu.org>.
17381
17382 2010-03-28  Bruno Haible  <bruno@clisp.org>
17383
17384         Fix link errors on mingw.
17385         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17386         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17387         $(LIBSOCKET).
17388         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17389         $(LIBSOCKET).
17390
17391 2010-03-28  Bruno Haible  <bruno@clisp.org>
17392             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17393
17394         lib-ignore: Determine different options for different compilers.
17395         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17396         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17397         Add comments.
17398         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17399         * NEWS: Mention the change.
17400
17401 2010-03-27  Bruno Haible  <bruno@clisp.org>
17402
17403         Remove unused GNULIB_XYZ macro definitions.
17404         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17405         * modules/fseek (configure.ac): Likewise.
17406         * modules/ioctl (configure.ac): Likewise.
17407         * modules/open (configure.ac): Likewise.
17408         * modules/stdlib-safer (configure.ac): Likewise.
17409
17410 2010-03-27  Bruno Haible  <bruno@clisp.org>
17411
17412         Add a remark about certain modules.
17413         * modules/malloc (Comment): New section.
17414         * modules/realloc (Comment): Likewise.
17415         * modules/sigpipe (Comment): Likewise.
17416
17417 2010-03-27  Bruno Haible  <bruno@clisp.org>
17418
17419         Resolve conflict between the two kinds of module indicators.
17420         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17421         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17422         * modules/canonicalize (configure.ac): Invoke
17423         gl_MODULE_INDICATOR_FOR_TESTS.
17424         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17425         GNULIB_XYZ.
17426         * tests/test-dirent-c++.cc: Likewise.
17427         * tests/test-dirent-safer.c: Likewise.
17428         * tests/test-dup2.c: Likewise.
17429         * tests/test-fchdir.c: Likewise.
17430         * tests/test-fcntl-h-c++.cc: Likewise.
17431         * tests/test-getopt.c: Likewise.
17432         * tests/test-getopt.h: Likewise.
17433         * tests/test-langinfo-c++.cc: Likewise.
17434         * tests/test-locale-c++.cc: Likewise.
17435         * tests/test-math-c++.cc: Likewise.
17436         * tests/test-pty-c++.cc: Likewise.
17437         * tests/test-search-c++.cc: Likewise.
17438         * tests/test-signal-c++.cc: Likewise.
17439         * tests/test-spawn-c++.cc: Likewise.
17440         * tests/test-stdio-c++.cc: Likewise.
17441         * tests/test-stdlib-c++.cc: Likewise.
17442         * tests/test-string-c++.cc: Likewise.
17443         * tests/test-sys_ioctl-c++.cc: Likewise.
17444         * tests/test-sys_select-c++.cc: Likewise.
17445         * tests/test-sys_socket-c++.cc: Likewise.
17446         * tests/test-sys_stat-c++.cc: Likewise.
17447         * tests/test-sys_time-c++.cc: Likewise.
17448         * tests/test-time-c++.cc: Likewise.
17449         * tests/test-unistd-c++.cc: Likewise.
17450         * tests/test-wchar-c++.cc: Likewise.
17451         * tests/uninorm/test-u8-nfc.c: Likewise.
17452         * tests/uninorm/test-u8-nfd.c: Likewise.
17453         * tests/uninorm/test-u8-nfkc.c: Likewise.
17454         * tests/uninorm/test-u8-nfkd.c: Likewise.
17455         * tests/uninorm/test-u16-nfc.c: Likewise.
17456         * tests/uninorm/test-u16-nfd.c: Likewise.
17457         * tests/uninorm/test-u16-nfkc.c: Likewise.
17458         * tests/uninorm/test-u16-nfkd.c: Likewise.
17459         * tests/uninorm/test-u32-nfc.c: Likewise.
17460         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17461         * tests/uninorm/test-u32-nfd.c: Likewise.
17462         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17463         * tests/uninorm/test-u32-nfkc.c: Likewise.
17464         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17465         * tests/uninorm/test-u32-nfkd.c: Likewise.
17466         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17467         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17468
17469 2010-03-27  Bruno Haible  <bruno@clisp.org>
17470
17471         Distinguish two kinds of module indicators.
17472         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17473         gl_MODULE_INDICATOR.
17474         (gl_MODULE_INDICATOR): New macro.
17475         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17476         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17477         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17478         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17479         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17480         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17481         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17482         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17483         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17484         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17485         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17486         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17494         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17495         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17496         * modules/cloexec (configure.ac): Likewise.
17497         * modules/getopt-gnu (configure.ac): Likewise.
17498         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17499         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17500         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17501         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17502
17503 2010-03-27  Bruno Haible  <bruno@clisp.org>
17504
17505         New module description field 'Comment'.
17506         * gnulib-tool: New option --extract-comment.
17507         (func_usage): Document it.
17508         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17509         (func_get_comment): New function.
17510         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17511
17512 2010-03-27  Bruno Haible  <bruno@clisp.org>
17513
17514         Addendum to 2010-02-07 commit.
17515         * gnulib-tool (func_usage): Document --extract-applicability option.
17516
17517 2010-03-27  Bruno Haible  <bruno@clisp.org>
17518
17519         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17520         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17521         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17522         rather than link errors.
17523
17524 2010-03-27  Bruno Haible  <bruno@clisp.org>
17525
17526         Avoid side effects from tests-related modules on the compilation of lib.
17527         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17528         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17529         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17530         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17531         macro.
17532         (func_import): Define a witness macro. Assign it a value that depends
17533         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17534         tests-related modules.
17535         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17536         Reported by Jim Meyering.
17537
17538 2010-03-27  Bruno Haible  <bruno@clisp.org>
17539
17540         Factorize common .m4 code.
17541         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17542         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17543         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17544         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17545         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17546         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17547         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17548         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17549         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17550         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17551         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17552         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17553         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17554         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17555         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17556         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17557         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17558         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17560         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17561         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17563         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17564         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17565         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17566         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17567         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17568         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17569         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17570         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17571         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17572         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17573
17574 2010-03-27  Bruno Haible  <bruno@clisp.org>
17575
17576         Fix a compilation error on Cygwin with g++ >= 4.3.
17577         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17578         if it is undefined or if we alias it to chmod.
17579         (lstat): Don't warn about the use of this function if it is undefined
17580         or if we alias it to stat.
17581         Reported by Simon Josefsson.
17582
17583 2010-03-27  Bruno Haible  <bruno@clisp.org>
17584
17585         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17586         * modules/getlogin (configure.ac): Update.
17587
17588         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17589         * modules/getlogin_r (configure.ac): Update.
17590
17591         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17593         * modules/inet_ntop (configure.ac): Update.
17594
17595         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17596         * modules/inet_pton (configure.ac): Update.
17597
17598         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17599         * modules/mbslen (configure.ac): Update.
17600
17601         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17602         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17603         * modules/forkpty (configure.ac): Update.
17604         * modules/openpty (configure.ac): Update.
17605
17606 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17607
17608         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17609         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17610
17611 2010-03-25  Eric Blake  <eblake@redhat.com>
17612
17613         maint: use pragma consistently across replacement headers
17614         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17615         * lib/dirent.in.h (system_header): Likewise.
17616         * lib/errno.in.h (system_header): Likewise.
17617         * lib/float.in.h (system_header): Likewise.
17618         * lib/getopt.in.h (system_header): Likewise.
17619         * lib/iconv.in.h (system_header): Likewise.
17620         * lib/inttypes.in.h (system_header): Likewise.
17621         * lib/langinfo.in.h (system_header): Likewise.
17622         * lib/locale.in.h (system_header): Likewise.
17623         * lib/math.in.h (system_header): Likewise.
17624         * lib/netdb.in.h (system_header): Likewise.
17625         * lib/netinet_in.in.h (system_header): Likewise.
17626         * lib/pty.in.h (system_header): Likewise.
17627         * lib/sched.in.h (system_header): Likewise.
17628         * lib/se-selinux.in.h (system_header): Likewise.
17629         * lib/search.in.h (system_header): Likewise.
17630         * lib/spawn.in.h (system_header): Likewise.
17631         * lib/stdarg.in.h (system_header): Likewise.
17632         * lib/stdint.in.h (system_header): Likewise.
17633         * lib/string.in.h (system_header): Likewise.
17634         * lib/strings.in.h (system_header): Likewise.
17635         * lib/sys_file.in.h (system_header): Likewise.
17636         * lib/sys_ioctl.in.h (system_header): Likewise.
17637         * lib/sys_socket.in.h (system_header): Likewise.
17638         * lib/sys_times.in.h (system_header): Likewise.
17639         * lib/sys_utsname.in.h (system_header): Likewise.
17640         * lib/sys_wait.in.h (system_header): Likewise.
17641         * lib/sysexits.in.h (system_header): Likewise.
17642         * lib/unistd.in.h (system_header): Likewise.
17643         * lib/wctype.in.h (system_header): Likewise.
17644
17645         arpa/inet: fix mingw compilation warning
17646         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17647         Reported by Matthew Bolte.
17648
17649 2010-03-25  Bruno Haible  <bruno@clisp.org>
17650
17651         Avoid collision between gnulib wrapper and libintl wrapper.
17652         * lib/printf.c (printf): Don't define if a printf wrapper is already
17653         defined in intl/printf.c.
17654         Reported by Michel Boaventura <michel@michelboaventura.com>.
17655
17656 2010-03-25  Bruno Haible  <bruno@clisp.org>
17657
17658         Use ANSI C.
17659         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17660
17661 2010-03-25  Bruno Haible  <bruno@clisp.org>
17662
17663         Minor formatting changes.
17664         * lib/acosl.c: Insert space before function argument list.
17665         * lib/argz.c: Likewise.
17666         * lib/asinl.c: Likewise.
17667         * lib/expl.c: Likewise.
17668         * lib/gen-uni-tables.c: Likewise.
17669         * lib/gettext.h: Likewise.
17670         * lib/glthread/lock.h: Likewise.
17671         * lib/tanl.c: Likewise.
17672         * lib/uniname/uniname.c: Likewise.
17673         * tests/test-idpriv-drop.c: Likewise.
17674         * tests/test-idpriv-droptemp.c: Likewise.
17675         * tests/test-lock.c: Likewise.
17676         * tests/test-tls.c: Likewise.
17677         * lib/argp-help.c: Insert space before function-like macro argument
17678         list.
17679         * lib/memcmp.c: Likewise.
17680         * tests/test-base64.c: Likewise.
17681         * lib/localename.c: Insert space before sizeof's argument list.
17682         * lib/safe-alloc.h: Likewise.
17683         * lib/file-set.h: Insert space before macro argument list.
17684         * tests/test-argp.c: Likewise.
17685         * lib/argp-namefrob.h: Insert space before function parameter list.
17686         * lib/getaddrinfo.c: Likewise.
17687         * lib/netdb.in.h: Likewise.
17688         * lib/parse-duration.h: Likewise.
17689         * lib/parse-duration.c: Likewise.
17690         * lib/poll.c: Likewise.
17691         * lib/select.c: Likewise.
17692         * lib/trim.h: Likewise.
17693         * tests/test-usleep.c: Likewise.
17694         * lib/ldexpl.c: Insert space before function parameter list and before
17695         function argument list.
17696         * lib/logl.c: Likewise.
17697         * lib/sqrtl.c: Likewise.
17698         * lib/trim.c: Likewise.
17699         * lib/cosl.c: Use GNU style indentation. Insert space before function
17700         argument list.
17701         * lib/sinl.c: Likewise.
17702         * lib/tsearch.c: Insert space after 'for'.
17703         Reported by Jim Meyering.
17704
17705 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17706
17707         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17708         config header before grepping, as it's not present before
17709         autoreconf/configure are run.  Reported by Simon Josefsson.
17710
17711 2010-03-23  Bruno Haible  <bruno@clisp.org>
17712
17713         pt_chown: Make it work with automake < 1.11.
17714         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17715         Reported by Simon Josefsson.
17716
17717 2010-03-23  Bruno Haible  <bruno@clisp.org>
17718
17719         pt_chown: Don't depend on GPLed modules.
17720         * lib/pt_chown.c: Don't include idpriv.h.
17721         (main): Don't drop privileges.
17722         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17723         Reported by Simon Josefsson.
17724
17725 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17726
17727         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17728         suggestions from karl@freefriends.org (Karl Berry).
17729
17730 2010-03-22  Eric Blake  <eblake@redhat.com>
17731
17732         gethostname: further tweaks
17733         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17734         are overriding gethostname.
17735         Suggested by Bruno Haible.
17736
17737 2010-03-21  Bruno Haible  <bruno@clisp.org>
17738
17739         Fix comments.
17740         * lib/forkpty.c (rpl_forkpty): Fix comment.
17741         * lib/openpty.c (rpl_openpty): Likewise.
17742         Reported by Eric Blake.
17743
17744 2010-03-22  Eric Blake  <eblake@redhat.com>
17745
17746         gethostname: fix build on mingw
17747         * lib/unistd.in.h (includes): Work around fact that mingw
17748         <winsock2.h> re-includes <unistd.h>, by avoiding any
17749         redeclarations if we are being included by <winsock2.h>.
17750         Reported by Matthias Bolte.
17751
17752 2010-03-21  Bruno Haible  <bruno@clisp.org>
17753
17754         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17755         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17756         modifications.
17757         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17758         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17759         provide the replacement.
17760         * modules/forkpty (Depends-on): Add openpty, login_tty.
17761         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17762         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17763         * doc/glibc-functions/forkpty.texi: More supported platforms.
17764         * config/srclist.txt: Add forkpty.c (commented).
17765
17766 2010-03-21  Bruno Haible  <bruno@clisp.org>
17767
17768         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17769         (Makefile.am): Verify that PTY_LIB is defined.
17770
17771         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17772
17773 2010-03-21  Bruno Haible  <bruno@clisp.org>
17774
17775         Tests for module 'login_tty'.
17776         * modules/login_tty-tests: New file.
17777         * tests/test-login_tty.c: New file.
17778
17779         New module 'login_tty'.
17780         * lib/login_tty.c: New file.
17781         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17782         * modules/login_tty: New file.
17783         * doc/glibc-functions/login_tty.texi: Mention the new module.
17784
17785 2010-03-21  Bruno Haible  <bruno@clisp.org>
17786
17787         login_tty: Documentation.
17788         * doc/glibc-functions/login_tty.texi: New file.
17789         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17790
17791 2010-03-21  Bruno Haible  <bruno@clisp.org>
17792
17793         pty: Consistent macro naming.
17794         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17795         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17796         * modules/pty (configure.ac): Update.
17797
17798 2010-03-21  Bruno Haible  <bruno@clisp.org>
17799
17800         Tests for openpty: Make stricter.
17801         * tests/test-openpty.c (main): Add test of canonical processing and
17802         erase.
17803         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17804
17805         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17806         * lib/openpty.c (openpty): New replacement function.
17807         * lib/pty.in.h: Include <termios.h>.
17808         (openpty): Update declaration. Add comments.
17809         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17810         is not declared, arrange to provide the replacement. Check for _getpty
17811         and posix_openpt.
17812         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17813         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17814         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17815         * modules/pty-tests (test_pty_c___LDADD): New variable.
17816         * doc/glibc-functions/openpty.texi: More supported platforms.
17817
17818 2010-03-21  Bruno Haible  <bruno@clisp.org>
17819
17820         setenv: Tweaks.
17821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17822         the test program.
17823         * doc/posix-functions/setenv.texi: Update platforms list.
17824
17825 2010-03-21  Bruno Haible  <bruno@clisp.org>
17826
17827         New module 'unlockpt'.
17828         * lib/unlockpt.c: New file, from glibc with modifications.
17829         * m4/unlockpt.m4: New file.
17830         * modules/unlockpt: New file.
17831         * lib/stdlib.in.h (unlockpt): New declaration.
17832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17834         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17835         HAVE_UNLOCKPT.
17836         * doc/posix-functions/unlockpt.texi: Mention the new module.
17837         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17838         * config/srclist.txt: Add unlockpt.c (commented).
17839
17840 2010-03-21  Jim Meyering  <meyering@redhat.com>
17841
17842         maint.mk: prohibit inclusion of "intprops.h" without use
17843         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17844
17845 2010-03-21  Bruno Haible  <bruno@clisp.org>
17846
17847         New module 'grantpt'.
17848         * lib/grantpt.c: New file, from glibc with modifications.
17849         * m4/grantpt.m4: New file.
17850         * modules/grantpt: New file.
17851         * lib/stdlib.in.h (grantpt): New declaration.
17852         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17853         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17854         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17855         HAVE_GRANTPT.
17856         * doc/posix-functions/grantpt.texi: Mention the new module.
17857         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17858         * config/srclist.txt: Add grantpt.c (commented).
17859
17860 2010-03-21  Bruno Haible  <bruno@clisp.org>
17861
17862         New module 'pt_chown'.
17863         * lib/pt_chown.c: New file, from glibc with modifications.
17864         * lib/pty-private.h: New file, from glibc with modifications.
17865         * modules/pt_chown: New file.
17866         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17867
17868 2010-03-21  Bruno Haible  <bruno@clisp.org>
17869
17870         Tests for module 'ptsname'.
17871         * modules/ptsname-tests: New file.
17872         * tests/test-ptsname.c: New file.
17873
17874         New module 'ptsname'.
17875         * lib/ptsname.c: New file, from glibc with modifications.
17876         * m4/ptsname.m4: New file.
17877         * modules/ptsname: New file.
17878         * lib/stdlib.in.h (ptsname): New declaration.
17879         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17880         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17881         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17882         HAVE_PTSNAME.
17883         * doc/posix-functions/ptsname.texi: Mention the new module.
17884         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17885         * config/srclist.txt: Add ptsname.c (commented).
17886
17887 2010-03-21  Bruno Haible  <bruno@clisp.org>
17888
17889         Tests for module 'ttyname_r'.
17890         * modules/ttyname_r-tests: New file.
17891         * tests/test-ttyname_r.c: New file.
17892
17893         New module 'ttyname_r'.
17894         * lib/ttyname_r.c: New file.
17895         * m4/ttyname_r.m4: New file.
17896         * modules/ttyname_r: New file.
17897         * lib/unistd.in.h (ttyname_r): New declaration.
17898         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17899         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17900         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17901         HAVE_TTYNAME_R.
17902         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17903         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17904
17905 2010-03-20  Bruno Haible  <bruno@clisp.org>
17906
17907         signal: Undefine macro definitions in C++ mode.
17908         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17909         sigfillset): Undefine macro definitions from the system header in C++
17910         mode.
17911         Reported by John W. Eaton <jwe@gnu.org>.
17912
17913 2010-03-20  Bruno Haible  <bruno@clisp.org>
17914
17915         Ensure no #include statements inside extern "C" { ... }.
17916         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17917         contain #include statements.
17918         * lib/time.in.h: Likewise.
17919
17920 2010-03-20  Bruno Haible  <bruno@clisp.org>
17921
17922         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17923         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17924         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17925         Reported by John W. Eaton <jwe@gnu.org>.
17926
17927 2010-03-20  Bruno Haible  <bruno@clisp.org>
17928
17929         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17930         Reported by Jim Meyering.
17931
17932 2010-03-20  Bruno Haible  <bruno@clisp.org>
17933
17934         pipe: Set errno upon failure.
17935         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17936         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17937         errno value in error message.
17938
17939 2010-03-20  Bruno Haible  <bruno@clisp.org>
17940             Jim Meyering  <meyering@redhat.com>
17941
17942         lchown: Avoid "unused variable" warning.
17943         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17944
17945 2010-03-20  Bruno Haible  <bruno@clisp.org>
17946
17947         Work around unlink() bug on MacOS X 10.5.6.
17948         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17949         attempting to unlink a parent directory.
17950         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17951         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17952         activate for the replacement function.
17953         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17954
17955 2010-03-20  Bruno Haible  <bruno@clisp.org>
17956
17957         Fix link errors on Solaris 8.
17958         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17959         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17960
17961 2010-03-19  Jim Meyering  <meyering@redhat.com>
17962
17963         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17964         The _LIBC implementation of build_range_exp correctly honors the
17965         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17966         However, the non-_LIBC implementation would ignore that syntax-bit
17967         flag and return REG_ERANGE unconditionally.
17968         This change makes it honor that flag.
17969         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17970         Make two pointer parameters "const".
17971         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17972         (parse_bracket_exp): Update caller.
17973
17974         regex.m4: correct the reversed range endpoint ([b-a]) test
17975         * m4/regex.m4: When requiring that [b-a] evoke failure,
17976         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17977         test pass once again for x86-based systems.
17978
17979 2010-03-19  Bruno Haible  <bruno@clisp.org>
17980
17981         scandir: Fix link error on Solaris 8.
17982         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17983         macros.
17984
17985 2010-03-19  Bruno Haible  <bruno@clisp.org>
17986
17987         getusershell: Fix documentation.
17988         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17989         module.
17990         * doc/glibc-functions/setusershell.texi: Likewise.
17991
17992         getusershell: Provide declaration, missing on Solaris 9.
17993         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17994         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17995         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17996         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17998         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17999         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18000         HAVE_GETUSERSHELL.
18001         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18002
18003 2010-03-19  Bruno Haible  <bruno@clisp.org>
18004
18005         wctype: Provide iswblank function.
18006         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18007         exists and is fine.
18008         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18009         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18010         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18011         * doc/posix-functions/iswblank.texi: Update.
18012
18013 2010-03-19  Bruno Haible  <bruno@clisp.org>
18014
18015         Tests of module 'pty' in C++ mode.
18016         * modules/pty-tests: New file.
18017         * tests/test-pty-c++.cc: New file.
18018         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18019
18020 2010-03-19  Eric Blake  <eblake@redhat.com>
18021
18022         logb: fix documentation
18023         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18024         1.5 declaration bug.
18025
18026         forkpty, openpty: prefer glibc's const-safe prototype
18027         * lib/forkpty.c (rpl_forkpty): New file.
18028         * lib/openpty.c (rpl_openpty): Likewise.
18029         * modules/forkpty (Files): Distribute it.
18030         * modules/openpty (Files): Likewise.
18031         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18032         check...
18033         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18034         replacement for for non-const BSD signature.
18035         * modules/pty (Makefile.am): Substitute witnesses.
18036         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18037         * tests/test-forkpty.c: Update signature check.
18038         * tests/test-openpty.c: Likewise.
18039         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18040         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18041
18042         forkpty, openpty: split functions into new modules
18043         * modules/pty (Makefile.am): Substitute new witnesses.
18044         (Libraries): Move library detection...
18045         * modules/forkpty: ...into new module.
18046         * modules/openpty: Another new module.
18047         * modules/pty-tests: Rename and split...
18048         * modules/forkpty-tests: ...to this...
18049         * modules/openpty-tests: ...and this.
18050         * tests/test-pty.c: Rename and split...
18051         * tests/test-forkpty.c: ...to this...
18052         * tests/test-openpty.c: ...and this.
18053         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18054         (gl_PTY): Split library searching...
18055         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18056         (gl_FORKPTY, gl_OPENPTY): New macros.
18057         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18058         * NEWS: Mention the split.
18059         * MODULES.html.sh (Misc): Document the modules.
18060         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18061         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18062
18063         pty: improve replacement header
18064         * lib/pty.in.h: New file.
18065         * modules/pty (Files): Ship it.
18066         (Makefile.am): Always build replacement.
18067         * m4/pty.m4: Rename...
18068         * m4/pty_h.m4: ...to this.
18069         (gl_PTY): Modernize setting of witness macros; update check of
18070         forkpty to take proper advantage of cache.
18071         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18072
18073         getopt: avoid compiler warning
18074         * lib/getopt.c (attribute_hidden): Remove unused macro.
18075
18076 2010-03-18  Bruno Haible  <bruno@clisp.org>
18077
18078         Fix link errors on Solaris 8.
18079         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18080         * modules/search-tests (test_search_c___LDADD): Likewise.
18081         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18082         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18083         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18084         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18085         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18086         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18087         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18088
18089 2010-03-18  Bruno Haible  <bruno@clisp.org>
18090
18091         Fix bug introduced on 2010-03-14.
18092         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18093         (gl_SPAWN_H): Require it.
18094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18095         Reported by Simon Josefsson.
18096
18097 2010-03-18  Bruno Haible  <bruno@clisp.org>
18098
18099         Fix typo introduced on 2009-12-31.
18100         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18101         posix_spawn_file_actions_adddup2.
18102
18103 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18104         and Eric Blake  <eblake@redhat.com>
18105
18106         test-vc-list-files-git: make more robust
18107         * tests/test-vc-list-files-git.sh: Unset problematic environment
18108         variables.  Chain commands together.
18109
18110 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18111
18112         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18113         `AC_CHECK_DECL' invocation.
18114
18115 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18116
18117         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18118         appears before executable statements. Suggested by Petr Sumbera
18119         <Petr.Sumbera@Sun.COM>.
18120
18121 2010-03-14  Bruno Haible  <bruno@clisp.org>
18122
18123         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18124         portability problems. Instead use a simpler test.
18125         (main): Check that invalid arguments are rejected only on Linux.
18126
18127 2010-03-14  Bruno Haible  <bruno@clisp.org>
18128
18129         Fix bug introduced on 2009-12-31.
18130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18131         gl_PREREQ_SYS_H_WINSOCK2 always.
18132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18133         SYS_SOCKET_H variable.
18134         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18135         Update comments.
18136         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18137         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18138         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18139         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18140         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18141
18142 2010-03-14  Bruno Haible  <bruno@clisp.org>
18143
18144         Fix values returned by sinl, cosl.
18145         * lib/trigl.h: Add specification comments.
18146         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18147         that combines the values from the precomputed table with the values of
18148         the Chebyshev polynomials.
18149
18150 2010-03-14  Bruno Haible  <bruno@clisp.org>
18151
18152         Fix compilation error when modules 'posix_spawn[p]' are not used.
18153         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18155
18156 2010-03-14  Bruno Haible  <bruno@clisp.org>
18157
18158         Fix compilation error on mingw when module 'time_r' is not used.
18159         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18160         is 1.
18161         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18162         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18163         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18164         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18165
18166 2010-03-14  Bruno Haible  <bruno@clisp.org>
18167
18168         Fix compilation error with Sun C.
18169         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18170         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18171         instead of GCC specific ULONG_LONG_MAX.
18172         * lib/xstrtoll.c: Likewise.
18173         * lib/xstrtoull.c: Likewise.
18174
18175 2010-03-13  Bruno Haible  <bruno@clisp.org>
18176
18177         Allow the user to disable C++ code and tests.
18178         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18179         (gl_PROG_ANSI_CXX): Require it.
18180
18181 2010-03-13  Bruno Haible  <bruno@clisp.org>
18182
18183         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18184         cases.
18185
18186 2010-03-13  Bruno Haible  <bruno@clisp.org>
18187
18188         Test that gnulib does not break the standard C++ headers.
18189         * tests/test-locale-c++2.cc: New file.
18190         * modules/locale-tests (Files): Add it.
18191         (Makefile.am): Compile it for test-locale-c++.
18192         * tests/test-math-c++2.cc: New file.
18193         * modules/math-tests (Files): Add it.
18194         (Makefile.am): Compile it for test-math-c++.
18195         * tests/test-signal-c++2.cc: New file.
18196         * modules/signal-tests (Files): Add it.
18197         (Makefile.am): Compile it for test-signal-c++.
18198         * tests/test-stdio-c++2.cc: New file.
18199         * modules/stdio-tests (Files): Add it.
18200         (Makefile.am): Compile it for test-stdio-c++.
18201         * tests/test-stdlib-c++2.cc: New file.
18202         * modules/stdlib-tests (Files): Add it.
18203         (Makefile.am): Compile it for test-stdlib-c++.
18204         * tests/test-string-c++2.cc: New file.
18205         * modules/string-tests (Files): Add it.
18206         (Makefile.am): Compile it for test-string-c++.
18207         * tests/test-time-c++2.cc: New file.
18208         * modules/time-tests (Files): Add it.
18209         (Makefile.am): Compile it for test-time-c++.
18210         Reported by John W. Eaton <jwe@gnu.org>.
18211
18212 2010-03-13  Bruno Haible  <bruno@clisp.org>
18213
18214         * gnulib-tool (func_usage): Clarify which options are available for
18215         --create-testdir and --create-megatestdir.
18216
18217 2010-03-13  Bruno Haible  <bruno@clisp.org>
18218
18219         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18220         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18221         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18222         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18223         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18224         when appropriate.
18225         Reported by Jim Meyering.
18226
18227 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18228
18229         * gnulib-tool (func_import): Explain origin of code.
18230
18231 2010-03-12  Bruno Haible  <bruno@clisp.org>
18232
18233         Fix problem with automake's definition of CXXLINK.
18234         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18235         Reported by Simon Josefsson and Ludovic Courtès.
18236
18237 2010-03-12  Bruno Haible  <bruno@clisp.org>
18238
18239         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18240         stable releases.
18241
18242 2010-03-11  Bruno Haible  <bruno@clisp.org>
18243
18244         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18245         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18246         whether the system provides one variant or multiple variants of the
18247         function.
18248         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18249         C++ compilers.
18250         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18251         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18252         Reported by Jim Meyering.
18253
18254 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18255
18256         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18257
18258 2010-03-08  Bruno Haible  <bruno@clisp.org>
18259
18260         gnulib-tool: Add support for --libtool in --create-testdir.
18261         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18262         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18263
18264 2010-03-08  Eric Blake  <eblake@redhat.com>
18265
18266         gnulib-tool.texi: mention possibility of git submodule
18267         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18268         submodules.
18269         * doc/.gitignore: Ignore another generated file.
18270
18271 2010-03-08  Karl Berry  <karl@gnu.org>
18272
18273         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18274         of committing gnulib files while skipping others.
18275
18276 2010-03-07  Bruno Haible  <bruno@clisp.org>
18277
18278         Tests of module 'wctype' in C++ mode.
18279         * tests/test-wctype-c++.cc: New file.
18280         * modules/wctype-tests (Files): Add it and tests/signature.h.
18281         (Depends-on): Add ansi-c++-opt.
18282         (Makefile.am): Arrange to compile and run test-wctype-c++.
18283
18284         Tests of module 'wchar' in C++ mode.
18285         * tests/test-wchar-c++.cc: New file.
18286         * modules/wchar-tests (Files): Add it and tests/signature.h.
18287         (Depends-on): Add ansi-c++-opt.
18288         (Makefile.am): Arrange to compile and run test-wchar-c++.
18289         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18290         gl_MODULE_INDICATOR.
18291
18292         Tests of module 'unistd' in C++ mode.
18293         * tests/test-unistd-c++.cc: New file.
18294         * modules/unistd-tests (Files): Add it and tests/signature.h.
18295         (Depends-on): Add ansi-c++-opt.
18296         (Makefile.am): Arrange to compile and run test-unistd-c++.
18297         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18298         gl_MODULE_INDICATOR.
18299
18300         Tests of module 'time' in C++ mode.
18301         * tests/test-time-c++.cc: New file.
18302         * modules/time-tests (Files): Add it and tests/signature.h.
18303         (Depends-on): Add ansi-c++-opt.
18304         (Makefile.am): Arrange to compile and run test-time-c++.
18305         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18306
18307         Tests of module 'sys_time' in C++ mode.
18308         * tests/test-sys_time-c++.cc: New file.
18309         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18310         (Depends-on): Add ansi-c++-opt.
18311         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18312         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18313         gl_MODULE_INDICATOR.
18314
18315         Tests of module 'sys_stat' in C++ mode.
18316         * tests/test-sys_stat-c++.cc: New file.
18317         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18318         (Depends-on): Add ansi-c++-opt.
18319         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18320         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18321         gl_MODULE_INDICATOR.
18322
18323         Tests of module 'sys_socket' in C++ mode.
18324         * tests/test-sys_socket-c++.cc: New file.
18325         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18326         (Depends-on): Add ansi-c++-opt.
18327         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18329         gl_MODULE_INDICATOR.
18330
18331         Tests of module 'sys_select' in C++ mode.
18332         * tests/test-sys_select-c++.cc: New file.
18333         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18334         (Depends-on): Add ansi-c++-opt.
18335         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18336         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18337         gl_MODULE_INDICATOR.
18338
18339         Tests of module 'sys_ioctl' in C++ mode.
18340         * tests/test-sys_ioctl-c++.cc: New file.
18341         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18342         (Depends-on): Add ansi-c++-opt.
18343         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18345         gl_MODULE_INDICATOR.
18346
18347         Tests of module 'string' in C++ mode.
18348         * tests/test-string-c++.cc: New file.
18349         * modules/string-tests (Files): Add it and tests/signature.h.
18350         (Depends-on): Add ansi-c++-opt.
18351         (Makefile.am): Arrange to compile and run test-string-c++.
18352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18353         gl_MODULE_INDICATOR.
18354
18355         Tests of module 'stdlib' in C++ mode.
18356         * tests/test-stdlib-c++.cc: New file.
18357         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18358         (Depends-on): Add ansi-c++-opt.
18359         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18360         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18361         gl_MODULE_INDICATOR.
18362
18363         Tests of module 'stdio' in C++ mode.
18364         * tests/test-stdio-c++.cc: New file.
18365         * modules/stdio-tests (Files): Add it and tests/signature.h.
18366         (Depends-on): Add ansi-c++-opt.
18367         (Makefile.am): Arrange to compile and run test-stdio-c++.
18368         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18369         gl_MODULE_INDICATOR.
18370
18371         Tests of module 'spawn' in C++ mode.
18372         * tests/test-spawn-c++.cc: New file.
18373         * modules/spawn-tests (Files): Add it and tests/signature.h.
18374         (Depends-on): Add ansi-c++-opt.
18375         (Makefile.am): Arrange to compile and run test-spawn-c++.
18376         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18377         gl_MODULE_INDICATOR.
18378
18379         Tests of module 'signal' in C++ mode.
18380         * tests/test-signal-c++.cc: New file.
18381         * modules/signal-tests (Files): Add it and tests/signature.h.
18382         (Depends-on): Add ansi-c++-opt.
18383         (Makefile.am): Arrange to compile and run test-signal-c++.
18384         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18385         gl_MODULE_INDICATOR.
18386
18387         Tests of module 'search' in C++ mode.
18388         * tests/test-search-c++.cc: New file.
18389         * modules/search-tests (Files): Add it and tests/signature.h.
18390         (Depends-on): Add ansi-c++-opt.
18391         (Makefile.am): Arrange to compile and run test-search-c++.
18392         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18393         gl_MODULE_INDICATOR.
18394
18395         Tests of module 'math' in C++ mode.
18396         * tests/test-math-c++.cc: New file.
18397         * modules/math-tests (Files): Add it and tests/signature.h.
18398         (Depends-on): Add ansi-c++-opt.
18399         (Makefile.am): Arrange to compile and run test-math-c++.
18400         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18401
18402         Tests of module 'locale' in C++ mode.
18403         * tests/test-locale-c++.cc: New file.
18404         * modules/locale-tests (Files): Add it and tests/signature.h.
18405         (Depends-on): Add ansi-c++-opt.
18406         (Makefile.am): Arrange to compile and run test-locale-c++.
18407         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18408         gl_MODULE_INDICATOR.
18409
18410         Tests of module 'langinfo' in C++ mode.
18411         * tests/test-langinfo-c++.cc: New file.
18412         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18413         (Depends-on): Add ansi-c++-opt.
18414         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18415         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18416         gl_MODULE_INDICATOR.
18417
18418         Tests of module 'iconv-h' in C++ mode.
18419         * tests/test-iconv-h-c++.cc: New file.
18420         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18421         (Depends-on): Add ansi-c++-opt.
18422         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18423
18424         Tests of module 'glob' in C++ mode.
18425         * tests/test-glob-c++.cc: New file.
18426         * modules/glob-tests (Files): Add it.
18427         (Depends-on): Add ansi-c++-opt.
18428         (Makefile.am): Arrange to compile and run test-glob-c++.
18429
18430         Tests of module 'fcntl-h' in C++ mode.
18431         * tests/test-fcntl-h-c++.cc: New file.
18432         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18433         (Depends-on): Add ansi-c++-opt.
18434         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18435         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18436         gl_MODULE_INDICATOR.
18437
18438         Tests of module 'dirent' in C++ mode.
18439         * tests/test-dirent-c++.cc: New file.
18440         * modules/dirent-tests (Files): Add it and tests/signature.h.
18441         (Depends-on): Add ansi-c++-opt.
18442         (Makefile.am): Arrange to compile and run test-dirent-c++.
18443         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18444         gl_MODULE_INDICATOR.
18445
18446         New module 'ansi-c++-opt'.
18447         * modules/ansi-c++-opt: New file.
18448         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18449
18450         Document C++ namespace mode.
18451         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18452
18453         wctype: Avoid #define replacements in C++ mode.
18454         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18455         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18456         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18457         In C++, define a namespaced alias symbol.
18458         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18459         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18460         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18461         rule.
18462
18463         wchar: Avoid #define replacements in C++ mode.
18464         * lib/wchar.in.h: Include c++defs.h.
18465         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18466         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18467         symbol.
18468         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18469         * modules/wchar (Depends-on): Add c++defs.
18470         (Makefile.am): Update wchar.h rule.
18471
18472         unistd: Avoid #define replacements in C++ mode.
18473         * lib/unistd.in.h: Include c++defs.h.
18474         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18475         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18476         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18477         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18478         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18479         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18480         symbol.
18481         (environ): Update.
18482         * modules/unistd (Depends-on): Add c++defs.
18483         (Makefile.am): Update unistd.h rule.
18484
18485         time: Avoid #define replacements in C++ mode.
18486         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18487         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18488         define a namespaced alias symbol.
18489         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18490         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18491         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18492         * modules/time (Depends-on): Add c++defs, warn-on-use.
18493         (Makefile.am): Update time.h rule.
18494         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18495         * modules/nanosleep (configure.ac): Likewise.
18496         * modules/strptime (configure.ac): Likewise.
18497         * modules/timegm (configure.ac): Likewise.
18498
18499         sys_time: Avoid #define replacements in C++ mode.
18500         * lib/sys_time.in.h: Include c++defs.h.
18501         (gettimeofday): In C++, define a namespaced alias symbol.
18502         * modules/sys_time (Depends-on): Add c++defs.
18503         (Makefile.am): Update sys/time.h rule.
18504
18505         sys_stat: Avoid #define replacements in C++ mode.
18506         * lib/sys_stat.in.h: Include c++defs.h.
18507         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18508         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18509         namespaced alias symbol.
18510         In C++, define a namespaced alias symbol.
18511         * modules/sys_stat (Depends-on): Add c++defs.
18512         (Makefile.am): Update sys/stat.h rule.
18513
18514         sys_socket: Avoid #define replacements in C++ mode.
18515         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18516         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18517         definitions also when the system has a <sys/socket.h>.
18518         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18519         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18520         In C++, define a namespaced alias symbol.
18521         * modules/sys_socket (Depends-on): Add c++defs.
18522         (Makefile.am): Update sys/socket.h rule.
18523
18524         sys_select: Avoid #define replacements in C++ mode.
18525         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18526         definitions also when the system has a <sys/select.h>.
18527         (select): In C++, define a namespaced alias symbol.
18528         * modules/sys_select (Depends-on): Add c++defs.
18529         (Makefile.am): Update sys/select.h rule.
18530
18531         sys_ioctl: Avoid #define replacements in C++ mode.
18532         * lib/sys_ioctl.in.h: Include c++defs.h.
18533         (ioctl): In C++, define a namespaced alias symbol.
18534         * modules/sys_ioctl (Depends-on): Add c++defs.
18535         (Makefile.am): Update sys/ioctl.h rule.
18536
18537         string: Avoid #define replacements in C++ mode.
18538         * lib/string.in.h: Include c++defs.h.
18539         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18540         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18541         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18542         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18543         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18544         * modules/string (Depends-on): Add c++defs.
18545         (Makefile.am): Update string.h rule.
18546
18547         stdlib: Avoid #define replacements in C++ mode.
18548         * lib/stdlib.in.h: Include c++defs.h.
18549         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18550         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18551         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18552         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18553         symbol.
18554         * modules/stdlib (Depends-on): Add c++defs.
18555         (Makefile.am): Update stdlib.h rule.
18556
18557         stdio: Avoid #define replacements in C++ mode.
18558         * lib/stdio.in.h: Include c++defs.h.
18559         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18560         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18561         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18562         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18563         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18564         namespaced alias symbol.
18565         * modules/stdio (Depends-on): Add c++defs.
18566         (Makefile.am): Update stdio.h rule.
18567
18568         spawn: Avoid #define replacements in C++ mode.
18569         * lib/spawn.in.h: Include c++defs.h.
18570         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18571         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18572         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18573         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18574         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18575         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18576         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18577         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18578         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18579         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18580         In C++, define a namespaced alias symbol.
18581         * modules/spawn (Depends-on): Add c++defs.
18582         (Makefile.am): Update spawn.h rule.
18583
18584         signal: Avoid #define replacements in C++ mode.
18585         * lib/signal.in.h: Include c++defs.h.
18586         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18587         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18588         namespaced alias symbol.
18589         * modules/signal (Depends-on): Add c++defs.
18590         (Makefile.am): Update signal.h rule.
18591
18592         search: Avoid #define replacements in C++ mode.
18593         * lib/search.in.h: Include c++defs.h.
18594         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18595         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18596         symbol.
18597         * modules/search (Depends-on): Add c++defs.
18598         (Makefile.am): Update search.h rule.
18599
18600         math: Avoid #define replacements in C++ mode.
18601         * lib/math.in.h: Include c++defs.h.
18602         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18603         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18604         trunc, truncl): In C++, define a namespaced alias symbol.
18605         * modules/math (Depends-on): Add c++defs.
18606         (Makefile.am): Update math.h rule.
18607
18608         locale: Avoid #define replacements in C++ mode.
18609         * lib/locale.in.h: Include c++defs.h.
18610         (duplocale): In C++, define a namespaced alias symbol.
18611         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18612         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18613         * modules/locale (Depends-on): Add c++defs.
18614         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18615
18616         langinfo: Avoid #define replacements in C++ mode.
18617         * lib/langinfo.in.h: Include c++defs.h.
18618         (nl_langinfo): In C++, define a namespaced alias symbol.
18619         * modules/langinfo (Depends-on): Add c++defs.
18620         (Makefile.am): Update langinfo.h rule.
18621
18622         iconv-h: Avoid #define replacements in C++ mode.
18623         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18624         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18625         symbol.
18626         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18627         whenever iconv is present.
18628         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18629         (Makefile.am): Update iconv.h rule.
18630
18631         glob: Avoid #define replacements in C++ mode.
18632         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18633         (_gl_glob_errfunc_fn): New type.
18634         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18635         symbol.
18636         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18637         (Makefile.am): Update glob.h rule.
18638
18639         fcntl-h: Avoid #define replacements in C++ mode.
18640         * lib/fcntl.in.h: Include c++defs.h.
18641         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18642         * modules/fcntl-h (Depends-on): Add c++defs.
18643         (Makefile.am): Update fcntl.h rule.
18644
18645         dirent: Avoid #define replacements in C++ mode.
18646         * lib/dirent.in.h: Include c++defs.h.
18647         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18648         namespaced alias symbol.
18649         (dirfd): Update declaration.
18650         * modules/dirent (Depends-on): Add c++defs.
18651         (Makefile.am): Update dirent.h rule.
18652
18653         ctype: Make it usable in C++ code.
18654         * lib/ctype.in.h: Include c++defs.h.
18655         (isblank): Declare as extern "C".
18656         * modules/ctype (Depends-on): Add c++defs.
18657         (Makefile.am): Update ctype.h rule.
18658
18659         New module 'c++defs'.
18660         * modules/c++defs: New file.
18661         * build-aux/c++defs.h: New file.
18662         Reported by John W. Eaton <jwe@gnu.org>.
18663
18664 2010-03-07  Bruno Haible  <bruno@clisp.org>
18665
18666         logb: Provide missing declaration for Cygwin.
18667         * lib/math.in.h (logb): New declaration.
18668         * m4/logb.m4: New file.
18669         * modules/logb (Files): Add m4/logb.m4.
18670         (Depends-on): Add math.
18671         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18672         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18674         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18675         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18676
18677 2010-03-07  Bruno Haible  <bruno@clisp.org>
18678
18679         Fix test-cond link error.
18680         * tests/test-cond.c: Include <stdio.h>.
18681
18682 2010-03-07  Bruno Haible  <bruno@clisp.org>
18683
18684         Fix test-dirent-safer link error.
18685         * modules/dirent-safer-tests (Makefile.am): Define
18686         test_dirent_safer_LDADD.
18687
18688 2010-03-07  Bruno Haible  <bruno@clisp.org>
18689
18690         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18691         among default module list.
18692
18693 2010-03-07  Bruno Haible  <bruno@clisp.org>
18694
18695         Fix link error on platforms with GNU libiconv.
18696         * modules/unistr/u8-strcoll-tests (Makefile): Define
18697         test_u8_strcoll_LDADD.
18698         * modules/unistr/u16-strcoll-tests (Makefile): Define
18699         test_u16_strcoll_LDADD.
18700         * modules/unistr/u32-strcoll-tests (Makefile): Define
18701         test_u32_strcoll_LDADD.
18702
18703 2010-03-07  Bruno Haible  <bruno@clisp.org>
18704
18705         Use POSIX declarations for socket functions.
18706         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18707         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18708         rpl_sendto): Change declaration to match POSIX.
18709         * lib/connect.c (rpl_connect): Likewise.
18710         * lib/accept.c (rpl_accept): Likewise.
18711         * lib/bind.c (rpl_bind): Likewise.
18712         * lib/getpeername.c (rpl_getpeername): Likewise.
18713         * lib/getsockname.c (rpl_getsockname): Likewise.
18714         * lib/recv.c (rpl_recv): Likewise.
18715         * lib/send.c (rpl_send): Likewise.
18716         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18717         * lib/sendto.c (rpl_sendto): Likewise.
18718
18719 2010-03-06  Bruno Haible  <bruno@clisp.org>
18720
18721         Clarify access, euidaccess, faccessat.
18722         * doc/posix-functions/faccessat.texi: Mention security problem under
18723         "Other problems", not "Portability problems".
18724         * doc/posix-functions/access.texi: Likewise. Mention a related security
18725         problem.
18726         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18727         * lib/euidaccess.c: Add comments about platforms.
18728         * lib/unistd.in.h (access, euidaccess): Add warnings.
18729
18730 2010-03-07  Bruno Haible  <bruno@clisp.org>
18731
18732         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18733         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18734         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18735         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18736         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18737         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18738         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18739         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18740         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18741         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18742         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18743         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18744         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18745         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18746         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18747         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18748         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18749         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18750         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18751         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18752         Likewise.
18753         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18754         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18755         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18756         Likewise.
18757         * tests/test-spawn.c (main): Make it work when
18758         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18759
18760 2010-03-07  Bruno Haible  <bruno@clisp.org>
18761
18762         Fix incorrect Makefile.am generation in German locale.
18763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18764         Execute sed command with character range in C locale.
18765
18766 2010-03-06  Bruno Haible  <bruno@clisp.org>
18767
18768         Tests for module 'iconv-h'.
18769         * modules/iconv-h-tests: New file.
18770         * tests/test-iconv-h.c: New file.
18771
18772         New module 'iconv-h'.
18773         * modules/iconv-h: New file.
18774         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18775         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18776         (configure.ac): Remove gl_ICONV_H.
18777         (Makefile.am): Remove rule for iconv.h.
18778
18779 2010-03-06  Bruno Haible  <bruno@clisp.org>
18780
18781         More consistent naming of *.m4 files.
18782         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18783         * modules/wctype (Files): Update.
18784
18785         More consistent naming of *.m4 files.
18786         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18787         * modules/wchar (Files): Update.
18788
18789 2010-03-06  Jim Meyering  <meyering@redhat.com>
18790
18791         euidaccess: relax license to LGPLv2+
18792         * modules/euidaccess (License): Relax to LGPLv2+.
18793
18794 2010-03-06  Bruno Haible  <bruno@clisp.org>
18795
18796         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18797         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18798         (Makefile.am): Augment lib_SOURCES instead.
18799
18800 2010-03-04  Jim Meyering  <meyering@redhat.com>
18801
18802         utime: remove obsolete module
18803         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18804         unnecessary for years, and has been marked as obsolete for 10 months.
18805         * modules/utime: Remove file.
18806         * lib/utime.c: Remove file.
18807         * m4/utime.m4: Remove file.
18808         * m4/utimes-null.m4: Remove file.
18809         * doc/posix-functions/utime.texi (utime): Remove reference to
18810         the module.  Move the sole "fixed by gnulib" item into the
18811         "problems not fixed by Gnulib" list.
18812         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18813
18814 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18815
18816         * modules/exit (License): Relax license to LGPLv2+.
18817         (Status): Mark as obsolete.
18818         * NEWS: Mention deprecated 'exit' module.
18819         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18820         of now obsolete 'exit'.
18821
18822 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18823
18824         fts-lgpl: remove unused module
18825         * modules/fts-lgpl: Remove.
18826         * MODULES.html.sh (func_all_modules): Adjust.
18827         * check-module (find_included_lib_files): Adjust.
18828         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18829
18830 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18831
18832         copy-acl: enhance Solaris ACL error handling
18833         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18834         * lib/set-mode-acl.c (qset_acl): Likewise.
18835
18836 2010-03-02  Bruno Haible  <bruno@clisp.org>
18837
18838         spawn: Don't override the system defined values on FreeBSD 8.
18839         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18840         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18841         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18842         if HAVE_POSIX_SPAWN is 1.
18843         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18844
18845 2010-03-01  Bruno Haible  <bruno@clisp.org>
18846
18847         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18848         regarding Automake.
18849
18850 2010-02-25  Bruno Haible  <bruno@clisp.org>
18851
18852         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18853         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18854         setting, not afterwards.
18855         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18856
18857 2010-02-24  Eric Blake  <eblake@redhat.com>
18858
18859         bootstrap, git-version-gen: use timestamp
18860         * build-aux/git-version-gen (scriptversion): Force UTC.
18861         * build-aux/bootstrap (scriptversion): New variable.
18862
18863         bootstrap: allow older git
18864         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18865         older than 1.6.4.  Requested by the libvirt project.
18866
18867 2010-02-23  Eric Blake  <eblake@redhat.com>
18868
18869         warn-on-use: work with old autoconf
18870         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18871         AS_VAR semantics of autoconf 2.60.
18872         Reported by Bruno Haible.
18873
18874         bootstrap: improve some comments
18875         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18876         clarification comments.
18877
18878         gettimeofday: provide correct function
18879         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18880         when replacement is declared, otherwise provide gettimeofday.
18881         Reported by Michael Goffioul.
18882
18883 2010-02-23  Jim Meyering  <meyering@redhat.com>
18884
18885         lib-ignore: relax license to "unlimited", not LGPLv2+
18886         * modules/lib-ignore (License): Relax to "unlimited".
18887
18888 2010-02-23  Jim Meyering  <meyering@redhat.com>
18889
18890         lib-ignore: relax license to LGPLv2+
18891         * modules/lib-ignore (License): Relax to LGPLv2+.
18892
18893 2010-02-22  Eric Blake  <eblake@redhat.com>
18894
18895         lseek: avoid bash 3.2 broken pipe bug
18896         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18897         warning from bash 3.2.
18898         Reported by Ben Pfaff, with analysis from Bruno Haible.
18899
18900         bootstrap: support non-FSF copyright holder
18901         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18902         bootstrap.conf override of COPYRIGHT_HOLDER.
18903         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18904
18905         bootstrap: interoperate with gettext 0.14.1
18906         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18907
18908         bootstrap: allow for alternate submodule location
18909         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18910         hardcoding submodule location.
18911         (gnulib_mk): Allow direct use of Makefile.am.
18912
18913         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18914         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18915         rather than reconfiguring where the submodule points.
18916
18917         gettimeofday: restore support for platforms that lack function
18918         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18919         replacement if function is missing.
18920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18921         * modules/sys_time (Makefile.am): Substitute it.
18922         * lib/sys_time.in.h (gettimeofday): Check it.
18923         Reported by Michael Goffioul.
18924
18925 2010-02-21  Bruno Haible  <bruno@clisp.org>
18926
18927         * lib/stdio.in.h (obstack_printf): Fix typo.
18928
18929 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18930
18931         vc-list-files: use bzr ls's -R option
18932         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18933         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18934
18935 2010-02-21  Jim Meyering  <meyering@redhat.com>
18936
18937         init.sh: fix EXEEXT shims to work also for names like test-prog
18938         * tests/init.sh: Re-exec a better shell, when needed.
18939         If the current shell lacks support for posix $(...), an init.sh-using
18940         test will now try to find a shell that supports that.  If EXEEXT is
18941         nonempty, we also require support for hyphen-in-alias-name and shell
18942         substitutions like ${var#glob}.  Failure to find such a shell results
18943         in a skipped test.
18944
18945 2010-02-21  Bruno Haible  <bruno@clisp.org>
18946
18947         Really work around around "broken pipe" error message from bash 3.2.
18948         * gnulib-tool (func_reset_sigpipe): Remove function.
18949         (echo): In bash 3.2, define to a function that uses printf.
18950         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18951
18952 2010-02-20  Bruno Haible  <bruno@clisp.org>
18953
18954         Restore support for automake 1.9.6 with autoconf 2.61.
18955         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18956         Reported by James Youngman <jay@gnu.org>.
18957
18958 2010-02-20  Bruno Haible  <bruno@clisp.org>
18959
18960         Improve *printf warning condition.
18961         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18962         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18963         and the function is overridden due to SIGPIPE emulation.
18964
18965 2010-02-20  Bruno Haible  <bruno@clisp.org>
18966
18967         * lib/stdio.in.h: Tweak comments.
18968
18969 2010-02-19  Bruno Haible  <bruno@clisp.org>
18970
18971         Make it easier to find modules. New gnulib-tool option '--find'.
18972         * gnulib-tool: New option --find.
18973         (func_usage): Document it.
18974         (func_sanitize_modulelist): New function, extracted from
18975         func_all_modules.
18976         (func_all_modules): Invoke it.
18977         * doc/gnulib-tool.texi (Which modules?): New node.
18978
18979 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18980
18981         * lib/sys_select.in.h: Provide select replacement even if
18982         sys/select.h exists on a system, for Interix.
18983
18984 2010-02-18  Jim Meyering  <meyering@redhat.com>
18985
18986         init.sh: don't use $(...) just yet
18987         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18988         to accommodate e.g., Solaris' /bin/sh.
18989
18990 2010-02-17  Bruno Haible  <bruno@clisp.org>
18991
18992         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18993         Reported by Ludovic Courtès <ludo@gnu.org>.
18994
18995 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18996
18997         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18998         linking with -lintl.
18999
19000 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19001
19002         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19003         if not provided by the system's netdb.h.  Reported by
19004         ludo@gnu.org (Ludovic Courtès).
19005
19006 2010-02-15  Jim Meyering  <meyering@redhat.com>
19007
19008         init.sh: improve portability and efficiency
19009         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19010         "dummy" in a for loop.
19011         Use '!', not '^' to select the complement of a character set used
19012         in a "case" statement.
19013         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19014         Suggestions from Eric Blake.
19015
19016         init.sh: automatically accommodate programs with the .exe suffix
19017         Automatically arrange for an invocation of "prog" to execute the
19018         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19019         may use the simpler "prog", yet still work when built on a system
19020         that requires specifying the added suffix.
19021         Do this by constructing a function named "prog" that invokes
19022         "prog.exe" for each .exe file in selected directories.
19023         * tests/init.sh (find_exe_basenames_): New function.
19024         (create_exe_shim_functions_): New function.
19025         (path_prepend_): Use it.
19026
19027         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19028         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19029         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19030
19031 2010-02-14  Jim Meyering  <meyering@redhat.com>
19032
19033         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19034         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19035         (sc_prohibit_hash_pjw_without_use): New rule.
19036
19037         maint.mk: allow the default upload destination dir to be overridden
19038         * top/maint.mk (upload_dest_dir_): Define with a default that
19039         preserves the status quo.
19040         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19041         Reported by Peter Simons.
19042
19043         maint.mk: prohibit inclusion of "hash.h" without_use
19044         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19045
19046 2010-02-10  Jim Meyering  <meyering@redhat.com>
19047
19048         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19049         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19050
19051 2010-02-09  Eric Blake  <ebb9@byu.net>
19052         and Bruno Haible  <bruno@clisp.org>
19053
19054         obstack-printf-posix: ensure declaration
19055         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19056         extracted from gl_FUNC_OBSTACK_PRINTF.
19057         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19058         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19059         Likewise.
19060         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19061         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19062         0.
19063
19064 2010-02-08  Bruno Haible  <bruno@clisp.org>
19065
19066         gnulib-tool: Fix typo in 2010-02-07 commit.
19067         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19068         Reported by Eric Blake.
19069
19070 2010-02-07  Bruno Haible  <bruno@clisp.org>
19071
19072         gnulib-tool: Fix up caching patches.
19073         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19074         option --no-cache. Use associative arrays when supported by the shell.
19075         (sed_comments): New variable.
19076         (modcache): Renamed from do_cache.
19077         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19078         abbreviate unnecessarily.
19079         (have_associative): New variable.
19080         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19081         way also for ksh and zsh.
19082         (func_init_sed_convert_to_cache_statements): New function, extracted
19083         from func_cache_lookup_module. Add support for associative arrays.
19084         Don't set the c_MODULE_cached variable here. Ignore all lines before
19085         the first field header. Remove only the final newline, not all trailing
19086         newlines. Support empty fields correctly. Limit the use of 'eval' to
19087         assignments.
19088         (func_get_description, func_get_status, func_get_notice,
19089         func_get_applicability, func_get_filelist, func_get_dependencies,
19090         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19091         func_get_automake_snippet, func_get_include_directive,
19092         func_get_link_directive, func_get_license, func_get_maintainer):
19093         Update documentation. List the unoptimized code first. Add support for
19094         associative arrays. Limit the use of 'eval' to assignments.
19095         (func_get_applicability): Undo stylistic pessimisations.
19096         (func_get_automake_snippet, func_get_include_directive): Reduce code
19097         duplication.
19098         (func_modules_transitive_closure, func_modules_add_dummy,
19099         func_modules_notice, func_modules_to_filelist, func_add_file,
19100         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19101         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19102         func_create_testdir, func_create_megatestdir): Update documentation.
19103
19104 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19105
19106         * gnulib-tool (func_cache_lookup_module): Store the module name
19107         belonging to the cache variable; error out if two different
19108         module names map to the same cache variable name.
19109
19110 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19111
19112         gnulib-tool: Make caching optional.
19113         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19114         Update matching short versions of --no-changelog.
19115         (func_usage): Update.
19116         (sed_extract_cache_prog): Renamed from ...
19117         (sed_extract_prog): ... this; revert to old extraction script.
19118         (func_get_description, func_get_status)
19119         (func_get_notice, func_get_applicability, func_get_filelist)
19120         (func_get_dependencies, func_get_autoconf_early_snippet)
19121         (func_get_autoconf_snippet, func_get_automake_snippet)
19122         (func_get_include_directive, func_get_link_directive)
19123         (func_get_license, func_get_maintainer): If $do_cache is false,
19124         use old, non-caching extraction scripts.
19125         Suggestion by Bruno Haible.
19126
19127 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19128
19129         gnulib-tool: cache module metainformation.
19130         * gnulib-tool (sed_extract_prog): Match newline before each
19131         header, and rewrite header to a shell variable suffix.
19132         (func_cache_var, func_cache_lookup_module): New functions,
19133         to turn a module name into a cache variable prefix, and to
19134         look up and cache module metainformation.
19135         (func_get_description, func_get_status)
19136         (func_get_notice, func_get_applicability, func_get_filelist)
19137         (func_get_dependencies, func_get_autoconf_early_snippet)
19138         (func_get_autoconf_snippet, func_get_automake_snippet)
19139         (func_get_include_directive, func_get_link_directive)
19140         (func_get_license, func_get_maintainer): Use
19141         func_cache_lookup_module.
19142
19143 2010-02-07  Bruno Haible  <bruno@clisp.org>
19144
19145         fnctl: Fix missing dependency.
19146         * modules/fcntl (Depends-on): Add getdtablesize.
19147         Reported by John W. Eaton <jwe@gnu.org>.
19148
19149 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19150
19151         Argp: fix recognition of short alias options.
19152
19153         * lib/argp-parse.c (convert_options): Fix improper use of
19154         `|' between character values.
19155         * tests/test-argp.c (group1_option): New alias option
19156         --read (-r).
19157         (group1_parser): Special handling for 'r'.
19158         (test15): New test case.
19159         (test_fun): Add test15.
19160         * tests/test-argp-2.sh: Update expected --help and --usage
19161         outputs.
19162
19163 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19164
19165         * tests/test-argp.c: Fix indentation.
19166
19167 2010-02-04  Eric Blake  <ebb9@byu.net>
19168
19169         gettimeofday: expose type of second argument
19170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19171         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19172         * tests/test-gettimeofday.c: Use it to silence warning.
19173         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19174         the issue.
19175
19176 2010-02-03  Jim Meyering  <meyering@redhat.com>
19177
19178         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19179         * lib/regcomp.c (TYPE_SIGNED): Define.
19180         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19181
19182         regcomp.c: avoid a new -Wshadow warning
19183         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19184
19185 2010-02-01  Jim Meyering  <meyering@redhat.com>
19186
19187         removing useless parentheses in cpp #define directives
19188         For motivation, see commit c0221df4, "define STREQ(a,b)
19189         consistently, removing useless parentheses"
19190         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19191         * lib/mountlist.c (MNT_IGNORE): Likewise.
19192         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19193
19194 2010-02-01  Eric Blake  <ebb9@byu.net>
19195
19196         sys_time: use link-warning
19197         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19198         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19199         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19200         * modules/sys_time (Depends-on): Add warn-on-use.
19201         (Makefile.am): Always build replacement.
19202         (configure.ac): Update substitutions.
19203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19204         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19205         bother with SYS_TIME_H.
19206         * modules/gettimeofday (configure.ac): Declare indicator.
19207         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19208         in use.
19209
19210         closein-tests: silence compiler warning
19211         * tests/test-closein.c (main): Ignore fread result.
19212         * modules/closein-tests (Depends-on): Add ignore-value.
19213
19214         tests: silence warning about system return
19215         * tests/test-areadlink-with-size.c (main): Ignore system result.
19216         * tests/test-areadlink.c (main): Likewise.
19217         * tests/test-areadlinkat-with-size.c (main): Likewise.
19218         * tests/test-areadlinkat.c (main): Likewise.
19219         * tests/test-canonicalize-lgpl.c (main): Likewise.
19220         * tests/test-canonicalize.c (main): Likewise.
19221         * tests/test-chown.c (main): Likewise.
19222         * tests/test-fchownat.c (main): Likewise.
19223         * tests/test-fdutimensat.c (main): Likewise.
19224         * tests/test-fstatat.c (main): Likewise.
19225         * tests/test-futimens.c (main): Likewise.
19226         * tests/test-lchown.c (main): Likewise.
19227         * tests/test-link.c (main): Likewise.
19228         * tests/test-linkat.c (main): Likewise.
19229         * tests/test-lstat.c (main): Likewise.
19230         * tests/test-mkdir.c (main): Likewise.
19231         * tests/test-mkdirat.c (main): Likewise.
19232         * tests/test-mkfifo.c (main): Likewise.
19233         * tests/test-mkfifoat.c (main): Likewise.
19234         * tests/test-mknod.c (main): Likewise.
19235         * tests/test-readlink.c (main): Likewise.
19236         * tests/test-remove.c (main): Likewise.
19237         * tests/test-rename.c (main): Likewise.
19238         * tests/test-renameat.c (main): Likewise.
19239         * tests/test-rmdir.c (main): Likewise.
19240         * tests/test-symlink.c (main): Likewise.
19241         * tests/test-symlinkat.c (main): Likewise.
19242         * tests/test-unlink.c (main): Likewise.
19243         * tests/test-unlinkat.c (main): Likewise.
19244         * tests/test-utimens.c (main): Likewise.
19245         * tests/test-utimensat.c (main): Likewise.
19246         * modules/areadlink-tests (Depends-on): Add ignore-value.
19247         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19248         * modules/areadlinkat-tests (Depends-on): Likewise.
19249         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19250         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19251         * modules/canonicalize-tests (Depends-on): Likewise.
19252         * modules/chown-tests (Depends-on): Likewise.
19253         * modules/fdutimensat-tests (Depends-on): Likewise.
19254         * modules/futimens-tests (Depends-on): Likewise.
19255         * modules/lchown-tests (Depends-on): Likewise.
19256         * modules/link-tests (Depends-on): Likewise.
19257         * modules/linkat-tests (Depends-on): Likewise.
19258         * modules/lstat-tests (Depends-on): Likewise.
19259         * modules/mkdir-tests (Depends-on): Likewise.
19260         * modules/mkfifo-tests (Depends-on): Likewise.
19261         * modules/mkfifoat-tests (Depends-on): Likewise.
19262         * modules/mknod-tests (Depends-on): Likewise.
19263         * modules/openat-tests (Depends-on): Likewise.
19264         * modules/readlink-tests (Depends-on): Likewise.
19265         * modules/remove-tests (Depends-on): Likewise.
19266         * modules/rename-tests (Depends-on): Likewise.
19267         * modules/renameat-tests (Depends-on): Likewise.
19268         * modules/rmdir-tests (Depends-on): Likewise.
19269         * modules/symlink-tests (Depends-on): Likewise.
19270         * modules/symlinkat-tests (Depends-on): Likewise.
19271         * modules/unlink-tests (Depends-on): Likewise.
19272         * modules/utimens-tests (Depends-on): Likewise.
19273         * modules/utimensat-tests (Depends-on): Likewise.
19274
19275 2010-01-31  Bruno Haible  <bruno@clisp.org>
19276
19277         Perform the same test for many <math.h> functions.
19278         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19279         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19280         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19281         of gl_MATHFUNC.
19282         * modules/acos (configure.ac): Likewise.
19283         * modules/asin (configure.ac): Likewise.
19284         * modules/atan (configure.ac): Likewise.
19285         * modules/atan2 (configure.ac): Likewise.
19286         * modules/cbrt (configure.ac): Likewise.
19287         * modules/copysign (configure.ac): Likewise.
19288         * modules/cos (configure.ac): Likewise.
19289         * modules/cosh (configure.ac): Likewise.
19290         * modules/erf (configure.ac): Likewise.
19291         * modules/erfc (configure.ac): Likewise.
19292         * modules/exp (configure.ac): Likewise.
19293         * modules/fmod (configure.ac): Likewise.
19294         * modules/hypot (configure.ac): Likewise.
19295         * modules/j0 (configure.ac): Likewise.
19296         * modules/j1 (configure.ac): Likewise.
19297         * modules/jn (configure.ac): Likewise.
19298         * modules/lgamma (configure.ac): Likewise.
19299         * modules/log (configure.ac): Likewise.
19300         * modules/log10 (configure.ac): Likewise.
19301         * modules/log1p (configure.ac): Likewise.
19302         * modules/pow (configure.ac): Likewise.
19303         * modules/remainder (configure.ac): Likewise.
19304         * modules/sin (configure.ac): Likewise.
19305         * modules/sinh (configure.ac): Likewise.
19306         * modules/tan (configure.ac): Likewise.
19307         * modules/tanh (configure.ac): Likewise.
19308         * modules/y0 (configure.ac): Likewise.
19309         * modules/y1 (configure.ac): Likewise.
19310         * modules/yn (configure.ac): Likewise.
19311         Suggested by Paolo Bonzini.
19312
19313 2010-01-31  Bruno Haible  <bruno@clisp.org>
19314
19315         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19316
19317 2010-01-31  Bruno Haible  <bruno@clisp.org>
19318
19319         Work around getdelim() bug on FreeBSD 8.0.
19320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19321         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19322         not work.
19323         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19324         is 1.
19325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19326         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19327         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19328         a non-zero size.
19329         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19330
19331 2010-01-31  Bruno Haible  <bruno@clisp.org>
19332
19333         Work around getline() bug on FreeBSD 8.0.
19334         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19335         and a non-zero size.
19336         * tests/test-getline.c (main): Likewise.
19337         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19338         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19339
19340 2010-01-28  Eric Blake  <ebb9@byu.net>
19341
19342         regex: fix build failure
19343         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19344         platforms.
19345
19346 2010-01-28  Jim Meyering  <meyering@redhat.com>
19347
19348         regex: do not ignore memory allocation failure
19349         * lib/regex_internal.c (create_cd_newstate): Detect
19350         re_node_set_init_copy failure.   Extracted from glibc commit
19351         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19352
19353         regex: sync more white-space changes from libc
19354         * lib/regex_internal.c: White-space only changes.
19355         * lib/regexec.c: Likewise.
19356
19357         regex: add many uses of __attribute_warn_unused_result__
19358         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19359         * lib/regexec.c: Likewise.
19360         Extracted from a messy glibc commit.
19361
19362         regcomp.c: spelling and merge-artifact from glibc
19363         * lib/regcomp.c: Merge remainder of glibc's
19364         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19365
19366         regcomp.c: sync white-space changes from glibc
19367         * lib/regcomp.c: Merge to accommodate white space
19368         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19369
19370         regcomp.c: do not ignore internal return values
19371         * lib/regcomp.c: Do not ignore internal return values.
19372         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19373         but without its white-space changes and spelling fixes.
19374
19375         regex_internal.h: define __attribute_warn_unused_result__
19376         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19377
19378         maint: add a syntax-check rule to check for vulnerable Makefile.in
19379         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19380
19381 2010-01-27  Jim Meyering  <meyering@redhat.com>
19382
19383         ncftpput-ftp: clean up spaces
19384         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19385         Remove trailing blanks.
19386
19387 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19388
19389         * build-aux/git-version-gen: Fix copyright statement.
19390         * build-aux/gnupload: Likewise.
19391         * tests/test-arcfour.c: Likewise.
19392         * tests/test-arctwo.c: Likewise.
19393         * tests/test-count-one-bits.c: Likewise.
19394         * tests/test-crc.c: Likewise.
19395         * tests/test-des.c: Likewise.
19396         * tests/test-gc-arcfour.c: Likewise.
19397         * tests/test-gc-arctwo.c: Likewise.
19398         * tests/test-gc-des.c: Likewise.
19399         * tests/test-gc-hmac-md5.c: Likewise.
19400         * tests/test-gc-hmac-sha1.c: Likewise.
19401         * tests/test-gc-md2.c: Likewise.
19402         * tests/test-gc-md4.c: Likewise.
19403         * tests/test-gc-md5.c: Likewise.
19404         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19405         * tests/test-gc-rijndael.c: Likewise.
19406         * tests/test-gc-sha1.c: Likewise.
19407         * tests/test-gc.c: Likewise.
19408         * tests/test-gethostname.c: Likewise.
19409         * tests/test-gettimeofday.c: Likewise.
19410         * tests/test-hash.c: Likewise.
19411         * tests/test-hmac-md5.c: Likewise.
19412         * tests/test-hmac-sha1.c: Likewise.
19413         * tests/test-md2.c: Likewise.
19414         * tests/test-md4.c: Likewise.
19415         * tests/test-md5.c: Likewise.
19416         * tests/test-memchr.c: Likewise.
19417         * tests/test-memchr2.c: Likewise.
19418         * tests/test-memcmp.c: Likewise.
19419         * tests/test-memmem.c: Likewise.
19420         * tests/test-memrchr.c: Likewise.
19421         * tests/test-rawmemchr.c: Likewise.
19422         * tests/test-read-file.c: Likewise.
19423         * tests/test-rijndael.c: Likewise.
19424         * tests/test-sockets.c: Likewise.
19425         * tests/test-strchrnul.c: Likewise.
19426         * tests/test-strstr.c: Likewise.
19427         * tests/test-strtod.c: Likewise.
19428         * build-aux/ncftpput-ftp: Likewise.
19429
19430 2010-01-26  Eric Blake  <ebb9@byu.net>
19431
19432         ignore-value: update recommended header name
19433         * modules/ignore-value (Include): Only use <> for headers that
19434         exist in glibc.
19435
19436 2010-01-26  Jim Meyering  <meyering@redhat.com>
19437
19438         test-userspec.c: avoid compiler warnings
19439         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19440         and "initialization discards qualifiers..." warnings.
19441         Put the first "uid" in its own scope, and make char* members "const".
19442
19443 2010-01-25  Bruno Haible  <bruno@clisp.org>
19444
19445         gnulib-tool: Make warning diagnostics consistent.
19446         * gnulib-tool (func_warning): New function.
19447         Use it everywhere where gnulib-tool produces output to stderr and it is
19448         not a fatal error.
19449
19450 2010-01-25  Bruno Haible  <bruno@clisp.org>
19451
19452         Fix test dependencies.
19453         * modules/xstrtol-tests (Depends-on): Add inttypes.
19454         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19455
19456 2010-01-25 Pádraig Brady <P@draigBrady.com>
19457
19458         syntax-check: detect incorrect boolean macro values in config.h
19459         * modules/maintainer-makefile (configure.ac): Parameterize the location
19460         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19461         The logic is from Eric Blake and the location indicated by Jim Meyering.
19462         Note the more natural CONFIG_HEADER name is prohibited by automake
19463         for backwards compatibility reasons.
19464         * top/maint.mk (sc_Wundef_boolean): New rule.
19465
19466 2010-01-25  Jim Meyering  <meyering@redhat.com>
19467
19468         bootstrap: detect MacOS 10.6's shasum, too
19469         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19470         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19471
19472 2010-01-23  Jim Meyering  <meyering@redhat.com>
19473
19474         xstrtoll: new module
19475         * modules/xstrtoll: New file.
19476         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19477         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19478         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19479         ./configure fails if you use this module and lack "long long".
19480         * modules/xstrtoll-tests: New module.
19481         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19482         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19483         new init.sh-based test framework.
19484
19485 2010-01-24  Bruno Haible  <bruno@clisp.org>
19486
19487         Tests for module 'yn'.
19488         * modules/yn-tests: New file.
19489         * tests/test-yn.c: New file.
19490
19491         Tests for module 'y1'.
19492         * modules/y1-tests: New file.
19493         * tests/test-y1.c: New file.
19494
19495         Tests for module 'y0'.
19496         * modules/y0-tests: New file.
19497         * tests/test-y0.c: New file.
19498
19499         Tests for module 'tanh'.
19500         * modules/tanh-tests: New file.
19501         * tests/test-tanh.c: New file.
19502
19503         Tests for module 'tan'.
19504         * modules/tan-tests: New file.
19505         * tests/test-tan.c: New file.
19506
19507         Tests for module 'sqrt'.
19508         * modules/sqrt-tests: New file.
19509         * tests/test-sqrt.c: New file.
19510
19511         Tests for module 'sinh'.
19512         * modules/sinh-tests: New file.
19513         * tests/test-sinh.c: New file.
19514
19515         Tests for module 'sin'.
19516         * modules/sin-tests: New file.
19517         * tests/test-sin.c: New file.
19518
19519         Tests for module 'rint'.
19520         * modules/rint-tests: New file.
19521         * tests/test-rint.c: New file.
19522
19523         Tests for module 'remainder'.
19524         * modules/remainder-tests: New file.
19525         * tests/test-remainder.c: New file.
19526
19527         Tests for module 'pow'.
19528         * modules/pow-tests: New file.
19529         * tests/test-pow.c: New file.
19530
19531         Tests for module 'nextafter'.
19532         * modules/nextafter-tests: New file.
19533         * tests/test-nextafter.c: New file.
19534
19535         Tests for module 'modf'.
19536         * modules/modf-tests: New file.
19537         * tests/test-modf.c: New file.
19538
19539         Tests for module 'logb'.
19540         * modules/logb-tests: New file.
19541         * tests/test-logb.c: New file.
19542
19543         Tests for module 'log1p'.
19544         * modules/log1p-tests: New file.
19545         * tests/test-log1p.c: New file.
19546
19547         Tests for module 'log10'.
19548         * modules/log10-tests: New file.
19549         * tests/test-log10.c: New file.
19550
19551         Tests for module 'log'.
19552         * modules/log-tests: New file.
19553         * tests/test-log.c: New file.
19554
19555         Tests for module 'lgamma'.
19556         * modules/lgamma-tests: New file.
19557         * tests/test-lgamma.c: New file.
19558
19559         Tests for module 'ldexp'.
19560         * modules/ldexp-tests: New file.
19561         * tests/test-ldexp.c: New file.
19562
19563         Tests for module 'jn'.
19564         * modules/jn-tests: New file.
19565         * tests/test-jn.c: New file.
19566
19567         Tests for module 'j1'.
19568         * modules/j1-tests: New file.
19569         * tests/test-j1.c: New file.
19570
19571         Tests for module 'j0'.
19572         * modules/j0-tests: New file.
19573         * tests/test-j0.c: New file.
19574
19575         Tests for module 'hypot'.
19576         * modules/hypot-tests: New file.
19577         * tests/test-hypot.c: New file.
19578
19579         Tests for module 'fmod'.
19580         * modules/fmod-tests: New file.
19581         * tests/test-fmod.c: New file.
19582
19583         Tests for module 'fabs'.
19584         * modules/fabs-tests: New file.
19585         * tests/test-fabs.c: New file.
19586
19587         Tests for module 'exp'.
19588         * modules/exp-tests: New file.
19589         * tests/test-exp.c: New file.
19590
19591         Tests for module 'erfc'.
19592         * modules/erfc-tests: New file.
19593         * tests/test-erfc.c: New file.
19594
19595         Tests for module 'erf'.
19596         * modules/erf-tests: New file.
19597         * tests/test-erf.c: New file.
19598
19599         Tests for module 'cosh'.
19600         * modules/cosh-tests: New file.
19601         * tests/test-cosh.c: New file.
19602
19603         Tests for module 'cos'.
19604         * modules/cos-tests: New file.
19605         * tests/test-cos.c: New file.
19606
19607         Tests for module 'copysign'.
19608         * modules/copysign-tests: New file.
19609         * tests/test-copysign.c: New file.
19610
19611         Tests for module 'cbrt'.
19612         * modules/cbrt-tests: New file.
19613         * tests/test-cbrt.c: New file.
19614
19615         Tests for module 'atan2'.
19616         * modules/atan2-tests: New file.
19617         * tests/test-atan2.c: New file.
19618
19619         Tests for module 'atan'.
19620         * modules/atan-tests: New file.
19621         * tests/test-atan.c: New file.
19622
19623         Tests for module 'asin'.
19624         * modules/asin-tests: New file.
19625         * tests/test-asin.c: New file.
19626
19627         Tests for module 'acos'.
19628         * modules/acos-tests: New file.
19629         * tests/test-acos.c: New file.
19630
19631 2010-01-24  Bruno Haible  <bruno@clisp.org>
19632
19633         Fix tests for common <math.h> functions.
19634         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19635         code snippet that references the function pointer, rather than merely
19636         calling the function. Substitute the FUNC_LIBM variable.
19637         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19638         * modules/acos (configure.ac): Likewise.
19639         * modules/asin (configure.ac): Likewise.
19640         * modules/atan (configure.ac): Likewise.
19641         * modules/atan2 (configure.ac): Likewise.
19642         * modules/cbrt (configure.ac): Likewise.
19643         * modules/copysign (configure.ac): Likewise.
19644         * modules/cos (configure.ac): Likewise.
19645         * modules/cosh (configure.ac): Likewise.
19646         * modules/erf (configure.ac): Likewise.
19647         * modules/erfc (configure.ac): Likewise.
19648         * modules/exp (configure.ac): Likewise.
19649         * modules/fabs (configure.ac): Likewise.
19650         * modules/fmod (configure.ac): Likewise.
19651         * modules/hypot (configure.ac): Likewise.
19652         * modules/j0 (configure.ac): Likewise.
19653         * modules/j1 (configure.ac): Likewise.
19654         * modules/jn (configure.ac): Likewise.
19655         * modules/ldexp (configure.ac): Likewise.
19656         * modules/lgamma (configure.ac): Likewise.
19657         * modules/log (configure.ac): Likewise.
19658         * modules/log10 (configure.ac): Likewise.
19659         * modules/log1p (configure.ac): Likewise.
19660         * modules/logb (configure.ac): Likewise.
19661         * modules/modf (configure.ac): Likewise.
19662         * modules/nextafter (configure.ac): Likewise.
19663         * modules/pow (configure.ac): Likewise.
19664         * modules/remainder (configure.ac): Likewise.
19665         * modules/rint (configure.ac): Likewise.
19666         * modules/sin (configure.ac): Likewise.
19667         * modules/sinh (configure.ac): Likewise.
19668         * modules/tan (configure.ac): Likewise.
19669         * modules/tanh (configure.ac): Likewise.
19670         * modules/y0 (configure.ac): Likewise.
19671         * modules/y1 (configure.ac): Likewise.
19672         * modules/yn (configure.ac): Likewise.
19673
19674 2010-01-24  Bruno Haible  <bruno@clisp.org>
19675
19676         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19677         * tests/test-acosl.c (x): New variable.
19678         (main): Store argument in x and fetch it from x.
19679         * tests/test-asinl.c (x): New variable.
19680         (main): Store argument in x and fetch it from x.
19681         * tests/test-atanl.c (x): New variable.
19682         (main): Store argument in x and fetch it from x.
19683         * tests/test-cosl.c (x): New variable.
19684         (main): Store argument in x and fetch it from x.
19685         * tests/test-expl.c (x): New variable.
19686         (main): Store argument in x and fetch it from x.
19687         * tests/test-logl.c (x): New variable.
19688         (main): Store argument in x and fetch it from x.
19689         * tests/test-sinl.c (x): New variable.
19690         (main): Store argument in x and fetch it from x.
19691         * tests/test-sqrtl.c (x): New variable.
19692         (main): Store argument in x and fetch it from x.
19693         * tests/test-tanl.c (x): New variable.
19694         (main): Store argument in x and fetch it from x.
19695
19696 2010-01-24  Bruno Haible  <bruno@clisp.org>
19697
19698         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19699         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19700         assignments to the initial TESTS_ENVIRONMENT.
19701         * doc/gnulib.texi (Unit test modules): Document it.
19702         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19703         TESTS_ENVIRONMENT.
19704         * modules/btowc-tests (Makefile.am): Likewise.
19705         * modules/c-stack-tests (Makefile.am): Likewise.
19706         * modules/c-strcase-tests (Makefile.am): Likewise.
19707         * modules/copy-file-tests (Makefile.am): Likewise.
19708         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19709         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19710         * modules/mbrtowc-tests (Makefile.am): Likewise.
19711         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19712         * modules/mbscasestr-tests (Makefile.am): Likewise.
19713         * modules/mbschr-tests (Makefile.am): Likewise.
19714         * modules/mbscspn-tests (Makefile.am): Likewise.
19715         * modules/mbsinit-tests (Makefile.am): Likewise.
19716         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19717         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19718         * modules/mbspbrk-tests (Makefile.am): Likewise.
19719         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19720         * modules/mbsrchr-tests (Makefile.am): Likewise.
19721         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19722         * modules/mbsspn-tests (Makefile.am): Likewise.
19723         * modules/mbsstr-tests (Makefile.am): Likewise.
19724         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19725         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19726         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19727         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19728         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19729         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19730         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19731         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19732         * modules/wcrtomb-tests (Makefile.am): Likewise.
19733         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19734         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19735         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19736         assignments from TESTS_ENVIRONMENT.
19737         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19738         augmentation.
19739         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19740         * modules/atexit-tests (Makefile.am): Likewise.
19741         * modules/binary-io-tests (Makefile.am): Likewise.
19742         * modules/closein-tests (Makefile.am): Likewise.
19743         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19744         * modules/exclude-tests (Makefile.am): Likewise.
19745         * modules/fflush-tests (Makefile.am): Likewise.
19746         * modules/fpending-tests (Makefile.am): Likewise.
19747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19748         * modules/freadahead-tests (Makefile.am): Likewise.
19749         * modules/freadptr-tests (Makefile.am): Likewise.
19750         * modules/freadseek-tests (Makefile.am): Likewise.
19751         * modules/fseek-tests (Makefile.am): Likewise.
19752         * modules/fseeko-tests (Makefile.am): Likewise.
19753         * modules/ftell-tests (Makefile.am): Likewise.
19754         * modules/ftello-tests (Makefile.am): Likewise.
19755         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19756         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19757         * modules/lseek-tests (Makefile.am): Likewise.
19758         * modules/parse-duration-tests (Makefile.am): Likewise.
19759         * modules/perror-tests (Makefile.am): Likewise.
19760         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19761         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19762         * modules/pipe-tests (Makefile.am): Likewise.
19763         * modules/pread-tests (Makefile.am): Likewise.
19764         * modules/printf-posix-tests (Makefile.am): Likewise.
19765         * modules/select-tests (Makefile.am): Likewise.
19766         * modules/sigpipe-tests (Makefile.am): Likewise.
19767         * modules/tsearch-tests (Makefile.am): Likewise.
19768         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19769         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19771         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19772         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19773         * modules/version-etc-tests (Makefile.am): Likewise.
19774         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19775         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19776         * modules/xalloc-die-tests (Makefile.am): Likewise.
19777         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19778         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19779         * modules/xstrtol-tests (Makefile.am): Likewise.
19780         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19781         * modules/yesno-tests (Makefile.am): Likewise.
19782         Suggested by Jim Meyering.
19783
19784 2010-01-24  Bruno Haible  <bruno@clisp.org>
19785
19786         More documentation.
19787         * doc/gnulib.texi (Writing modules): New chapter.
19788         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19789         the new chapter.
19790
19791 2010-01-24  Jim Meyering  <meyering@redhat.com>
19792
19793         maint.mk: do not prepend "./" after filtering
19794         * top/maint.mk (_prepend_srcdir_prefix): New variable
19795         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19796         "./" when $(srcdir) is ".".
19797
19798         define STREQ(a,b) consistently, removing useless parentheses
19799         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19800         since the only risk is that "a" or "b" contains an unparenthesized
19801         comma, but if either did that, STREQ would have 3 or more arguments.
19802         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19803         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19804         * lib/hash-triple.c (STREQ): Likewise.
19805         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19806         * lib/getugroups.c (STREQ): Likewise.
19807
19808 2010-01-23  Jim Meyering  <meyering@redhat.com>
19809
19810         maint.mk: fix syntax-check in a non-srcdir build directory
19811         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19812         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19813
19814 2010-01-22  Jim Meyering  <meyering@redhat.com>
19815
19816         userspec: add unit tests
19817         * tests/test-userspec.c: New file.
19818         * modules/userspec-tests: Likewise.
19819
19820 2010-01-21  Jim Meyering  <meyering@redhat.com>
19821
19822         maint.mk: handle source file names containing "." robustly
19823         * top/maint.mk (_dot_escaped_srcdir): Define.
19824         (VC_LIST): Use it in LHS of sed substitution.
19825
19826 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19827
19828         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19829         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19830         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19831         from a non-srcdir build.
19832
19833 2010-01-20  Eric Blake  <ebb9@byu.net>
19834
19835         warn-on-use: use instead of link-warning
19836         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19837         * modules/unistd (Depends-on, Makefile.am): Likewise.
19838         * modules/arpa_inet (Depends-on): Replace link-warning with
19839         warn-on-use.
19840         (Makefile.am): Update rules accordingly.
19841         * modules/ctype (Depends-on, Makefile.am): Likewise.
19842         * modules/dirent (Depends-on, Makefile.am): Likewise.
19843         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19844         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19845         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19846         * modules/locale (Depends-on, Makefile.am): Likewise.
19847         * modules/math (Depends-on, Makefile.am): Likewise.
19848         * modules/search (Depends-on, Makefile.am): Likewise.
19849         * modules/signal (Depends-on, Makefile.am): Likewise.
19850         * modules/spawn (Depends-on, Makefile.am): Likewise.
19851         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19852         * modules/string (Depends-on, Makefile.am): Likewise.
19853         * modules/strings (Depends-on, Makefile.am): Likewise.
19854         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19855         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19856         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19857         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19858         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19859         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19860         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19861         * modules/wchar (Depends-on, Makefile.am): Likewise.
19862         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19863         should be poisoned.
19864         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19865         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19866         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19867         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19868         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19869         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19870         * m4/math_h.m4 (gl_MATH_H): Likewise.
19871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19872         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19873         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19874         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19875         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19876         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19877         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19878         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19881         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19882         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19883         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19884         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19885         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19886         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19887         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19888         GL_LINK_WARNING.
19889         * lib/ctype.in.h: Likewise.
19890         * lib/dirent.in.h: Likewise.
19891         * lib/fcntl.in.h: Likewise.
19892         * lib/inttypes.in.h: Likewise.
19893         * lib/langinfo.in.h: Likewise.
19894         * lib/locale.in.h: Likewise.
19895         * lib/math.in.h: Likewise.
19896         * lib/search.in.h: Likewise.
19897         * lib/signal.in.h: Likewise.
19898         * lib/spawn.in.h: Likewise.
19899         * lib/stdio.in.h: Likewise.
19900         * lib/stdlib.in.h: Likewise.
19901         * lib/string.in.h: Likewise.
19902         * lib/strings.in.h: Likewise.
19903         * lib/sys_file.in.h: Likewise.
19904         * lib/sys_ioctl.in.h: Likewise.
19905         * lib/sys_select.in.h: Likewise.
19906         * lib/sys_socket.in.h: Likewise.
19907         * lib/sys_stat.in.h: Likewise.
19908         * lib/sys_times.in.h: Likewise.
19909         * lib/sys_utsname.in.h: Likewise.
19910         * lib/unistd.in.h: Likewise.
19911         * lib/wchar.in.h: Likewise.
19912
19913 2010-01-20  Bruno Haible  <bruno@clisp.org>
19914
19915         Avoid duplicate -lm.
19916         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19917         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19920         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19921         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19922         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19923         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19924         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19925         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19926         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19927         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19928         Reported by Paolo Bonzini.
19929
19930 2010-01-19  Bruno Haible  <bruno@clisp.org>
19931
19932         langinfo, nl_langinfo: Relicense under LGPLv2+.
19933         * modules/langinfo (License): Change to LGPLv2+.
19934         * modules/nl_langinfo (License): Likewise.
19935         Patch by David Lutterkort <lutter@redhat.com>.
19936
19937 2010-01-19  Bruno Haible  <bruno@clisp.org>
19938
19939         Avoid compilation error with cc on OSF/1 5.1.
19940         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19941         statement, not before.
19942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19943
19944 2010-01-18  Bruno Haible  <bruno@clisp.org>
19945
19946         Avoid a link error due to the __printf__ symbol.
19947         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19948         and 2.6.x.
19949         (__format__, __printf__): Remove definitions.
19950         * lib/argp-fmtstream.h: Likewise.
19951         * lib/argp.h: Likewise.
19952         * lib/error.h: Likewise.
19953         * lib/vasnprintf.h: Likewise.
19954         * lib/xprintf.h: Likewise.
19955         * lib/xvasprintf.h: Likewise.
19956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19957
19958 2010-01-18  Bruno Haible  <bruno@clisp.org>
19959
19960         Tests for module 'tanl'.
19961         * modules/tanl-tests: New file.
19962         * tests/test-tanl.c: New file.
19963
19964         Tests for module 'sqrtl'.
19965         * modules/sqrtl-tests: New file.
19966         * tests/test-sqrtl.c: New file.
19967
19968         Tests for module 'sinl'.
19969         * modules/sinl-tests: New file.
19970         * tests/test-sinl.c: New file.
19971
19972         Tests for module 'logl'.
19973         * modules/logl-tests: New file.
19974         * tests/test-logl.c: New file.
19975
19976         Tests for module 'expl'.
19977         * modules/expl-tests: New file.
19978         * tests/test-expl.c: New file.
19979
19980         Tests for module 'cosl'.
19981         * modules/cosl-tests: New file.
19982         * tests/test-cosl.c: New file.
19983
19984         Tests for module 'atanl'.
19985         * modules/atanl-tests: New file.
19986         * tests/test-atanl.c: New file.
19987
19988         Tests for module 'asinl'.
19989         * modules/asinl-tests: New file.
19990         * tests/test-asinl.c: New file.
19991
19992         Tests for module 'acosl'.
19993         * modules/acosl-tests: New file.
19994         * tests/test-acosl.c: New file.
19995
19996         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19997         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19998         tanl): Use the standard gnulib idiom.
19999         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20000         * lib/sinl.c: Likewise.
20001         * lib/tanl.c: Don't include trigl.c.
20002         (kernel_tanl): Make static.
20003         * lib/sincosl.c: Include trigl.h first.
20004         * lib/trigl.c: Likewise.
20005         * m4/acosl.m4: New file.
20006         * m4/asinl.m4: New file.
20007         * m4/atanl.m4: New file.
20008         * m4/cosl.m4: New file.
20009         * m4/expl.m4: New file.
20010         * m4/logl.m4: New file.
20011         * m4/sinl.m4: New file.
20012         * m4/sqrtl.m4: New file.
20013         * m4/tanl.m4: New file.
20014         * m4/mathl.m4: Remove file.
20015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20016         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20017         Don't initialize GNULIB_MATHL.
20018         * modules/acosl: New file.
20019         * modules/asinl: New file.
20020         * modules/atanl: New file.
20021         * modules/cosl: New file.
20022         * modules/expl: New file.
20023         * modules/logl: New file.
20024         * modules/sinl: New file.
20025         * modules/sqrtl: New file.
20026         * modules/tanl: New file.
20027         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20028         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20029         substitute GNULIB_MATHL.
20030         * modules/mathl: Rewritten.
20031         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20032         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20033         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20034         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20035         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20036         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20037         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20038         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20039         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20040
20041 2010-01-18  Bruno Haible  <bruno@clisp.org>
20042
20043         sqrt: Make gl_FUNC_SQRT requirable.
20044         * m4/sqrt.m4: New file.
20045         * modules/sqrt (Files): Add it.
20046         (configure.ac): Invoke gl_FUNC_SQRT.
20047
20048 2010-01-18  Bruno Haible  <bruno@clisp.org>
20049
20050         New modules for common <math.h> functions.
20051         * m4/mathfunc.m4: New file.
20052         * modules/acos: New file.
20053         * modules/asin: New file.
20054         * modules/atan: New file.
20055         * modules/atan2: New file.
20056         * modules/cbrt: New file.
20057         * modules/copysign: New file.
20058         * modules/cos: New file.
20059         * modules/cosh: New file.
20060         * modules/erf: New file.
20061         * modules/erfc: New file.
20062         * modules/exp: New file.
20063         * modules/fabs: New file.
20064         * modules/fmod: New file.
20065         * modules/hypot: New file.
20066         * modules/j0: New file.
20067         * modules/j1: New file.
20068         * modules/jn: New file.
20069         * modules/ldexp: New file.
20070         * modules/lgamma: New file.
20071         * modules/log: New file.
20072         * modules/log10: New file.
20073         * modules/log1p: New file.
20074         * modules/logb: New file.
20075         * modules/modf: New file.
20076         * modules/nextafter: New file.
20077         * modules/pow: New file.
20078         * modules/remainder: New file.
20079         * modules/rint: New file.
20080         * modules/sin: New file.
20081         * modules/sinh: New file.
20082         * modules/sqrt: New file.
20083         * modules/tan: New file.
20084         * modules/tanh: New file.
20085         * modules/y0: New file.
20086         * modules/y1: New file.
20087         * modules/yn: New file.
20088         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20089         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20090         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20091         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20092         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20093         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20094         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20095         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20096         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20097         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20098         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20099         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20100         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20101         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20102         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20103         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20104         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20105         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20106         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20107         * doc/posix-functions/log.texi: Mention the 'log' module.
20108         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20109         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20110         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20111         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20112         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20113         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20114         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20115         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20116         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20117         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20118         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20119         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20120         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20121         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20122         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20123         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20124
20125 2010-01-18  Jim Meyering  <meyering@redhat.com>
20126
20127         ignore-value: relax license to LGPLv2+
20128         * modules/ignore-value (License): Relax to LGPLv2+.
20129
20130         getdate: don't leak when TZ contains two or more '"'s
20131         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20132         double quote in TZ after the first one.
20133
20134         readtokens: do not leak internal token_lengths buffer
20135         * lib/readtokens.c (readtokens): Free the local, lengths,
20136         when the supplied "token_lengths" parameter is NULL.
20137
20138 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20139
20140         Fix a couple of missing LIBTHREAD link failures on AIX.
20141         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20142         $(LIBTHREAD).
20143         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20144
20145         Link test-poll against INET_PTON_LIB.
20146         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20147         for inet_pton on Solaris 10.
20148
20149 2010-01-17  Bruno Haible  <bruno@clisp.org>
20150
20151         unistdio/*-sprintf: Fix typo in module description.
20152         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20153         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20154         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20155         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20156         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20157         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20158         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20160
20161 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20162
20163         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20164         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20165         variables in shell case patterns, for AIX and HP-UX ksh.
20166
20167         Split large sed scripts, for HP-UX sed.
20168         * modules/stdio: Split sed scripts around 50 sed commands,
20169         to avoid HP-UX limit of 99 commands, in the near future.
20170         * modules/string: Likewise.
20171         * modules/unistd: Likewise.
20172
20173         gnulib-tool: avoid writing in the current directory.
20174         * gnulib-tool (func_emit_lib_Makefile_am)
20175         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20176         not in the current directory, so concurrent gnulib-tool
20177         instances do not interfere.
20178
20179 2010-01-16  Jim Meyering  <meyering@redhat.com>
20180
20181         doc: update users.txt
20182         * users.txt: Add grep.
20183         (diffutils, gzip): Update URLs.
20184
20185 2010-01-12  Bruno Haible  <bruno@clisp.org>
20186
20187         posix_spawn: Avoid test failure on Cygwin.
20188         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20189         characters.
20190         Reported by Simon Josefsson.
20191
20192 2010-01-12  Bruno Haible  <bruno@clisp.org>
20193
20194         * tests/test-cond.c (main): When skipping the test, show the reason.
20195
20196 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20197
20198         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20199
20200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20201
20202         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20203         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20204
20205 2010-01-12  Eric Blake  <ebb9@byu.net>
20206
20207         build: guarantee AS_VAR_IF
20208         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20209         (gl_AS_VAR_IF): Move...
20210         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20211         Reported by Simon Josefsson.
20212
20213 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20214
20215         * lib/stdio.in.h: Fix typo.
20216
20217 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20218
20219         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20220         libgpg-error.
20221
20222 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20223
20224         * tests/test-xalloc-die.sh: Use $EXEEXT.
20225
20226 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20227             Bruno Haible  <bruno@clisp.org>
20228
20229         getlogin, getlogin_r: Avoid test failure.
20230         * tests/test-getlogin.c: Include <stdio.h>.
20231         (main): Skip the test when the function fails because stdin is not a
20232         tty.
20233         * tests/test-getlogin_r.c: Include <stdio.h>.
20234         (main): Skip the test when the function fails because stdin is not a
20235         tty.
20236
20237 2010-01-11  Eric Blake  <ebb9@byu.net>
20238
20239         tests: avoid more large file warnings
20240         * tests/test-fflush.c: Avoid warning about ftell use.
20241         * tests/test-fseek.c: Avoid warning about fseek use.
20242
20243 2010-01-10  Bruno Haible  <bruno@clisp.org>
20244
20245         nproc: Work better on Linux when /proc and /sys are not mounted.
20246         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20247         as lower bound when, on glibc/Linux systems,
20248         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20249         Suggested by Pádraig Brady <P@draigbrady.com>.
20250         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20251
20252         nproc: Refactor.
20253         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20254         extracted from num_processors.
20255         (num_processors): Call it.
20256
20257 2010-01-11  Jim Meyering  <meyering@redhat.com>
20258
20259         utimecmp: avoid new warning from upcoming gcc-4.5.0
20260         * lib/utimecmp.c (BILLION): Define using #define rather than an
20261         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20262
20263 2010-01-11  Eric Blake  <ebb9@byu.net>
20264
20265         math: add portability warnings for classification macros
20266         * modules/math (Depends-on): Add warn-on-use.
20267         (Makefile.am): Provide new substitutions.
20268         * m4/math_h.m4 (gl_MATH_H): Require inline.
20269         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20270         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20271         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20272         implement warnings.
20273
20274         unistd: warn on use of environ without module
20275         * modules/unistd (Depends-on): Add warn-on-use.
20276         (Makefile.am): Provide new substitutions.
20277         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20278         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20279
20280         stdio: warn on suspicious uses
20281         * modules/stdio (Depends-on): Add warn-on-use.
20282         (Makefile.am): Provide new substitutions.
20283         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20284         fseeko.
20285         * lib/stdio.in.h (gets): Always warn on use.
20286         (fseek, ftell): Adjust when warnings are issued, and honor
20287         _GL_NO_LARGE_FILES as a way to silence the warning.
20288         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20289         any warning about large file offsets.
20290         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20291         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20292         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20293         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20294         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20295         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20296         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20297         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20298
20299         warn-on-use: new module
20300         * modules/warn-on-use: New file.
20301         * build-aux/warn-on-use.h: Likewise.
20302         * m4/warn-on-use.m4: Likewise.
20303         * MODULES.html.sh (Support for building): Mention it.
20304
20305 2010-01-10  Bruno Haible  <bruno@clisp.org>
20306
20307         Tests for module 'unistr/u32-strdup'.
20308         * modules/unistr/u32-strdup-tests: New file.
20309         * tests/unistr/test-u32-strdup.c: New file.
20310
20311         Tests for module 'unistr/u16-strdup'.
20312         * modules/unistr/u16-strdup-tests: New file.
20313         * tests/unistr/test-u16-strdup.c: New file.
20314
20315         Tests for module 'unistr/u8-strdup'.
20316         * modules/unistr/u8-strdup-tests: New file.
20317         * tests/unistr/test-u8-strdup.c: New file.
20318         * tests/unistr/test-strdup.h: New file.
20319
20320         Tests for module 'unistr/u32-strncmp'.
20321         * modules/unistr/u32-strncmp-tests: New file.
20322         * tests/unistr/test-u32-strncmp.c: New file.
20323
20324         Tests for module 'unistr/u16-strncmp'.
20325         * modules/unistr/u16-strncmp-tests: New file.
20326         * tests/unistr/test-u16-strncmp.c: New file.
20327
20328         Tests for module 'unistr/u8-strncmp'.
20329         * modules/unistr/u8-strncmp-tests: New file.
20330         * tests/unistr/test-u8-strncmp.c: New file.
20331         * tests/unistr/test-strncmp.h: New file.
20332
20333         Tests for module 'unistr/u32-strcoll'.
20334         * modules/unistr/u32-strcoll-tests: New file.
20335         * tests/unistr/test-u32-strcoll.c: New file.
20336
20337         Tests for module 'unistr/u16-strcoll'.
20338         * modules/unistr/u16-strcoll-tests: New file.
20339         * tests/unistr/test-u16-strcoll.c: New file.
20340
20341         Tests for module 'unistr/u8-strcoll'.
20342         * modules/unistr/u8-strcoll-tests: New file.
20343         * tests/unistr/test-u8-strcoll.c: New file.
20344
20345         Tests for module 'unistr/u32-strcmp'.
20346         * modules/unistr/u32-strcmp-tests: New file.
20347         * tests/unistr/test-u32-strcmp.c: New file.
20348         * tests/unistr/test-u32-strcmp.h: New file.
20349
20350         Tests for module 'unistr/u16-strcmp'.
20351         * modules/unistr/u16-strcmp-tests: New file.
20352         * tests/unistr/test-u16-strcmp.c: New file.
20353         * tests/unistr/test-u16-strcmp.h: New file.
20354
20355         Tests for module 'unistr/u8-strcmp'.
20356         * modules/unistr/u8-strcmp-tests: New file.
20357         * tests/unistr/test-u8-strcmp.c: New file.
20358         * tests/unistr/test-u8-strcmp.h: New file.
20359         * tests/unistr/test-strcmp.h: New file.
20360
20361         Tests for module 'unistr/u32-strncat'.
20362         * modules/unistr/u32-strncat-tests: New file.
20363         * tests/unistr/test-u32-strncat.c: New file.
20364
20365         Tests for module 'unistr/u16-strncat'.
20366         * modules/unistr/u16-strncat-tests: New file.
20367         * tests/unistr/test-u16-strncat.c: New file.
20368
20369         Tests for module 'unistr/u8-strncat'.
20370         * modules/unistr/u8-strncat-tests: New file.
20371         * tests/unistr/test-u8-strncat.c: New file.
20372         * tests/unistr/test-strncat.h: New file.
20373
20374         Tests for module 'unistr/u32-strcat'.
20375         * modules/unistr/u32-strcat-tests: New file.
20376         * tests/unistr/test-u32-strcat.c: New file.
20377
20378         Tests for module 'unistr/u16-strcat'.
20379         * modules/unistr/u16-strcat-tests: New file.
20380         * tests/unistr/test-u16-strcat.c: New file.
20381
20382         Tests for module 'unistr/u8-strcat'.
20383         * modules/unistr/u8-strcat-tests: New file.
20384         * tests/unistr/test-u8-strcat.c: New file.
20385         * tests/unistr/test-strcat.h: New file.
20386
20387         Tests for module 'unistr/u32-stpncpy'.
20388         * modules/unistr/u32-stpncpy-tests: New file.
20389         * tests/unistr/test-u32-stpncpy.c: New file.
20390
20391         Tests for module 'unistr/u16-stpncpy'.
20392         * modules/unistr/u16-stpncpy-tests: New file.
20393         * tests/unistr/test-u16-stpncpy.c: New file.
20394
20395         Tests for module 'unistr/u8-stpncpy'.
20396         * modules/unistr/u8-stpncpy-tests: New file.
20397         * tests/unistr/test-u8-stpncpy.c: New file.
20398         * tests/unistr/test-stpncpy.h: New file.
20399
20400         Tests for module 'unistr/u32-strncpy'.
20401         * modules/unistr/u32-strncpy-tests: New file.
20402         * tests/unistr/test-u32-strncpy.c: New file.
20403
20404         Tests for module 'unistr/u16-strncpy'.
20405         * modules/unistr/u16-strncpy-tests: New file.
20406         * tests/unistr/test-u16-strncpy.c: New file.
20407
20408         Tests for module 'unistr/u8-strncpy'.
20409         * modules/unistr/u8-strncpy-tests: New file.
20410         * tests/unistr/test-u8-strncpy.c: New file.
20411         * tests/unistr/test-strncpy.h: New file.
20412
20413         Tests for module 'unistr/u32-stpcpy'.
20414         * modules/unistr/u32-stpcpy-tests: New file.
20415         * tests/unistr/test-u32-stpcpy.c: New file.
20416
20417         Tests for module 'unistr/u16-stpcpy'.
20418         * modules/unistr/u16-stpcpy-tests: New file.
20419         * tests/unistr/test-u16-stpcpy.c: New file.
20420
20421         Tests for module 'unistr/u8-stpcpy'.
20422         * modules/unistr/u8-stpcpy-tests: New file.
20423         * tests/unistr/test-u8-stpcpy.c: New file.
20424         * tests/unistr/test-stpcpy.h: New file.
20425
20426         Tests for module 'unistr/u32-strcpy'.
20427         * modules/unistr/u32-strcpy-tests: New file.
20428         * tests/unistr/test-u32-strcpy.c: New file.
20429
20430         Tests for module 'unistr/u16-strcpy'.
20431         * modules/unistr/u16-strcpy-tests: New file.
20432         * tests/unistr/test-u16-strcpy.c: New file.
20433
20434         Tests for module 'unistr/u8-strcpy'.
20435         * modules/unistr/u8-strcpy-tests: New file.
20436         * tests/unistr/test-u8-strcpy.c: New file.
20437         * tests/unistr/test-strcpy.h: New file.
20438
20439         Tests for module 'unistr/u32-strnlen'.
20440         * modules/unistr/u32-strnlen-tests: New file.
20441         * tests/unistr/test-u32-strnlen.c: New file.
20442
20443         Tests for module 'unistr/u16-strnlen'.
20444         * modules/unistr/u16-strnlen-tests: New file.
20445         * tests/unistr/test-u16-strnlen.c: New file.
20446
20447         Tests for module 'unistr/u8-strnlen'.
20448         * modules/unistr/u8-strnlen-tests: New file.
20449         * tests/unistr/test-u8-strnlen.c: New file.
20450         * tests/unistr/test-strnlen.h: New file.
20451
20452         Tests for module 'unistr/u32-strlen'.
20453         * modules/unistr/u32-strlen-tests: New file.
20454         * tests/unistr/test-u32-strlen.c: New file.
20455
20456         Tests for module 'unistr/u16-strlen'.
20457         * modules/unistr/u16-strlen-tests: New file.
20458         * tests/unistr/test-u16-strlen.c: New file.
20459
20460         Tests for module 'unistr/u8-strlen'.
20461         * modules/unistr/u8-strlen-tests: New file.
20462         * tests/unistr/test-u8-strlen.c: New file.
20463
20464         Tests for module 'unistr/u32-prev'.
20465         * modules/unistr/u32-prev-tests: New file.
20466         * tests/unistr/test-u32-prev.c: New file.
20467
20468         Tests for module 'unistr/u16-prev'.
20469         * modules/unistr/u16-prev-tests: New file.
20470         * tests/unistr/test-u16-prev.c: New file.
20471
20472         Tests for module 'unistr/u8-prev'.
20473         * modules/unistr/u8-prev-tests: New file.
20474         * tests/unistr/test-u8-prev.c: New file.
20475
20476         Tests for module 'unistr/u32-next'.
20477         * modules/unistr/u32-next-tests: New file.
20478         * tests/unistr/test-u32-next.c: New file.
20479
20480         Tests for module 'unistr/u16-next'.
20481         * modules/unistr/u16-next-tests: New file.
20482         * tests/unistr/test-u16-next.c: New file.
20483
20484         Tests for module 'unistr/u8-next'.
20485         * modules/unistr/u8-next-tests: New file.
20486         * tests/unistr/test-u8-next.c: New file.
20487
20488         Tests for module 'unistr/u32-strmbtouc'.
20489         * modules/unistr/u32-strmbtouc-tests: New file.
20490         * tests/unistr/test-u32-strmbtouc.c: New file.
20491
20492         Tests for module 'unistr/u16-strmbtouc'.
20493         * modules/unistr/u16-strmbtouc-tests: New file.
20494         * tests/unistr/test-u16-strmbtouc.c: New file.
20495
20496         Tests for module 'unistr/u8-strmbtouc'.
20497         * modules/unistr/u8-strmbtouc-tests: New file.
20498         * tests/unistr/test-u8-strmbtouc.c: New file.
20499
20500         Tests for module 'unistr/u32-strmblen'.
20501         * modules/unistr/u32-strmblen-tests: New file.
20502         * tests/unistr/test-u32-strmblen.c: New file.
20503
20504         Tests for module 'unistr/u16-strmblen'.
20505         * modules/unistr/u16-strmblen-tests: New file.
20506         * tests/unistr/test-u16-strmblen.c: New file.
20507
20508         Tests for module 'unistr/u8-strmblen'.
20509         * modules/unistr/u8-strmblen-tests: New file.
20510         * tests/unistr/test-u8-strmblen.c: New file.
20511
20512         Tests for module 'unistr/u32-cpy-alloc'.
20513         * modules/unistr/u32-cpy-alloc-tests: New file.
20514         * tests/unistr/test-u32-cpy-alloc.c: New file.
20515
20516         Tests for module 'unistr/u16-cpy-alloc'.
20517         * modules/unistr/u16-cpy-alloc-tests: New file.
20518         * tests/unistr/test-u16-cpy-alloc.c: New file.
20519
20520         Tests for module 'unistr/u8-cpy-alloc'.
20521         * modules/unistr/u8-cpy-alloc-tests: New file.
20522         * tests/unistr/test-u8-cpy-alloc.c: New file.
20523         * tests/unistr/test-cpy-alloc.h: New file.
20524
20525         Tests for module 'unistr/u32-mbsnlen'.
20526         * modules/unistr/u32-mbsnlen-tests: New file.
20527         * tests/unistr/test-u32-mbsnlen.c: New file.
20528
20529         Tests for module 'unistr/u16-mbsnlen'.
20530         * modules/unistr/u16-mbsnlen-tests: New file.
20531         * tests/unistr/test-u16-mbsnlen.c: New file.
20532
20533         Tests for module 'unistr/u8-mbsnlen'.
20534         * modules/unistr/u8-mbsnlen-tests: New file.
20535         * tests/unistr/test-u8-mbsnlen.c: New file.
20536
20537         Tests for module 'unistr/u32-chr'.
20538         * modules/unistr/u32-chr-tests: New file.
20539         * tests/unistr/test-u32-chr.c: New file.
20540
20541         Tests for module 'unistr/u16-chr'.
20542         * modules/unistr/u16-chr-tests: New file.
20543         * tests/unistr/test-u16-chr.c: New file.
20544
20545         Tests for module 'unistr/u8-chr'.
20546         * modules/unistr/u8-chr-tests: New file.
20547         * tests/unistr/test-u8-chr.c: New file.
20548         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20549
20550         Tests for module 'unistr/u32-cmp2'.
20551         * modules/unistr/u32-cmp2-tests: New file.
20552         * tests/unistr/test-u32-cmp2.c: New file.
20553
20554         Tests for module 'unistr/u16-cmp2'.
20555         * modules/unistr/u16-cmp2-tests: New file.
20556         * tests/unistr/test-u16-cmp2.c: New file.
20557
20558         Tests for module 'unistr/u8-cmp2'.
20559         * modules/unistr/u8-cmp2-tests: New file.
20560         * tests/unistr/test-u8-cmp2.c: New file.
20561         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20562
20563         Tests for module 'unistr/u32-cmp'.
20564         * modules/unistr/u32-cmp-tests: New file.
20565         * tests/unistr/test-u32-cmp.c: New file.
20566
20567         Tests for module 'unistr/u16-cmp'.
20568         * modules/unistr/u16-cmp-tests: New file.
20569         * tests/unistr/test-u16-cmp.c: New file.
20570
20571         Tests for module 'unistr/u8-cmp'.
20572         * modules/unistr/u8-cmp-tests: New file.
20573         * tests/unistr/test-u8-cmp.c: New file.
20574         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20575
20576         Tests for module 'unistr/u32-set'.
20577         * modules/unistr/u32-set-tests: New file.
20578         * tests/unistr/test-u32-set.c: New file.
20579
20580         Tests for module 'unistr/u16-set'.
20581         * modules/unistr/u16-set-tests: New file.
20582         * tests/unistr/test-u16-set.c: New file.
20583
20584         Tests for module 'unistr/u8-set'.
20585         * modules/unistr/u8-set-tests: New file.
20586         * tests/unistr/test-u8-set.c: New file.
20587         * tests/unistr/test-set.h: New file.
20588
20589         Tests for module 'unistr/u32-move'.
20590         * modules/unistr/u32-move-tests: New file.
20591         * tests/unistr/test-u32-move.c: New file.
20592
20593         Tests for module 'unistr/u16-move'.
20594         * modules/unistr/u16-move-tests: New file.
20595         * tests/unistr/test-u16-move.c: New file.
20596
20597         Tests for module 'unistr/u8-move'.
20598         * modules/unistr/u8-move-tests: New file.
20599         * tests/unistr/test-u8-move.c: New file.
20600         * tests/unistr/test-move.h: New file.
20601
20602         Tests for module 'unistr/u32-cpy'.
20603         * modules/unistr/u32-cpy-tests: New file.
20604         * tests/unistr/test-u32-cpy.c: New file.
20605
20606         Tests for module 'unistr/u16-cpy'.
20607         * modules/unistr/u16-cpy-tests: New file.
20608         * tests/unistr/test-u16-cpy.c: New file.
20609
20610         Tests for module 'unistr/u8-cpy'.
20611         * modules/unistr/u8-cpy-tests: New file.
20612         * tests/unistr/test-u8-cpy.c: New file.
20613         * tests/unistr/test-cpy.h: New file.
20614
20615 2010-01-09  Bruno Haible  <bruno@clisp.org>
20616
20617         Tests for module 'unistr/u32-uctomb'.
20618         * modules/unistr/u32-uctomb-tests: New file.
20619         * tests/unistr/test-u32-uctomb.c: New file.
20620
20621         Tests for module 'unistr/u16-uctomb'.
20622         * modules/unistr/u16-uctomb-tests: New file.
20623         * tests/unistr/test-u16-uctomb.c: New file.
20624
20625         Tests for module 'unistr/u8-uctomb'.
20626         * modules/unistr/u8-uctomb-tests: New file.
20627         * tests/unistr/test-u8-uctomb.c: New file.
20628
20629         Tests for module 'unistr/u32-mbtoucr'.
20630         * modules/unistr/u32-mbtoucr-tests: New file.
20631         * tests/unistr/test-u32-mbtoucr.c: New file.
20632
20633         Tests for module 'unistr/u16-mbtoucr'.
20634         * modules/unistr/u16-mbtoucr-tests: New file.
20635         * tests/unistr/test-u16-mbtoucr.c: New file.
20636
20637         Tests for module 'unistr/u8-mbtoucr'.
20638         * modules/unistr/u8-mbtoucr-tests: New file.
20639         * tests/unistr/test-u8-mbtoucr.c: New file.
20640
20641         Tests for module 'unistr/u32-mbtouc'.
20642         * modules/unistr/u32-mbtouc-tests: New file.
20643         * tests/unistr/test-u32-mbtouc.c: New file.
20644
20645         Tests for module 'unistr/u16-mbtouc'.
20646         * modules/unistr/u16-mbtouc-tests: New file.
20647         * tests/unistr/test-u16-mbtouc.c: New file.
20648
20649         Tests for module 'unistr/u8-mbtouc'.
20650         * modules/unistr/u8-mbtouc-tests: New file.
20651         * tests/unistr/test-u8-mbtouc.c: New file.
20652
20653         Tests for module 'unistr/u32-mbtouc-unsafe'.
20654         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20655         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20656         * tests/unistr/test-u32-mbtouc.h: New file.
20657
20658         Tests for module 'unistr/u16-mbtouc-unsafe'.
20659         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20660         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20661         * tests/unistr/test-u16-mbtouc.h: New file.
20662
20663         Tests for module 'unistr/u8-mbtouc-unsafe'.
20664         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20665         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20666         * tests/unistr/test-u8-mbtouc.h: New file.
20667
20668         Tests for module 'unistr/u32-mblen'.
20669         * modules/unistr/u32-mblen-tests: New file.
20670         * tests/unistr/test-u32-mblen.c: New file.
20671
20672         Tests for module 'unistr/u16-mblen'.
20673         * modules/unistr/u16-mblen-tests: New file.
20674         * tests/unistr/test-u16-mblen.c: New file.
20675
20676         Tests for module 'unistr/u8-mblen'.
20677         * modules/unistr/u8-mblen-tests: New file.
20678         * tests/unistr/test-u8-mblen.c: New file.
20679
20680         Tests for module 'unistr/u32-to-u16'.
20681         * modules/unistr/u32-to-u16-tests: New file.
20682         * tests/unistr/test-u32-to-u16.c: New file.
20683
20684         Tests for module 'unistr/u32-to-u8'.
20685         * modules/unistr/u32-to-u8-tests: New file.
20686         * tests/unistr/test-u32-to-u8.c: New file.
20687
20688         Tests for module 'unistr/u16-to-u32'.
20689         * modules/unistr/u16-to-u32-tests: New file.
20690         * tests/unistr/test-u16-to-u32.c: New file.
20691
20692         Tests for module 'unistr/u16-to-u8'.
20693         * modules/unistr/u16-to-u8-tests: New file.
20694         * tests/unistr/test-u16-to-u8.c: New file.
20695
20696         Tests for module 'unistr/u8-to-u32'.
20697         * modules/unistr/u8-to-u32-tests: New file.
20698         * tests/unistr/test-u8-to-u32.c: New file.
20699
20700         Tests for module 'unistr/u8-to-u16'.
20701         * modules/unistr/u8-to-u16-tests: New file.
20702         * tests/unistr/test-u8-to-u16.c: New file.
20703
20704         Tests for module 'unistr/u32-check'.
20705         * modules/unistr/u32-check-tests: New file.
20706         * tests/unistr/test-u32-check.c: New file.
20707
20708         Tests for module 'unistr/u16-check'.
20709         * modules/unistr/u16-check-tests: New file.
20710         * tests/unistr/test-u16-check.c: New file.
20711
20712         Tests for module 'unistr/u8-check'.
20713         * modules/unistr/u8-check-tests: New file.
20714         * tests/unistr/test-u8-check.c: New file.
20715
20716         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20717         (category_equals): New function.
20718         (main): Add more tests.
20719         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20720
20721         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20722
20723 2010-01-10  Bruno Haible  <bruno@clisp.org>
20724
20725         unistr/u*-strcoll: Try harder to distinguish different strings.
20726         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20727         compare s1 and s2 to see if they are different.
20728
20729 2010-01-10  Bruno Haible  <bruno@clisp.org>
20730
20731         unistr/u*-stpncpy: Fix the return value.
20732         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20733         description of the return value consistent with stpncpy in glibc.
20734         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20735         written non-NUL unit.
20736
20737 2010-01-10  Bruno Haible  <bruno@clisp.org>
20738
20739         unistr/u*-next: Add missing dependencies.
20740         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20741         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20742         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20743
20744 2010-01-10  Bruno Haible  <bruno@clisp.org>
20745
20746         unistr/u8-mbsnlen: Fix return value for incomplete character.
20747         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20748         u8_mblen.
20749         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20750         Remove unistr/u8-mblen.
20751         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20752         u16_mblen.
20753         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20754         Remove unistr/u16-mblen.
20755
20756 2010-01-10  Bruno Haible  <bruno@clisp.org>
20757
20758         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20759         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20760         Reported by Brian Gough <bjg@gnu.org> and
20761         Chris Clayton <chris2553@googlemail.com> via
20762         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20763
20764 2010-01-09  Bruno Haible  <bruno@clisp.org>
20765
20766         unistr/u16-to-u32: Reject invalid input.
20767         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20768         u16_mbtouc.
20769         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20770         Remove unistr/u16-mbtouc.
20771
20772         unistr/u16-to-u8: Reject invalid input.
20773         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20774         u16_mbtouc.
20775         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20776         Remove unistr/u16-mbtouc.
20777
20778         unistr/u8-to-u32: Reject invalid input.
20779         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20780         u8_mbtouc.
20781         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20782         Remove unistr/u8-mbtouc.
20783
20784         unistr/u8-to-u16: Reject invalid input.
20785         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20786         u8_mbtouc.
20787         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20788         Remove unistr/u8-mbtouc.
20789
20790 2010-01-09  Bruno Haible  <bruno@clisp.org>
20791
20792         Tests for module 'getlogin'.
20793         * modules/getlogin-tests: New file.
20794         * tests/test-getlogin.c: New file.
20795
20796         New module 'getlogin'.
20797         * lib/unistd.in.h (getlogin): New declaration.
20798         * lib/getlogin.c: New file.
20799         * m4/getlogin.m4: New file.
20800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20801         HAVE_GETLOGIN.
20802         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20803         HAVE_GETLOGIN.
20804         * modules/getlogin: New file.
20805         * doc/posix-functions/getlogin.texi: Mention the new module.
20806         Reported by John W. Eaton <jwe@gnu.org>.
20807
20808 2010-01-09  Bruno Haible  <bruno@clisp.org>
20809
20810         getlogin_r: Support for native Windows.
20811         * lib/getlogin_r.c: Include <windows.h>
20812         (getlogin_r): Implement for native Windows.
20813         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20814         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20815         via John W. Eaton <jwe@gnu.org>.
20816
20817 2010-01-09  Bruno Haible  <bruno@clisp.org>
20818
20819         getlogin_r: Small fixes.
20820         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20821         succeeds.
20822         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20823         before testing whether getlogin_r is declared. No need to set
20824         HAVE_DECL_GETLOGIN_R to 1.
20825         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20826
20827 2010-01-09  Bruno Haible  <bruno@clisp.org>
20828
20829         * lib/unistd.in.h (getlogin_r): Add comment.
20830
20831 2010-01-09  Bruno Haible  <bruno@clisp.org>
20832
20833         Tests for module 'getlogin_r'.
20834         * modules/getlogin_r-tests: New file.
20835         * tests/test-getlogin_r.c: New file.
20836
20837 2010-01-09  Jim Meyering  <meyering@redhat.com>
20838
20839         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20840         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20841         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20842
20843 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20844
20845         * lib/dup2.c (rpl_dup2): Improve comment.
20846
20847 2010-01-08  Eric Blake  <ebb9@byu.net>
20848
20849         maint.mk: allow packages to add makefile @@ exceptions
20850         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20851         (sc_makefile_check): Rename...
20852         (sc_makefile_at_at_check): ...to this, and use hook.
20853
20854         dup2: work around mingw bug
20855         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20856         Reported by Simon Josefsson.
20857
20858 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20859
20860         glob: Fix C++ compilation.
20861         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20862         C++.
20863
20864 2010-01-07  Bruno Haible  <bruno@clisp.org>
20865
20866         Fix indentation of wctype.in.h, broken since 2007-01-06.
20867         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20868
20869 2010-01-07  Bruno Haible  <bruno@clisp.org>
20870
20871         mbslen: Avoid collision with system function.
20872         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20873         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20874         * m4/mbslen.m4: New file.
20875         * modules/mbslen (Files): Add it.
20876         (configure.ac): Invoke gl_MBSLEN.
20877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20878         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20879         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20880         via Ian Beckwith <ianb@erislabs.net>.
20881
20882 2010-01-07  Bruno Haible  <bruno@clisp.org>
20883
20884         dirent: Document the last fix.
20885         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20886
20887 2010-01-07  Bruno Haible  <bruno@clisp.org>
20888
20889         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20890         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20891         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20892         va_list are defined.
20893         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20894         Reported by Eric Blake.
20895
20896 2010-01-07  Bruno Haible  <bruno@clisp.org>
20897
20898         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20899         * modules/xlist (Depends-on): Add 'list',
20900         * modules/xoset (Depends-on): Add 'oset'.
20901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20902
20903 2010-01-07  Bruno Haible  <bruno@clisp.org>
20904
20905         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20906         * doc/posix-functions/strncasecmp.texi: Likewise.
20907
20908 2010-01-07  Bruno Haible  <bruno@clisp.org>
20909
20910         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20911
20912 2010-01-07  John W. Eaton  <jwe@octave.org>
20913
20914         wctype: allow C++ use
20915         * lib/wctype.in.h: Add extern "C" block for C++.
20916
20917 2010-01-06  Eric Blake  <ebb9@byu.net>
20918
20919         maint.mk: detect incorrect GFDL usage
20920         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20921
20922 2010-01-06  Jim Meyering  <meyering@redhat.com>
20923         and Eric Blake  <ebb9@byu.net>
20924
20925         maint.mk: ignore multi-line copyright in NEWS
20926         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20927
20928 2010-01-06  Eric Blake  <ebb9@byu.net>
20929
20930         select: add missing dependency
20931         * modules/select-tests (Depends-on): Move sockets dependency...
20932         * modules/select (Depends-on): ...here.
20933         Reported by Ian Beckwith.
20934
20935         doc: regenerate INSTALL
20936         * doc/INSTALL: Reflect recent autoconf update.
20937         * doc/INSTALL.ISO: Likewise.
20938         * doc/INSTALL.UTF-8: Likewise.
20939
20940         pread: fix compilation on glibc
20941         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20942         Reported by Ralf Wildenhues.
20943
20944         dirent: fix test failure
20945         * lib/dirent.in.h (includes): Guarantee ino_t.
20946         Reported by Ralf Wildenhues.
20947
20948 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20949
20950         linkat, renameat: avoid bad free
20951         * lib/at-func2.c (at_func2): Fix typo.
20952         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20953
20954 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20955
20956         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20957         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20958         to avoid failure of symlink test later.
20959
20960 2010-01-06  Eric Blake  <ebb9@byu.net>
20961
20962         stdio, unistd: guarantee ssize_t
20963         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20964         2008 are exposed when needed.
20965         * lib/stdio.in.h (includes): Likewise.
20966         Reported by Ralf Wildenhues.
20967
20968 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20969
20970         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20971         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20972         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20973
20974 2010-01-06  Jim Meyering  <meyering@redhat.com>
20975
20976         readtokens: this module *does* require xalloc.h
20977         It uses only functions that were omitted by the old syntax-check rule.
20978         * lib/readtokens.c: Include "xalloc.h" once again.
20979         * modules/readtokens (Depends-on): Add xalloc.
20980         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20981
20982 2010-01-05  Eric Blake  <ebb9@byu.net>
20983
20984         maint: support 'make announcement' from a VPATH build
20985         * top/maint.mk (announcement): Look for correct NEWS file.
20986
20987 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20988
20989         utimens (fdutimens): ignore a negative FD, per contract
20990         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20991         when we have a valid file descriptor.  Otherwise, using a brand
20992         new glibc (with just-patched futimens that now fails with EBADF)
20993         would cause this function to fail with ENOSYS.
20994         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20995         See also http://bugzilla.redhat.com/552320.
20996
20997 2010-01-05  Eric Blake  <ebb9@byu.net>
20998
20999         strcase: document what it provides
21000         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21001         gnulib module.
21002         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21003         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21004
21005 2010-01-05  Jim Meyering  <meyering@redhat.com>
21006
21007         maint: remove useless inclusions of "xalloc.h"
21008         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21009         * lib/readtokens.c: Likewise.
21010         * lib/same.c: Likewise.
21011         * modules/getloadavg (Depends-on): Remove xalloc.
21012         * modules/readtokens: Likewise.
21013         * modules/same: Likewise.
21014
21015         maint.mk: include 4 more function names in alloca.h-checking regexp
21016         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21017         regexp.  Before, we would give a false-positive (saying alloca.h
21018         is included unnecessarily) when the only uses involved omitted symbols.
21019
21020         xalloc.h: use consistent formatting
21021         * lib/xalloc.h: Move declarations to start in the first column.
21022
21023 2010-01-05  Eric Blake  <ebb9@byu.net>
21024
21025         mkdir: avoid xalloc
21026         * lib/mkdir.c (includes): Drop unused header.
21027         Reported by John W. Eaton.
21028
21029 2010-01-04  Jim Meyering  <meyering@redhat.com>
21030
21031         nl_langinfo: avoid configure-time syntax error
21032         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21033         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21034         the empty string.  Don't let that provoke a shell syntax error.
21035
21036         regcomp, regexec, fnmatch: avoid array bounds read error
21037         * lib/regcomp.c (build_equiv_class): From glibc:
21038         Use only the low 24 bits of a findidx return value as an index
21039         into the weights array.  Patch by Ulrich Drepper:
21040         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21041         * lib/regexec.c (check_node_accept_bytes): Likewise.
21042         * lib/fnmatch_loop.c (FCT): Likewise.
21043
21044         regcomp: skip collseq lookup when there are no rules
21045         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21046         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21047
21048         regcomp: recognize ill-formed { } expressions
21049         * lib/regcomp.c (parse_dup_op): From glibc:
21050         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21051
21052         regcomp: fix typo in comment
21053         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21054         s/satisfy/satisfies/.
21055
21056         regcomp: sync from glibc: remove dead store
21057         * lib/regcomp.c (duplicate_node_closure): Remove useless
21058         search_duplicated_node call and dead store.
21059
21060         regcomp: sync from glibc; always use nl_langinfo
21061         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21062         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21063         * modules/regex (Depends-on): Add nl_langinfo.
21064
21065 2010-01-04  Eric Blake  <ebb9@byu.net>
21066
21067         fdopendir: fix configure test
21068         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21069
21070 2010-01-01  Bruno Haible  <bruno@clisp.org>
21071
21072         wchar: Remove unused configure check.
21073         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21074
21075 2010-01-01  Eric Blake  <ebb9@byu.net>
21076
21077         headers: make check of system header explicit
21078         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21079         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21080         ourselves.
21081         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21083         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21084         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21085         internals.
21086         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21087         missing.
21088         Suggested by Bruno Haible.
21089
21090 2010-01-01  Jim Meyering  <meyering@redhat.com>
21091
21092         ChangeLog: tweak to eliminate unnecessary copyright line
21093         * ChangeLog: Remove a copyright line that was mistakenly updated
21094         by today's update-copyright run.  Reported by Eric Blake.
21095
21096         test-update-copyright: don't let envvar setting cause test failure
21097         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21098
21099 2010-01-01  Bruno Haible  <bruno@clisp.org>
21100
21101         localename: Avoid gcc warning.
21102         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21103         function if it is not used.
21104
21105 2010-01-01  Jim Meyering  <meyering@redhat.com>
21106
21107         update nearly all FSF copyright year lists to include 2010
21108         Use the same procedure as for 2009, outlined in
21109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21110
21111         version-etc: set COPYRIGHT_YEAR to 2010
21112         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21113
21114 2009-12-31  Eric Blake  <ebb9@byu.net>
21115
21116         doc: correct availability of cygwin 1.5.x getopt
21117         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21118         variables.
21119         * doc/posix-functions/opterr.texi (opterr): Likewise.
21120         * doc/posix-functions/optind.texi (optind): Likewise.
21121         * doc/posix-functions/optopt.texi (optopt): Likewise.
21122         * doc/posix-functions/tzname.texi (tzname): Likewise.
21123
21124         openat: update maintainer
21125         * modules/openat (Maintainer): Add myself.
21126
21127         utimens: avoid shadowing warning
21128         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21129         buffers into one, to avoid shadowing, as well as avoiding a
21130         redundant stat.
21131         Reported by Jim Meyering.
21132
21133         test-dup2: avoid compiler warning
21134         * tests/test-dup2.c (is_inheritable): Only define if used.
21135
21136 2010-01-01  Bruno Haible  <bruno@clisp.org>
21137
21138         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21139         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21140         defined, use wctomb instead of wcrtomb.
21141
21142 2010-01-01  Bruno Haible  <bruno@clisp.org>
21143
21144         iconv: Reject native Solaris iconv.
21145         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21146         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21147
21148 2009-12-31  Bruno Haible  <bruno@clisp.org>
21149
21150         * tests/test-signal.c (main): Remove test of 'SIG'.
21151
21152 2009-12-31  Bruno Haible  <bruno@clisp.org>
21153
21154         spawn: Fix incomplete fix.
21155         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21156         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21157         warnings for GNULIB_POSIXCHECK again.
21158         Reported by Eric Blake.
21159
21160 2009-12-31  Bruno Haible  <bruno@clisp.org>
21161
21162         Avoid namespace pollution on glibc systems.
21163         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21164         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21165         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21166         glibc systems.
21167
21168 2009-12-31  Bruno Haible  <bruno@clisp.org>
21169
21170         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21171         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21172         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21173         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21174         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21175         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21176         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21177
21178 2009-12-31  Bruno Haible  <bruno@clisp.org>
21179
21180         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21181         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21182         afterwards.
21183
21184 2009-12-31  Bruno Haible  <bruno@clisp.org>
21185
21186         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21187         SYS_UTSNAME_H.
21188
21189 2009-12-31  Bruno Haible  <bruno@clisp.org>
21190
21191         spawn: Fix misapplied patch.
21192         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21193         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21194         warnings for GNULIB_POSIXCHECK.
21195
21196 2009-12-31  Bruno Haible  <bruno@clisp.org>
21197
21198         times: Update after sys_times changed.
21199         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21200         * modules/times (Files): Add it.
21201         (configure.ac): Invoke gl_FUNC_TIMES.
21202
21203 2009-12-31  Bruno Haible  <bruno@clisp.org>
21204
21205         Use AC_C_INLINE where necessary.
21206         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21207         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21209         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21210         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21211         * m4/mbiter.m4 (gl_MBITER): Likewise.
21212         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21213         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21214         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21215         * modules/u64 (configure.ac): Likewise.
21216
21217 2009-12-31  Bruno Haible  <bruno@clisp.org>
21218
21219         Use AC_C_INLINE instead of module 'inline' where possible.
21220         * modules/inline (Description): Clarify purpose.
21221         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21222         * modules/count-one-bits (Depends-on): Remove inline.
21223         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21224         * modules/openat (Depends-on): Remove inline.
21225         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21226         instead of depending on module 'inline'.
21227         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21228         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21229         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21230         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21231         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21232         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21233         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21234         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21235         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21236         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21237         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21238         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21239         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21240         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21241         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21242         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21243         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21244         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21245         Likewise.
21246         * modules/unictype/property-ascii-hex-digit (Depends-on,
21247         configure.ac): Likewise.
21248         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21249         configure.ac): Likewise.
21250         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21251         configure.ac): Likewise.
21252         * modules/unictype/property-bidi-block-separator (Depends-on,
21253         configure.ac): Likewise.
21254         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21255         configure.ac): Likewise.
21256         * modules/unictype/property-bidi-common-separator (Depends-on,
21257         configure.ac): Likewise.
21258         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21259         Likewise.
21260         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21261         configure.ac): Likewise.
21262         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21263         configure.ac): Likewise.
21264         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21265         configure.ac): Likewise.
21266         * modules/unictype/property-bidi-european-digit (Depends-on,
21267         configure.ac): Likewise.
21268         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21269         configure.ac): Likewise.
21270         * modules/unictype/property-bidi-left-to-right (Depends-on,
21271         configure.ac): Likewise.
21272         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21273         configure.ac): Likewise.
21274         * modules/unictype/property-bidi-other-neutral (Depends-on,
21275         configure.ac): Likewise.
21276         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21277         Likewise.
21278         * modules/unictype/property-bidi-segment-separator (Depends-on,
21279         configure.ac): Likewise.
21280         * modules/unictype/property-bidi-whitespace (Depends-on,
21281         configure.ac): Likewise.
21282         * modules/unictype/property-combining (Depends-on, configure.ac):
21283         Likewise.
21284         * modules/unictype/property-composite (Depends-on, configure.ac):
21285         Likewise.
21286         * modules/unictype/property-currency-symbol (Depends-on,
21287         configure.ac): Likewise.
21288         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21289         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21290         Likewise.
21291         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21292         configure.ac): Likewise.
21293         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21294         Likewise.
21295         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21296         Likewise.
21297         * modules/unictype/property-extender (Depends-on, configure.ac):
21298         Likewise.
21299         * modules/unictype/property-format-control (Depends-on, configure.ac):
21300         Likewise.
21301         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21302         Likewise.
21303         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21304         Likewise.
21305         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21306         Likewise.
21307         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21308         Likewise.
21309         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21310         Likewise.
21311         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21312         Likewise.
21313         * modules/unictype/property-id-start (Depends-on, configure.ac):
21314         Likewise.
21315         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21316         Likewise.
21317         * modules/unictype/property-ids-binary-operator (Depends-on,
21318         configure.ac): Likewise.
21319         * modules/unictype/property-ids-trinary-operator (Depends-on,
21320         configure.ac): Likewise.
21321         * modules/unictype/property-ignorable-control (Depends-on,
21322         configure.ac): Likewise.
21323         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21324         Likewise.
21325         * modules/unictype/property-join-control (Depends-on, configure.ac):
21326         Likewise.
21327         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21328         Likewise.
21329         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21330         Likewise.
21331         * modules/unictype/property-logical-order-exception (Depends-on,
21332         configure.ac): Likewise.
21333         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21334         Likewise.
21335         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21336         * modules/unictype/property-non-break (Depends-on, configure.ac):
21337         Likewise.
21338         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21339         Likewise.
21340         * modules/unictype/property-numeric (Depends-on, configure.ac):
21341         Likewise.
21342         * modules/unictype/property-other-alphabetic (Depends-on,
21343         configure.ac): Likewise.
21344         * modules/unictype/property-other-default-ignorable-code-point
21345         (Depends-on, configure.ac): Likewise.
21346         * modules/unictype/property-other-grapheme-extend (Depends-on,
21347         configure.ac): Likewise.
21348         * modules/unictype/property-other-id-continue (Depends-on,
21349         configure.ac): Likewise.
21350         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21351         Likewise.
21352         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21353         Likewise.
21354         * modules/unictype/property-other-math (Depends-on, configure.ac):
21355         Likewise.
21356         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21357         Likewise.
21358         * modules/unictype/property-paired-punctuation (Depends-on,
21359         configure.ac): Likewise.
21360         * modules/unictype/property-paragraph-separator (Depends-on,
21361         configure.ac): Likewise.
21362         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21363         Likewise.
21364         * modules/unictype/property-pattern-white-space (Depends-on,
21365         configure.ac): Likewise.
21366         * modules/unictype/property-private-use (Depends-on, configure.ac):
21367         Likewise.
21368         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21369         Likewise.
21370         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21371         Likewise.
21372         * modules/unictype/property-radical (Depends-on, configure.ac):
21373         Likewise.
21374         * modules/unictype/property-sentence-terminal (Depends-on,
21375         configure.ac): Likewise.
21376         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21377         Likewise.
21378         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21379         * modules/unictype/property-terminal-punctuation (Depends-on,
21380         configure.ac): Likewise.
21381         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21382         Likewise.
21383         * modules/unictype/property-unassigned-code-value (Depends-on,
21384         configure.ac): Likewise.
21385         * modules/unictype/property-unified-ideograph (Depends-on,
21386         configure.ac): Likewise.
21387         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21388         Likewise.
21389         * modules/unictype/property-variation-selector (Depends-on,
21390         configure.ac): Likewise.
21391         * modules/unictype/property-white-space (Depends-on, configure.ac):
21392         Likewise.
21393         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21394         Likewise.
21395         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21396         Likewise.
21397         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21398         Likewise.
21399         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21400         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21401         Likewise.
21402
21403 2009-12-31  Bruno Haible  <bruno@clisp.org>
21404
21405         Remove unnecessary AC_C_INLINE invocation.
21406         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21407         since 2009-08-21.
21408
21409 2009-12-31  Jim Meyering  <meyering@redhat.com>
21410
21411         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21412         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21413         With this change, we can all remove the gpg_key_ID = ... definition
21414         from our respective cfg.mk files.
21415
21416         maint.mk: create announcement template in ~/, not in /tmp
21417         * top/maint.mk (emit_upload_commands): Adjust.
21418         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21419         Remove temporary file, .ci-msg.
21420
21421 2009-12-31  Eric Blake  <ebb9@byu.net>
21422
21423         link-warning: always build headers with link warnings
21424         * modules/arpa_inet (Makefile.am): Always build replacement
21425         header.
21426         * modules/ctype (Makefile.am): Likewise.
21427         * modules/dirent (Makefile.am): Likewise.
21428         * modules/inttypes (Makefile.am): Likewise.
21429         * modules/langinfo (Makefile.am): Likewise.
21430         * modules/locale (Makefile.am): Likewise.
21431         * modules/spawn (Makefile.am): Likewise.
21432         * modules/sys_file (Makefile.am): Likewise.
21433         * modules/sys_ioctl (Makefile.am): Likewise.
21434         * modules/sys_select (Makefile.am): Likewise.
21435         * modules/sys_socket (Makefile.am): Likewise.
21436         * modules/sys_times (Makefile.am): Likewise.
21437         * modules/sys_utsname (Makefile.am): Likewise.
21438         * modules/sys_wait (Makefile.am): Likewise.
21439         * modules/wchar (Makefile.am): Likewise.
21440         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21441         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21442         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21443         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21444         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21445         Likewise.
21446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21448         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21449         Likewise.
21450         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21451         Likewise.
21452         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21453         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21454         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21456         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21457         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21458         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21459         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21460         (gl_WCHAR_H_DEFAULTS): Likewise.
21461
21462 2009-12-31  Eric Blake  <ebb9@byu.net>
21463
21464         signal, spawn: use link warnings
21465         * lib/signal.in.h (sigset_t): Make unconditional.
21466         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21467         (sigpending, sigprocmask, sigaction): Add link warnings.
21468         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21469         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21470         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21471         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21472         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21473         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21474         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21475         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21476         (posix_spawn_file_actions_destroy)
21477         (posix_spawn_file_actions_addopen)
21478         (posix_spawn_file_actions_addclose)
21479         (posix_spawn_file_actions_adddup2): Likewise.
21480         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21481         * tests/test-signal.c (main): Enhance test.
21482
21483         spawn: improve wrapper support
21484         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21485         (gl_SPAWN_H_DEFAULTS): New defaults.
21486         * modules/spawn (Makefile.am): Substitute them.
21487         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21488         Only declare if missing or broken.
21489
21490         sys_times, sys_utsname: use include_next
21491         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21492         header.
21493         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21495         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21496         * modules/sys_times (Depends-on): Add include_next.
21497         (Makefile.am): Substitute additional values.
21498         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21499         * lib/sys_times.in.h (includes): Include native header, if
21500         available.
21501         * lib/sys_utsname.in.h (includes): Likewise.
21502         * tests/test-sys_times.c (main): Enhance test.
21503
21504         fdutimensat: revert prior patch
21505         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21506         utimens.h.
21507         Reported by Bruno Haible.
21508
21509 2009-12-30  Eric Blake  <ebb9@byu.net>
21510
21511         sys_wait: drop link-warning dependency
21512         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21513         link-warning efforts.
21514         * lib/sys_wait.in.h: Likewise.
21515
21516         fdutimensat: remove bogus dependency
21517         * modules/fdutimensat (Depends-on): Drop inline.
21518
21519         unistd: fix typo
21520         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21521
21522 2009-12-30  Bruno Haible  <bruno@clisp.org>
21523
21524         Fix compilation error with Solaris cc.
21525         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21526         * lib/unicase/u16-is-invariant.c: Likewise.
21527         * lib/unicase/u32-is-invariant.c: Likewise.
21528         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21529
21530 2009-12-30  Bruno Haible  <bruno@clisp.org>
21531
21532         Fix test crash.
21533         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21534         locales.
21535         Reported by Simon Josefsson <simon@josefsson.org>.
21536
21537 2009-12-30  Bruno Haible  <bruno@clisp.org>
21538
21539         Fix compilation error on most platforms.
21540         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21541         Reported by Simon Josefsson <simon@josefsson.org>
21542         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21543
21544 2009-12-30  Eric Blake  <ebb9@byu.net>
21545
21546         futimens, utimensat: work around ntfs-3g bug
21547         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21548         a ctime bug is present, and expand workaround to cover ntfs-3g.
21549         * lib/utimens.c (fdutimens, lutimens): Likewise.
21550         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21551         (validate_timespec): Adjust return value.
21552         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21553         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21554         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21555
21556 2009-12-29  Eric Blake  <ebb9@byu.net>
21557
21558         link-warning: make usage consistent
21559         * modules/ctype (Depends-on): Add link-warning.
21560         (Makefile.am): Update rules accordingly.
21561         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21562         * modules/locale (Depends-on, Makefile.am): Likewise.
21563         * modules/sys_file (Makefile.am): Likewise.
21564         * modules/getopt-posix (Makefile.am): Delete unused link warning
21565         efforts.
21566         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21567         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21568         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21569         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21570
21571         stdio: remove unused variables
21572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21573         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21574         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21575
21576         tests: test more substitute headers
21577         * modules/ctype-tests: New file.
21578         * modules/dirent-tests: Likewise.
21579         * modules/spawn-tests: Likewise.
21580         * modules/sys_file-tests: Likewise.
21581         * modules/sys_ioctl-tests: Likewise.
21582         * modules/sys_wait-tests: Likewise.
21583         * tests/test-ctype.c: Likewise.
21584         * tests/test-dirent.c: Likewise.
21585         * tests/test-spawn.c: Likewise.
21586         * tests/test-sys_file.c: Likewise.
21587         * tests/test-sys_ioctl.c: Likewise.
21588         * tests/test-sys_wait.c: Likewise.
21589         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21590         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21591         whether or not flock is in use.
21592
21593         tests: remove License section from module
21594         * modules/arpa_inet-tests: Remove unneeded section.
21595         * modules/byteswap-tests: Likewise.
21596         * modules/ceilf-tests: Likewise.
21597         * modules/ceill-tests: Likewise.
21598         * modules/crypto/des-tests: Likewise.
21599         * modules/crypto/gc-arcfour-tests: Likewise.
21600         * modules/crypto/gc-arctwo-tests: Likewise.
21601         * modules/crypto/gc-des-tests: Likewise.
21602         * modules/crypto/gc-hmac-md5-tests: Likewise.
21603         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21604         * modules/crypto/gc-md2-tests: Likewise.
21605         * modules/crypto/gc-md4-tests: Likewise.
21606         * modules/crypto/gc-md5-tests: Likewise.
21607         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21608         * modules/crypto/gc-rijndael-tests: Likewise.
21609         * modules/crypto/gc-sha1-tests: Likewise.
21610         * modules/crypto/gc-tests: Likewise.
21611         * modules/crypto/md2-tests: Likewise.
21612         * modules/crypto/md4-tests: Likewise.
21613         * modules/fcntl-h-tests: Likewise.
21614         * modules/floorf-tests: Likewise.
21615         * modules/floorl-tests: Likewise.
21616         * modules/frexp-nolibm-tests: Likewise.
21617         * modules/frexp-tests: Likewise.
21618         * modules/frexpl-nolibm-tests: Likewise.
21619         * modules/frexpl-tests: Likewise.
21620         * modules/getaddrinfo-tests: Likewise.
21621         * modules/inttypes-tests: Likewise.
21622         * modules/isfinite-tests: Likewise.
21623         * modules/isinf-tests: Likewise.
21624         * modules/ldexpl-tests: Likewise.
21625         * modules/locale-tests: Likewise.
21626         * modules/math-tests: Likewise.
21627         * modules/netdb-tests: Likewise.
21628         * modules/netinet_in-tests: Likewise.
21629         * modules/printf-frexp-tests: Likewise.
21630         * modules/printf-frexpl-tests: Likewise.
21631         * modules/priv-set-tests: Likewise.
21632         * modules/random_r-tests: Likewise.
21633         * modules/round-tests: Likewise.
21634         * modules/roundf-tests: Likewise.
21635         * modules/roundl-tests: Likewise.
21636         * modules/search-tests: Likewise.
21637         * modules/select-tests: Likewise.
21638         * modules/signal-tests: Likewise.
21639         * modules/stdbool-tests: Likewise.
21640         * modules/stddef-tests: Likewise.
21641         * modules/stdint-tests: Likewise.
21642         * modules/stdio-tests: Likewise.
21643         * modules/stdlib-tests: Likewise.
21644         * modules/string-tests: Likewise.
21645         * modules/strings-tests: Likewise.
21646         * modules/sys_select-tests: Likewise.
21647         * modules/sys_socket-tests: Likewise.
21648         * modules/sys_stat-tests: Likewise.
21649         * modules/sys_time-tests: Likewise.
21650         * modules/sys_utsname-tests: Likewise.
21651         * modules/sysexits-tests: Likewise.
21652         * modules/time-tests: Likewise.
21653         * modules/trunc-tests: Likewise.
21654         * modules/truncf-tests: Likewise.
21655         * modules/truncl-tests: Likewise.
21656         * modules/tsearch-tests: Likewise.
21657         * modules/unistd-tests: Likewise.
21658         * modules/wchar-tests: Likewise.
21659         * modules/wctype-tests: Likewise.
21660
21661         tests: fix license on several tests
21662         * tests/test-des.c: Update to GPLv3+.
21663         * tests/test-flock.c: Likewise.
21664         * tests/test-fsync.c: Likewise.
21665         * tests/test-futimens.h: Likewise.
21666         * tests/test-gc-arcfour.c: Likewise.
21667         * tests/test-gc-arctwo.c: Likewise.
21668         * tests/test-gc-des.c: Likewise.
21669         * tests/test-gc-hmac-md5.c: Likewise.
21670         * tests/test-gc-hmac-sha1.c: Likewise.
21671         * tests/test-gc-md2.c: Likewise.
21672         * tests/test-gc-md4.c: Likewise.
21673         * tests/test-gc-md5.c: Likewise.
21674         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21675         * tests/test-gc-rijndael.c: Likewise.
21676         * tests/test-gc-sha1.c: Likewise.
21677         * tests/test-gc.c: Likewise.
21678         * tests/test-getcwd.c: Likewise.
21679         * tests/test-link.c: Likewise.
21680         * tests/test-link.h: Likewise.
21681         * tests/test-lutimens.h: Likewise.
21682         * tests/test-md2.c: Likewise.
21683         * tests/test-md4.c: Likewise.
21684         * tests/test-mkdir.h: Likewise.
21685         * tests/test-rename.c: Likewise.
21686         * tests/test-rename.h: Likewise.
21687         * tests/test-safe-alloc.c: Likewise.
21688         * tests/test-utimens-common.h: Likewise.
21689         * tests/test-utimens.h: Likewise.
21690
21691         maint: sync license texts
21692         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21693         * doc/gpl-3.0.texi: Revert copyright year update.
21694         * doc/lgpl-3.0.texi: Likewise.
21695
21696 2009-12-29  Jim Meyering  <meyering@redhat.com>
21697
21698         update nearly all FSF copyright year lists to include 2009
21699         The files named by the following are exempted:
21700             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21701               test -f "$dst" && { echo "$dst"; continue; }
21702               test -d "$dst" || continue
21703               echo "$dst"/$(basename "$src")
21704             done > exempt
21705             git ls-files tests/unictype >> exempt
21706         In the remaining files, convert to all-interval notation if
21707         - there is already at least one year interval like 2000-2003
21708         - the file is maintained by me
21709         - the file is in lib/uni*/, where that style already prevails
21710         Otherwise, use update-copyright's default.
21711
21712 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21713         and Eric Blake  <ebb9@byu.net>
21714
21715         tests: don't require debug system() to pass
21716         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21717         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21718         * tests/test-unlink.h (test_unlink_func): Likewise.
21719         * tests/test-fstatat.c (main): ...into callers.
21720         * tests/test-lstat.c (main): Likewise.
21721         * tests/test-rmdir.c (main): Likewise.
21722         * tests/test-unlink.c (main): Likewise.
21723         * tests/test-unlinkat.c (main): Likewise.
21724         * tests/test-areadlink-with-size.c (main): Don't require a
21725         debug-only system call to pass, aiding cross-testing to mingw.
21726         * tests/test-areadlink.c (main): Likewise.
21727         * tests/test-areadlinkat-with-size.c (main): Likewise.
21728         * tests/test-areadlinkat.c (main): Likewise.
21729         * tests/test-canonicalize-lgpl.c (main): Likewise.
21730         * tests/test-canonicalize.c (main): Likewise.
21731         * tests/test-chown.c (main): Likewise.
21732         * tests/test-fchownat.c (main): Likewise.
21733         * tests/test-lchown.c (main): Likewise.
21734         * tests/test-fdutimensat.c (main): Likewise.
21735         * tests/test-futimens.c (main): Likewise.
21736         * tests/test-link.c (main): Likewise.
21737         * tests/test-linkat.c (main): Likewise.
21738         * tests/test-mkdir.c (main): Likewise.
21739         * tests/test-mkdirat.c (main): Likewise.
21740         * tests/test-mkfifo.c (main): Likewise.
21741         * tests/test-mkfifoat.c (main): Likewise.
21742         * tests/test-mknod.c (main): Likewise.
21743         * tests/test-readlink.c (main): Likewise.
21744         * tests/test-remove.c (main): Likewise.
21745         * tests/test-rename.c (main): Likewise.
21746         * tests/test-renameat.c (main): Likewise.
21747         * tests/test-symlink.c (main): Likewise.
21748         * tests/test-symlinkat.c (main): Likewise.
21749         * tests/test-utimens.c (main): Likewise.
21750         * tests/test-utimensat.c (main): Likewise.
21751
21752 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21753
21754         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21755         on $(UNUSED_PARAMETER_H) to avoid build failure.
21756
21757 2009-12-28  Jim Meyering  <meyering@redhat.com>
21758
21759         update-copyright: you may specify a max. line length other than 72
21760         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21761
21762         maint: use consistent FSF copyright line syntax
21763         * lib/posixtm.c: Add missing comma in FSF copyright line.
21764         * lib/posixtm.h: Likewise.
21765         * lib/getugroups.c: Add missing ", Inc.".
21766
21767         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21768         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21769         FSF copyright line.  Remove trailing blanks.
21770
21771 2009-12-28  Eric Blake  <ebb9@byu.net>
21772
21773         test-dup2: reduce dependencies
21774         * modules/cloexec (Configure.ac): Set witness.
21775         * modules/dup2-tests (Depends-on): Drop cloexec.
21776         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21777         not present.
21778         Suggested by Bruno Haible.
21779
21780 2009-12-26  Bruno Haible  <bruno@clisp.org>
21781
21782         Remove an unneeded dependency.
21783         * modules/fseterr (Depends-on): Remove dup2.
21784
21785 2009-12-26  Eric Blake  <ebb9@byu.net>
21786
21787         tests: use macros.h in more places
21788         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21789         (ASSERT_STREAM): Provide default of stderr.
21790         * tests/test-dirent-safer.c: Include macros.h, using alternate
21791         stream for assertions.
21792         * tests/test-dup-safer.c: Likewise.
21793         * tests/test-freopen-safer.c: Likewise.
21794         * tests/test-getopt.c: Likewise.
21795         * tests/test-openat-safer.c: Likewise.
21796         * tests/test-pipe.c: Likewise.
21797         * tests/test-popen-safer.c: Likewise.
21798         * modules/dirent-safer-tests (Files): Include macros.h.
21799         * modules/unistd-safer-tests (Files): Likewise.
21800         * modules/freopen-safer-tests (Files): Likewise.
21801         * modules/getopt-posix-tests (Files): Likewise.
21802         * modules/openat-safer-tests (Files): Likewise.
21803         * modules/pipe-tests (Files): Likewise.
21804
21805 2009-12-26  Bruno Haible  <bruno@clisp.org>
21806
21807         javacomp: Portability fix.
21808         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21809         that it also works on Solaris.
21810
21811 2009-12-26  Bruno Haible  <bruno@clisp.org>
21812
21813         localename: Fix storage allocation of gl_locale_name_thread's result.
21814         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21815         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21816         all platforms that have 'uselocale'.
21817         (gl_locale_name_thread_unsafe): New function, extracted from
21818         gl_locale_name_thread.
21819         (gl_locale_name_thread): Call struniq on all platforms that have
21820         'uselocale'.
21821         * tests/test-localename.c (test_locale_name_thread): Check that the
21822         resulting strings are permanently allocated.
21823         * modules/localename-tests (Depends-on): Add strdup.
21824
21825 2009-12-26  Bruno Haible  <bruno@clisp.org>
21826
21827         * tests/test-localename.c (categories): Fill in the strings.
21828
21829 2009-12-26  Jim Meyering  <meyering@redhat.com>
21830
21831         isdir: complete the removal of m4/isdir.m4
21832         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21833
21834         isdir: clean up, since at least grep still uses it
21835         * lib/isdir.c: Include "isdir.h".
21836         (S_ISDIR): Remove now-unneeded definition.
21837         * modules/isdir (Files): Add lib/isdir.h.
21838         * lib/isdir.h: New file, with declaration.
21839         * m4/isdir.m4: Remove file -- unneeded.
21840
21841 2009-12-25  Bruno Haible  <bruno@clisp.org>
21842
21843         selinux-h: Make generated .h files standalone.
21844         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21845         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21846         * lib/se-selinux.in.h: Likewise.
21847         * modules/selinux-h (Depends-on): Add unused-parameter.
21848         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21849         selinux/selinux.h and selinux/context.h.
21850         Suggested by Eric Blake.
21851
21852 2009-12-25  Bruno Haible  <bruno@clisp.org>
21853
21854         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21855         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21856         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21857         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21858         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21859
21860 2009-12-24  Bruno Haible  <bruno@clisp.org>
21861
21862         openat: Fix warning.
21863         * lib/openat-proc.c: Include <unistd.h>.
21864
21865 2009-12-24  Bruno Haible  <bruno@clisp.org>
21866
21867         New module 'unused-parameter'.
21868         * build-aux/unused-parameter.h: New file, extracted from earlier
21869         gnulib-common.m4.
21870         * modules/unused-parameter: New file.
21871         * lib/unistr.h: Include unused-parameter.h.
21872         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21873         _GL_UNUSED.
21874         * modules/unistr/base (Depends-on): Add unused-parameter.
21875
21876 2009-12-24  Bruno Haible  <bruno@clisp.org>
21877
21878         Add missing dependencies to 'extensions' module.
21879         * m4/extensions.m4: Add comment.
21880         * modules/accept4 (Depends-on): Add extensions.
21881         * modules/dup3 (Depends-on): Likewise.
21882         * modules/fcntl (Depends-on): Likewise.
21883         * modules/futimens (Depends-on): Likewise.
21884         * modules/mknod (Depends-on): Likewise.
21885         * modules/pipe2 (Depends-on): Likewise.
21886         * modules/stat-time (Depends-on): Likewise.
21887         * modules/strcasestr-simple (Depends-on): Likewise.
21888         * modules/strsignal (Depends-on): Likewise.
21889         * modules/utimensat (Depends-on): Likewise.
21890         * modules/localcharset (Depends-on): Likewise. Needed because of
21891         gl_FCNTL_O_FLAGS.
21892         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21893         AC_TYPE_MBSTATE_T.
21894         * modules/wcsnrtombs (Depends-on): Likewise.
21895         * modules/wcsrtombs (Depends-on): Likewise.
21896
21897 2009-12-24  Bruno Haible  <bruno@clisp.org>
21898
21899         binary-io: Avoid gcc warning due to SET_BINARY.
21900         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21901         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21902
21903 2009-12-24  Bruno Haible  <bruno@clisp.org>
21904
21905         Avoid future namespace pollution on glibc systems.
21906         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21907         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21908         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21909         glibc systems.
21910
21911 2009-12-24  Bruno Haible  <bruno@clisp.org>
21912
21913         Refactor common macros used in tests.
21914         * tests/macros.h: New file.
21915         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21916         and/or <stdlib.h>, if appropriate.
21917         (ASSERT, SIZEOF): Remove macros.
21918         * tests/test-areadlink-with-size.c: Likewise.
21919         * tests/test-areadlinkat.c: Likewise.
21920         * tests/test-areadlinkat-with-size.c: Likewise.
21921         * tests/test-argmatch.c: Likewise.
21922         * tests/test-argv-iter.c: Likewise.
21923         * tests/test-array-mergesort.c: Likewise.
21924         * tests/test-array_list.c: Likewise.
21925         * tests/test-array_oset.c: Likewise.
21926         * tests/test-avltree_list.c: Likewise.
21927         * tests/test-avltree_oset.c: Likewise.
21928         * tests/test-avltreehash_list.c: Likewise.
21929         * tests/test-base64.c: Likewise.
21930         * tests/test-binary-io.c: Likewise.
21931         * tests/test-bitrotate.c: Likewise.
21932         * tests/test-btowc.c: Likewise.
21933         * tests/test-byteswap.c: Likewise.
21934         * tests/test-c-ctype.c: Likewise.
21935         * tests/test-c-stack.c: Likewise.
21936         * tests/test-c-strcasecmp.c: Likewise.
21937         * tests/test-c-strcasestr.c: Likewise.
21938         * tests/test-c-strncasecmp.c: Likewise.
21939         * tests/test-c-strstr.c: Likewise.
21940         * tests/test-canonicalize-lgpl.c: Likewise.
21941         * tests/test-canonicalize.c: Likewise.
21942         * tests/test-carray_list.c: Likewise.
21943         * tests/test-ceilf1.c: Likewise.
21944         * tests/test-ceilf2.c: Likewise.
21945         * tests/test-ceill.c: Likewise.
21946         * tests/test-chown.c: Likewise.
21947         * tests/test-cloexec.c: Likewise.
21948         * tests/test-copy-acl.c: Likewise.
21949         * tests/test-copy-file.c: Likewise.
21950         * tests/test-count-one-bits.c: Likewise.
21951         * tests/test-dprintf-posix.c: Likewise.
21952         * tests/test-dup2.c: Likewise.
21953         * tests/test-dup3.c: Likewise.
21954         * tests/test-duplocale.c: Likewise.
21955         * tests/test-fbufmode.c: Likewise.
21956         * tests/test-fchdir.c: Likewise.
21957         * tests/test-fchownat.c: Likewise.
21958         * tests/test-fcntl-safer.c: Likewise.
21959         * tests/test-fcntl.c: Likewise.
21960         * tests/test-fdopendir.c: Likewise.
21961         * tests/test-fdutimensat.c: Likewise.
21962         * tests/test-fflush2.c: Likewise.
21963         * tests/test-file-has-acl.c: Likewise.
21964         * tests/test-filevercmp.c: Likewise.
21965         * tests/test-flock.c: Likewise.
21966         * tests/test-floorf1.c: Likewise.
21967         * tests/test-floorf2.c: Likewise.
21968         * tests/test-floorl.c: Likewise.
21969         * tests/test-fnmatch.c: Likewise.
21970         * tests/test-fopen.h: Likewise.
21971         * tests/test-fpending.c: Likewise.
21972         * tests/test-fprintf-posix.c: Likewise.
21973         * tests/test-fpurge.c: Likewise.
21974         * tests/test-freadable.c: Likewise.
21975         * tests/test-freadahead.c: Likewise.
21976         * tests/test-freading.c: Likewise.
21977         * tests/test-freadptr.c: Likewise.
21978         * tests/test-freadptr2.c: Likewise.
21979         * tests/test-freadseek.c: Likewise.
21980         * tests/test-freopen.c: Likewise.
21981         * tests/test-frexp.c: Likewise.
21982         * tests/test-frexpl.c: Likewise.
21983         * tests/test-fseek.c: Likewise.
21984         * tests/test-fseeko.c: Likewise.
21985         * tests/test-fstatat.c: Likewise.
21986         * tests/test-fstrcmp.c: Likewise.
21987         * tests/test-fsync.c: Likewise.
21988         * tests/test-ftell.c: Likewise.
21989         * tests/test-ftello.c: Likewise.
21990         * tests/test-func.c: Likewise.
21991         * tests/test-futimens.c: Likewise.
21992         * tests/test-fwritable.c: Likewise.
21993         * tests/test-fwriting.c: Likewise.
21994         * tests/test-getcwd.c: Likewise.
21995         * tests/test-getdate.c: Likewise.
21996         * tests/test-getdelim.c: Likewise.
21997         * tests/test-getdtablesize.c: Likewise.
21998         * tests/test-getgroups.c: Likewise.
21999         * tests/test-getline.c: Likewise.
22000         * tests/test-getndelim2.c: Likewise.
22001         * tests/test-glob.c: Likewise.
22002         * tests/test-hash.c: Likewise.
22003         * tests/test-i-ring.c: Likewise.
22004         * tests/test-iconv-utf.c: Likewise.
22005         * tests/test-iconv.c: Likewise.
22006         * tests/test-idpriv-drop.c: Likewise.
22007         * tests/test-idpriv-droptemp.c: Likewise.
22008         * tests/test-inet_ntop.c: Likewise.
22009         * tests/test-inet_pton.c: Likewise.
22010         * tests/test-isblank.c: Likewise.
22011         * tests/test-isfinite.c: Likewise.
22012         * tests/test-isinf.c: Likewise.
22013         * tests/test-isnan.c: Likewise.
22014         * tests/test-isnand.h: Likewise.
22015         * tests/test-isnanf.h: Likewise.
22016         * tests/test-isnanl.h: Likewise.
22017         * tests/test-lchown.c: Likewise.
22018         * tests/test-ldexpl.c: Likewise.
22019         * tests/test-link.c: Likewise.
22020         * tests/test-linkat.c: Likewise.
22021         * tests/test-linked_list.c: Likewise.
22022         * tests/test-linkedhash_list.c: Likewise.
22023         * tests/test-localename.c: Likewise.
22024         * tests/test-lseek.c: Likewise.
22025         * tests/test-lstat.c: Likewise.
22026         * tests/test-mbmemcasecmp.c: Likewise.
22027         * tests/test-mbmemcasecoll.c: Likewise.
22028         * tests/test-mbrtowc.c: Likewise.
22029         * tests/test-mbscasecmp.c: Likewise.
22030         * tests/test-mbscasestr1.c: Likewise.
22031         * tests/test-mbscasestr2.c: Likewise.
22032         * tests/test-mbscasestr3.c: Likewise.
22033         * tests/test-mbscasestr4.c: Likewise.
22034         * tests/test-mbschr.c: Likewise.
22035         * tests/test-mbscspn.c: Likewise.
22036         * tests/test-mbsinit.c: Likewise.
22037         * tests/test-mbsncasecmp.c: Likewise.
22038         * tests/test-mbsnrtowcs.c: Likewise.
22039         * tests/test-mbspbrk.c: Likewise.
22040         * tests/test-mbspcasecmp.c: Likewise.
22041         * tests/test-mbsrchr.c: Likewise.
22042         * tests/test-mbsrtowcs.c: Likewise.
22043         * tests/test-mbsspn.c: Likewise.
22044         * tests/test-mbsstr1.c: Likewise.
22045         * tests/test-mbsstr2.c: Likewise.
22046         * tests/test-mbsstr3.c: Likewise.
22047         * tests/test-memchr.c: Likewise.
22048         * tests/test-memchr2.c: Likewise.
22049         * tests/test-memcmp.c: Likewise.
22050         * tests/test-memmem.c: Likewise.
22051         * tests/test-memrchr.c: Likewise.
22052         * tests/test-mkdir.c: Likewise.
22053         * tests/test-mkdirat.c: Likewise.
22054         * tests/test-mkfifo.c: Likewise.
22055         * tests/test-mkfifoat.c: Likewise.
22056         * tests/test-mknod.c: Likewise.
22057         * tests/test-nanosleep.c: Likewise.
22058         * tests/test-nl_langinfo.c: Likewise.
22059         * tests/test-obstack-printf.c: Likewise.
22060         * tests/test-open.c: Likewise.
22061         * tests/test-openat.c: Likewise.
22062         * tests/test-pipe-filter-gi1.c: Likewise.
22063         * tests/test-pipe-filter-gi2-main.c: Likewise.
22064         * tests/test-pipe-filter-ii1.c: Likewise.
22065         * tests/test-pipe-filter-ii2-main.c: Likewise.
22066         * tests/test-pipe2.c: Likewise.
22067         * tests/test-popen.h: Likewise.
22068         * tests/test-posixtm.c: Likewise.
22069         * tests/test-pread.c: Likewise.
22070         * tests/test-printf-frexp.c: Likewise.
22071         * tests/test-printf-frexpl.c: Likewise.
22072         * tests/test-printf-posix.c: Likewise.
22073         * tests/test-priv-set.c: Likewise.
22074         * tests/test-quotearg.c: Likewise.
22075         * tests/test-random_r.c: Likewise.
22076         * tests/test-rawmemchr.c: Likewise.
22077         * tests/test-rbtree_list.c: Likewise.
22078         * tests/test-rbtree_oset.c: Likewise.
22079         * tests/test-rbtreehash_list.c: Likewise.
22080         * tests/test-readlink.c: Likewise.
22081         * tests/test-remove.c: Likewise.
22082         * tests/test-rename.c: Likewise.
22083         * tests/test-renameat.c: Likewise.
22084         * tests/test-rmdir.c: Likewise.
22085         * tests/test-round1.c: Likewise.
22086         * tests/test-roundf1.c: Likewise.
22087         * tests/test-roundl.c: Likewise.
22088         * tests/test-safe-alloc.c: Likewise.
22089         * tests/test-sameacls.c: Likewise.
22090         * tests/test-set-mode-acl.c: Likewise.
22091         * tests/test-setenv.c: Likewise.
22092         * tests/test-sigaction.c: Likewise.
22093         * tests/test-signbit.c: Likewise.
22094         * tests/test-sleep.c: Likewise.
22095         * tests/test-snprintf-posix.c: Likewise.
22096         * tests/test-snprintf.c: Likewise.
22097         * tests/test-sprintf-posix.c: Likewise.
22098         * tests/test-stat-time.c: Likewise.
22099         * tests/test-stat.c: Likewise.
22100         * tests/test-strcasestr.c: Likewise.
22101         * tests/test-strchrnul.c: Likewise.
22102         * tests/test-strerror.c: Likewise.
22103         * tests/test-striconv.c: Likewise.
22104         * tests/test-striconveh.c: Likewise.
22105         * tests/test-striconveha.c: Likewise.
22106         * tests/test-strsignal.c: Likewise.
22107         * tests/test-strstr.c: Likewise.
22108         * tests/test-strtod.c: Likewise.
22109         * tests/test-strverscmp.c: Likewise.
22110         * tests/test-symlink.c: Likewise.
22111         * tests/test-symlinkat.c: Likewise.
22112         * tests/test-trunc1.c: Likewise.
22113         * tests/test-trunc2.c: Likewise.
22114         * tests/test-truncf1.c: Likewise.
22115         * tests/test-truncf2.c: Likewise.
22116         * tests/test-truncl.c: Likewise.
22117         * tests/test-uname.c: Likewise.
22118         * tests/test-unlink.c: Likewise.
22119         * tests/test-unlinkat.c: Likewise.
22120         * tests/test-unsetenv.c: Likewise.
22121         * tests/test-usleep.c: Likewise.
22122         * tests/test-utimens.c: Likewise.
22123         * tests/test-utimensat.c: Likewise.
22124         * tests/test-vasnprintf-posix.c: Likewise.
22125         * tests/test-vasnprintf-posix2.c: Likewise.
22126         * tests/test-vasnprintf.c: Likewise.
22127         * tests/test-vasprintf-posix.c: Likewise.
22128         * tests/test-vasprintf.c: Likewise.
22129         * tests/test-vdprintf-posix.c: Likewise.
22130         * tests/test-vfprintf-posix.c: Likewise.
22131         * tests/test-vprintf-posix.c: Likewise.
22132         * tests/test-vsnprintf-posix.c: Likewise.
22133         * tests/test-vsnprintf.c: Likewise.
22134         * tests/test-vsprintf-posix.c: Likewise.
22135         * tests/test-wcrtomb.c: Likewise.
22136         * tests/test-wcsnrtombs.c: Likewise.
22137         * tests/test-wcsrtombs.c: Likewise.
22138         * tests/test-wctype.c: Likewise.
22139         * tests/test-wcwidth.c: Likewise.
22140         * tests/test-xfprintf-posix.c: Likewise.
22141         * tests/test-xmemdup0.c: Likewise.
22142         * tests/test-xprintf-posix.c: Likewise.
22143         * tests/test-xvasprintf.c: Likewise.
22144         * tests/unicase/test-locale-language.c: Likewise.
22145         * tests/unicase/test-mapping-part1.h: Likewise.
22146         * tests/unicase/test-predicate-part1.h: Likewise.
22147         * tests/unicase/test-u8-casecmp.c: Likewise.
22148         * tests/unicase/test-u8-casecoll.c: Likewise.
22149         * tests/unicase/test-u8-casefold.c: Likewise.
22150         * tests/unicase/test-u8-is-cased.c: Likewise.
22151         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22152         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22153         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22154         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22155         * tests/unicase/test-u8-tolower.c: Likewise.
22156         * tests/unicase/test-u8-totitle.c: Likewise.
22157         * tests/unicase/test-u8-toupper.c: Likewise.
22158         * tests/unicase/test-u16-casecmp.c: Likewise.
22159         * tests/unicase/test-u16-casecoll.c: Likewise.
22160         * tests/unicase/test-u16-casefold.c: Likewise.
22161         * tests/unicase/test-u16-is-cased.c: Likewise.
22162         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22163         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22164         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22165         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22166         * tests/unicase/test-u16-tolower.c: Likewise.
22167         * tests/unicase/test-u16-totitle.c: Likewise.
22168         * tests/unicase/test-u16-toupper.c: Likewise.
22169         * tests/unicase/test-u32-casecmp.c: Likewise.
22170         * tests/unicase/test-u32-casecoll.c: Likewise.
22171         * tests/unicase/test-u32-casefold.c: Likewise.
22172         * tests/unicase/test-u32-is-cased.c: Likewise.
22173         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22174         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22175         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22176         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22177         * tests/unicase/test-u32-tolower.c: Likewise.
22178         * tests/unicase/test-u32-totitle.c: Likewise.
22179         * tests/unicase/test-u32-toupper.c: Likewise.
22180         * tests/unicase/test-ulc-casecmp.c: Likewise.
22181         * tests/unicase/test-ulc-casecoll.c: Likewise.
22182         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22183         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22184         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22185         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22186         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22187         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22188         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22189         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22190         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22191         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22192         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22193         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22194         * tests/unictype/test-bidi_byname.c: Likewise.
22195         * tests/unictype/test-bidi_name.c: Likewise.
22196         * tests/unictype/test-bidi_of.c: Likewise.
22197         * tests/unictype/test-bidi_test.c: Likewise.
22198         * tests/unictype/test-block_list.c: Likewise.
22199         * tests/unictype/test-block_of.c: Likewise.
22200         * tests/unictype/test-block_test.c: Likewise.
22201         * tests/unictype/test-categ_and.c: Likewise.
22202         * tests/unictype/test-categ_and_not.c: Likewise.
22203         * tests/unictype/test-categ_byname.c: Likewise.
22204         * tests/unictype/test-categ_name.c: Likewise.
22205         * tests/unictype/test-categ_none.c: Likewise.
22206         * tests/unictype/test-categ_of.c: Likewise.
22207         * tests/unictype/test-categ_or.c: Likewise.
22208         * tests/unictype/test-categ_test_withtable.c: Likewise.
22209         * tests/unictype/test-combining.c: Likewise.
22210         * tests/unictype/test-decdigit.c: Likewise.
22211         * tests/unictype/test-digit.c: Likewise.
22212         * tests/unictype/test-mirror.c: Likewise.
22213         * tests/unictype/test-numeric.c: Likewise.
22214         * tests/unictype/test-pr_byname.c: Likewise.
22215         * tests/unictype/test-pr_test.c: Likewise.
22216         * tests/unictype/test-predicate-part1.h: Likewise.
22217         * tests/unictype/test-scripts.c: Likewise.
22218         * tests/unictype/test-sy_c_ident.c: Likewise.
22219         * tests/unictype/test-sy_java_ident.c: Likewise.
22220         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22221         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22222         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22223         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22224         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22225         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22226         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22227         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22228         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22229         * tests/uninorm/test-compat-decomposition.c: Likewise.
22230         * tests/uninorm/test-composition.c: Likewise.
22231         * tests/uninorm/test-decomposing-form.c: Likewise.
22232         * tests/uninorm/test-decomposition.c: Likewise.
22233         * tests/uninorm/test-u8-nfc.c: Likewise.
22234         * tests/uninorm/test-u8-nfd.c: Likewise.
22235         * tests/uninorm/test-u8-nfkc.c: Likewise.
22236         * tests/uninorm/test-u8-nfkd.c: Likewise.
22237         * tests/uninorm/test-u8-normcmp.c: Likewise.
22238         * tests/uninorm/test-u8-normcoll.c: Likewise.
22239         * tests/uninorm/test-u16-nfc.c: Likewise.
22240         * tests/uninorm/test-u16-nfd.c: Likewise.
22241         * tests/uninorm/test-u16-nfkc.c: Likewise.
22242         * tests/uninorm/test-u16-nfkd.c: Likewise.
22243         * tests/uninorm/test-u16-normcmp.c: Likewise.
22244         * tests/uninorm/test-u16-normcoll.c: Likewise.
22245         * tests/uninorm/test-u32-nfc.c: Likewise.
22246         * tests/uninorm/test-u32-nfd.c: Likewise.
22247         * tests/uninorm/test-u32-nfkc.c: Likewise.
22248         * tests/uninorm/test-u32-nfkd.c: Likewise.
22249         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22250         * tests/uninorm/test-u32-normcmp.c: Likewise.
22251         * tests/uninorm/test-u32-normcoll.c: Likewise.
22252         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22253         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22254         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22255         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22256         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22257         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22258         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22259         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22260         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22261         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22262         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22263         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22264         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22265         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22266         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22267         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22268         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22269         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22270         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22271         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22272         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22273         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22274         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22275         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22276         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22277         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22278         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22279         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22280         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22281         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22282         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22283         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22284         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22285         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22286         * tests/uniwidth/test-u8-width.c: Likewise.
22287         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22288         * tests/uniwidth/test-u16-width.c: Likewise.
22289         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22290         * tests/uniwidth/test-u32-width.c: Likewise.
22291         * tests/uniwidth/test-uc_width.c: Likewise.
22292         * tests/uniwidth/test-uc_width2.c: Likewise.
22293         * modules/acl-tests (Files): Add tests/macros.h.
22294         * modules/areadlink-tests (Files): Likewise.
22295         * modules/areadlink-with-size-tests (Files): Likewise.
22296         * modules/areadlinkat-tests (Files): Likewise.
22297         * modules/areadlinkat-with-size-tests (Files): Likewise.
22298         * modules/argmatch-tests (Files): Likewise.
22299         * modules/argv-iter-tests (Files): Likewise.
22300         * modules/array-list-tests (Files): Likewise.
22301         * modules/array-mergesort-tests (Files): Likewise.
22302         * modules/array-oset-tests (Files): Likewise.
22303         * modules/avltree-list-tests (Files): Likewise.
22304         * modules/avltree-oset-tests (Files): Likewise.
22305         * modules/avltreehash-list-tests (Files): Likewise.
22306         * modules/base64-tests (Files): Likewise.
22307         * modules/binary-io-tests (Files): Likewise.
22308         * modules/bitrotate-tests (Files): Likewise.
22309         * modules/btowc-tests (Files): Likewise.
22310         * modules/byteswap-tests (Files): Likewise.
22311         * modules/c-ctype-tests (Files): Likewise.
22312         * modules/c-stack-tests (Files): Likewise.
22313         * modules/c-strcase-tests (Files): Likewise.
22314         * modules/c-strcasestr-tests (Files): Likewise.
22315         * modules/c-strstr-tests (Files): Likewise.
22316         * modules/canonicalize-lgpl-tests (Files): Likewise.
22317         * modules/canonicalize-tests (Files): Likewise.
22318         * modules/carray-list-tests (Files): Likewise.
22319         * modules/ceilf-tests (Files): Likewise.
22320         * modules/ceill-tests (Files): Likewise.
22321         * modules/chown-tests (Files): Likewise.
22322         * modules/cloexec-tests (Files): Likewise.
22323         * modules/copy-file-tests (Files): Likewise.
22324         * modules/count-one-bits-tests (Files): Likewise.
22325         * modules/dprintf-posix-tests (Files): Likewise.
22326         * modules/dup2-tests (Files): Likewise.
22327         * modules/dup3-tests (Files): Likewise.
22328         * modules/duplocale-tests (Files): Likewise.
22329         * modules/fbufmode-tests (Files): Likewise.
22330         * modules/fchdir-tests (Files): Likewise.
22331         * modules/fcntl-safer-tests (Files): Likewise.
22332         * modules/fcntl-tests (Files): Likewise.
22333         * modules/fdopendir-tests (Files): Likewise.
22334         * modules/fdutimensat-tests (Files): Likewise.
22335         * modules/fflush-tests (Files): Likewise.
22336         * modules/filevercmp-tests (Files): Likewise.
22337         * modules/flock-tests (Files): Likewise.
22338         * modules/floorf-tests (Files): Likewise.
22339         * modules/floorl-tests (Files): Likewise.
22340         * modules/fnmatch-tests (Files): Likewise.
22341         * modules/fopen-safer-tests (Files): Likewise.
22342         * modules/fopen-tests (Files): Likewise.
22343         * modules/fpending-tests (Files): Likewise.
22344         * modules/fprintf-posix-tests (Files): Likewise.
22345         * modules/fpurge-tests (Files): Likewise.
22346         * modules/freadable-tests (Files): Likewise.
22347         * modules/freadahead-tests (Files): Likewise.
22348         * modules/freading-tests (Files): Likewise.
22349         * modules/freadptr-tests (Files): Likewise.
22350         * modules/freadseek-tests (Files): Likewise.
22351         * modules/freopen-tests (Files): Likewise.
22352         * modules/frexp-nolibm-tests (Files): Likewise.
22353         * modules/frexp-tests (Files): Likewise.
22354         * modules/frexpl-nolibm-tests (Files): Likewise.
22355         * modules/frexpl-tests (Files): Likewise.
22356         * modules/fseek-tests (Files): Likewise.
22357         * modules/fseeko-tests (Files): Likewise.
22358         * modules/fstrcmp-tests (Files): Likewise.
22359         * modules/fsync-tests (Files): Likewise.
22360         * modules/ftell-tests (Files): Likewise.
22361         * modules/ftello-tests (Files): Likewise.
22362         * modules/func-tests (Files): Likewise.
22363         * modules/futimens-tests (Files): Likewise.
22364         * modules/fwritable-tests (Files): Likewise.
22365         * modules/fwriting-tests (Files): Likewise.
22366         * modules/getcwd-tests (Files): Likewise.
22367         * modules/getdate-tests (Files): Likewise.
22368         * modules/getdelim-tests (Files): Likewise.
22369         * modules/getdtablesize-tests (Files): Likewise.
22370         * modules/getgroups-tests (Files): Likewise.
22371         * modules/getline-tests (Files): Likewise.
22372         * modules/getndelim2-tests (Files): Likewise.
22373         * modules/glob-tests (Files): Likewise.
22374         * modules/hash-tests (Files): Likewise.
22375         * modules/i-ring-tests (Files): Likewise.
22376         * modules/iconv-tests (Files): Likewise.
22377         * modules/iconv_open-utf-tests (Files): Likewise.
22378         * modules/idpriv-drop-tests (Files): Likewise.
22379         * modules/idpriv-droptemp-tests (Files): Likewise.
22380         * modules/inet_ntop-tests (Files): Likewise.
22381         * modules/inet_pton-tests (Files): Likewise.
22382         * modules/isblank-tests (Files): Likewise.
22383         * modules/isfinite-tests (Files): Likewise.
22384         * modules/isinf-tests (Files): Likewise.
22385         * modules/isnan-tests (Files): Likewise.
22386         * modules/isnand-nolibm-tests (Files): Likewise.
22387         * modules/isnand-tests (Files): Likewise.
22388         * modules/isnanf-nolibm-tests (Files): Likewise.
22389         * modules/isnanf-tests (Files): Likewise.
22390         * modules/isnanl-nolibm-tests (Files): Likewise.
22391         * modules/isnanl-tests (Files): Likewise.
22392         * modules/lchown-tests (Files): Likewise.
22393         * modules/ldexpl-tests (Files): Likewise.
22394         * modules/link-tests (Files): Likewise.
22395         * modules/linkat-tests (Files): Likewise.
22396         * modules/linked-list-tests (Files): Likewise.
22397         * modules/linkedhash-list-tests (Files): Likewise.
22398         * modules/localename-tests (Files): Likewise.
22399         * modules/lseek-tests (Files): Likewise.
22400         * modules/lstat-tests (Files): Likewise.
22401         * modules/mbmemcasecmp-tests (Files): Likewise.
22402         * modules/mbmemcasecoll-tests (Files): Likewise.
22403         * modules/mbrtowc-tests (Files): Likewise.
22404         * modules/mbscasecmp-tests (Files): Likewise.
22405         * modules/mbscasestr-tests (Files): Likewise.
22406         * modules/mbschr-tests (Files): Likewise.
22407         * modules/mbscspn-tests (Files): Likewise.
22408         * modules/mbsinit-tests (Files): Likewise.
22409         * modules/mbsncasecmp-tests (Files): Likewise.
22410         * modules/mbsnrtowcs-tests (Files): Likewise.
22411         * modules/mbspbrk-tests (Files): Likewise.
22412         * modules/mbspcasecmp-tests (Files): Likewise.
22413         * modules/mbsrchr-tests (Files): Likewise.
22414         * modules/mbsrtowcs-tests (Files): Likewise.
22415         * modules/mbsspn-tests (Files): Likewise.
22416         * modules/mbsstr-tests (Files): Likewise.
22417         * modules/memchr-tests (Files): Likewise.
22418         * modules/memchr2-tests (Files): Likewise.
22419         * modules/memcmp-tests (Files): Likewise.
22420         * modules/memmem-tests (Files): Likewise.
22421         * modules/memrchr-tests (Files): Likewise.
22422         * modules/mkdir-tests (Files): Likewise.
22423         * modules/mkfifo-tests (Files): Likewise.
22424         * modules/mkfifoat-tests (Files): Likewise.
22425         * modules/mknod-tests (Files): Likewise.
22426         * modules/nanosleep-tests (Files): Likewise.
22427         * modules/nl_langinfo-tests (Files): Likewise.
22428         * modules/obstack-printf-tests (Files): Likewise.
22429         * modules/open-tests (Files): Likewise.
22430         * modules/openat-tests (Files): Likewise.
22431         * modules/pipe-filter-gi-tests (Files): Likewise.
22432         * modules/pipe-filter-ii-tests (Files): Likewise.
22433         * modules/pipe2-tests (Files): Likewise.
22434         * modules/popen-safer-tests (Files): Likewise.
22435         * modules/popen-tests (Files): Likewise.
22436         * modules/posixtm-tests (Files): Likewise.
22437         * modules/pread-tests (Files): Likewise.
22438         * modules/printf-frexp-tests (Files): Likewise.
22439         * modules/printf-frexpl-tests (Files): Likewise.
22440         * modules/printf-posix-tests (Files): Likewise.
22441         * modules/priv-set-tests (Files): Likewise.
22442         * modules/quotearg-tests (Files): Likewise.
22443         * modules/random_r-tests (Files): Likewise.
22444         * modules/rawmemchr-tests (Files): Likewise.
22445         * modules/rbtree-list-tests (Files): Likewise.
22446         * modules/rbtree-oset-tests (Files): Likewise.
22447         * modules/rbtreehash-list-tests (Files): Likewise.
22448         * modules/readlink-tests (Files): Likewise.
22449         * modules/remove-tests (Files): Likewise.
22450         * modules/rename-tests (Files): Likewise.
22451         * modules/renameat-tests (Files): Likewise.
22452         * modules/rmdir-tests (Files): Likewise.
22453         * modules/round-tests (Files): Likewise.
22454         * modules/roundf-tests (Files): Likewise.
22455         * modules/roundl-tests (Files): Likewise.
22456         * modules/safe-alloc-tests (Files): Likewise.
22457         * modules/setenv-tests (Files): Likewise.
22458         * modules/sigaction-tests (Files): Likewise.
22459         * modules/signbit-tests (Files): Likewise.
22460         * modules/sleep-tests (Files): Likewise.
22461         * modules/snprintf-posix-tests (Files): Likewise.
22462         * modules/snprintf-tests (Files): Likewise.
22463         * modules/sprintf-posix-tests (Files): Likewise.
22464         * modules/stat-tests (Files): Likewise.
22465         * modules/stat-time-tests (Files): Likewise.
22466         * modules/strcasestr-tests (Files): Likewise.
22467         * modules/strchrnul-tests (Files): Likewise.
22468         * modules/strerror-tests (Files): Likewise.
22469         * modules/striconv-tests (Files): Likewise.
22470         * modules/striconveh-tests (Files): Likewise.
22471         * modules/striconveha-tests (Files): Likewise.
22472         * modules/strsignal-tests (Files): Likewise.
22473         * modules/strstr-tests (Files): Likewise.
22474         * modules/strtod-tests (Files): Likewise.
22475         * modules/strverscmp-tests (Files): Likewise.
22476         * modules/symlink-tests (Files): Likewise.
22477         * modules/symlinkat-tests (Files): Likewise.
22478         * modules/trunc-tests (Files): Likewise.
22479         * modules/truncf-tests (Files): Likewise.
22480         * modules/truncl-tests (Files): Likewise.
22481         * modules/uname-tests (Files): Likewise.
22482         * modules/unicase/cased-tests (Files): Likewise.
22483         * modules/unicase/ignorable-tests (Files): Likewise.
22484         * modules/unicase/locale-language-tests (Files): Likewise.
22485         * modules/unicase/tolower-tests (Files): Likewise.
22486         * modules/unicase/totitle-tests (Files): Likewise.
22487         * modules/unicase/toupper-tests (Files): Likewise.
22488         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22489         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22490         * modules/unicase/u8-casefold-tests (Files): Likewise.
22491         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22492         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22493         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22494         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22495         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22496         * modules/unicase/u8-tolower-tests (Files): Likewise.
22497         * modules/unicase/u8-totitle-tests (Files): Likewise.
22498         * modules/unicase/u8-toupper-tests (Files): Likewise.
22499         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22500         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22501         * modules/unicase/u16-casefold-tests (Files): Likewise.
22502         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22503         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22504         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22505         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22506         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22507         * modules/unicase/u16-tolower-tests (Files): Likewise.
22508         * modules/unicase/u16-totitle-tests (Files): Likewise.
22509         * modules/unicase/u16-toupper-tests (Files): Likewise.
22510         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22511         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22512         * modules/unicase/u32-casefold-tests (Files): Likewise.
22513         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22514         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22515         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22516         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22517         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22518         * modules/unicase/u32-tolower-tests (Files): Likewise.
22519         * modules/unicase/u32-totitle-tests (Files): Likewise.
22520         * modules/unicase/u32-toupper-tests (Files): Likewise.
22521         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22522         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22523         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22524         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22525         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22526         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22527         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22528         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22529         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22530         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22531         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22532         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22533         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22534         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22535         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22536         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22537         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22538         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22539         * modules/unictype/block-list-tests (Files): Likewise.
22540         * modules/unictype/block-of-tests (Files): Likewise.
22541         * modules/unictype/block-test-tests (Files): Likewise.
22542         * modules/unictype/category-C-tests (Files): Likewise.
22543         * modules/unictype/category-Cc-tests (Files): Likewise.
22544         * modules/unictype/category-Cf-tests (Files): Likewise.
22545         * modules/unictype/category-Cn-tests (Files): Likewise.
22546         * modules/unictype/category-Co-tests (Files): Likewise.
22547         * modules/unictype/category-Cs-tests (Files): Likewise.
22548         * modules/unictype/category-L-tests (Files): Likewise.
22549         * modules/unictype/category-Ll-tests (Files): Likewise.
22550         * modules/unictype/category-Lm-tests (Files): Likewise.
22551         * modules/unictype/category-Lo-tests (Files): Likewise.
22552         * modules/unictype/category-Lt-tests (Files): Likewise.
22553         * modules/unictype/category-Lu-tests (Files): Likewise.
22554         * modules/unictype/category-M-tests (Files): Likewise.
22555         * modules/unictype/category-Mc-tests (Files): Likewise.
22556         * modules/unictype/category-Me-tests (Files): Likewise.
22557         * modules/unictype/category-Mn-tests (Files): Likewise.
22558         * modules/unictype/category-N-tests (Files): Likewise.
22559         * modules/unictype/category-Nd-tests (Files): Likewise.
22560         * modules/unictype/category-Nl-tests (Files): Likewise.
22561         * modules/unictype/category-No-tests (Files): Likewise.
22562         * modules/unictype/category-P-tests (Files): Likewise.
22563         * modules/unictype/category-Pc-tests (Files): Likewise.
22564         * modules/unictype/category-Pd-tests (Files): Likewise.
22565         * modules/unictype/category-Pe-tests (Files): Likewise.
22566         * modules/unictype/category-Pf-tests (Files): Likewise.
22567         * modules/unictype/category-Pi-tests (Files): Likewise.
22568         * modules/unictype/category-Po-tests (Files): Likewise.
22569         * modules/unictype/category-Ps-tests (Files): Likewise.
22570         * modules/unictype/category-S-tests (Files): Likewise.
22571         * modules/unictype/category-Sc-tests (Files): Likewise.
22572         * modules/unictype/category-Sk-tests (Files): Likewise.
22573         * modules/unictype/category-Sm-tests (Files): Likewise.
22574         * modules/unictype/category-So-tests (Files): Likewise.
22575         * modules/unictype/category-Z-tests (Files): Likewise.
22576         * modules/unictype/category-Zl-tests (Files): Likewise.
22577         * modules/unictype/category-Zp-tests (Files): Likewise.
22578         * modules/unictype/category-Zs-tests (Files): Likewise.
22579         * modules/unictype/category-and-not-tests (Files): Likewise.
22580         * modules/unictype/category-and-tests (Files): Likewise.
22581         * modules/unictype/category-byname-tests (Files): Likewise.
22582         * modules/unictype/category-name-tests (Files): Likewise.
22583         * modules/unictype/category-none-tests (Files): Likewise.
22584         * modules/unictype/category-of-tests (Files): Likewise.
22585         * modules/unictype/category-or-tests (Files): Likewise.
22586         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22587         * modules/unictype/combining-class-tests (Files): Likewise.
22588         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22589         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22590         * modules/unictype/ctype-blank-tests (Files): Likewise.
22591         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22592         * modules/unictype/ctype-digit-tests (Files): Likewise.
22593         * modules/unictype/ctype-graph-tests (Files): Likewise.
22594         * modules/unictype/ctype-lower-tests (Files): Likewise.
22595         * modules/unictype/ctype-print-tests (Files): Likewise.
22596         * modules/unictype/ctype-punct-tests (Files): Likewise.
22597         * modules/unictype/ctype-space-tests (Files): Likewise.
22598         * modules/unictype/ctype-upper-tests (Files): Likewise.
22599         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22600         * modules/unictype/decimal-digit-tests (Files): Likewise.
22601         * modules/unictype/digit-tests (Files): Likewise.
22602         * modules/unictype/mirror-tests (Files): Likewise.
22603         * modules/unictype/numeric-tests (Files): Likewise.
22604         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22605         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22606         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22607         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22608         Likewise.
22609         * modules/unictype/property-bidi-block-separator-tests (Files):
22610         Likewise.
22611         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22612         Likewise.
22613         * modules/unictype/property-bidi-common-separator-tests (Files):
22614         Likewise.
22615         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22616         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22617         Likewise.
22618         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22619         Likewise.
22620         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22621         Likewise.
22622         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22623         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22624         Likewise.
22625         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22626         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22627         Likewise.
22628         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22629         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22630         * modules/unictype/property-bidi-segment-separator-tests (Files):
22631         Likewise.
22632         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22633         * modules/unictype/property-byname-tests (Files): Likewise.
22634         * modules/unictype/property-combining-tests (Files): Likewise.
22635         * modules/unictype/property-composite-tests (Files): Likewise.
22636         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22637         * modules/unictype/property-dash-tests (Files): Likewise.
22638         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22639         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22640         Likewise.
22641         * modules/unictype/property-deprecated-tests (Files): Likewise.
22642         * modules/unictype/property-diacritic-tests (Files): Likewise.
22643         * modules/unictype/property-extender-tests (Files): Likewise.
22644         * modules/unictype/property-format-control-tests (Files): Likewise.
22645         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22646         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22647         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22648         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22649         * modules/unictype/property-hyphen-tests (Files): Likewise.
22650         * modules/unictype/property-id-continue-tests (Files): Likewise.
22651         * modules/unictype/property-id-start-tests (Files): Likewise.
22652         * modules/unictype/property-ideographic-tests (Files): Likewise.
22653         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22654         * modules/unictype/property-ids-trinary-operator-tests (Files):
22655         Likewise.
22656         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22657         * modules/unictype/property-iso-control-tests (Files): Likewise.
22658         * modules/unictype/property-join-control-tests (Files): Likewise.
22659         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22660         * modules/unictype/property-line-separator-tests (Files): Likewise.
22661         * modules/unictype/property-logical-order-exception-tests (Files):
22662         Likewise.
22663         * modules/unictype/property-lowercase-tests (Files): Likewise.
22664         * modules/unictype/property-math-tests (Files): Likewise.
22665         * modules/unictype/property-non-break-tests (Files): Likewise.
22666         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22667         * modules/unictype/property-numeric-tests (Files): Likewise.
22668         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22669         * modules/unictype/property-other-default-ignorable-code-point-tests
22670         (Files): Likewise.
22671         * modules/unictype/property-other-grapheme-extend-tests (Files):
22672         Likewise.
22673         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22674         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22675         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22676         * modules/unictype/property-other-math-tests (Files): Likewise.
22677         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22678         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22679         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22680         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22681         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22682         * modules/unictype/property-private-use-tests (Files): Likewise.
22683         * modules/unictype/property-punctuation-tests (Files): Likewise.
22684         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22685         * modules/unictype/property-radical-tests (Files): Likewise.
22686         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22687         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22688         * modules/unictype/property-space-tests (Files): Likewise.
22689         * modules/unictype/property-terminal-punctuation-tests (Files):
22690         Likewise.
22691         * modules/unictype/property-test-tests (Files): Likewise.
22692         * modules/unictype/property-titlecase-tests (Files): Likewise.
22693         * modules/unictype/property-unassigned-code-value-tests (Files):
22694         Likewise.
22695         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22696         * modules/unictype/property-uppercase-tests (Files): Likewise.
22697         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22698         * modules/unictype/property-white-space-tests (Files): Likewise.
22699         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22700         * modules/unictype/property-xid-start-tests (Files): Likewise.
22701         * modules/unictype/property-zero-width-tests (Files): Likewise.
22702         * modules/unictype/scripts-tests (Files): Likewise.
22703         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22704         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22705         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22706         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22707         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22708         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22709         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22710         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22711         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22712         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22713         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22714         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22715         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22716         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22717         * modules/uninorm/composition-tests (Files): Likewise.
22718         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22719         * modules/uninorm/decomposition-tests (Files): Likewise.
22720         * modules/uninorm/filter-tests (Files): Likewise.
22721         * modules/uninorm/nfc-tests (Files): Likewise.
22722         * modules/uninorm/nfd-tests (Files): Likewise.
22723         * modules/uninorm/nfkc-tests (Files): Likewise.
22724         * modules/uninorm/nfkd-tests (Files): Likewise.
22725         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22726         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22727         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22728         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22729         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22730         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22731         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22732         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22733         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22734         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22735         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22736         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22737         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22738         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22739         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22740         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22741         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22742         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22743         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22744         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22745         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22746         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22747         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22748         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22749         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22750         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22751         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22752         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22753         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22754         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22755         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22756         * modules/uniwidth/u8-width-tests (Files): Likewise.
22757         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22758         * modules/uniwidth/u16-width-tests (Files): Likewise.
22759         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22760         * modules/uniwidth/u32-width-tests (Files): Likewise.
22761         * modules/uniwidth/width-tests (Files): Likewise.
22762         * modules/unlink-tests (Files): Likewise.
22763         * modules/unsetenv-tests (Files): Likewise.
22764         * modules/usleep-tests (Files): Likewise.
22765         * modules/utimens-tests (Files): Likewise.
22766         * modules/utimensat-tests (Files): Likewise.
22767         * modules/vasnprintf-posix-tests (Files): Likewise.
22768         * modules/vasnprintf-tests (Files): Likewise.
22769         * modules/vasprintf-posix-tests (Files): Likewise.
22770         * modules/vasprintf-tests (Files): Likewise.
22771         * modules/vdprintf-posix-tests (Files): Likewise.
22772         * modules/vfprintf-posix-tests (Files): Likewise.
22773         * modules/vprintf-posix-tests (Files): Likewise.
22774         * modules/vsnprintf-posix-tests (Files): Likewise.
22775         * modules/vsnprintf-tests (Files): Likewise.
22776         * modules/vsprintf-posix-tests (Files): Likewise.
22777         * modules/wcrtomb-tests (Files): Likewise.
22778         * modules/wcsnrtombs-tests (Files): Likewise.
22779         * modules/wcsrtombs-tests (Files): Likewise.
22780         * modules/wctype-tests (Files): Likewise.
22781         * modules/wcwidth-tests (Files): Likewise.
22782         * modules/xmemdup0-tests (Files): Likewise.
22783         * modules/xprintf-posix-tests (Files): Likewise.
22784         * modules/xvasprintf-tests (Files): Likewise.
22785
22786 2009-12-24  Eric Blake  <ebb9@byu.net>
22787
22788         test-nanosleep: fix typo
22789         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22790         patch.
22791         Reported by Bruno Haible.
22792
22793 2009-12-24  Bruno Haible  <bruno@clisp.org>
22794
22795         Reduce namespace pollution on glibc systems.
22796         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22797         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22798         systems.
22799         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22800         <getopt.h> on glibc systems.
22801         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22802         systems.
22803         * lib/fcntl.c: Include <unistd.h> here instead.
22804
22805 2009-12-24  Bruno Haible  <bruno@clisp.org>
22806
22807         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22808
22809 2009-12-24  Eric Blake  <ebb9@byu.net>
22810
22811         tests: add signature checks
22812         * tests/signature.h (SIGNATURE_CHECK): New file.
22813         * modules/atexit-tests (Files): Use it.
22814         * modules/btowc-tests (Files): Likewise.
22815         * modules/canonicalize-lgpl-tests (Files): Likewise.
22816         * modules/ceilf-tests (Files): Likewise.
22817         * modules/ceill-tests (Files): Likewise.
22818         * modules/chown-tests (Files): Likewise.
22819         * modules/dprintf-posix-tests (Files): Likewise.
22820         * modules/dup2-tests (Files): Likewise.
22821         * modules/dup3-tests (Files): Likewise.
22822         * modules/duplocale-tests (Files): Likewise.
22823         * modules/fchdir-tests (Files): Likewise.
22824         * modules/fcntl-tests (Files): Likewise.
22825         * modules/fdopendir-tests (Files): Likewise.
22826         * modules/fflush-tests (Files): Likewise.
22827         * modules/flock-tests (Files): Likewise.
22828         * modules/floorf-tests (Files): Likewise.
22829         * modules/floorl-tests (Files): Likewise.
22830         * modules/fnmatch-tests (Files): Likewise.
22831         * modules/fopen-tests (Files): Likewise.
22832         * modules/fprintf-posix-tests (Files): Likewise.
22833         * modules/freopen-tests (Files): Likewise.
22834         * modules/frexp-nolibm-tests (Files): Likewise.
22835         * modules/frexp-tests (Files): Likewise.
22836         * modules/frexpl-nolibm-tests (Files): Likewise.
22837         * modules/frexpl-tests (Files): Likewise.
22838         * modules/fseek-tests (Files): Likewise.
22839         * modules/fseeko-tests (Files): Likewise.
22840         * modules/fsync-tests (Files): Likewise.
22841         * modules/ftell-tests (Files): Likewise.
22842         * modules/ftello-tests (Files): Likewise.
22843         * modules/futimens-tests (Files): Likewise.
22844         * modules/getaddrinfo-tests (Files): Likewise.
22845         * modules/getcwd-tests (Files): Likewise.
22846         * modules/getdelim-tests (Files): Likewise.
22847         * modules/getdtablesize-tests (Files): Likewise.
22848         * modules/getgroups-tests (Files): Likewise.
22849         * modules/gethostname-tests (Files): Likewise.
22850         * modules/getline-tests (Files): Likewise.
22851         * modules/getopt-posix-tests (Files): Likewise.
22852         * modules/gettimeofday-tests (Files): Likewise.
22853         * modules/glob-tests (Files): Likewise.
22854         * modules/iconv-tests (Files): Likewise.
22855         * modules/inet_ntop-tests (Files): Likewise.
22856         * modules/inet_pton-tests (Files): Likewise.
22857         * modules/isblank-tests (Files): Likewise.
22858         * modules/lchown-tests (Files): Likewise.
22859         * modules/ldexpl-tests (Files): Likewise.
22860         * modules/link-tests (Files): Likewise.
22861         * modules/linkat-tests (Files): Likewise.
22862         * modules/lseek-tests (Files): Likewise.
22863         * modules/lstat-tests (Files): Likewise.
22864         * modules/mbrtowc-tests (Files): Likewise.
22865         * modules/mbsinit-tests (Files): Likewise.
22866         * modules/mbsnrtowcs-tests (Files): Likewise.
22867         * modules/mbsrtowcs-tests (Files): Likewise.
22868         * modules/memchr-tests (Files): Likewise.
22869         * modules/memcmp-tests (Files): Likewise.
22870         * modules/memmem-tests (Files): Likewise.
22871         * modules/memrchr-tests (Files): Likewise.
22872         * modules/mkdir-tests (Files): Likewise.
22873         * modules/mkfifo-tests (Files): Likewise.
22874         * modules/mkfifoat-tests (Files): Likewise.
22875         * modules/mknod-tests (Files): Likewise.
22876         * modules/nanosleep-tests (Files): Likewise.
22877         * modules/nl_langinfo-tests (Files): Likewise.
22878         * modules/obstack-printf-tests (Files): Likewise.
22879         * modules/open-tests (Files): Likewise.
22880         * modules/openat-tests (Files): Likewise.
22881         * modules/perror-tests (Files): Likewise.
22882         * modules/pipe2-tests (Files): Likewise.
22883         * modules/poll-tests (Files): Likewise.
22884         * modules/popen-tests (Files): Likewise.
22885         * modules/posix_spawn-tests (Files): Likewise.
22886         * modules/posix_spawnp-tests (Files): Likewise.
22887         * modules/pread-tests (Files): Likewise.
22888         * modules/printf-posix-tests (Files): Likewise.
22889         * modules/pty-tests (Files): Likewise.
22890         * modules/random_r-tests (Files): Likewise.
22891         * modules/rawmemchr-tests (Files): Likewise.
22892         * modules/readlink-tests (Files): Likewise.
22893         * modules/remove-tests (Files): Likewise.
22894         * modules/rename-tests (Files): Likewise.
22895         * modules/renameat-tests (Files): Likewise.
22896         * modules/rmdir-tests (Files): Likewise.
22897         * modules/round-tests (Files): Likewise.
22898         * modules/roundf-tests (Files): Likewise.
22899         * modules/roundl-tests (Files): Likewise.
22900         * modules/select-tests (Files): Likewise.
22901         * modules/setenv-tests (Files): Likewise.
22902         * modules/sigaction-tests (Files): Likewise.
22903         * modules/sleep-tests (Files): Likewise.
22904         * modules/snprintf-posix-tests (Files): Likewise.
22905         * modules/snprintf-tests (Files): Likewise.
22906         * modules/sprintf-posix-tests (Files): Likewise.
22907         * modules/stat-tests (Files): Likewise.
22908         * modules/strcasestr-tests (Files): Likewise.
22909         * modules/strchrnul-tests (Files): Likewise.
22910         * modules/strerror-tests (Files): Likewise.
22911         * modules/strsignal-tests (Files): Likewise.
22912         * modules/strstr-tests (Files): Likewise.
22913         * modules/strtod-tests (Files): Likewise.
22914         * modules/strverscmp-tests (Files): Likewise.
22915         * modules/symlink-tests (Files): Likewise.
22916         * modules/symlinkat-tests (Files): Likewise.
22917         * modules/times-tests (Files): Likewise.
22918         * modules/trunc-tests (Files): Likewise.
22919         * modules/truncf-tests (Files): Likewise.
22920         * modules/truncl-tests (Files): Likewise.
22921         * modules/tsearch-tests (Files): Likewise.
22922         * modules/uname-tests (Files): Likewise.
22923         * modules/unlink-tests (Files): Likewise.
22924         * modules/unsetenv-tests (Files): Likewise.
22925         * modules/usleep-tests (Files): Likewise.
22926         * modules/utimensat-tests (Files): Likewise.
22927         * modules/vasprintf-tests (Files): Likewise.
22928         * modules/vdprintf-posix-tests (Files): Likewise.
22929         * modules/vfprintf-posix-tests (Files): Likewise.
22930         * modules/vprintf-posix-tests (Files): Likewise.
22931         * modules/vsnprintf-posix-tests (Files): Likewise.
22932         * modules/vsnprintf-tests (Files): Likewise.
22933         * modules/vsprintf-posix-tests (Files): Likewise.
22934         * modules/wcrtomb-tests (Files): Likewise.
22935         * modules/wcsnrtombs-tests (Files): Likewise.
22936         * modules/wcsrtombs-tests (Files): Likewise.
22937         * modules/wcwidth-tests (Files): Likewise.
22938         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22939         * tests/test-isinf.c (isinf): Likewise.
22940         * tests/test-isnan.c (isnan): Likewise.
22941         * tests/test-signbit.c (signbit): Likewise.
22942         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22943         declaration, either as macro or with correct signature.
22944         (select): Ensure function under test is declared with correct
22945         signature in correct header.
22946         * tests/test-atexit.c (atexit): Likewise.
22947         * tests/test-btowc.c (btowc): Likewise.
22948         * tests/test-canonicalize-lgpl.c (realpath)
22949         (canonicalize_file_name): Likewise.
22950         * tests/test-ceilf1.c (ceilf): Likewise.
22951         * tests/test-ceill.c (ceill): Likewise.
22952         * tests/test-chown.c (chown): Likewise.
22953         * tests/test-dprintf-posix.c (dprintf): Likewise.
22954         * tests/test-dup2.c (dup2): Likewise.
22955         * tests/test-dup3.c (dup3): Likewise.
22956         * tests/test-duplocale.c (duplocale): Likewise.
22957         * tests/test-fchdir.c (fchdir): Likewise.
22958         * tests/test-fchownat.c (fchownat): Likewise.
22959         * tests/test-fcntl.c (fcntl): Likewise.
22960         * tests/test-fdopendir.c (fdopendir): Likewise.
22961         * tests/test-fflush.c (fflush): Likewise.
22962         * tests/test-flock.c (flock): Likewise.
22963         * tests/test-floorf1.c (floorf): Likewise.
22964         * tests/test-floorl.c (floorl): Likewise.
22965         * tests/test-fnmatch.c (fnmatch): Likewise.
22966         * tests/test-fopen.c (fopen): Likewise.
22967         * tests/test-fprintf-posix.c (fprintf): Likewise.
22968         * tests/test-freopen.c (freopen): Likewise.
22969         * tests/test-frexp.c (frexp): Likewise.
22970         * tests/test-frexpl.c (frexpl): Likewise.
22971         * tests/test-fseek.c (fseek): Likewise.
22972         * tests/test-fseeko.c (fseeko): Likewise.
22973         * tests/test-fstatat.c (fstatat): Likewise.
22974         * tests/test-fsync.c (fsync): Likewise.
22975         * tests/test-ftell.c (ftell): Likewise.
22976         * tests/test-ftello.c (ftello): Likewise.
22977         * tests/test-futimens.c (futimens): Likewise.
22978         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22979         (gai_strerror): Likewise.
22980         * tests/test-getcwd.c (getcwd): Likewise.
22981         * tests/test-getdelim.c (getdelim): Likewise.
22982         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22983         * tests/test-getgroups.c (getgroups): Likewise.
22984         * tests/test-gethostname.c (gethostname): Likewise.
22985         * tests/test-getline.c (getline): Likewise.
22986         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22987         Likewise.
22988         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22989         * tests/test-glob.c (glob, globfree): Likewise.
22990         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22991         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22992         * tests/test-inet_pton.c (inet_pton): Likewise.
22993         * tests/test-isblank.c (isblank): Likewise.
22994         * tests/test-lchown.c (lchown): Likewise.
22995         * tests/test-ldexpl.c (ldexpl): Likewise.
22996         * tests/test-link.c (link): Likewise.
22997         * tests/test-linkat.c (linkat): Likewise.
22998         * tests/test-lseek.c (lseek): Likewise.
22999         * tests/test-lstat.c (lstat): Likewise.
23000         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23001         * tests/test-mbsinit.c (mbsinit): Likewise.
23002         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23003         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23004         * tests/test-memchr.c (memchr): Likewise.
23005         * tests/test-memcmp.c (memcmp): Likewise.
23006         * tests/test-memmem.c (memmem): Likewise.
23007         * tests/test-memrchr.c (memrchr): Likewise.
23008         * tests/test-mkdir.c (mkdir): Likewise.
23009         * tests/test-mkdirat.c (mkdirat): Likewise.
23010         * tests/test-mkfifo.c (mkfifo): Likewise.
23011         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23012         * tests/test-mknod.c (mknod): Likewise.
23013         * tests/test-nanosleep.c (nanosleep): Likewise.
23014         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23015         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23016         Likewise.
23017         * tests/test-open.c (open): Likewise.
23018         * tests/test-openat.c (openat): Likewise.
23019         * tests/test-perror.c (perror): Likewise.
23020         * tests/test-pipe2.c (pipe2): Likewise.
23021         * tests/test-poll.c (poll): Likewise.
23022         * tests/test-popen.c (popen, pclose): Likewise.
23023         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23024         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23025         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23026         (posix_spawn_file_actions_destroy)
23027         (posix_spawn_file_actions_addclose)
23028         (posix_spawn_file_actions_addopen)
23029         (posix_spawn_file_actions_adddup2): Likewise.
23030         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23031         * tests/test-pread.c (pread): Likewise.
23032         * tests/test-printf-posix.c (printf): Likewise.
23033         * tests/test-pty.c (openpty, forkpty): Likewise.
23034         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23035         (random_r): Likewise.
23036         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23037         * tests/test-readlink.c (readlink): Likewise.
23038         * tests/test-remove.c (remove): Likewise.
23039         * tests/test-rename.c (rename): Likewise.
23040         * tests/test-renameat.c (renameat): Likewise.
23041         * tests/test-rmdir.c (rmdir): Likewise.
23042         * tests/test-round1.c (round): Likewise.
23043         * tests/test-roundf1.c (roundf): Likewise.
23044         * tests/test-roundl.c (roundl): Likewise.
23045         * tests/test-setenv.c (setenv): Likewise.
23046         * tests/test-sigaction.c (sigaction): Likewise.
23047         * tests/test-sleep.c (sleep): Likewise.
23048         * tests/test-snprintf.c (snprintf): Likewise.
23049         * tests/test-sprintf-posix.c (sprintf): Likewise.
23050         * tests/test-stat.c (stat): Likewise.
23051         * tests/test-stpncpy.c (stpncpy): Likewise.
23052         * tests/test-strcasestr.c (strcasestr): Likewise.
23053         * tests/test-strchrnul.c (strchrnul): Likewise.
23054         * tests/test-strerror.c (strerror): Likewise.
23055         * tests/test-strsignal.c (strsignal): Likewise.
23056         * tests/test-strstr.c (strstr): Likewise.
23057         * tests/test-strtod.c (strtod): Likewise.
23058         * tests/test-strverscmp.c (strverscmp): Likewise.
23059         * tests/test-symlink.c (symlink): Likewise.
23060         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23061         * tests/test-times.c (times): Likewise.
23062         * tests/test-trunc1.c (trunc): Likewise.
23063         * tests/test-truncf1.c (truncf): Likewise.
23064         * tests/test-truncl.c (truncl): Likewise.
23065         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23066         Likewise.
23067         * tests/test-uname.c (uname): Likewise.
23068         * tests/test-unlink.c (unlink): Likewise.
23069         * tests/test-unlinkat.c (unlinkat): Likewise.
23070         * tests/test-unsetenv.c (unsetenv): Likewise.
23071         * tests/test-usleep.c (usleep): Likewise.
23072         * tests/test-utimensat.c (utimensat): Likewise.
23073         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23074         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23075         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23076         * tests/test-vprintf-posix.c (vprintf): Likewise.
23077         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23078         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23079         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23080         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23081         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23082         * tests/test-wcwidth.c (wcwidth): Likewise.
23083
23084         build: pull in conditional headers during GNULIB_POSIXCHECK
23085         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23086         definitions from any conditionally-included headers.
23087         * lib/stdlib.in.h (includes): Likewise.
23088         * lib/unistd.in.h (includes): Likewise.
23089
23090 2009-12-24  Bruno Haible  <bruno@clisp.org>
23091
23092         * tests/test-argv-iter.c: Include header file being tested immediately
23093         after config.h.
23094         * tests/test-base64.c: Likewise.
23095         * tests/test-flock.c: Likewise.
23096         * tests/test-fsync.c: Likewise.
23097         * tests/test-getdate.c: Likewise.
23098         * tests/test-getndelim2.c: Likewise.
23099         * tests/test-isfinite.c: Likewise.
23100         * tests/test-isinf.c: Likewise.
23101         * tests/test-strerror.c: Likewise.
23102         * tests/test-strsignal.c: Likewise.
23103
23104 2009-12-23  Eric Blake  <ebb9@byu.net>
23105
23106         unistd: work around cygwin bug
23107         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23108         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23109         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23110
23111 2009-12-23  Bruno Haible  <bruno@clisp.org>
23112
23113         localename: More tests.
23114         * tests/test-localename.c (SIZEOF): New macro.
23115         (categories): New variable.
23116         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23117         test_locale_name_default): Add test w.r.t. thread locale.
23118         (test_locale_name_thread): New function.
23119         (main): Invoke it.
23120
23121         localename: Make aware of thread locale.
23122         * lib/localename.h (gl_locale_name_thread): New declaration.
23123         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23124         behaviour with respect to thread locale.
23125         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23126         <langinfo.h>, glthread/lock.h.
23127         (SIZE_BITS): New macro.
23128         (string_hash): New function.
23129         (struct hash_node): New type.
23130         (HASH_TABLE_SIZE): New macro.
23131         (struniq_hash_table, struniq_lock): New variables.
23132         (struniq): New function.
23133         (gl_locale_name_thread): New function.
23134         (gl_locale_name): Invoke it.
23135         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23136         * modules/localename (Depends-on): Add lock.
23137         Reported by Mike Gran <spk121@yahoo.com>.
23138
23139 2009-12-23  Eric Blake  <ebb9@byu.net>
23140
23141         va-args: new module
23142         * modules/va-args: New file.
23143         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23144         * MODULES.html.sh (Core language properties): Mention it.
23145
23146         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23147         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23148         named alias for __attribute__((__unused__)).
23149         * lib/chown.c: Update client.
23150         * lib/fchmodat.c: Likewise.
23151         * lib/fts.c: Likewise.
23152         * lib/getdate.y: Likewise.
23153         * lib/getgroups.c: Likewise.
23154         * lib/getopt.c: Likewise.
23155         * lib/getugroups.c: Likewise.
23156         * lib/mkdir.c: Likewise.
23157         * lib/mkfifo.c: Likewise.
23158         * lib/mkfifoat.c: Likewise.
23159         * lib/mknod.c: Likewise.
23160         * lib/mknodat.c: Likewise.
23161         * lib/readlink.c: Likewise.
23162         * lib/se-context.in.h: Likewise.
23163         * lib/se-selinux.in.h: Likewise.
23164         * lib/sockets.c: Likewise.
23165         * lib/symlink.c: Likewise.
23166         * lib/symlinkat.c: Likewise.
23167         * lib/unicodeio.c: Likewise.
23168         * lib/unistr.h: Likewise.
23169         * tests/test-areadlink.c: Likewise.
23170         * tests/test-areadlinkat.c: Likewise.
23171         * tests/test-filenamecat.c: Likewise.
23172         * tests/test-fseeko.c: Likewise.
23173         * tests/test-ftello.c: Likewise.
23174         * tests/test-getdate.c: Likewise.
23175         * tests/test-getgroups.c: Likewise.
23176         * tests/test-gethostname.c: Likewise.
23177         * tests/test-quotearg.c: Likewise.
23178         * tests/test-version-etc.c: Likewise.
23179         * tests/test-xalloc-die.c: Likewise.
23180         * tests/test-xfprintf-posix.c: Likewise.
23181         * tests/test-xprintf-posix.c: Likewise.
23182         * tests/test-xvasprintf.c: Likewise.
23183
23184         tests: avoid compiler warnings
23185         * tests/test-fcntl.c (main): Delete unused parameters.
23186         * tests/test-freopen-safer.c (main): Likewise.
23187         * tests/test-xalloc-die.c (main): Mark unused parameters.
23188         * tests/test-fseeko.c (main): Likewise.
23189         * tests/test-ftello.c (main): Likewise.
23190         * tests/test-nanosleep.c (main): Avoid declaration warning.
23191         * tests/test-sleep.c (main): Likewise.
23192         * tests/test-unsetenv.c (main): Silence warning about string
23193         literal.
23194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23195
23196 2009-12-23  Bruno Haible  <bruno@clisp.org>
23197
23198         * tests/test-localename.c (test_locale_name): New function, extracted
23199         from main. Also test mixed situations.
23200         (test_locale_name_posix, test_locale_name_environ,
23201         test_locale_name_default): New functions.
23202         (main): Invoke them all.
23203         * modules/localename-tests (configure.ac): Test for newlocale.
23204
23205 2009-12-23  Bruno Haible  <bruno@clisp.org>
23206
23207         unistd: Ensure getcwd gets declared before being overridden.
23208         * lib/unistd.in.h: Conditionally include <io.h>.
23209
23210 2009-12-22  Bruno Haible  <bruno@clisp.org>
23211
23212         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23213         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23214         (gl_WCHAR_H): Invoke it.
23215         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23216         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23217         Reported by Karl Berry <karl@freefriends.org>.
23218
23219 2009-12-22  Eric Blake  <ebb9@byu.net>
23220
23221         math, unistd: avoid redundant includes
23222         * lib/math.in.h (isnan): No need to re-include <math.h>.
23223         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23224
23225         getsubopt: work around cygwin bug
23226         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23227         avoid conflicting with system getsubopt.
23228         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23229         bug.
23230
23231         getopt: synchronize from glibc
23232         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23233         parameter order.  Adjust all callers.
23234         (_getopt_internal_r, main): Adjust quoting in error messages.
23235         Drop considerations for outdated POSIX 1003.2 error message.
23236         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23237         callers.
23238         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23239
23240         test-getopt: test stderr behavior
23241         * modules/getopt-posix-tests (Depends-on): Add dup2.
23242         * tests/test-getopt.c (ASSERT): Avoid stderr.
23243         (main): Move stderr to a temporary file.
23244         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23245         Instead, add parameter to inform caller if output occurred.
23246         (test_getopt): Adjust all existing tests to expect silence, and
23247         add new tests of leading ":".
23248         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23249         glibc shortcomings with leading "-:" or "+:" in optstring.
23250         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23251         Likewise.
23252         * doc/posix-functions/getopt.texi (getopt): Likewise.
23253
23254         test-getopt: enhance test
23255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23256         supports optind=0.
23257         * tests/test-getopt.c (OPTIND_MIN): Move...
23258         * tests/test-getopt.h (OPTIND_MIN): ...here.
23259         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23260         Require that optind=0 works, since modern BSD supports it in
23261         addition to optreset, and since coreutils expects it.
23262         (test_getopt_long_only): New test.
23263         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23264         glibc shortcomings with 'W;', and enforcement of optind=0.
23265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23266         Likewise.
23267
23268 2009-12-21  Bruno Haible  <bruno@clisp.org>
23269
23270         localename: Improvements for MacOS X and Cygwin.
23271         * lib/localename.h (gl_locale_name_environ): New declaration.
23272         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23273         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23274         (gl_locale_name_posix): Invoke it.
23275         (gl_locale_name_default): Add comments. Use Windows native API also on
23276         Cygwin.
23277
23278 2009-12-21  Bruno Haible  <bruno@clisp.org>
23279
23280         Update list of Win32 locale ids.
23281         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23282         (LANG_SAMI): Renamed from LANG_SAAMI.
23283         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23284         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23285         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23286         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23287         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23288         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23289         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23290         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23291         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23292         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23293         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23294         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23295         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23296         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23297         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23298         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23299         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23300         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23301         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23302         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23303         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23304         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23305         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23306         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23307         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23308         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23309         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23310         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23311         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23312         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23313         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23314         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23315         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23316         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23317         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23318         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23319         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23320         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23321         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23322         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23323         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23324         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23325         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23326         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23327         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23328         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23329         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23330         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23331         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23332         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23333         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23334         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23335         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23336         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23337         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23338         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23339         Add more languages and countries for Sami, Sorbian. Add more countries
23340         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23341         for Pashto. Change country for Syriac, Tswana.
23342
23343 2009-12-21  Eric Blake  <ebb9@byu.net>
23344
23345         test-utimens: avoid spurious failure
23346         * tests/test-chown.h (nap): Factor...
23347         * tests/nap.h: ...into new file.
23348         * tests/test-lchown.h (nap): Avoid duplication.
23349         * tests/test-utimens-common.h (nap): Use shared implementation,
23350         necessary on file systems with 1-second resolution.
23351         * modules/chown-tests (Files): Include new file.
23352         * modules/fdutimensat-tests (Files): Likewise.
23353         * modules/futimens-tests (Files): Likewise.
23354         * modules/lchown-tests (Files): Likewise.
23355         * modules/openat-tests (Files): Likewise.
23356         * modules/utimens-tests (Files): Likewise.
23357         * modules/utimensat-tests (Files): Likewise.
23358
23359 2009-12-19  Eric Blake  <ebb9@byu.net>
23360
23361         futimens, utimensat: work around Linux bug
23362         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23363         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23364         * lib/utimensat.c (rpl_utimensat): Work around it.
23365         * lib/futimens.c (rpl_futimens): Adjust comment.
23366
23367         utimens: work around Linux ctime bug
23368         * lib/utimens.c (detect_ctime_bug): New helper function.
23369         (update_timespec): Differentiate between workaround needed for
23370         this bug vs. what is needed for systems that lack utimensat.
23371         (fdutimens, lutimens): Work around bug.
23372
23373         utimens: check for ctime update
23374         * tests/test-utimens-common.h (check_ctime): Define.
23375         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23376         * tests/test-futimens.h (test_futimens): Likewise.
23377         * tests/test-lutimens.h (test_lutimens): Likewise.
23378         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23379         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23380
23381 2009-12-19  Bruno Haible  <bruno@clisp.org>
23382
23383         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23384         * tests/test-dprintf-posix2.sh: New file.
23385         * tests/test-dprintf-posix2.c: New file.
23386         * modules/dprintf-posix-tests (Files): Add them.
23387         (configure.ac): Check for getrlimit and setrlimit.
23388         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23389
23390 2009-12-19  Bruno Haible  <bruno@clisp.org>
23391
23392         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23393         * tests/test-fprintf-posix3.sh: New file.
23394         * tests/test-fprintf-posix3.c: New file.
23395         * modules/fprintf-posix-tests (Files): Add them.
23396         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23397
23398 2009-12-19  Eric Blake  <ebb9@byu.net>
23399
23400         dirfd: fix prototype
23401         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23402         * lib/dirfd.c (dirfd): Likewise.
23403
23404         canonicalize: reduce memory usage
23405         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23406         allocation to size.
23407         Reported by Solar Designer <solar@openwall.com>.
23408
23409 2009-12-19  Bruno Haible  <bruno@clisp.org>
23410
23411         New module attribute 'Applicability'.
23412         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23413         * gnulib-tool: New option --extract-applicability.
23414         (func_usage): Document it.
23415         (sed_extract_prog): Recognize it.
23416         (func_get_applicability): New function.
23417         (func_import): Generalize handling of 'link-warning' module.
23418         * modules/link-warning (Applicability): New section.
23419         * modules/arg-nonnull (Applicability): New section.
23420         Repoted by Simon Josefsson <simon@josefsson.org>.
23421
23422 2009-12-19  Bruno Haible  <bruno@clisp.org>
23423
23424         fflush: tweak
23425         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23426         * lib/fseeko.c (rpl_fseeko): Likewise.
23427
23428 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23429
23430         * lib/gl_list.h: Fix typo in comment.
23431
23432 2009-12-16  Eric Blake  <ebb9@byu.net>
23433
23434         fcntl: use to simplify other modules
23435         * modules/cloexec (Depends-on): Add fcntl.
23436         * modules/fchdir (Depends-on): Likewise.
23437         * modules/fd-safer-flag (Depends-on): Likewise.
23438         * modules/unistd-safer (Depends-on): Likewise.
23439         * modules/dup3 (configure.ac): Set module indicator.
23440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23441         missing.
23442         * lib/fchdir.c (_gl_register_dup): Fix comment.
23443         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23444         * lib/dup-safer.c (dup_safer): Likewise.
23445         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23446         * lib/dup3.c (dup3): Likewise.
23447         * tests/test-fchdir.c (main): Enhance test.
23448         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23449
23450         fcntl: port portions of fcntl to mingw
23451         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23452         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23453         replacement for mingw.
23454         * modules/fcntl (Description): Update.
23455         (Depends-on): Add dup2.
23456         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23457         * modules/fcntl-h (Makefile.am): Substitute it.
23458         * lib/fcntl.in.h (fcntl): Update declaration.
23459         (F_DUPFD, F_GETFD): New macros, when needed.
23460         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23461         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23462         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23463         we now guarantee.
23464
23465         fcntl: work around cygwin bug in F_DUPFD
23466         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23467         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23468         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23469         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23470         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23471
23472         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23473         * modules/fcntl (Files): List new files.
23474         (configure.ac): Run a test.
23475         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23476         * lib/fcntl.c (rpl_fcntl): Likewise.
23477         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23478         (gl_FCNTL_H): Always replace fcntl.h.
23479         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23480         * lib/fcntl.in.h (fcntl): Declare replacement.
23481         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23482         needed, plus a witness.
23483         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23484         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23485         * tests/test-fcntl.c: New file.
23486         * modules/fcntl-tests: Likewise.
23487
23488         binary-io: avoid potential compilation warning
23489         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23490         directives.
23491
23492         fflush: avoid compilation error on NetBSD
23493         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23494         between off_t and fpos_t, since the latter is sometimes a struct.
23495         * lib/fseeko.c (rpl_fseeko): Likewise.
23496         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23497
23498 2009-12-15  Eric Blake  <ebb9@byu.net>
23499
23500         fcntl-h, stdio, sys_ioctl: fix declarations
23501         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23502         function must not take arguments.
23503         * lib/sys_ioctl.in.h (ioctl): Likewise.
23504         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23505         (open): Add a link warning.
23506
23507 2009-12-15  Jim Meyering  <meyering@redhat.com>
23508
23509         areadlink, areadlink-with-size: relax license to LGPLv2+
23510         * modules/areadlink (License): Relax to LGPLv2+.
23511         * modules/areadlink-with-size (License): Likewise.
23512
23513 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23514             Bruno Haible  <bruno@clisp.org>
23515
23516         *printf: Fix memory leak.
23517         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23518         * lib/vfprintf.c (vfprintf): Likewise.
23519         * lib/dprintf.c (dprintf): Likewise.
23520         * lib/vdprintf.c (vdprintf): Likewise.
23521
23522 2009-12-14  Eric Blake  <ebb9@byu.net>
23523
23524         accept4: adjust module dependencies
23525         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23526
23527         utimens: one more try at avoiding compiler warning
23528         * lib/utimens.c (lutimens): Lower scope of result.
23529
23530 2009-12-13  Bruno Haible  <bruno@clisp.org>
23531
23532         Move the malloc checking from module 'list' to new module 'xlist'.
23533         * modules/xlist: New file.
23534         * lib/gl_xlist.h: New file.
23535         * lib/gl_xlist.c: New file.
23536         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23537         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23538         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23539         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23540         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23541         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23542         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23543         gl_sortedlist_nx_add): New declarations.
23544         (struct gl_list_implementation): Rename and change methods accordingly.
23545         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23546         (gl_list_nx_create): Renamed from gl_list_create.
23547         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23548         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23549         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23550         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23551         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23552         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23553         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23554         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23555         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23556         gl_list_create_empty.
23557         (gl_list_nx_create): Renamed from gl_list_create.
23558         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23559         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23560         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23561         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23562         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23563         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23564         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23565         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23566         * lib/gl_array_list.c: Don't include xalloc.h.
23567         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23568         NULL upon out-of-memory.
23569         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23570         out-of-memory.
23571         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23572         Change return type to 'int'.
23573         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23574         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23575         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23576         upon out-of-memory.
23577         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23578         upon out-of-memory.
23579         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23580         upon out-of-memory.
23581         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23582         upon out-of-memory.
23583         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23584         out-of-memory.
23585         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23586         Update.
23587         (gl_array_list_implementation): Update.
23588         * lib/gl_carray_list.c: Don't include xalloc.h.
23589         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23590         Return NULL upon out-of-memory.
23591         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23592         out-of-memory.
23593         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23594         Change return type to 'int'.
23595         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23596         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23597         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23598         upon out-of-memory.
23599         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23600         upon out-of-memory.
23601         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23602         out-of-memory.
23603         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23604         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23605         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23606         Update.
23607         (gl_carray_list_implementation): Update.
23608         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23609         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23610         gl_linked_create_empty. Return NULL upon out-of-memory.
23611         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23612         out-of-memory.
23613         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23614         Change return type to 'int'. Return -1 upon out-of-memory.
23615         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23616         out-of-memory.
23617         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23618         upon out-of-memory.
23619         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23620         upon out-of-memory.
23621         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23622         NULL upon out-of-memory.
23623         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23624         upon out-of-memory.
23625         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23626         out-of-memory.
23627         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23628         Update.
23629         * lib/gl_linked_list.c: Don't include xalloc.h.
23630         (gl_linked_list_implementation): Update.
23631         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23632         (add_to_bucket): Change return type to 'int'.
23633         (gl_linkedhash_list_implementation): Update.
23634         * lib/gl_anytree_list1.h (free_subtree): New function.
23635         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23636         gl_tree_create_empty. Return NULL upon out-of-memory.
23637         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23638         Change return type to 'int'. Return -1 upon out-of-memory.
23639         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23640         out-of-memory.
23641         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23642         (gl_tree_remove_node): New function, moved here from
23643         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23644         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23645         Update.
23646         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23647         malloc, not xmalloc. Return NULL upon out-of-memory.
23648         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23649         out-of-memory.
23650         (gl_tree_remove_node_from_tree): New function, extracted from
23651         gl_tree_remove_node.
23652         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23653         upon out-of-memory.
23654         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23655         out-of-memory.
23656         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23657         upon out-of-memory.
23658         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23659         upon out-of-memory.
23660         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23661         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23662         not xmalloc. Return NULL upon out-of-memory.
23663         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23664         out-of-memory.
23665         (gl_tree_remove_node_from_tree): New function, extracted from
23666         gl_tree_remove_node.
23667         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23668         upon out-of-memory.
23669         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23670         out-of-memory.
23671         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23672         upon out-of-memory.
23673         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23674         upon out-of-memory.
23675         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23676         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23677         gl_anytree_list1.h before gl_anyavltree_list2.h.
23678         (gl_avltree_list_implementation): Update.
23679         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23680         gl_anytree_list1.h before gl_anyavltree_list2.h.
23681         (gl_rbtree_list_implementation): Update.
23682         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23683         Change return type to 'int'. Return -1 upon out-of-memory. Use
23684         __builtin_expect.
23685         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23686         (gl_avltreehash_list_implementation): Update.
23687         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23688         (gl_rbtreehash_list_implementation): Update.
23689         * modules/array-list (Depends-on): Remove xalloc.
23690         * modules/carray-list (Depends-on): Likewise.
23691         * modules/linked-list (Depends-on): Likewise.
23692         * modules/linkedhash-list (Depends-on): Likewise.
23693         * modules/avltree-list (Depends-on): Likewise.
23694         * modules/rbtree-list (Depends-on): Likewise.
23695         * modules/avltreehash-list (Depends-on): Likewise.
23696         * modules/rbtreehash-list (Depends-on): Likewise.
23697
23698         * modules/xsublist: New file.
23699         * lib/gl_xsublist.h: New file.
23700         * lib/gl_xsublist.c: New file.
23701         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23702         (gl_sublist_nx_create): New declaration.
23703         * lib/gl_sublist.c: Don't include xalloc.h.
23704         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23705         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23706         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23707         Change return type to 'int'. Return -1 upon out-of-memory.
23708         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23709         upon out-of-memory.
23710         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23711         NULL upon out-of-memory.
23712         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23713         upon out-of-memory.
23714         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23715         NULL upon out-of-memory.
23716         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23717         NULL upon out-of-memory.
23718         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23719         upon out-of-memory.
23720         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23721         (gl_sublist_list_implementation): Update.
23722         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23723         upon out-of-memory.
23724         * modules/sublist (Depends-on): Remove xalloc.
23725
23726         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23727         * tests/test-carray_list.c: Likewise.
23728         * tests/test-linked_list.c: Likewise.
23729         * tests/test-linkedhash_list.c: Likewise.
23730         * tests/test-avltree_list.c: Likewise.
23731         * tests/test-rbtree_list.c: Likewise.
23732         * tests/test-avltreehash_list.c: Likewise.
23733         * tests/test-rbtreehash_list.c: Likewise.
23734         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23735         * modules/carray-list-tests (Makefile.am): Likewise.
23736         * modules/linked-list-tests (Makefile.am): Likewise.
23737         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23738         * modules/avltree-list-tests (Makefile.am): Likewise.
23739         * modules/rbtree-list-tests (Makefile.am): Likewise.
23740         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23741         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23742
23743         * NEWS: Mention the changes.
23744
23745         * lib/clean-temp.c: Include gl_xlist.h.
23746         * modules/clean-temp (Depends-on): Add xlist.
23747
23748         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23749         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23750
23751         * tests/test-array_oset.c: Include gl_xlist.h.
23752         * modules/array-oset-tests (Depends-on): Add xlist.
23753
23754         Reported by José E. Marchesi <jemarch@gnu.org>.
23755
23756 2009-12-13  Bruno Haible  <bruno@clisp.org>
23757
23758         Move the malloc checking from module 'oset' to new module 'xoset'.
23759         * modules/xoset: New file.
23760         * lib/gl_xoset.h: New file.
23761         * lib/gl_xoset.c: New file.
23762         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23763         declarations.
23764         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23765         (struct gl_oset_implementation): Rename and change methods accordingly.
23766         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23767         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23768         'int'. Mark as __warn_unused_result__.
23769         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23770         gl_oset_create_empty.
23771         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23772         'int'.
23773         * lib/gl_array_oset.c: Don't include xalloc.h.
23774         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23775         malloc, not xmalloc.
23776         (grow): Change return type to 'int'. Don't call xalloc_die.
23777         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23778         to 'int'.
23779         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23780         'int'.
23781         (gl_array_oset_implementation): Update.
23782         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23783         gl_tree_create_empty.
23784         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23785         'int'.
23786         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23787         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23788         xmalloc.
23789         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23790         not xmalloc.
23791         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23792         xmalloc.
23793         (gl_avltree_oset_implementation): Update.
23794         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23795         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23796         xmalloc.
23797         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23798         not xmalloc.
23799         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23800         xmalloc.
23801         (gl_rbtree_oset_implementation): Update.
23802         * modules/array-oset (Depends-on): Remove xalloc.
23803         * modules/avltree-oset (Depends-on): Likewise.
23804         * modules/rbtree-oset (Depends-on): Likewise.
23805         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23806         * tests/test-avltree_oset.c: Likewise.
23807         * tests/test-rbtree_oset.c: Likewise.
23808         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23809         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23810         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23811         * NEWS: Mention the change.
23812
23813 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23814
23815         maint.mk: allow a project to override release-prep commands
23816         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23817         commands into a new rule.
23818         (release-prep): New rule.
23819         (release-prep-hook): New overridable variable.
23820
23821 2009-12-13  Bruno Haible  <bruno@clisp.org>
23822
23823         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23824
23825 2009-12-13  Jim Meyering  <meyering@redhat.com>
23826
23827         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23828         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23829
23830 2009-12-12  Bruno Haible  <bruno@clisp.org>
23831
23832         duplocale: Tweak.
23833         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23834
23835 2009-12-12  Karl Berry  <karl@gnu.org>
23836
23837         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23838
23839 2009-12-12  Bruno Haible  <bruno@clisp.org>
23840
23841         * m4/po.m4: Undo incorrect untabification.
23842
23843 2009-12-12  Bruno Haible  <bruno@clisp.org>
23844
23845         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23846         * modules/c-strtod (Depends-on): Add locale.
23847         * modules/c-strtold (Depends-on): Likewise.
23848
23849 2009-12-12  Bruno Haible  <bruno@clisp.org>
23850
23851         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23852
23853 2009-12-11  Eric Blake  <ebb9@byu.net>
23854
23855         setenv: relax requirement in light of POSIX ruling
23856         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23857         not NULL.
23858         * tests/test-setenv.c (main): Relax test.
23859         * tests/test-unsetenv.c (main): Likewise.
23860         * doc/posix-functions/setenv.texi (setenv): Document this.
23861         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23862
23863 2009-12-11  Bruno Haible  <bruno@clisp.org>
23864
23865         New module 'fd-safer-flag'.
23866         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23867         * lib/dup-safer.c (dup_safer_flag): Remove function.
23868         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23869         * lib/fd-safer.c (fd_safer_flag): Remove function.
23870         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23871         * modules/cloexec (configure.ac): Drop indicator macro.
23872         * modules/fd-safer-flag: New file.
23873         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23874         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23875         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23876
23877 2009-12-11  Bruno Haible  <bruno@clisp.org>
23878
23879         Tests for module 'nl_langinfo'.
23880         * modules/nl_langinfo-tests: New file.
23881         * tests/test-nl_langinfo.sh: New file.
23882         * tests/test-nl_langinfo.c: New file.
23883
23884         New module 'nl_langinfo'.
23885         * lib/nl_langinfo.c: New file.
23886         * m4/nl_langinfo.m4: New file.
23887         * modules/nl_langinfo: New file.
23888         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23889
23890 2009-12-11  Bruno Haible  <bruno@clisp.org>
23891
23892         Tests for module 'langinfo'.
23893         * modules/langinfo-tests: New file.
23894         * tests/test-langinfo.c: New file.
23895
23896         New module 'langinfo'.
23897         * lib/langinfo.in.h: New file.
23898         * m4/langinfo_h.m4: New file.
23899         * modules/langinfo: New file.
23900         * doc/posix-headers/langinfo.texi: Mention the new module.
23901
23902 2009-12-11  Bruno Haible  <bruno@clisp.org>
23903
23904         * lib/config.charset: Untabify.
23905
23906 2009-12-11  Bruno Haible  <bruno@clisp.org>
23907
23908         * modules/unistd-safer (configure.ac): Drop indicator macro.
23909
23910 2009-12-11  Bruno Haible  <bruno@clisp.org>
23911
23912         Move pipe2-safer code to its own file.
23913         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23914         * lib/pipe-safer.c (pipe2_safer): Remove function.
23915         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23916         (Makefile.am): Add it to lib_SOURCES.
23917
23918 2009-12-10  Bruno Haible  <bruno@clisp.org>
23919
23920         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23921
23922 2009-12-10  Bruno Haible  <bruno@clisp.org>
23923
23924         Declare which arguments expect non-NULL values, for GCC and clang.
23925         * build-aux/arg-nonnull.h: New file.
23926         * modules/arg-nonnull: New file.
23927         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23928         (inet_ntop, inet_pton): Use it.
23929         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23930         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23931         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23932         (open, openat): Use it.
23933         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23934         (fnmatch): Use it.
23935         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23936         (getopt, getopt_long, getopt_long_only): Use it.
23937         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23938         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23939         Use it.
23940         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23941         (iconv_open): Use it.
23942         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23943         (strtoimax, strtoumax): Use it.
23944         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23945         (duplocale): Use it.
23946         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23947         (frexp, frexpl): Use it.
23948         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23949         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23950         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23951         (tsearch, tfind, tdelete, twalk): Use it.
23952         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23953         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23954         sigpending): Use it.
23955         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23956         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23957         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23958         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23959         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23960         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23961         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23962         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23963         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23964         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23965         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23966         Use it.
23967         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23968         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23969         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23970         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23971         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23972         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23973         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23974         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23975         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23976         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23977         strtoull, unsetenv): Use it.
23978         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23979         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23980         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23981         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23982         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23983         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23984         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23985         (strcasecmp, strncasecmp): Use it.
23986         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23987         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23988         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23989         rpl_setsockopt): Use it.
23990         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23991         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23992         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23993         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23994         (gettimeofday): Use it.
23995         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23996         (times): Use it.
23997         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23998         (uname): Use it.
23999         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24000         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24001         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24002         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24003         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24004         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24005         unlinkat, write): Use it.
24006         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24007         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24008         * lib/argv-iter.h: Include arg-nonnull.h.
24009         (_ATTRIBUTE_NONNULL_): Remove macro.
24010         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24011         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24012         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24013         optimization.
24014         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24015         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24016         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24017         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24018         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24019         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24020         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24021         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24022         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24023         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24024         * modules/dirent (Depends-on): Add arg-nonnull.
24025         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24026         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24027         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24028         * modules/fnmatch (Depends-on): Add arg-nonnull.
24029         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24030         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24031         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24032         * modules/glob (Depends-on): Add arg-nonnull.
24033         (Makefile.am): Insert arg-nonnull.h into glob.h.
24034         * modules/iconv_open (Depends-on): Add arg-nonnull.
24035         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24036         * modules/inttypes (Depends-on): Add arg-nonnull.
24037         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24038         * modules/locale (Depends-on): Add arg-nonnull.
24039         (Makefile.am): Insert arg-nonnull.h into locale.h.
24040         * modules/math (Depends-on): Add arg-nonnull.
24041         (Makefile.am): Insert arg-nonnull.h into math.h.
24042         * modules/netdb (Depends-on): Add arg-nonnull.
24043         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24044         * modules/search (Depends-on): Add arg-nonnull.
24045         (Makefile.am): Insert arg-nonnull.h into search.h.
24046         * modules/signal (Depends-on): Add arg-nonnull.
24047         (Makefile.am): Insert arg-nonnull.h into signal.h.
24048         * modules/spawn (Depends-on): Add arg-nonnull.
24049         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24050         * modules/stdio (Depends-on): Add arg-nonnull.
24051         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24052         * modules/stdlib (Depends-on): Add arg-nonnull.
24053         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24054         * modules/string (Depends-on): Add arg-nonnull.
24055         (Makefile.am): Insert arg-nonnull.h into string.h.
24056         * modules/strings (Depends-on): Add arg-nonnull.
24057         (Makefile.am): Insert arg-nonnull.h into strings.h.
24058         * modules/sys_socket (Depends-on): Add arg-nonnull.
24059         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24060         * modules/sys_stat (Depends-on): Add arg-nonnull.
24061         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24062         * modules/sys_time (Depends-on): Add arg-nonnull.
24063         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24064         * modules/sys_times (Depends-on): Add arg-nonnull.
24065         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24066         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24067         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24068         * modules/time (Depends-on): Add arg-nonnull.
24069         (Makefile.am): Insert arg-nonnull.h into time.h.
24070         * modules/unistd (Depends-on): Add arg-nonnull.
24071         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24072         * modules/wchar (Depends-on): Add arg-nonnull.
24073         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24074         * modules/argv-iter (Depends-on): Add arg-nonnull.
24075         * tests/test-canonicalize.c (null_ptr): New function.
24076         (main): Use it.
24077         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24078         (main): Use it.
24079         * tests/test-memmem.c (null_ptr): New function.
24080         (main): Use it.
24081         Reported by Jim Meyering.
24082
24083 2009-12-10  Bruno Haible  <bruno@clisp.org>
24084
24085         Use spaces for indentation, not tabs.
24086         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24087         * m4/*.m4: Untabify.
24088         * build-aux/*.h: Untabify.
24089         * tests/**/*.[hc]: Untabify.
24090         * README: New section "Indent with spaces, not TABs", based on
24091         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24092         * NEWS: Mention the change.
24093
24094 2009-12-10  Bruno Haible  <bruno@clisp.org>
24095
24096         pty test: Fix link error.
24097         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24098         test_pty_LDADD.
24099
24100 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24101
24102         * modules/pty: New file.
24103         * modules/pty-tests: New file.
24104         * m4/pty.m4: New file.
24105         * tests/test-pty.c: New file.
24106         * doc/glibc-headers/pty.texi: Modified.
24107         * doc/glibc-functions/forkpty.texi: Modified.
24108         * doc/glibc-functions/openpty.texi: Modified.
24109
24110 2009-12-10  Bruno Haible  <bruno@clisp.org>
24111
24112         Avoid syntax error in C++ mode.
24113         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24114
24115 2009-12-10  Bruno Haible  <bruno@clisp.org>
24116
24117         Use sed with option -e.
24118         * gnulib-tool (func_version, func_emit_copyright_notice,
24119         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24120         option -e to sed.
24121         * modules/link-warning (Makefile.am): Likewise.
24122
24123 2009-12-10  Jim Meyering  <meyering@redhat.com>
24124
24125         mgetgroups: do not write bytes beyond end of malloc'd buffer
24126         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24127         username, we call getgroups with a one-element-shorter buffer,
24128         but still told it the length was original, max_n_groups.
24129
24130 2009-12-09  Eric Blake  <ebb9@byu.net>
24131
24132         cloexec: relax license
24133         * modules/cloexec (Maintainer): Add myself.
24134         (License): Use LGPL, not GPL.
24135
24136         link-warning: optimize generation
24137         * modules/link-warning (Makefile.am): Reduce process usage.
24138
24139 2009-12-09  Bruno Haible  <bruno@clisp.org>
24140
24141         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24142         workaround was added on 2009-11-17.
24143
24144 2009-12-09  Jim Meyering  <meyering@redhat.com>
24145             Bruno Haible  <bruno@clisp.org>
24146
24147         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24148         * modules/link-warning (Makefile.am): Make the comment-removing sed
24149         command more robust in the face of bootstrap-prepended comment lines.
24150
24151 2009-12-09  Bruno Haible  <bruno@clisp.org>
24152
24153         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24154         most one group.
24155
24156 2009-12-09  Simon Josefsson <simon@josefsson.org>
24157             Bruno Haible  <bruno@clisp.org>
24158
24159         * build-aux/link-warning.h: Add copyright notice.
24160         * modules/link-warning (Makefile.am): Generate link-warning.h from
24161         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24162         * NEWS: Mention change in link-warning module.
24163         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24164         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24165         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24166         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24167         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24168         * modules/math (Makefile.am): Add dependency to math.h.
24169         * modules/search (Makefile.am): Add dependency to search.h.
24170         * modules/signal (Makefile.am): Add dependency to signal.h.
24171         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24172         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24173         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24174         * modules/string (Makefile.am): Add dependency to string.h.
24175         * modules/strings (Makefile.am): Add dependency to strings.h.
24176         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24177         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24178         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24179         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24180         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24181         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24182         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24183         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24184         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24185
24186 2009-12-09  Bruno Haible  <bruno@clisp.org>
24187
24188         fchdir: Optimize away rpl_fstat when possible.
24189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24190         REPLACE_OPEN_DIRECTORY.
24191         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24192
24193 2009-12-09  Bruno Haible  <bruno@clisp.org>
24194
24195         * lib/fchdir.c: Update comment.
24196
24197 2009-12-09  Bruno Haible  <bruno@clisp.org>
24198
24199         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24200
24201 2009-12-08  Eric Blake  <ebb9@byu.net>
24202
24203         fchdir: avoid memory leak on re-registration.
24204         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24205
24206 2009-12-08  Jim Meyering  <meyering@redhat.com>
24207
24208         init.sh: avoid Solaris 10 /bin/sh portability problem
24209         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24210         sourced script:
24211           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24212           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24213           bar
24214         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24215         and two tests used that idiom.
24216         * tests/init.sh: Update suggested usage comments.
24217         (path_prepend_): New function, to be used in place
24218         of the --src-path=DIR option.
24219         (setup_): Move PATH-prepending code into path_prepend_.
24220         * tests/test-pread.sh: Adapt to new usage.
24221         * tests/test-xalloc-die.sh: Likewise.
24222
24223 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24224
24225         * doc/gnulib.texi (Glibc pty.h): Add.
24226         * doc/glibc-functions/forkpty.texi: Add.
24227         * doc/glibc-functions/openpty.texi: Add.
24228         Suggested by Bruno Haible.
24229
24230 2009-12-08  Eric Blake  <ebb9@byu.net>
24231
24232         fchdir: fix logic bugs
24233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24234         * tests/test-fchdir.c (main): Enhance test.
24235         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24236         is in use.
24237
24238         dup2: fix logic bugs
24239         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24240         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24241         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24242         exists.
24243         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24244
24245 2009-12-07  Eric Blake  <ebb9@byu.net>
24246
24247         unlink: fix m4 detection
24248         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24249
24250         unistd-safer: add unit test
24251         * modules/unistd-safer-tests: New file.
24252         * tests/test-dup-safer.c: Likewise.
24253         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24254         * tests/test-dup2.c (setmode): Likewise.
24255         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24256
24257         cloexec: preserve text vs. binary across dup_cloexec
24258         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24259         mode.
24260         * modules/dup2-tests (Depends-on): Add binary-io.
24261         * modules/cloexec-tests (Depends-on): Likewise.
24262         * tests/test-dup2.c (setmode, is_mode): New helpers.
24263         (main): Add tests that translation mode is preserved.
24264         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24265         Reported by Bruno Haible.
24266
24267         mgetgroups: reduce duplicate listings
24268         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24269         resulting array.
24270         * tests/test-chown.h (test_chown): Simplify client.
24271         * tests/test-lchown.h (test_lchown): Likewise.
24272
24273 2009-12-06  Bruno Haible  <bruno@clisp.org>
24274
24275         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24276         value.
24277
24278 2009-12-06  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/progname.c: Include stdio.h, stdlib.h.
24281         (set_program_name): Reject a NULL argument.
24282
24283 2009-12-05  Eric Blake  <ebb9@byu.net>
24284
24285         pipe2-safer: new module
24286         * modules/pipe2-safer: New file.
24287         * lib/unistd-safer.h (pipe2_safer): New prototype.
24288         * lib/unistd--.h (pipe2): New wrapper.
24289         * lib/pipe-safer.c (pipe2_safer): New function.
24290         * modules/pipe (Depends-on): Add pipe2-safer.
24291         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24292
24293         stdlib-safer: preserve cloexec flag for mkostemp[s]
24294         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24295         fd_safer_flag.
24296
24297         unistd-safer: allow preservation of cloexec status via flag
24298         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24299         prototypes.
24300         * lib/dup-safer.c (dup_safer_flag): New function.
24301         * lib/fd-safer.c (fd_safer_flag): Likewise.
24302         * modules/cloexec (configure.ac): Set witness.
24303
24304         test-dup2: enhance test
24305         * modules/dup2-tests (Depends-on): Add cloexec.
24306         * tests/test-dup2.c (main): Enhance test.
24307
24308         cloexec: add dup_cloexec
24309         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24310         header and comments.
24311         * lib/cloexec.c (set_cloexec_flag): Add comments.
24312         (dup_cloexec): New function, with mingw implementation borrowed
24313         from...
24314         * lib/w32spawn.h (dup_noinherit): ...here.
24315         * modules/execute (Depends-on): Add cloexec.
24316         * modules/pipe (Depends-on): Likewise.
24317         * modules/cloexec (Depends-on): Add dup2.
24318         * modules/cloexec-tests (Files): New file.
24319         * tests/test-cloexec.c: Likewise.
24320
24321         test-xalloc-die: fix test for mingw
24322         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24323         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24324         directory and .exe suffix off argv[0] output.
24325
24326         test-fseeko: fix test for mingw
24327         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24328         than undefining fseek, so test will pass on mingw.
24329
24330 2009-12-05  Bruno Haible  <bruno@clisp.org>
24331
24332         * lib/progname.h (set_program_name): Clarify specification.
24333         * lib/progname.c (set_program_name): Likewise.
24334         Reported by Jim Meyering.
24335
24336 2009-12-05  Jim Meyering  <meyering@redhat.com>
24337
24338         maint.mk: backslash-escape parens in default regexp
24339         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24340         backslash-escape the literal parentheses.
24341
24342         maint.mk: news-date-check: use grep -E
24343         * top/maint.mk (today): Define a Make variable, not a...
24344         (news-date-check): ...shell variable.
24345         (news-date-regexp): Use the Make variable.
24346         Use grep's -E option.  Change the failing diagnostic to mention
24347         the variable, $(news-date-regexp).
24348
24349 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24350
24351         maintainer-makefile: allow customization of NEWS entry format
24352         * top/maint.mk (news-date-regexp): New overridable variable.
24353         (news-date-check): Use it.
24354
24355 2009-12-04  Eric Blake  <ebb9@byu.net>
24356
24357         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24358         * lib/mgetgroups.h (xgetgroups): New prototype.
24359         * lib/mgetgroups.c (xgetgroups): New wrapper.
24360         (mgetgroups): Handle ENOSYS.
24361         * modules/mgetgroups (Depends-on): Add realloc.
24362         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24363
24364         mgetgroups: avoid argument promotion issues with -1
24365         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24366         for invalid gid_t.
24367         * tests/test-chown.h (getegid, test_chown): Likewise.
24368         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24369
24370 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24371
24372         exclude: Fix header file problems.
24373         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24374
24375 2009-12-01  Jim Meyering  <meyering@redhat.com>
24376
24377         fts: fts_open: do not let an empty string cause immediate failure
24378         This is required in support of GNU rm, for which the command
24379         "rm A '' B" must process and remove both A and B, in spite of
24380         the empty string argument.
24381         * lib/fts.c (fts_open): Do not let the presence of an empty string
24382         cause fts_open to fail immediately.  Most fts-using tools must be
24383         able to process all arguments, in order, and can be expected to
24384         diagnose such arguments themselves.
24385
24386 2009-11-30  Eric Blake  <ebb9@byu.net>
24387
24388         utimens: fix compilation error
24389         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24390         Declare variable at right scope.
24391
24392 2009-11-29  Jim Meyering  <meyering@redhat.com>
24393
24394         bootstrap: handle perl-5.11's changed --version output
24395         * build-aux/bootstrap (get_version): Handle perl separately,
24396         since perl-5.11's --version output is different.
24397
24398 2009-11-28  Jim Meyering  <meyering@redhat.com>
24399
24400         userspec: depend on the inttostr module, too
24401         * modules/userspec (Depends-on): Add inttostr.
24402
24403         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24404         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24405         number of MAXUID when it evaluates to (uid_t) -1.
24406         Likewise for group ID.  Reported by Matt McCutchen in
24407         <http://savannah.gnu.org/bugs/?28113>
24408
24409         userspec: reformat to use spaces, not TABs
24410         * lib/userspec.c: Expand TABs to spaces.
24411         Add Emacs' "indent-tabs-mode: nil" hint.
24412
24413 2009-11-27  Eric Blake  <ebb9@byu.net>
24414
24415         getopt-gnu: flush out another BSD bug
24416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24417         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24418         flush out BSD bug.
24419         * tests/test-getopt.h (test_getopt): End lists with NULL.
24420         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24421         (test_getopt_long_posix): Enhance test.
24422         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24423         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24424         getopt-gnu.
24425         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24426         Likewise.
24427
24428 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24429
24430         * modules/idpriv-droptemp-tests (Notice): Fix text.
24431
24432 2009-11-27  Jim Meyering  <meyering@redhat.com>
24433
24434         test-xalloc-die: avoid spurious failure due to libtool argv difference
24435         In a libtool-enabled project, this test would fail due to a difference
24436         in the emitted program name, e.g.,
24437         -test-xalloc-die: memory exhausted
24438         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24439         Use program to avoid that.
24440         * modules/xalloc-die-tests (Depends-on): Add progname.
24441         * tests/test-xalloc-die.c: Include progname.h".
24442         (program_name): Remove decl.
24443         (main): Call set_program_name.
24444         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24445
24446 2009-11-26  Richard Jones  <rjones@redhat.com>
24447
24448         w32sock: leave win32 error in place.
24449         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24450
24451 2009-11-26  Eric Blake  <ebb9@byu.net>
24452
24453         init.sh: suggest to use skip_ and fail_ functions in comments
24454         * tests/init.sh: Add a sentence.
24455
24456 2009-11-25  Bruno Haible  <bruno@clisp.org>
24457
24458         init.sh: add documentation in comments
24459         * tests/init.sh: Add some developer and user documentation.
24460
24461 2009-11-26  Jim Meyering  <meyering@redhat.com>
24462
24463         init.sh: accommodate even those who specify bogus srcdir manually
24464         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24465         configure-time tests to be sanitized, so that there is no need to
24466         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24467         (with no double quotes) suffices.  However, since tests may be
24468         invoked manually, and since you may explicitly set srcdir to the
24469         name of a directory containing spaces, do quote its uses here.
24470         * tests/test-pread.sh: Likewise.
24471         Suggested by Bruno Haible.
24472
24473         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24474         * tests/test-pread.sh: Write no data into the pipe, because
24475         test-pread actually reads none.  This avoids a diagnostic,
24476         "bash: echo: write error: Broken pipe", that arises in the unusual
24477         event something is ignoring SIGPIPE, and might be interpreted
24478         as some sort of failure.  Reported by Bruno Haible.
24479
24480 2009-11-25  Jim Meyering  <meyering@redhat.com>
24481
24482         test-pread: cover failure with ESPIPE and EINVAL
24483         * tests/test-pread.c (main): Test for failure, too.
24484         * tests/test-pread.sh: Invoke with stdin on a pipe.
24485         Suggested by Eric Blake.
24486
24487         pread: improvement and fix
24488         * modules/pread (Depends-on): Depend on lseek, for portability to
24489         e.g., mingw.  Suggested by Eric Blake.
24490         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24491
24492         unistd.in.h: correct declaration of pread
24493         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24494         Reported by Richard W.M. Jones.
24495
24496         test-pread.sh: distribute the test script
24497         * modules/pread-tests (Files): Include test-pread.sh.
24498
24499         test-pread.sh: clean up
24500         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24501         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24502         That is unnecessary, since it's always ".".
24503         Suggestion from Eric Blake.
24504
24505         test-pread.sh: make executable
24506         * tests/test-pread.sh: Set executable bit.
24507         Reported by Eric Blake.
24508
24509         correct typo in test-pread.sh
24510         * tests/test-pread.sh: Add #! line.
24511
24512         test pread
24513         * tests/test-pread.c: New file.
24514         * tests/test-pread.sh: Likewise.
24515         * modules/pread-tests: Likewise.
24516
24517         pread: new module
24518         * modules/pread: New file.
24519         * lib/unistd.in.h (pread): Define/declare.
24520         * lib/pread.c (pread): New file.
24521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24522         * modules/unistd (Makefile.am): Substitute witnesses.
24523         * doc/posix-functions/pread.texi (pread): Update.
24524         * MODULES.html.sh: Add pread.
24525
24526 2009-11-25  Jim Meyering  <meyering@redhat.com>
24527
24528         tests/init.sh: new file to be used via most *.sh tests
24529         * tests/init.sh: New file.
24530
24531 2009-11-25  Eric Blake  <ebb9@byu.net>
24532
24533         utimens: work around older Linux failure with symlinks
24534         * lib/utimens.c (lutimensat_works_really): New variable.
24535         (fdutimens, lutimens): Use it to manage kernels that support
24536         nanosecond times on files, but not on symlinks.
24537         Reported by OndÅ™ej Vašík.
24538
24539         utimes: fix configure grammar
24540         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24541
24542 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24543
24544         regex: Fix fastmap for multibyte character ranges.
24545         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24546         characters when a multibyte character range is included.
24547
24548 2009-11-22  Andy Wingo  <wingo@pobox.com>
24549
24550         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24551         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24552
24553 2009-11-24  Bruno Haible  <bruno@clisp.org>
24554
24555         doc: Most *_l functions exist in MacOS X 10.5.
24556         * doc/posix-functions/duplocale.texi: Update platforms list.
24557         * doc/posix-functions/freelocale.texi: Likewise.
24558         * doc/posix-functions/newlocale.texi: Likewise.
24559         * doc/posix-functions/uselocale.texi: Likewise.
24560         * doc/posix-functions/isalnum_l.texi: Likewise.
24561         * doc/posix-functions/isalpha_l.texi: Likewise.
24562         * doc/posix-functions/isblank_l.texi: Likewise.
24563         * doc/posix-functions/iscntrl_l.texi: Likewise.
24564         * doc/posix-functions/isdigit_l.texi: Likewise.
24565         * doc/posix-functions/isgraph_l.texi: Likewise.
24566         * doc/posix-functions/islower_l.texi: Likewise.
24567         * doc/posix-functions/isprint_l.texi: Likewise.
24568         * doc/posix-functions/ispunct_l.texi: Likewise.
24569         * doc/posix-functions/isspace_l.texi: Likewise.
24570         * doc/posix-functions/isupper_l.texi: Likewise.
24571         * doc/posix-functions/iswalnum_l.texi: Likewise.
24572         * doc/posix-functions/iswalpha_l.texi: Likewise.
24573         * doc/posix-functions/iswblank_l.texi: Likewise.
24574         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24575         * doc/posix-functions/iswctype_l.texi: Likewise.
24576         * doc/posix-functions/iswdigit_l.texi: Likewise.
24577         * doc/posix-functions/iswgraph_l.texi: Likewise.
24578         * doc/posix-functions/iswlower_l.texi: Likewise.
24579         * doc/posix-functions/iswprint_l.texi: Likewise.
24580         * doc/posix-functions/iswpunct_l.texi: Likewise.
24581         * doc/posix-functions/iswspace_l.texi: Likewise.
24582         * doc/posix-functions/iswupper_l.texi: Likewise.
24583         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24584         * doc/posix-functions/isxdigit_l.texi: Likewise.
24585         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24586         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24587         * doc/posix-functions/strcoll_l.texi: Likewise.
24588         * doc/posix-functions/strfmon_l.texi: Likewise.
24589         * doc/posix-functions/strftime_l.texi: Likewise.
24590         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24591         * doc/posix-functions/strxfrm_l.texi: Likewise.
24592         * doc/posix-functions/tolower_l.texi: Likewise.
24593         * doc/posix-functions/toupper_l.texi: Likewise.
24594         * doc/posix-functions/towctrans_l.texi: Likewise.
24595         * doc/posix-functions/towlower_l.texi: Likewise.
24596         * doc/posix-functions/towupper_l.texi: Likewise.
24597         * doc/posix-functions/wcscoll_l.texi: Likewise.
24598         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24599         * doc/posix-functions/wctrans_l.texi: Likewise.
24600         * doc/posix-functions/wctype_l.texi: Likewise.
24601         * doc/glibc-functions/strptime_l.texi: Likewise.
24602         * doc/glibc-functions/strtod_l.texi: Likewise.
24603         * doc/glibc-functions/strtof_l.texi: Likewise.
24604         * doc/glibc-functions/strtol_l.texi: Likewise.
24605         * doc/glibc-functions/strtold_l.texi: Likewise.
24606         * doc/glibc-functions/strtoll_l.texi: Likewise.
24607         * doc/glibc-functions/strtoul_l.texi: Likewise.
24608         * doc/glibc-functions/strtoull_l.texi: Likewise.
24609         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24610         * doc/glibc-functions/wcstod_l.texi: Likewise.
24611         * doc/glibc-functions/wcstof_l.texi: Likewise.
24612         * doc/glibc-functions/wcstol_l.texi: Likewise.
24613         * doc/glibc-functions/wcstold_l.texi: Likewise.
24614         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24615         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24616         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24617
24618 2009-11-24  Bruno Haible  <bruno@clisp.org>
24619
24620         duplocale: Fix logic bug.
24621         * lib/duplocale.c: Don't include <langinfo.h>.
24622         (_NL_LOCALE_NAME): Remove macro.
24623         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24624         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24625
24626 2009-11-23  Jim Meyering  <meyering@redhat.com>
24627
24628         test-update-copyright: don't hard-code /usr/bin/perl
24629         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24630         perl to print the current year.  Gilles Espinasse reported that
24631         the replaced use of perl was hard-coded as /usr/bin/perl.
24632
24633 2009-11-23  Bruno Haible  <bruno@clisp.org>
24634
24635         duplocale: Add support for glibc 2.3.x.
24636         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24637
24638 2009-11-22  Bruno Haible  <bruno@clisp.org>
24639
24640         vasnprintf: Tiny optimization.
24641         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24642         MacOS X.
24643
24644 2009-11-22  Bruno Haible  <bruno@clisp.org>
24645
24646         Tests for module 'duplocale'.
24647         * modules/duplocale-tests: New file.
24648         * tests/test-duplocale.c: New file.
24649
24650         New module 'duplocale'.
24651         * m4/duplocale.m4: New file.
24652         * lib/locale.in.h (duplocale): New declaration.
24653         * lib/duplocale.c: New file.
24654         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24655         gl_LOCALE_H_DEFAULTS): New macros.
24656         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24657         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24658         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24659         REPLACE_DUPLOCALE.
24660         * modules/duplocale: New file.
24661         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24662
24663 2009-11-22  Bruno Haible  <bruno@clisp.org>
24664
24665         * modules/locale-tests (configure.ac): Test for newlocale function.
24666         * tests/test-locale.c: When the system has extended locale functions,
24667         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24668
24669         locale: Make locale_t available when possible.
24670         * lib/locale.in.h: Include <xlocale.h> when it exists.
24671         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24672         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24673         * modules/locale (Depends-on): Add extensions.
24674         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24675         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24676
24677 2009-11-22  Bruno Haible  <bruno@clisp.org>
24678
24679         Add comments.
24680         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24681         invocation.
24682         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24683         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24684         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24685
24686 2009-11-22  Bruno Haible  <bruno@clisp.org>
24687
24688         error: account for the possibility of freopen (stdout).
24689         * lib/error.c: Include <unistd.h>.
24690         (flush_stdout): New function, extracted from error and error_at_line.
24691         Determine stdout's fd dynamically.
24692         (error, error_at_line): Invoke flush_stdout.
24693         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24694         * modules/error (Depends-on): Add unistd.
24695
24696 2009-11-22  Bruno Haible  <bruno@clisp.org>
24697
24698         diffseq: Add comment.
24699         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24700
24701 2009-11-22  Jim Meyering  <meyering@redhat.com>
24702
24703         c-stack: avoid defining an unused static function
24704         * lib/c-stack.c (find_stack_direction): Do not define this function
24705         when it will not be used.
24706
24707         diffseq: avoid spurious gcc warnings
24708         * lib/diffseq.h (IF_LINT2): Define.
24709         (compareseq): Use it to initialize two members of "part".
24710         This avoids two used-uninitialized warnings.
24711
24712 2009-11-21  Jim Meyering  <meyering@redhat.com>
24713
24714         c-stack: avoid "ignoring return value of `write'" warning
24715         * lib/c-stack.c: Include "ignore-value.h".
24716         (die): Explicitly ignore each write return value.
24717         * modules/c-stack (Depends-on): Add ignore-value.
24718
24719 2009-11-21  Bruno Haible  <bruno@clisp.org>
24720
24721         diffseq: reduce scope of variable 'best'.
24722         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24723         variable, earlier used for two different purposes.
24724
24725 2009-11-21  Jim Meyering  <meyering@redhat.com>
24726
24727         diffseq: remove useless assignment to "best"
24728         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24729         assignment.  At that point "best" is already guaranteed to be zero.
24730
24731 2009-11-20  Eric Blake  <ebb9@byu.net>
24732
24733         build: mention ftp redirector in release announcements
24734         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24735         values that used to come from cfg.mk; mention FTP redirect URL.
24736         * build-aux/announce-gen: Mention the mirror list.
24737         Suggested by Karl Berry.
24738
24739         nanosleep: improve port to mingw
24740         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24742         LIB_NANOSLEEP, but only when needed.
24743         * modules/select (Link): Document LIBSOCKET.
24744         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24745         enough.
24746
24747         nanosleep: work around cygwin bug
24748         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24749         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24750         bug.
24751         (getnow): Delete, not needed.
24752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24753         LIB_CLOCK_GETTIME.
24754         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24755         clock-time, gettime.
24756         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24757         bug.
24758         * modules/nanosleep-tests: New test.
24759         * tests/test-nanosleep.c: New file.
24760
24761         sleep: work around cygwin bug
24762         * lib/sleep.c (rpl_sleep): Work around the bug.
24763         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24764         (gl_PREREQ_SLEEP): Delete unused macro.
24765         * modules/sleep (Depends-on): Add verify.
24766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24767         * modules/unistd (Makefile.am): Substitute witness.
24768         * lib/unistd.in.h (sleep): Update prototype.
24769         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24770         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24771         * modules/sleep-tests (Depends-on): Check for alarm.
24772
24773 2009-11-20  Jim Meyering  <meyering@redhat.com>
24774
24775         maint.mk: improve sc_prohibit_magic_number_exit
24776         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24777         so it does not match uses like System.exit(1).
24778         Add comments showing how to correct all offenders.
24779
24780 2009-11-19  Eric Blake  <ebb9@byu.net>
24781
24782         xalloc-die-tests: add missing library
24783         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24784
24785         test-xvasprintf: silence compiler warnings
24786         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24787         empty string from gcc.
24788
24789 2009-11-19  Jim Meyering  <meyering@redhat.com>
24790
24791         xfreopen: new module, from coreutils
24792         * modules/xfreopen: New module.
24793         * lib/xfreopen.c: New file.
24794         * lib/xfreopen.h: New file.
24795         * MODULES.html.sh (File stream based Input/Output"): Add it.
24796
24797 2009-11-19  Eric Blake  <ebb9@byu.net>
24798
24799         manywarnings: depend on warnings
24800         * modules/manywarnings (Depends-on): Add warnings.
24801
24802         build: avoid compiler warnings
24803         * lib/select.c (rpl_select): Delete unused variable.
24804         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24805
24806 2009-11-18  Eric Blake  <ebb9@byu.net>
24807
24808         tests: avoid false negative with --with-packager
24809         * tests/test-version-etc.sh: Discard packager information.
24810         * tests/test-argp-version-etc-1.sh: Likewise.
24811         Reported by Mike Frysinger.
24812
24813         utimens: fix regression on Solaris
24814         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24815         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24816         can only change fd timestamps via futimesat.  Instead, use an
24817         additional witness macro to avoid BSD bug.
24818         Reported by Jim Meyering.
24819
24820 2009-11-17  Eric Blake  <ebb9@byu.net>
24821
24822         usleep: use it to simplify tests
24823         * modules/stat-time-tests (Depends-on): Add usleep.
24824         (configure.ac): Drop usleep check.
24825         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24826         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24827         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24828         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24829         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24830         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24831         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24832         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24833         Likewise.
24834         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24835         * tests/test-lchown.h (nap): Likewise.
24836         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24837         * tests/test-stat-time.c (nap): Likewise.
24838         * tests/test-utimens-common.h (nap): Update comments.
24839
24840         usleep: new module
24841         * modules/usleep: New file.
24842         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24843         * lib/usleep.c (usleep): Likewise.
24844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24845         * modules/unistd (Makefile.am): Substitute witnesses.
24846         * lib/unistd.in.h (usleep): Add declaration.
24847         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24848         * MODULES.html.sh (Date and time): Likewise.
24849         * modules/usleep-tests (Depends-on): New test.
24850         * tests/test-usleep.c: New file.
24851
24852         chown: work around OpenBSD bug
24853         * lib/chown.c (rpl_chown): Work around the bug.
24854         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24855         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24856         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24857         * modules/chown (Depends-on): Add stdbool.
24858         * modules/lchown (Depends-on): Likewise.
24859         * doc/posix-functions/chown.texi (chown): Document the bug.
24860         * doc/posix-functions/lchown.texi (lchown): Likewise.
24861         * tests/test-lchown.h (test_chown): Relax test.
24862
24863         mkstemp: avoid conflict with C++ keyword template
24864         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24865         * lib/mkostemp.c (mkostemp): Likewise.
24866         * lib/mkostemps.c (mkostemps): Likewise.
24867         * lib/mkstemp.c (mkstemp): Likewise.
24868         * lib/mkstemps.c (mkstemps): Likewise.
24869
24870         xalloc-die-tests: optimize
24871         * tests/test-xalloc-die.sh: Reduce number of processes.
24872
24873 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24874
24875         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24876         patch from ludo@gnu.org (Ludovic Courtès).
24877
24878 2009-11-17  Jim Meyering  <meyering@redhat.com>
24879
24880         version-etc: use proper license string
24881         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24882         * modules/version-etc-fsf: Likewise.
24883
24884 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24885
24886         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24887         printed to stdout.  Deal with EOL differences.
24888
24889 2009-11-17  Eric Blake  <ebb9@byu.net>
24890
24891         unsetenv: work around Solaris bug
24892         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24893         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24894         Reported by Jim Meyering.
24895
24896         vasnprintf: avoid compiler warnings
24897         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24898         variables.
24899         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24900
24901 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24902
24903         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24904         settings since xalloc-die is no longer the self test,
24905         xalloc-die.sh is.
24906
24907 2009-11-17  Jim Meyering  <meyering@redhat.com>
24908
24909         test-xalloc-die.sh: make the code agree with the commit log
24910         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24911         at the end, just in case you happen to have a test-xalloc-die
24912         program in some other PATH directory.
24913
24914         test-xalloc-die.sh: fix a portability bug
24915         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24916         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24917         Otherwise, argv[0] (as often seen in diagnostics) would be too
24918         system-dependent, sometimes with, and sometimes without the leading "./".
24919
24920         version-etc-fsf: relax license to LGPLv3+
24921         * modules/version-etc-fsf (License): Relax license.
24922
24923 2009-11-16  Eric Blake  <ebb9@byu.net>
24924
24925         xalloc-die-tests: avoid printing null pointer
24926         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24927         shell script.
24928         * tests/test-xalloc-die.c (program_name): Declare.
24929         * tests/test-xalloc-die.sh (tmpfiles): New file.
24930
24931         setenv, unsetenv: work around various bugs
24932         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24933         (setenv) [HAVE_SETENV]: Work around bugs.
24934         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24935         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24936         for bugs.
24937         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24938         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24940         * modules/stdlib (Makefile.am): Update substitutions.
24941         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24942         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24943         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24944         * modules/setenv-tests: New test.
24945         * modules/unsetenv-tests: Likewise.
24946         * tests/test-setenv.c: New file.
24947         * tests/test-unsetenv.c: Likewise.
24948
24949 2009-11-16  Jim Meyering  <meyering@redhat.com>
24950
24951         version-etc: relax license to LGPLv3+
24952         * modules/version-etc (License): Relax license.
24953
24954         better AC_REQUIRE expanded-before-required-warning avoidance
24955         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24956         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24957         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24958         which is no longer needed.
24959
24960 2009-11-16  Eric Blake  <ebb9@byu.net>
24961
24962         test-freading: clean up temporary file
24963         * tests/test-freading.c (main): Remove file on success, and use
24964         ASSERT more liberally.
24965         Reported by Jim Meyering.
24966
24967 2009-11-16  Jim Meyering  <meyering@redhat.com>
24968
24969         avoid new AC_REQUIRE expanded-before-required warnings
24970         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24971         merely using it.
24972         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24973         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24974
24975 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24976
24977         * tests/test-xalloc-die.c: New file.
24978         * modules/xalloc-die-tests: New file.
24979         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24980         XFAIL_TESTS so it can be appended by modules.
24981
24982 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24983
24984         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24985         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24986
24987 2009-11-14  Eric Blake  <ebb9@byu.net>
24988
24989         fnmatch: avoid compiler warning
24990         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24991         to silence compiler warning about mismatch signedness in ?:.
24992         Reported by Robert Millan.
24993
24994         intprops: add double-inclusion guard
24995         * lib/intprops.h: Allow idempotent includes.
24996         Suggested by Bruce Korb.
24997
24998         openat: detect Solaris fchownat bug
24999         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25000         penalizing glibc chownat when only lchownat is broken.
25001         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25002         trailing slash bugs.
25003         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25004         * modules/openat-tests (Files): Include more files.
25005         (Depends-on): Add mgetgroups, sleep, stat-time.
25006         (configure.ac): Add additional checks.
25007         (Makefile.am): Build new test.
25008         * tests/test-fchownat.c: New file.
25009
25010         lchown: detect Solaris and FreeBSD bug
25011         * lib/lchown.c (rpl_lchown): Work around bug.
25012         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25014         * modules/unistd (Makefile.am): Populate it.
25015         * lib/unistd.in.h (lchown): Update declaration.
25016         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25017         * modules/lchown-tests: New file.
25018         * tests/test-lchown.h (test_lchown): Likewise.
25019         * tests/test-lchown.c (main): Likewise.
25020
25021         chown: detect Solaris and FreeBSD bug
25022         * lib/chown.c (rpl_chown): Work around bug.
25023         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25024         (gl_PREREQ_CHOWN): Delete.
25025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25026         * modules/unistd (Makefile.am): Populate it.
25027         * lib/unistd.in.h (chown): Update declaration.
25028         * lib/lchown.c (chown): Update client.
25029         * modules/lchown (Depends-on): Add lstat.
25030         * doc/posix-functions/chown.texi (chown): Document the bug.
25031         * doc/posix-functions/getgroups.texi (getgroups): Document
25032         getgroups pitfall.
25033         * modules/chown-tests: New file.
25034         * tests/test-chown.h (test_chown): Likewise.
25035         * tests/test-chown.c (main): Likewise.
25036
25037 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25038
25039         gnulib-tool: correctly detect absence of m4 directories
25040         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25041
25042 2009-11-14  Jim Meyering  <meyering@redhat.com>
25043
25044         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25045         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25046
25047 2009-11-14  John W. Eaton  <jwe@gnu.org>
25048
25049         strftime.h: wrap funtion declaration in extern "C" block
25050         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25051
25052 2009-11-13  Eric Blake  <ebb9@byu.net>
25053
25054         getgroups: avoid compiler warning
25055         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25056
25057         getgroups: work around FreeBSD bug
25058         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25059         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25060         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25061         * tests/test-getgroups.c (main): Fix buffer overrun.
25062
25063         getgroups: avoid compilation failure
25064         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25065         * modules/getgroups (Depends-on): Add stdint.
25066
25067 2009-11-13  Jim Meyering  <meyering@redhat.com>
25068
25069         test-getgroups: avoid compilation failure
25070         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25071
25072 2009-11-13  Eric Blake  <ebb9@byu.net>
25073
25074         mgetgroups: new module, taken from coreutils
25075         * modules/mgetgroups: New file.
25076         * lib/mgetgroups.h: Likewise.
25077         * lib/mgetgroups.c (mgetgroups): Likewise.
25078         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25079         * MODULES.html.sh (Users and groups): Mention it.
25080
25081         getgroups: don't expose GETGROUPS_T to user
25082         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25083         an element at a time if GETGROUPS_T is wrong size.
25084         * lib/getugroups.h (getugroups): Change signature.
25085         * lib/unistd.in.h (getgroups): Likewise.
25086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25087         signature needs fixing.
25088         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25089         AC_TYPE_GETGROUPS.
25090         * modules/group-member (Depends-on): Add getgroups.
25091         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25092         (group_member): Rely on getgroups replacement.
25093         * lib/getugroups.c (getugroups): Use gid_t.
25094         * tests/test-getgroups.c (main): Likewise.
25095         * NEWS: Mention the signature change.
25096         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25097         problem with signature.
25098         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25099         GETGROUPS_T is still useful for setgroups.
25100
25101         getgroups, getugroups: provide stubs for mingw
25102         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25103         * lib/getugroups.c (getugroups): Likewise.
25104         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25105         function.  Modernize replacement scheme.
25106         (gl_PREREQ_GETGROUPS): Delete.
25107         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25108         * modules/getgroups (configure.ac): Declare witness.
25109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25110         * modules/unistd (Depends-on): Substitute witness.
25111         * lib/unistd.in.h (getgroups): Declare replacement.
25112
25113         getgroups: avoid calling exit
25114         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25115         drop xalloc.
25116         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25117         dependencies.
25118         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25119         exiting, in the rare case of malloc failure.
25120
25121         getgroups: fix logic error
25122         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25123         has more than 20 groups.
25124         * modules/getgroups-tests: New test.
25125         * tests/test-getgroups.c: New file.
25126
25127 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25128
25129         * tests/test-base64.c: Improve.
25130
25131 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25132
25133         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25134         Blake <ebb9@byu.net>.
25135
25136 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25137
25138         * tests/test-xvasprintf.c: Add %s%s related checks.
25139
25140 2009-11-12  Eric Blake  <ebb9@byu.net>
25141
25142         version-etc: match standards.texi style
25143         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25144         and use <> only for URLs.
25145
25146 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25147
25148         fts: do not fail on a submount during traversal
25149         * lib/fts.c (fts_build): Read the stat info again after opening
25150         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25151         Original report at http://bugzilla.redhat.com/501848.
25152
25153 2009-11-12  Jim Meyering  <meyering@redhat.com>
25154
25155         bootstrap: sync from coreutils
25156         * build-aux/bootstrap (bootstrap_epilogue): New function.
25157         Use git_modules_config in one more place.  This make bootstrap's
25158         --gnulib-srcdir option more useful for testing.
25159
25160         bootstrap: generalize autoheader check
25161         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25162         AC_CONFIG_HEADERS.
25163
25164 2009-11-11  Eric Blake  <ebb9@byu.net>
25165
25166         mkfifoat: use new modules for Solaris and BSD bugs
25167         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25168         * lib/mkfifoat.c (mknodat): Split...
25169         * lib/mknodat.c (mknodat): ...into new file.
25170         * modules/mkfifoat (Files): Ship new file.
25171         (Depends-on): Add mkfifo, mknod.
25172         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25173         (Depends-on): Add symlink.
25174         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25175         redundant with test_mkfifo.h.
25176         (do_mkfifoat, do_mknodat): New helpers.
25177
25178         mknod: new module
25179         * modules/mknod: New file.
25180         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25181         * lib/mknod.c (mknod): Likewise.
25182         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25183         defaults.
25184         * modules/sys_stat (Makefile.am): Substitute them.
25185         * lib/sys_stat.in.h (mknod): Declare replacement.
25186         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25187         Document it.
25188         * doc/posix-functions/mknod.texi (mknod): Likewise.
25189         * modules/mknod-tests: New test.
25190         * tests/test-mknod.c: Likewise.
25191
25192         mkfifo: new module
25193         * modules/mkfifo: New file.
25194         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25195         * lib/mkfifo.c (mkfifo): Likewise.
25196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25197         defaults.
25198         * modules/sys_stat (Makefile.am): Substitute them.
25199         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25200         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25201         Document it.
25202         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25203         * modules/mkfifo-tests: New test.
25204         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25205         from test-mkfifoat.c.
25206         * tests/test-mkfifo.c: New file.
25207
25208         readlink: detect FreeBSD bug
25209         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25210         slash on symlink.
25211         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25212         * tests/test-readlink.h (test_readlink): Enhance test.
25213
25214         symlink: detect FreeBSD bug
25215         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25216         slash on symlink.
25217         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25218         * tests/test-symlink.h (test_symlink): Enhance test.
25219
25220 2009-11-10  Eric Blake  <ebb9@byu.net>
25221
25222         link: detect FreeBSD bug
25223         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25224         symlink.
25225         * doc/posix-functions/link.texi (link): Document the bug.
25226         * tests/test-link.h (test_link): Enhance test.
25227         * tests/test-linkat.c (main): Update caller.
25228
25229         unlink, remove: detect FreeBSD bug
25230         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25231         slash on symlink.
25232         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25233         * doc/posix-functions/remove.texi (remove): Likewise.
25234         * tests/test-unlink.h (test_unlink): Enhance test.
25235         * tests/test-remove.c (main): Likewise.
25236
25237 2009-11-09  Eric Blake  <ebb9@byu.net>
25238
25239         rename: detect FreeBSD bug
25240         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25241         slash on symlink.
25242         * modules/renameat-tests (Depends-on): Add filenamecat.
25243         * tests/test-rename.h (test_rename): Allow one more errno.
25244         * tests/test-renameat.c (main): Likewise.
25245         * doc/posix-functions/rename.texi (rename): Document the bug.
25246
25247         open: detect FreeBSD bug
25248         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25249         symlink.
25250         * doc/posix-functions/open.texi (open): Document the bug.
25251         * doc/posix-functions/utimes.texi (utimes): Likewise.
25252         * tests/test-open.h (test_open): Add parameters, and test symlink
25253         handling.
25254         * tests/test-open.c (main): Adjust caller.
25255         * tests/test-fcntl-safer.c (main): Likewise.
25256         * modules/open-tests (Depends-on): Add stdbool, symlink.
25257         * modules/fcntl-safer-tests (Depends-on): Likewise.
25258         * tests/test-openat.c (main): Add test-open tests.
25259
25260         stat: detect FreeBSD bug
25261         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25262         symlink.
25263         * doc/posix-functions/stat.texi (stat): Document the bug.
25264         * tests/test-stat.h (test_stat_func): Add argument.
25265         * tests/test-stat.c (main): Adjust caller.
25266         * tests/test-fstatat.c (main): Likewise.
25267         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25268         Reported by Jim Meyering.
25269
25270 2009-11-09  James Youngman  <jay@gnu.org>
25271
25272         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25273         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25274
25275 2009-11-08  Jim Meyering  <meyering@redhat.com>
25276
25277         utimens: remove invalid futimesat call
25278         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25279         It used the file descriptor of the target file as the DIR_FD
25280         parameter and NULL as the file name.  That caused failure with
25281         errno == EFAULT on FreeBSD-8.0-rc2
25282
25283 2009-11-07  Eric Blake  <ebb9@byu.net>
25284
25285         fflush, freadseek: use fseeko, not fseek
25286         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25287         (clear_ungetc_buffer): Avoid potential problems on large files.
25288         * lib/freadseek.c (freadseek): Likewise.
25289         * modules/freadseek (Depends-on): Add fseeko.
25290         * modules/fseek (configure.ac): Set a witness.
25291         * tests/test-fflush.c (main): Use fseeko.
25292         * tests/test-fpurge.c (fseek): Disable link warning.
25293         * tests/test-freadable.c (fseek): Likewise.
25294         * tests/test-freading.c (fseek): Likewise.
25295         * tests/test-fseeko.c (fseek): Likewise.
25296         * tests/test-ftell.c (fseek): Likewise.
25297         * tests/test-ftello.c (fseek): Likewise.
25298         * tests/test-fwritable.c (fseek): Likewise.
25299         * tests/test-fwriting.c (fseek): Likewise.
25300
25301 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25302
25303         * modules/memchr (Depends-on): Drop getpagesize dependency.
25304
25305 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25306
25307         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25308         Reported by Ludovic Courtès.
25309         * build-aux/pmccabe2html: Improve example usage.
25310         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25311
25312 2009-11-06  Jim Meyering  <meyering@redhat.com>
25313
25314         do-release-commit-and-tag: New module.
25315         Automate the release-commit and tag process.
25316         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25317         * modules/do-release-commit-and-tag: New file.
25318         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25319
25320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25321
25322         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25323         because test-select.c uses inet_pton.
25324
25325 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25326
25327         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25328         GETADDRINFO_LIB.  Bump serial number.
25329         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25330         Suggested by Eric Blake <ebb9@byu.net>.
25331
25332 2009-11-05  Eric Blake  <ebb9@byu.net>
25333
25334         strtod: detect darwin bug
25335         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25336         Reported by Leo Davis.
25337
25338         freopen-safer: new module
25339         * modules/freopen-safer: New module.
25340         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25341         * lib/freopen-safer.c (freopen_safer): New file.
25342         * lib/stdio-safer.h (freopen_safer): New declaration.
25343         * lib/stdio--.h (freopen): New override.
25344         * MODULES.html.sh (File stream based Input/Output): Mention it.
25345         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25346         freopen-safer module.
25347         * doc/posix-functions/stderr.texi (stderr): Likewise.
25348         * doc/posix-functions/stdin.texi (stdin): Likewise.
25349         * doc/posix-functions/stdout.texi (stdout): Likewise.
25350         * modules/freopen-safer-tests: New test.
25351         * tests/test-reopen-safer.c: New file.
25352
25353 2009-11-05  Jim Meyering  <meyering@redhat.com>
25354
25355         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25356         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25357
25358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25359
25360         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25361
25362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25363
25364         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25365
25366 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25367
25368         Fix link error.
25369         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25370         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25371
25372 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25373
25374         * tests/test-func.c: Also test value of __func__.
25375
25376 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25377
25378         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25379         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25380
25381 2009-11-05  Bruno Haible  <bruno@clisp.org>
25382
25383         Fix link error.
25384         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25385         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25386         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25387
25388 2009-11-05  Bruno Haible  <bruno@clisp.org>
25389
25390         Tests for module 'inet_pton'.
25391         * modules/inet_pton-tests: New file.
25392         * tests/test-inet_pton.c: New file.
25393
25394 2009-11-05  Bruno Haible  <bruno@clisp.org>
25395
25396         Tests for module 'inet_ntop'.
25397         * modules/inet_ntop-tests: New file.
25398         * tests/test-inet_ntop.c: New file.
25399
25400 2009-11-04  Eric Blake  <ebb9@byu.net>
25401
25402         stdlib-safer: wrap all mkstemp variants
25403         * modules/mkostemp (configure.ac): Set witness.
25404         * modules/mkostemps (configure.ac): Likewise.
25405         * modules/mkstemps (configure.ac): Likewise.
25406         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25407         (mkstemps_safer): Wrap more functions.
25408         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25409         wrapping.
25410         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25411         (mkstemps_safer): Implement the wrappers.
25412
25413         mkstemps, mkostemps: new modules
25414         * modules/mkostemps: New module.
25415         * modules/mkstemps: Likewise.
25416         * lib/mkostemps.c (mkostemps): New file.
25417         * lib/mkstemps.c (mkstemps): Likewise.
25418         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25419         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25421         * modules/stdlib (Makefile.am): Substitute them.
25422         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25423         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25424         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25425         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25426         * MODULES.html.sh (File system functions): Mention them.
25427
25428         tempname: resync from glibc
25429         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25430         same values for __GT_FILE as glibc.  Abort even when assertions
25431         are disabled.
25432         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25433         match its value otherwise.  Allow idempotent inclusion.
25434         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25435         * lib/mkostemp.c (mkostemp): Likewise.
25436         * lib/mkstemp.c (mkstemp): Likewise.
25437         * lib/tmpfile.c (tmpfile): Likewise.
25438         * NEWS: Document this.
25439
25440         utimens: fix use of futimens on older Linux
25441         * lib/utimens.c (fdutimens): Use updated, rather than original,
25442         timespec to avoid bug in older Linux kernel.
25443         Reported by Simon Josefsson.
25444
25445 2009-11-04  Bruno Haible  <bruno@clisp.org>
25446
25447         Make num_processors more flexible and consistent.
25448         * lib/nproc.h (enum nproc_query): New type.
25449         (num_processors): Add a 'query' argument.
25450         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25451         (num_processors): Add a 'query' argument. Test the value of the
25452         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25453         mingw, count the number of CPUs available for the current process.
25454         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25455         Check for sched_getaffinity and sched_getaffinity_np.
25456         * modules/nproc (Depends-on): Add c-ctype, extensions.
25457         * NEWS: Mention the change.
25458
25459 2009-11-03  Bruno Haible  <bruno@clisp.org>
25460
25461         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25462
25463 2009-11-03  Jim Meyering  <meyering@redhat.com>
25464
25465         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25466         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25467         if it is defined.
25468
25469 2009-11-02  Eric Blake  <ebb9@byu.net>
25470
25471         mktime, timegm: share common declaration
25472         * lib/mktime-internal.h: New file.
25473         * lib/mktime.c: Use it rather than open-coding a declaration.
25474         * lib/timegm.c: Likewise.
25475         * modules/mktime (Files): Ship it.
25476         * modules/timegm (Files): Likewise.
25477         Suggested by Bruno Haible.
25478
25479         test-update-copyright: update test to match script changes
25480         * tests/test-update-copyright.sh: Avoid hard-coding perl
25481         location.  Don't update *.bak created by earlier runs.
25482
25483 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25484             Simon Josefsson  <simon@josefsson.org>
25485             Bruno Haible  <bruno@clisp.org>
25486
25487         Fix link error on Solaris 8.
25488         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25489         also in libnsl. Define also INET_PTON_LIB.
25490         * modules/inet_pton (Link): New section.
25491
25492 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25493             Bruno Haible  <bruno@clisp.org>
25494
25495         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25496         * modules/inet_ntop (Link): New section.
25497         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25498
25499 2009-11-02  Eric Blake  <ebb9@byu.net>
25500
25501         maint: avoid compiler warnings in m4 macros
25502         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25504
25505 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25506
25507         * m4/pmccabe2html.m4: Remove file.
25508         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25509         function.  Change maintainer.
25510         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25511         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25512         Courtès).
25513
25514 2009-10-31  Eric Blake  <ebb9@byu.net>
25515
25516         fseeko: fix m4 regression
25517         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25518         regression from 2009-10-27.
25519         Reported by Ralf Wildenhues.
25520
25521 2009-10-31  Jim Meyering  <meyering@redhat.com>
25522
25523         inttostr: aesthetics and improved (compile-time) safety
25524         Define inttype_is_signed rather than inttype_is_unsigned,
25525         since the sole use is via "#if inttype_is_signed".
25526         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25527         inttype_is_unsigned.
25528         * lib/offtostr.c (inttype_is_signed): Likewise.
25529         * lib/uinttostr.c (inttype_is_signed): Likewise.
25530         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25531         * lib/inttostr.c (inttostr): Use verify to cross-check the
25532         inttype_is_signed value and the signedness of the actual type.
25533         * modules/inttostr (Depends-on): Add verify.
25534
25535 2009-10-30  Eric Blake  <ebb9@byu.net>
25536
25537         build: avoid compiler warnings
25538         * lib/fchmodat.c (lchmod): Mark unused variables.
25539         * lib/getopt.c (_getopt_initialize): Likewise.
25540         * lib/mktime.c (__mktime_internal): Provide prototype.
25541         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25542         older gcc that do not understand #pragma GCC diagnostic.
25543         * lib/uinttostr.c (inttype_is_unsigned): Define.
25544         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25545
25546 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25547
25548         stat: fix compilation on AIX
25549         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25550         only see struct stat64.
25551
25552 2009-10-30  Eric Blake  <ebb9@byu.net>
25553
25554         exclude: make more robust
25555         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25556         rather than masking a coding bug.
25557         Suggested by Bruno Haible.
25558
25559 2009-10-30  Jim Meyering  <meyering@redhat.com>
25560
25561         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25562         Rather than putting #!/usr/bin/perl on the first line,
25563         start with a variant of what's recommended by "man perlrun" that
25564         invokes the first "perl" program from your shell's search path.
25565         * build-aux/gitlog-to-changelog: Replace #!... as above.
25566         Add a "Local Variables" perl mode setting.
25567         Prompted by a patch from Ludovic Courtès.
25568         Improved by Eric Blake.
25569         * build-aux/useless-if-before-free: Likewise.
25570         * build-aux/announce-gen: Likewise.
25571         * build-aux/update-copyright: Likewise.
25572
25573 2009-10-29  Eric Blake  <ebb9@byu.net>
25574
25575         filenamecat-lgpl: adjust clients
25576         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25577         filenamecat.
25578         * modules/renameat (Depends-on): Likewise.
25579
25580         filenamecat: split into filenamecat-lgpl
25581         * modules/filenamecat-lgpl: New module.
25582         * modules/filenamecat (Files): Move library-safe files into
25583         filenamecat-lgpl.
25584         (Depends-on): Add filenamecat-lgpl.
25585         (configure.ac): Declare witness.
25586         * lib/filenamecat.h (file_name_concat): Only declare when using
25587         GPL module.
25588         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25589         Move...
25590         * lib/filenamecat-lgpl.c: ...into new file.
25591         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25592         (gl_FILE_NAME_CONCAT): Use it.
25593         * MODULES.html.sh (File system functions): Mention new module.
25594
25595         argp: avoid memory leak
25596         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25597         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25598         base_name, since the latter malloc()s and can call exit().
25599         Leak introduced 2006-07-03.
25600
25601         dirname-lgpl: adjust clients that don't need full dirname
25602         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25603         * modules/filenamecat (Depends-on): Likewise.
25604         * modules/linkat (Depends-on): Likewise.
25605         * modules/mkancesdirs (Depends-on): Likewise.
25606         * modules/mkdir (Depends-on): Likewise.
25607         * modules/openat (Depends-on): Likewise.
25608         * modules/savewd (Depends-on): Likewise.
25609         * modules/rename (Depends-on): Likewise.
25610         (License): Relax license.
25611         * modules/mkdir-tests (Depends-on): Drop progname.
25612         (Makefile.am): Delete unneeded LDADD.
25613         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25614
25615         dirname: split into dirname-lgpl
25616         * modules/dirname-lgpl: New module.
25617         * modules/dirname (Files): Move library-safe files into
25618         dirname-lgpl.
25619         (Depends-on): Add dirname-lgpl.
25620         (configure.ac): Declare witness.
25621         * modules/double-slash-root (License): Relax license.
25622         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25623         module.
25624         * lib/dirname.c (dir_len, mdir_name): Move...
25625         * lib/dirname-lgpl.c: ...into new file.
25626         * lib/basename.c (last_component, base_len): Move...
25627         * lib/basename-lgpl.c: ...into new file.
25628         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25629         (gl_DIRNAME): Use it.
25630         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25631         Mention new module.
25632         * modules/dirname-tests (Depends-on): Add progname.
25633         * tests/test-dirname.c (program_name): Delete.
25634
25635         mkdir: make safe for libraries
25636         * modules/mkdir (Depends-on): Drop xalloc.
25637         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25638         exit.
25639
25640         tests: avoid some compiler warnings
25641         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25642         literals.
25643         * tests/test-memchr.c (main): Avoid type mismatch.
25644         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25645         * tests/test-base64.c (main): Likewise.
25646         * tests/test-getdelim.c (main): Likewise.
25647         * tests/test-gethostname.c (main): Likewise.
25648         * tests/test-getline.c (main): Likewise.
25649         * tests/test-netinet_in.c (main): Likewise.
25650         * tests/test-select.c (open_server_socket, main): Likewise.
25651         * tests/test-select-stdin.c (main): Likewise.
25652         * tests/test-sockets.c (main): Likewise.
25653         * tests/test-strsignal.c (main): Likewise.
25654         * tests/test-sys_select.c (main): Likewise.
25655         * tests/test-sys_socket.c (main): Likewise.
25656         * tests/test-u64.c (main): Likewise.
25657         * tests/test-xfprintf-posix.c (main): Likewise.
25658         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25659
25660         sockets: avoid compiler warning
25661         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25662
25663         maint: detect usage(1) and other suspicious exits
25664         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25665
25666 2009-10-29  Jim Meyering  <meyering@redhat.com>
25667
25668         timespec: long-to-int truncation could make timespec_cmp malfunction
25669         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25670         a multiple of 2^32 nanoseconds as no difference.
25671
25672 2009-10-28  Jim Meyering  <meyering@redhat.com>
25673
25674         fprintftime: wrap macro code argument in "do {...} while(0)"
25675         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25676         cpy macro must be a statement that can be followed by a semicolon.
25677         Now that the else clause contains a comment and is hence longer
25678         than one line, I require curly braces.  That in turn requires
25679         that we wrap this code block in the standard do...while(0).
25680
25681         fprintftime: remove stray semicolon from previous change
25682         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25683
25684         fprintftime: avoid a warning about ignored fwrite return value
25685         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25686         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25687         that is unsafe.
25688         * modules/fprintftime (Depends-on): Add ignore-value.
25689
25690         exclude: avoid an unwarranted warning
25691         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25692
25693 2009-10-27  Eric Blake  <ebb9@byu.net>
25694
25695         fseek: avoid compilation failure when fflush is replaced
25696         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25697         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25698         module is in use.
25699         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25700         module is not in use; since REPLACE_FSEEK worked otherwise.
25701         (GNULIB_FTELLO): Likewise for ftell.
25702         Reported by Ian Beckwith and others.
25703
25704 2009-10-27  Bruno Haible  <bruno@clisp.org>
25705
25706         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25707         Reported by Jim Meyering.
25708
25709 2009-10-27  Jim Meyering  <jim@meyering.net>
25710             Bruno Haible  <bruno@clisp.org>
25711
25712         Avoid warning despite dropping the return value of fwrite.
25713         * lib/unicodeio.c: Include ignore-value.h.
25714         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25715         * modules/unicodeio (Depends-on): Add ignore-value.
25716
25717 2009-10-26  Eric Blake  <ebb9@byu.net>
25718
25719         areadlinkat: fix fallback path
25720         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25721         pointer and zero.
25722
25723 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25724
25725         Use a better IO block size for modern systems
25726         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25727         * lib/md2.c: Likewise.
25728         * lib/md4.c: Likewise.
25729         * lib/md5.c: Likewise.
25730         * lib/sha1.c: Likewise.
25731         * lib/sha256.c: Likewise.
25732         * lib/sha512.c: Likewise.
25733
25734 2009-10-22  Eric Blake  <ebb9@byu.net>
25735
25736         tests: avoid several compiler warnings
25737         * tests/test-getcwd.c (main): Avoid buffer underflow.
25738         * tests/test-getdate.c (main): String literals are not safe with
25739         putenv, so use setenv.  Declare unused argument.
25740         * modules/getdate-tests (Depends-on): Add setenv.
25741         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25742         problems with string literals in char *.
25743         * tests/test-hash.c (main): Avoid shadowing declaration.
25744         (insert_new): Treat string literals as char const *.
25745         * tests/test-getopt.h (test_getopt): Likewise.
25746         (getopt_loop): Alter types to minimize casting elsewhere.
25747         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25748         (test_getopt_long_posix): Likewise.
25749         (do_getopt_long): Add wrapper to minimize casting.
25750         * tests/test-atexit.c (clear_temp_file): Use void.
25751         * tests/test-areadlink-with-size.c (main): Declare unused
25752         arguments.
25753         * tests/test-areadlink.c (main): Likewise.
25754         * tests/test-areadlinkat-with-size.c (main): Likewise.
25755         * tests/test-areadlinkat.c (main): Likewise.
25756         * tests/test-canonicalize-lgpl.c (main): Likewise.
25757         * tests/test-canonicalize.c (main): Likewise.
25758         * tests/test-dirent-safer.c (main): Likewise.
25759         * tests/test-dirname.c (main): Likewise.
25760         * tests/test-dup2.c (main): Likewise.
25761         * tests/test-fchdir.c (main): Likewise.
25762         * tests/test-fcntl-h.c (main): Likewise.
25763         * tests/test-fcntl-safer.c (main): Likewise.
25764         * tests/test-fdopendir.c (main): Likewise.
25765         * tests/test-fdutimensat.c (main): Likewise.
25766         * tests/test-fflush.c (main): Likewise.
25767         * tests/test-filenamecat.c (main): Likewise.
25768         * tests/test-filevercmp.c (main): Likewise.
25769         * tests/test-fopen-safer.c (main): Likewise.
25770         * tests/test-fopen.c (main): Likewise.
25771         * tests/test-fpending.c (main): Likewise.
25772         * tests/test-fpurge.c (main): Likewise.
25773         * tests/test-freading.c (main): Likewise.
25774         * tests/test-fstatat.c (main): Likewise.
25775         * tests/test-fsync.c (main): Likewise.
25776         * tests/test-futimens.c (main): Likewise.
25777         * tests/test-getndelim2.c (main): Likewise.
25778         * tests/test-gettimeofday.c (main): Likewise.
25779         * tests/test-getopt.c (main): Likewise.
25780         * tests/test-i-ring.c (main): Likewise.
25781         * tests/test-inttypes.c (main): Likewise.
25782         * tests/test-link.c (main): Likewise.
25783         * tests/test-lstat.c (main): Likewise.
25784         * tests/test-math.c (main): Likewise.
25785         * tests/test-md5.c (main): Likewise.
25786         * tests/test-memchr2.c (main): Likewise.
25787         * tests/test-memrchr.c (main): Likewise.
25788         * tests/test-mkdir.c (main): Likewise.
25789         * tests/test-mkdirat.c (main): Likewise.
25790         * tests/test-mkfifoat.c (main): Likewise.
25791         * tests/test-open.c (main): Likewise.
25792         * tests/test-openat-safer.c (main): Likewise.
25793         * tests/test-openat.c (main): Likewise.
25794         * tests/test-quotearg.c (main): Likewise.
25795         * tests/test-rawmemchr.c (main): Likewise.
25796         * tests/test-readlink.c (main): Likewise.
25797         * tests/test-remove.c (main): Likewise.
25798         * tests/test-rename.c (main): Likewise.
25799         * tests/test-renameat.c (main): Likewise.
25800         * tests/test-rmdir.c (main): Likewise.
25801         * tests/test-sha1.c (main): Likewise.
25802         * tests/test-signal.c (main): Likewise.
25803         * tests/test-sigaction.c (main): Likewise.
25804         * tests/test-stat.c (main): Likewise.
25805         * tests/test-stat-time.c (main): Likewise.
25806         * tests/test-stddef.c (main): Likewise.
25807         * tests/test-stdint.c (main): Likewise.
25808         * tests/test-stdio.c (main): Likewise.
25809         * tests/test-stdlib.c (main): Likewise.
25810         * tests/test-strchrnul.c (main): Likewise.
25811         * tests/test-strerror.c (main): Likewise.
25812         * tests/test-string.c (main): Likewise.
25813         * tests/test-strtod.c (main): Likewise.
25814         * tests/test-strverscmp.c (main): Likewise.
25815         * tests/test-symlink.c (main): Likewise.
25816         * tests/test-symlinkat.c (main): Likewise.
25817         * tests/test-sys_stat.c (main): Likewise.
25818         * tests/test-sys_time.c (main): Likewise.
25819         * tests/test-time.c (main): Likewise.
25820         * tests/test-unistd.c (main): Likewise.
25821         * tests/test-unlink.c (main): Likewise.
25822         * tests/test-unlinkat.c (main): Likewise.
25823         * tests/test-utimens.c (main): Likewise.
25824         * tests/test-utimensat.c (main): Likewise.
25825         * tests/test-version-etc.c (main): Likewise.
25826         * tests/test-wchar.c (main): Likewise.
25827         * tests/test-wctype.c (main): Likewise.
25828         * tests/test-xprintf-posix.c (main): Likewise.
25829         * tests/test-posixtm.c (main): Likewise.
25830         (STREQ): Delete unused macro.
25831         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25832         shadowed variables.
25833         * tests/test-memchr.c (main): Likewise.
25834
25835 2009-10-21  Eric Blake  <ebb9@byu.net>
25836
25837         areadlinkat: avoid failure on older glibc
25838         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25839         rather than mis-comparing 0 against FUNC_RESULT of char*.
25840
25841 2009-10-21  Bruno Haible  <bruno@clisp.org>
25842
25843         * modules/stpncpy (License): Relicense under LGPLv2+.
25844         Reported by David Lutterkort <lutter@redhat.com>.
25845
25846 2009-10-20  Eric Blake  <ebb9@byu.net>
25847
25848         utimensat: work around Solaris 9 bug
25849         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25850         has trailing slash bugs.
25851         * tests/test-lutimens.h (test_lutimens): Enhance test.
25852         * tests/test-utimens.h (test_utimens): Likewise.
25853         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25854         * doc/posix-functions/utimes.texi (utimes): Likewise.
25855         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25856         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25857         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25858         * doc/posix-functions/futimens.texi (futimens): Likewise.
25859
25860         fdutimensat: new module
25861         * modules/fdutimensat: New file.
25862         * lib/fdutimensat.c (fdutimensat): Likewise.
25863         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25864         * MODULES.html.sh (File system functions): Mention module.
25865         * modules/fdutimensat-tests: New test.
25866         * tests/test-fdutimensat.c: Likewise.
25867
25868         doc: regenerate INSTALL
25869         * doc/INSTALL: Reflect recent autoconf update.
25870         * doc/INSTALL.ISO: Likewise.
25871         * doc/INSTALL.UTF-8: Likewise.
25872
25873 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25874
25875         acl: warn if ACL support is not detected
25876         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25877
25878 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25879
25880         * lib/nproc.h: Add extern "C" block for C++.
25881
25882 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25883             Bruno Haible  <bruno@clisp.org>
25884
25885         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25886         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25887         * doc/posix-functions/isalpha.texi: Likewise.
25888         * doc/posix-functions/isblank.texi: Likewise.
25889         * doc/posix-functions/iscntrl.texi: Likewise.
25890         * doc/posix-functions/isdigit.texi: Likewise.
25891         * doc/posix-functions/isgraph.texi: Likewise.
25892         * doc/posix-functions/islower.texi: Likewise.
25893         * doc/posix-functions/isprint.texi: Likewise.
25894         * doc/posix-functions/ispunct.texi: Likewise.
25895         * doc/posix-functions/isspace.texi: Likewise.
25896         * doc/posix-functions/isupper.texi: Likewise.
25897         * doc/posix-functions/isxdigit.texi: Likewise.
25898
25899 2009-10-18  Bruno Haible  <bruno@clisp.org>
25900
25901         Tests for module 'isblank'.
25902         * modules/isblank-tests: New file.
25903         * tests/test-isblank.c: New file.
25904
25905         New module 'isblank'.
25906         * lib/isblank.c: New file.
25907         * m4/isblank.m4: New file.
25908         * modules/isblank: New file.
25909         * doc/posix-functions/isblank.texi: Mention the new module.
25910
25911 2009-10-18  Bruno Haible  <bruno@clisp.org>
25912
25913         New module 'ctype'.
25914         * lib/ctype.in.h: New file.
25915         * m4/ctype.m4: New file.
25916         * modules/ctype: New file.
25917         * doc/posix-headers/ctype.texi: Mention the new module.
25918
25919 2009-10-18  Jim Meyering  <meyering@redhat.com>
25920
25921         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25922         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25923         right after its initialization, rather than farther down.
25924         Keeping these in close proximity makes it easier to ensure
25925         that each such variable is initialized.  E.g.,
25926
25927             LIB_CLOCK_GETTIME=
25928             AC_SUBST([LIB_CLOCK_GETTIME])
25929
25930         This change also increments these serial numbers.
25931         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25934
25935 2009-10-18  Bruno Haible  <bruno@clisp.org>
25936
25937         Don't let environment variables perturb build.
25938         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25939         (gl_PREREQ_GETHRXTIME): ... not here.
25940
25941 2009-10-18  Bruno Haible  <bruno@clisp.org>
25942
25943         Avoid symlink attack in localcharset module.
25944         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25945         (O_NOFOLLOW): Define fallback.
25946         (get_charset_aliases): Don't open the file if it is a symbolic link.
25947         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25948         gl_FCNTL_H.
25949         (gl_FCNTL_H): Require it.
25950         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25951         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25952         Reported by Fergal Glynn <fglynn@veracode.com>.
25953
25954 2009-10-18  Bruno Haible  <bruno@clisp.org>
25955
25956         Implement nproc for mingw.
25957         * lib/nproc.c: Include <windows.h>
25958         (num_processors): On native Windows platforms, try GetSystemInfo.
25959
25960 2009-10-18  Bruno Haible  <bruno@clisp.org>
25961
25962         Implement nproc for IRIX.
25963         * lib/nproc.c: Include <sys/sysmp.h>.
25964         (num_processors): On IRIX systems, try sysmp.
25965         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25966
25967 2009-10-18  Bruno Haible  <bruno@clisp.org>
25968
25969         Implement nproc for HP-UX.
25970         * lib/nproc.c: Include <sys/pstat.h>
25971         (num_processors): On HP-UX systems, try pstat_getdynamic.
25972         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25973         pstat_getdynamic.
25974
25975 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25976             Bruno Haible  <bruno@clisp.org>
25977
25978         Implement nproc for NetBSD, OpenBSD.
25979         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25980         (ARRAY_SIZE): New macro.
25981         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25982         * m4/nproc.m4: New file.
25983         * modules/nproc (Files): Add m4/nproc.m4.
25984         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25985         (Makefile.am): Instead, augment lib_SOURCES.
25986
25987 2009-10-18  Bruno Haible  <bruno@clisp.org>
25988
25989         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25990         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25991         sys/param.h.
25992
25993 2009-10-16  Eric Blake  <ebb9@byu.net>
25994
25995         utimensat: new module
25996         * modules/utimensat: New file.
25997         * lib/utimensat.c (utimensat): Likewise.
25998         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25999         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26000         so we can work around Linux bugs.
26001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26002         * modules/sys_stat (Makefile.am): Substitute them.
26003         * lib/sys_stat.in.h (utimensat): Declare it.
26004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26005         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26006         * modules/utimensat-tests: New test.
26007         * tests/test-utimensat.c: Likewise.
26008
26009         utimens: let lutimens work on non-symlinks
26010         * lib/utimens.c (lutimens): Fall back to utimens rather than
26011         failing with ENOSYS, when file is not a symlink.
26012         (utimens): Reduce redirection.
26013         * tests/test-lutimens.h (test_lutimens): Update test to cover
26014         non-symlinks.
26015         * tests/test-utimens.h (test_utimens): Update test to cover
26016         symlinks.
26017         * tests/test-utimens.c (main): Update caller.
26018
26019         utimens: cache whether utimensat syscall works
26020         * lib/utimens.c (utimensat_works_really): New cache variable.
26021         (fdutimens, lutimens): Use it to avoid failing syscall.
26022
26023         test-stat-time, test-utimens: improve portability
26024         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26025         ext4 on alpha, and for cygwin.
26026         * tests/test-utimens-common.h: New file.
26027         (nap): Factor delays into single function.
26028         * tests/test-lutimens.h (test_lutimens): Use new header.
26029         * tests/test-futimens.h (test_futimens): Likewise.
26030         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26031         timestamps to occur from same machine, as was done previously for
26032         test_utimens.
26033         * modules/utimens-tests (Files): Ship new file.
26034         * modules/futimens-tests (Files): Likewise.
26035         Reported in part by Jim Meyering.
26036
26037         sys_stat: sort replacement declarations
26038         * lib/sys_stat.in.h: Sort declarations.
26039         * lib/futimens.c (futimens): Fix typo.
26040
26041 2009-10-15  Jim Meyering  <meyering@redhat.com>
26042
26043         don't let environment settings perturb build
26044         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26045         could cause a configure-time and/or build-time malfunction.
26046         Typically, a configure-time function-in-library test is performed
26047         via code like this:
26048
26049           LIB_VAR=
26050           AC_SUBST([LIB_VAR])
26051           prefix_saved_LIBS=$LIBS
26052             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26053                        [test "$ac_cv_search_FUNC" = "none required" ||
26054                         LIB_VAR=$ac_cv_search_FUNC])
26055           LIBS=$prefix_saved_LIBS
26056
26057         However, in each of the files affected by this change, the LIB_VAR=
26058         initialization was omitted.  Thus, when set in the environment, its
26059         value would propagate into generated Makefiles when FUNC is not found
26060         in LIB_NAME.
26061         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26062         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26064
26065 2009-10-14  Eric Blake  <ebb9@byu.net>
26066
26067         fchdir: avoid infinite recursion in mingw
26068         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26069         recursing.
26070
26071         test-stat-time: port to mingw
26072         * tests/test-stat-time.c (force_unlink): Return a value.
26073         (test_ctime) [W32]: Fix compilation error.
26074         (nap): Don't call usleep with too large an argument.  Use
26075         force_unlink.
26076         * doc/pastposix-functions/usleep.texi (usleep): Document the
26077         portability issue.
26078
26079 2009-10-13  Jim Meyering  <meyering@redhat.com>
26080
26081         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26082         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26083         * modules/pipe-filter-ii: Likewise.
26084         * modules/sys_socket-tests: Likewise.
26085         * modules/tsearch-tests: Likewise.
26086         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26087         (check): Depend on it.
26088
26089 2009-10-12  Eric Blake  <ebb9@byu.net>
26090
26091         utimens-tests: port to NFS file systems
26092         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26093         comparisons to avoid spurious failures from timestamp drift
26094         between NFS machines.
26095
26096 2009-10-12  Eric Blake  <ebb9@byu.net>
26097
26098         stat-time-tests: minor cleanups
26099         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26100         * tests/test-stat-time.c (nap): Separate assignment from call.
26101         Suggested by Paolo Bonzini and Bruno Haible.
26102
26103         sys_stat: guarantee struct timespec
26104         * lib/sys_stat.in.h (includes): Always include <time.h>
26105         * modules/sys_stat (Depends-on): Add time.
26106         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26107         mode_t permission values.
26108         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26109         get at subsecond timestamps.
26110
26111 2009-10-10  Eric Blake  <ebb9@byu.net>
26112
26113         futimens: new module
26114         * modules/futimens: New file.
26115         * lib/futimens.c (futimens): Likewise.
26116         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26117         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26118         we can work around Linux bugs.
26119         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26120         * modules/sys_stat (Makefile.am): Substitute them.
26121         * lib/sys_stat.in.h (futimens): Declare it.
26122         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26123         * doc/posix-functions/futimens.texi (futimens): Likewise.
26124         * modules/futimens-tests: New test.
26125         * tests/test-futimens.c: Likewise.
26126
26127         utimens: introduce fdutimens
26128         * lib/utimens.h (fdutimens): New prototype.
26129         * lib/utimens.c (gl_futimens): Move guts...
26130         (fdutimens): ...to new interface.
26131         * tests/test-utimens.c (do_fdutimens): Use it.
26132
26133         utimens: add UTIME_NOW and UTIME_OMIT support
26134         * lib/utimens.c (validate_timespec, update_timespec): New helper
26135         functions.
26136         (gl_futimens, lutimens): Use them.
26137         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26138         stdbool, sys_stat.
26139         (Link): Mention resulting library dependency.
26140         * modules/utimecmp (Link): Likewise.
26141         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26142         (Makefile.am): Pick up library dependency.
26143         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26144         definition.
26145         * tests/test-sys_stat.c: Test the definitions.
26146         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26147         * NEWS: Document library dependency.
26148
26149         utimecmp: support symlink timestamps
26150         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26151         hashing when possible.  Use pathconf when available.
26152         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26153         * modules/utimecmp (Depends-on): Add lstat.
26154
26155         utimens: add lutimens interface
26156         * lib/utimens.c (lutimens): New function.
26157         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26158         * lib/utimens.h (lutimens): Declare new interface.
26159         * tests/test-utimens.c (main): Enhance test.
26160         * tests/test-lutimens.h (test_lutimens): New file.
26161         * modules/utimens-tests (Files): Distribute it.
26162         (Depends-on): Add symlink.
26163         (configure.ac): Check for usleep.
26164
26165         utimens: validate futimens usage
26166         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26167         fewer syscalls on failure later on.  Avoid compiler warning on
26168         mingw.
26169         * modules/utimens (Depends-on): Add dup2.
26170
26171         utimens: add test
26172         * modules/utimens-tests: New test.
26173         * tests/test-utimens.h: New file.
26174         * tests/test-futimens.h: Likewise.
26175         * tests/test-utimens.c: Likewise.
26176
26177         doc: mention timestamp portability issues
26178         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26179         instead.
26180         * doc/posix-functions/utime.texi (utime): Likewise.
26181         * doc/posix-functions/utimes.texi (utimes): Likewise.
26182         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26183         instead.
26184         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26185         module.
26186         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26187         Mention weakness with symlink timestamps.
26188         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26189         to utimensat/futimens instead.
26190         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26191
26192         test-dup2: enhance test
26193         * tests/test-dup2.c (main): Also check AT_FDCWD.
26194
26195         test-stat-time: avoid more spurious failures
26196         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26197         xfs; and avoid race if the two timestamps cross quantization edge.
26198
26199         relocatable: prefer 'file system' over 'filesystem'
26200         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26201         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26202         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26203         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26204         * lib/relocatable.c (compute_curr_prefix): Likewise.
26205
26206 2009-10-10  Jim Meyering  <meyering@redhat.com>
26207
26208         stat-time-tests: check for the usleep function
26209         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26210
26211 2009-10-10  Bruno Haible  <bruno@clisp.org>
26212
26213         * modules/xnanosleep: Put the Link section after the Include section.
26214
26215 2009-10-09  Eric Blake  <ebb9@byu.net>
26216
26217         dup2: work around FreeBSD 6.1 bug
26218         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26219         * doc/posix-functions/dup2.texi (dup2): Document it.
26220         Reported by Nelson H. F. Beebe and Jim Meyering.
26221
26222         test-stat-time: port to buggy NFS clients
26223         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26224         (test_ctime): Also skip test if mtime and ctime are skewed.
26225
26226         maint: prefer 'file system' over 'filesystem'
26227         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26228         * doc/posix-functions/lstat.texi (lstat): Likewise.
26229         * lib/file-has-acl.c (file_has_acl): Likewise.
26230         * lib/fwriteerror.c [TEST]: Likewise.
26231         * tests/test-areadlink.h (test_areadlink): Likewise.
26232         * tests/test-areadlinkat-with-size.c (main): Likewise.
26233         * tests/test-areadlinkat.c (main): Likewise.
26234         * tests/test-canonicalize-lgpl.c (main): Likewise.
26235         * tests/test-canonicalize.c (main): Likewise.
26236         * tests/test-fstatat.c (main): Likewise.
26237         * tests/test-linkat.c (main): Likewise.
26238         * tests/test-lstat.h (test_lstat_func): Likewise.
26239         * tests/test-mkdir.h (test_mkdir): Likewise.
26240         * tests/test-readlink.h (test_readlink): Likewise.
26241         * tests/test-remove.c (main): Likewise.
26242         * tests/test-rename.h (test_rename): Likewise.
26243         * tests/test-renameat.c (main): Likewise.
26244         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26245         * tests/test-symlink.h (test_symlink): Likewise.
26246         * tests/test-symlinkat.c (main): Likewise.
26247         * tests/test-unlink.h (test_unlink_func): Likewise.
26248         * tests/test-unlinkat.c (main): Likewise.
26249
26250         maint: make realtime library usage explicit
26251         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26252         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26253         * modules/settime (Link): Likewise.
26254         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26255
26256         test-stat-time: speed up execution
26257         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26258         warning on mingw.
26259         (nap): New helper function.
26260         (prepare_test): Use it to reduce sleep time.
26261         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26262         execution.
26263         * modules/stat-time-tests (configure.ac): Check for usleep.
26264
26265 2009-10-09  Jim Meyering  <meyering@redhat.com>
26266
26267         selinux-h: always use getfilecon wrappers
26268         * lib/getfilecon.c: New file.
26269         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26270         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26271         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26272         (fgetfilecon): Provide a stub.
26273         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26274         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26275         file unconditionally.
26276         When <selinux/selinux.h> is found, arrange to use wrappers.
26277         * modules/selinux-h (Files): Add getfilecon.c.
26278         (Makefile.am): Substitute include-next-related bits
26279         into the now-always-generated selinux/selinux.h file.
26280         * doc/glibc-functions/lgetfilecon.texi: New file.
26281         * doc/glibc-functions/fgetfilecon.texi: New file.
26282         * doc/glibc-functions/getfilecon.texi: New file.
26283         * doc/glibc-functions/getfilecon-desc.texi: New file.
26284         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26285         which to pull in the new files.
26286         * MODULES.html.sh (Misc): Add selinux-h.
26287
26288 2009-10-08  Jim Meyering  <meyering@redhat.com>
26289
26290         unistd: fix comment typo
26291         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26292
26293 2009-10-08  Eric Blake  <ebb9@byu.net>
26294
26295         areadlink: use SIZE_MAX consistently
26296         * modules/areadlink (Depends-on): Add stdint.
26297         * modules/areadlink-with-size (Depends-on): Likewise.
26298         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26299         gives NULL; drop sys/types, since unistd gives size_t; and add
26300         stdint for SIZE_MAX.
26301         (SIZE_MAX): Rely on headers.
26302         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26303         and add stdint.
26304         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26305         (SIZE_MAX): Likewise.
26306         (INITIAL_BUF_SIZE): Turn into enum.
26307         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26308
26309 2009-10-08  Jim Meyering  <meyering@redhat.com>
26310
26311         areadlinkat: avoid compilation failure
26312         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26313         Fix typo in comment.
26314
26315 2009-10-07  Eric Blake  <ebb9@byu.net>
26316
26317         areadlinkat-with-size: new module
26318         * modules/areadlinkat-with-size: New module.
26319         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26320         * lib/areadlink.h (areadlinkat): Declare it.
26321         * MODULES.html.sh (File system functions): Mention it.
26322         * modules/areadlinkat-with-size-tests: New test.
26323         * tests/test-areadlinkat-with-size.c: New file.
26324
26325         xreadlinkat: new module
26326         * modules/xreadlinkat: New module.
26327         * lib/xreadlinkat.c (xreadlinkat): New file.
26328         * lib/xreadlink.h (xreadlinkat): Declare it.
26329         * MODULES.html.sh (File system functions): Mention it.
26330
26331         areadlinkat: new module
26332         * lib/at-func.c (FUNC_FAIL): New define.
26333         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26334         * modules/areadlinkat: New module.
26335         * lib/linkat.c (areadlinkat): Move...
26336         * lib/areadlinkat.c (areadlinkat): ...to new file.
26337         * lib/areadlink.h (areadlinkat): Declare it.
26338         * modules/linkat (Depends-on): Add areadlinkat.
26339         * MODULES.html.sh (File system functions): Mention it.
26340         * modules/areadlinkat-tests: New test.
26341         * tests/test-areadlinkat.c: New file.
26342
26343         areadlink, areadlink-with-size: add tests
26344         * modules/areadlink-tests: New test.
26345         * modules/areadlink-with-size-tests: Likewise.
26346         * tests/test-areadlink.h: New file.
26347         * tests/test-areadlink.c: Likewise.
26348         * tests/test-areadlink-with-size.c: Likewise.
26349
26350         maint: minor cleanups
26351         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26352         _UNUSED_PARAMETER_ instead.
26353         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26354         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26355         * modules/linkat-tests (Files): Distribute test-link.h.
26356
26357         openat, utimens: whitespace cleanup
26358         * lib/openat.c: Prefer space throughout, rather than mix of 8
26359         spaces vs. tabs.
26360         * lib/at-func.c: Likewise.
26361         * lib/utimens.c: Likewise.
26362
26363         openat: avoid using wrong fd
26364         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26365         working directory chooses same fd.
26366         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26367
26368         mkdir, mkdirat: fix cygwin 1.5.x bug
26369         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26370         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26371         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26372         bug.
26373         (gl_PREREQ_MKDIR): Delete unused macro.
26374         * modules/mkdir (Files): Track file rename.
26375         (configure.ac): Update macro name.
26376         * modules/openat (Depends-on): Add mkdir.
26377         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26378
26379         mkdir, mkdirat: add tests
26380         * modules/mkdir-tests: New test.
26381         * tests/test-mkdir.h: New file.
26382         * tests/test-mkdir.c: Likewise.
26383         * tests/test-mkdirat.c: Likewise.
26384         * modules/openat-tests (Files): Add new files.
26385         (Makefile.am): Run new test.
26386
26387 2009-10-06  Eric Blake  <ebb9@byu.net>
26388
26389         doc: tweak *at function documentation
26390         * doc/posix-functions/faccessat.texi (faccessat): Mention
26391         known issue with replacement.
26392         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26393         * doc/posix-functions/linkat.texi (linkat): Likewise.
26394         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26395         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26396         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26397         * doc/posix-functions/renameat.texi (renameat): Likewise.
26398         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26399
26400         openat: fix GNU/Hurd bug in unlinkat
26401         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26402         broken.
26403         * doc/posix-functions/unlink.texi (unlink): Document this.
26404         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26405
26406         fdopendir: fix GNU/Hurd bug
26407         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26408         allowing non-directory fds.
26409         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26410         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26411         * modules/dirent (Makefile.am): Substitute it.
26412         * lib/dirent.in.h (fdopendir): Declare replacement.
26413         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26414         * tests/test-fdopendir.c (main): Test something other than
26415         /dev/null, since on Hurd that behaves like a directory.
26416
26417         test-symlink: port to GNU/Hurd
26418         * tests/test-symlink.h (test_symlink): Relax expected errno.
26419
26420         doc: tweak more cygwin information
26421         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26422         now compatible with glibc.
26423         * doc/posix-functions/getopt.texi (getopt): Likewise.
26424
26425         getopt-gnu: add another test
26426         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26427         guarantee behavior relied on by m4.
26428         * tests/test-getopt.c (main): Use it.
26429         * modules/getopt-posix-tests (Depends-on): Add setenv.
26430         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26431
26432         getopt: fix compilation on darwin
26433         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26434         include.
26435         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26436         Reported by Ludovic Courtès.
26437
26438 2009-10-06  Bruno Haible  <bruno@clisp.org>
26439
26440         * modules/size_max (Description): Discourage its use.
26441         Reported by Simon Josefsson.
26442
26443 2009-10-06  Jim Meyering  <meyering@redhat.com>
26444
26445         linkat: avoid compilation failure
26446         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26447
26448 2009-10-05  Eric Blake  <ebb9@byu.net>
26449
26450         linkat: support Linux 2.6.17
26451         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26452         linkat on Linux, but allow cache variable override.
26453         * lib/linkat.c (rpl_linkat): Define override.
26454         * modules/linkat (Depends-on): Add symlinkat.
26455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26456         * modules/unistd (Makefile.am): Substitute it.
26457         * lib/unistd.in.h (linkat): Declare replacement.
26458         Reported by Pádraig Brady.
26459
26460         quotearg: port test to systems with C.UTF-8 locale
26461         * tests/test-quotearg.c (struct result_strings): Add another
26462         member, differentiating between C.ASCII and C.UTF-8 handling.
26463         (compare_strings): Add parameter.
26464         (main): Adjust all callers.
26465
26466         getopt: avoid clash with FreeBSD _getopt_internal
26467         * lib/getopt.in.h (_getopt_internal): Override the name.
26468         * lib/getopt_int.h (includes): Pick up any overrides.
26469         Reported by Reuben Thomas.
26470
26471         hash: allow C89 compilation
26472         * lib/hash.c (check_tuning): Move declaration before statement.
26473         Reported by Reuben Thomas.
26474
26475 2009-10-05  Karl Berry  <karl@gnu.org>
26476
26477         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26478
26479 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26480             Bruno Haible  <bruno@clisp.org>
26481
26482         * lib/uname.c (uname): Use a table-driven algorithm to compute
26483         Windows NT versions.
26484
26485 2009-10-04  Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26488         program_invocation_short_name.
26489         * modules/progname (configure.ac): Test for presence of
26490         program_invocation_short_name.
26491         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26492
26493 2009-10-04  Bruno Haible  <bruno@clisp.org>
26494
26495         * lib/progname.c (set_program_name): Fix comment.
26496         Reported by Jim Meyering.
26497
26498 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26499             Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/uname.c: Include <string.h>.
26502         (uname): Do only one call to GetVersionEx in the common case.
26503
26504 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26505             Bruno Haible  <bruno@clisp.org>
26506
26507         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26508         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26509         (uname): Add support for Windows CE and various non-x86 CPU types.
26510
26511 2009-10-03  Bruno Haible  <bruno@clisp.org>
26512
26513         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26514         invocation to tests/configure.ac.
26515         Reported by Ian Beckwith <ianb@erislabs.net>.
26516
26517 2009-10-02  Eric Blake  <ebb9@byu.net>
26518
26519         fchdir: avoid compiler warning
26520         * lib/fchdir.c (canonicalize_file_name)
26521         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26522
26523         test-open: support mingw errno values
26524         * tests/test-open.h (test_open): Relax test.
26525         * tests/test-fopen.h (test_fopen): Likewise.
26526         * tests/test-openat-safer.c (main): Likewise.
26527
26528         open: fix opening directory on mingw
26529         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26530
26531         test-open: on GNU/Hurd, /dev/null is a directory
26532         * tests/test-fopen.h (main): Rename...
26533         (test_fopen): ...to this.  Use a guaranteed non-directory when
26534         confirming open behavior on trailing slash.
26535         * tests/test-openat-safer.c (main): Likewise.
26536         * tests/test-open.h (main): Likewise....
26537         (test_open): ...to this.
26538         * tests/test-fopen.c (main): Adjust caller.
26539         * tests/test-fopen-safer.c (main): Likewise.
26540         * tests/test-open.c (main): Likewise.
26541         * tests/test-fcntl-safer.c (main): Likewise.
26542         Reported by Samuel Thibault.
26543
26544         rename, fchdir: don't ignore chdir failure
26545         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26546         * lib/rename.c (rpl_rename) [W32]: Likewise.
26547         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26548         an empty destination directory if source cannot be renamed,
26549         although there is still possibility for failure.
26550         * doc/posix-functions/rename.texi (rename): Document the race.
26551         Reported by Jim Meyering.
26552
26553         maint: cleanup whitespace in recent commits
26554         * lib/rename.c (rpl_rename): Remove tabs.
26555         * tests/test-link.h (test_link): Likewise.
26556         * lib/fchdir.c (get_name): Likewise.
26557         Reported by Jim Meyering.
26558
26559 2009-10-02  Ben Pfaff  <blp@gnu.org>
26560
26561         relocatable-prog-wrapper: Add missing dependency on
26562         double-slash-root.
26563         * modules/relocatable-prog-wrapper: Add dependency.
26564         Reported by Ian Beckwith <ianb@erislabs.net>.
26565
26566 2009-10-02  Eric Blake  <ebb9@byu.net>
26567
26568         renameat: fix Solaris bugs
26569         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26570         needed fixing.
26571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26572         * modules/stdio (Makefile.am): Substitute it.
26573         * lib/stdio.in.h (renameat): Declare replacement.
26574         * lib/renameat.c (rpl_renameat): Implement fix.
26575
26576         renameat: new module
26577         * modules/renameat: New file.
26578         * lib/renameat.c (renameat): Likewise.
26579         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26581         * modules/stdio (Makefile.am): Substitute them.
26582         * lib/stdio.in.h (renameat): Declare it.
26583         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26584         * doc/posix-functions/renameat.texi (renameat): Likewise.
26585         * modules/renameat-tests: New test.
26586         * tests/test-renameat.c: Likewise.
26587
26588         rename: fix mingw bugs
26589         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26590         directory overwrite bugs.
26591
26592         rename: fix another cygwin 1.5 bug
26593         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26594         checks.
26595         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26596         unnecessary cygwin workarounds.  Also work around bug with moving
26597         full directory onto an empty one.
26598         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26599
26600         rename-dest-slash: merge into rename module
26601         * modules/rename-dest-slash (Status): Mark obsolete.
26602         (Depends-on): Add rename.
26603         (Files): Let rename do it all.
26604         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26605         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26606         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26607         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26608         * lib/rename.c (rpl_rename): Update comments.
26609
26610         rename: fix cygwin 1.5.x bugs
26611         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26612         * lib/rename.c (rpl_rename): Work around them.
26613         * modules/rename (Depends-on): Add same-inode.
26614
26615         rename: fix Solaris 10 bug
26616         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26617         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26618         was the only bug.
26619
26620         rename: fix Solaris 9 bug
26621         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26622         on non-directory.  Avoid calling exit.
26623         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26624         strdup.
26625         * modules/rename-tests (Depends-on): Drop lstat.
26626         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26627         (gl_PREREQ_RENAME): Delete unused macro.
26628
26629         rename-dest-slash: fix NetBSD bug
26630         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26631         links.
26632         * modules/rename-dest-slash (Depends-on): Add same-inode.
26633
26634         rename-tests: new test, exposes several platform bugs
26635         * modules/rename-tests: New file.
26636         * tests/test-rename.h: Likewise.
26637         * tests/test-rename.c: Likewise.
26638         * doc/posix-functions/rename.texi (rename): Improve documentation,
26639         including bugs that will eventually be fixed in gnulib.
26640
26641 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26642
26643         * lib/uname.c: Include <stdlib.h>
26644         (uname): Assume version info is available.
26645
26646 2009-10-02  Jim Meyering  <meyering@redhat.com>
26647
26648         gnu-web-doc-update: correct --help output
26649         * build-aux/gnu-web-doc-update: Make --help output relevant.
26650
26651         gnu-web-doc-update: add standard options
26652         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26653
26654         gnu-web-doc-update: New module.
26655         Use this script to automatically update the on-line web documentation
26656         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26657         * modules/gnu-web-doc-update: New file, from coreutils.
26658         * build-aux/gnu-web-doc-update: New script.
26659
26660 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26661
26662         link: LoadLibrary is not needed.
26663         * lib/link.c: Use GetModuleHandle.
26664
26665 2009-10-01  Eric Blake  <ebb9@byu.net>
26666
26667         getopt: bump serial number
26668         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26669         change.
26670
26671         tests: tighten link, rmdir, and remove tests
26672         * tests/test-link.h (includes): No need to use <config.h> here.
26673         Clean up if directory hard link was created, otherwise test for
26674         trailing '.'.
26675         * tests/test-linkat.c (main): Simplify.
26676         * tests/test-remove.c (main): Enhance test for trailing '.'.
26677         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26678
26679 2009-10-01  Jim Meyering  <meyering@redhat.com>
26680
26681         maint.mk: requiring "make major" was annoying, for a "minor" release.
26682         What is intended is "stable", to contrast with alpha and beta,
26683         so require "make stable", not "make major".
26684         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26685         (get_tool_versions): Likewise.
26686         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26687
26688 2009-09-30  Ben Pfaff  <blp@gnu.org>
26689
26690         Fix broken build of replacement for Windows tmpfile().
26691         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26692         flags argument added along with the 'mkostemp' module.
26693
26694 2009-09-28  Bruno Haible  <bruno@clisp.org>
26695
26696         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26697         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26698         to 'remove_elt'.
26699         (gl_list_remove): Update.
26700         * lib/gl_list.c (gl_list_remove): Update.
26701         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26702         to 'remove_elt'.
26703         (gl_oset_remove): Update.
26704         * lib/gl_list.c (gl_oset_remove): Update.
26705         Reported by Eric Blake.
26706
26707 2009-09-28  Eric Blake  <ebb9@byu.net>
26708
26709         doc: mention yet more cygwin 1.7 status
26710         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26711         cygwin.
26712         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26713         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26714
26715         argp: fix test failure
26716         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26717         that are not upper-case.  Pass correct range to tolower.
26718
26719 2009-09-27  Jim Meyering  <meyering@redhat.com>
26720
26721         test-yesno: work around sparc-dash here-document infelicity
26722         Without this change, the literal \177 byte in a here document
26723         would make dash 0.5.5.1-3 access uninitialized memory.
26724         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26725         Instead, use a marker, "@", and filter through tr to create the desired
26726         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26727
26728 2009-09-27  Bruno Haible  <bruno@clisp.org>
26729
26730         Disable untested support for new flavours of ACLs on AIX.
26731         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26732         progress.
26733         * lib/set-mode-acl.c (qset_acl): Likewise.
26734
26735 2008-12-07  Bruno Haible  <bruno@clisp.org>
26736
26737         Add support for new flavours of ACLs on AIX. (Untested.)
26738         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26739         (file_has_acl): Add support for newer AIX.
26740         * lib/set-mode-acl.c (qset_acl): Likewise.
26741         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26742         Rainer Tammer <tammer@tammer.net>.
26743
26744 2009-09-26  Eric Blake  <ebb9@byu.net>
26745
26746         argp: fix compilation of getopt
26747         * lib/getopt.in.h (includes): Use different guard than glibc.
26748         Reported by Sergey Poznyakoff.
26749
26750         doc: mention more cygwin 1.7 status
26751         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26752         bug.
26753         * doc/posix-functions/execl.texi (execl): Likewise.
26754         * doc/posix-functions/execle.texi (execle): Likewise.
26755         * doc/posix-functions/execlp.texi (execlp): Likewise.
26756         * doc/posix-functions/execv.texi (execv): Likewise.
26757         * doc/posix-functions/execve.texi (execve): Likewise.
26758         * doc/posix-functions/execvp.texi (execvp): Likewise.
26759         * doc/glibc-functions/canonicalize_file_name.texi
26760         (canonicalize_file_name): Cygwin 1.7 now provides this.
26761         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26762         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26763         on AT_SYMLINK_NOFOLLOW.
26764
26765 2009-09-24  Eric Blake  <ebb9@byu.net>
26766
26767         test-linkat: make test more robust
26768         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26769
26770         getopt: fix inclusion guards for cygwin
26771         * modules/getopt-posix (Depends-on): Add include-next.
26772         (Makefile.am): Substitute more items in replacement header.
26773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26774         <getopt.h>.
26775         * lib/getopt.in.h (includes): Use split inclusion guard, and
26776         prefer <getopt.h> over include <unistd.h> when one is present.
26777         (option): Also override name of 'struct option'.
26778
26779         same-inode: revert prior change; it is not yet ready
26780         * NEWS: Undo mention of this change.
26781         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26782         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26783         * lib/cycle-check.c (cycle_check): Likewise.
26784         * lib/same.c (same_name): Likewise.
26785         * lib/at-func2.c (at_func2): Likewise.
26786
26787 2009-09-23  Eric Blake  <ebb9@byu.net>
26788
26789         linkat: new module
26790         * modules/linkat: New file.
26791         * lib/at-func2.c (at_func2): Likewise.
26792         * lib/linkat.c (linkat): Likewise.
26793         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26794         * lib/openat-priv.h (at_func2): Add declaration.
26795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26796         * modules/unistd (Makefile.am): Substitute them.
26797         * lib/unistd.in.h (linkat): Declare it.
26798         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26799         * doc/posix-functions/linkat.texi (linkat): Likewise.
26800         * doc/posix-functions/link.texi (link): Tweak wording.
26801         * tests/test-link.c (main): Move guts...
26802         * tests/test-link.h (test_link): ...into new file.
26803         * modules/linkat-tests: New test.
26804         * tests/test-linkat.c: Likewise.
26805         * modules/link-tests (Files): Ship new file.
26806         (Depends-on): Add stdbool.
26807
26808         dirname: add library-safe mdir_name
26809         * lib/dirname.h (mdir_name): New prototype.
26810         * lib/dirname.c (dir_name): Move guts...
26811         (mdir_name): ...to new function that avoids xalloc_die.
26812
26813         fchdir: another mingw fix
26814         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26815         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26816         on mingw (where it has not yet been ported), and make it optional
26817         elsewhere.
26818         (_gl_register_fd): Use it.
26819
26820         same-inode: make SAME_INODE tri-state, to port to mingw
26821         * NEWS: Mention this change.
26822         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26823         st_ino always being 0.
26824         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26825         * lib/cycle-check.c (cycle_check): Likewise.
26826         * lib/same.c (same_name): Likewise.
26827
26828         lstat: avoid mingw compilation error
26829         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26830         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26831         lstat ourselves.
26832         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26833         was adequate.
26834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26835         the checks for lstat.
26836         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26837
26838         link: fix test failure on Solaris 9
26839         * lib/link.c (rpl_link): Don't assume link will catch bogus
26840         trailing slash on source.
26841
26842         test-symlinkat: enhance test
26843         * tests/test-readlink.c (main): Move guts...
26844         * tests/test-readlink.h (test_readlink): ...into new file.
26845         * tests/test-symlink.c (main): Move guts...
26846         * tests/test-symlink.h (test_symlink): ...into new file.
26847         * tests/test-symlinkat.c (main): Use new files for further
26848         coverage.
26849         (do_symlink, do_readlink): New helper functions.
26850         * modules/symlink-tests (Files): Ship new file.
26851         (Depends-on): Add stdbool.
26852         * modules/readlink-tests (Files): Ship new file.
26853         (Depends-on): Add stdbool.
26854         * modules/symlinkat-tests (Files): Use new files.
26855
26856 2009-09-23  Eric Blake  <ebb9@byu.net>
26857
26858         readlink: document portability issue with symlink length
26859         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26860         systems have bogus st_size on symlinks, and mention the
26861         areadlink-with-size module.
26862         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26863         * doc/posix-functions/readlink.texi (readlink): Mention the
26864         areadlink module, and ERANGE failure.
26865         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26866         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26867
26868         readlink: fix Solaris 9 bug with trailing slash
26869         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26870         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26871         * doc/posix-functions/readlink.texi (readlink): Document this.
26872         * modules/readlink-tests: New test.
26873         * tests/test-readlink.c: Likewise.
26874
26875         readlink: fix cygwin 1.5.x bug with return type
26876         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26877         * lib/unistd.in.h (readlink): Use ssize_t.
26878         * lib/readlink.c (readlink): Likewise.
26879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26880         * modules/unistd (Makefile.am): Substitute it.
26881         * lib/unistd.in.h (readlink): Declare replacement.
26882         * doc/posix-functions/readlink.texi (readlink): Document this.
26883
26884         symlink: use throughout gnulib
26885         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26886         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26887         symlink is not used.
26888         * modules/symlinkat (Depends-on): Add symlink.
26889         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26890         * modules/canonicalize-tests (Depends-on): Likewise.
26891         * modules/lstat-tests (Depends-on): Likewise.
26892         * modules/openat-tests (Depends-on): Likewise.
26893         * modules/remove-tests (Depends-on): Likewise.
26894         * modules/rmdir-tests (Depends-on): Likewise.
26895         * modules/unlink-tests (Depends-on): Likewise.
26896         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26897         * tests/test-canonicalize.c (symlink): Likewise.
26898         * tests/test-fstatat.c (symlink): Likewise.
26899         * tests/test-lstat.c (symlink): Likewise.
26900         * tests/test-remove.c (symlink): Likewise.
26901         * tests/test-rmdir.c (symlink): Likewise.
26902         * tests/test-unlink.c (symlink): Likewise.
26903         * tests/test-unlinkat.c (symlink): Likewise.
26904
26905         symlink: new module, for Solaris 9 bug
26906         * modules/symlink: New file.
26907         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26908         * lib/symlink.c: Likewise.
26909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26910         * modules/unistd (Makefile.am): Substitute them.
26911         * lib/unistd.in.h (symlink): Declare replacement.
26912         * MODULES.html.sh (File system functions): Mention it.
26913         * doc/posix-functions/symlink.texi (symlink): Likewise.
26914         * modules/symlink-tests: New test.
26915         * tests/test-symlink.c: Likewise.
26916
26917 2009-09-23  Bruno Haible  <bruno@clisp.org>
26918
26919         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26920         when needed.
26921         Test case: gnulib-tool --import --with-tests atexit inttypes.
26922         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26923
26924 2009-09-23  Bruno Haible  <bruno@clisp.org>
26925
26926         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26927         subcommand, not in a subshell.
26928
26929 2009-09-22  Eric Blake  <ebb9@byu.net>
26930
26931         unistd: sort replacement declarations
26932         * lib/unistd.in.h: Sort declarations.
26933
26934         open, openat: minor optimization
26935         * lib/open.c (open): If open succeeded, len is non-zero.
26936         * lib/openat.c (rpl_openat): Likewise.
26937
26938         link-follow: ensure correct result
26939         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26940         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26941         distinguish between possible failures.
26942
26943 2009-09-21  Eric Blake  <ebb9@byu.net>
26944
26945         fts: avoid compiler warning
26946         * lib/fts.c (dirent_inode_sort_may_be_useful)
26947         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26948
26949 2009-09-19  Bruno Haible  <bruno@clisp.org>
26950
26951         * lib/progreloc.c (canonicalize_file_name): New declaration.
26952
26953 2009-09-19  Eric Blake  <ebb9@byu.net>
26954
26955         link: fix quoting
26956         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26957
26958         openat: fix openat bugs on Solaris 9
26959         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26960         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26961         * modules/openat (Depends-on): Add open.
26962         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26963         * modules/fcntl-h (Makefile.am): Substitute it.
26964         * lib/fcntl.in.h (openat): Declare replacement.
26965         * doc/posix-functions/openat.texi (openat): Document this.
26966
26967         openat: move fstatat and unlinkat into correct files
26968         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26969         compiled.
26970         * lib/openat.c (fstatat, unlinkat): Move...
26971         * lib/fstatat.c (fstatat): ...into correct files.
26972         * lib/unlinkat.c (unlinkat): Likewise.
26973
26974         openat: fix unlinkat bugs on Solaris 9
26975         * lib/unlinkat.c (unlinkat): New file.
26976         * modules/openat (Depends-on): Add unlink.
26977         (Files): Distribute it.
26978         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26979         trailing slash behavior is broken.
26980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26981         * modules/unistd (Makefile.am): Substitute it.
26982         * lib/unistd.in.h (unlinkat): Declare replacement.
26983         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26984
26985         openat: fix fstatat bugs on Solaris 9
26986         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26987         stat.
26988         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26989
26990         test-unlinkat: enhance test, to expose Solaris 9 bug
26991         * tests/test-unlink.c (main): Factor guts...
26992         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26993         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26994         * tests/test-rmdir.c (main): Adjust caller.
26995         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26996         (unlinker): New helper function.
26997         (rmdirat): Enhance check.
26998         * modules/rmdir-tests (Depends-on): Add stdbool.
26999         * modules/unlink-tests (Depends-on): Likewise.
27000         (Files): Add test-unlink.h.
27001         * modules/openat-tests (Files): Likewise.
27002         (Depends-on): Add unlinkdir.
27003
27004         test-fstatat: new test, to expose Solaris 9 bugs
27005         * tests/test-stat.c (main): Factor guts...
27006         * tests/test-stat.h (test_stat_func): ...into new file.
27007         * tests/test-lstat.c (main): Factor guts...
27008         * tests/test-lstat.h (test_lstat_func): ...into new file.
27009         * tests/test-fstatat.c: New file.
27010         * modules/stat-tests (Files): Add test-stat.h.
27011         * modules/lstat-tests (Files): Add test-lstat.h.
27012         (Depends-on): Add stdbool.
27013         * modules/openat-tests (Depends-on): Add pathmax.
27014         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27015         (Makefile.am): Run new test.
27016
27017         remove: new module, for mingw and Solaris 9 bugs
27018         * modules/remove: New file.
27019         * lib/remove.c: Likewise.
27020         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27022         * modules/stdio (Makefile.am): Use them.
27023         * lib/stdio.in.h (remove): Declare replacement.
27024         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27025         * doc/posix-functions/remove.texi (remove): Likewise.
27026         * modules/remove-tests: New test.
27027         * tests/test-remove.c: Likewise.
27028
27029         unlink: new module, for Solaris 9 bug
27030         * modules/unlink: New file.
27031         * lib/unlink.c: Likewise.
27032         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27034         * modules/unistd (Makefile.am): Use them.
27035         * lib/unistd.in.h (stat): Declare replacement.
27036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27037         * doc/posix-functions/unlink.texi (unlink): Likewise.
27038         * modules/unlink-tests: New test.
27039         * tests/test-unlink.c: Likewise.
27040
27041         lstat: fix Solaris 9 bug
27042         * lib/lstat.c (lstat): Also check for trailing slash on
27043         non-symlink, non-directories.  Use stat module to simplify logic.
27044         * doc/posix-functions/lstat.texi (lstat): Document it.
27045         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27046         (configure.ac): Check for symlink.
27047         * tests/test-lstat.c (main): Add more tests.
27048
27049         stat: add as dependency to other modules
27050         * modules/chown (Depends-on): Add stat.
27051         * modules/euidaccess (Depends-on): Likewise.
27052         * modules/fchdir (Depends-on): Likewise.
27053         * modules/isdir (Depends-on): Likewise.
27054         * modules/link (Depends-on): Likewise.
27055         * modules/lstat (Depends-on): Likewise.
27056         * modules/mkdir-p (Depends-on): Likewise.
27057         * modules/modechange (Depends-on): Likewise.
27058         * modules/open (Depends-on): Likewise.
27059         * modules/readlink (Depends-on): Likewise.
27060         * modules/same (Depends-on): Likewise.
27061
27062         stat: fix Solaris 9 bug
27063         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27064         slash.
27065         * lib/stat.c (rpl_stat): Work around it.
27066         * doc/posix-functions/stat.texi (stat): Update documentation.
27067
27068         stat: new module, for mingw bug
27069         * modules/stat: New file.
27070         * lib/stat.c: Likewise.
27071         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27073         * modules/sys_stat (Makefile.am): Use them.
27074         * lib/sys_stat.in.h (stat): Declare replacement.
27075         * lib/openat.c (fstatat): Deal with lstat and stat being function
27076         macros.
27077         * modules/openat (Depends-on): Add inline.
27078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27079         * doc/posix-functions/stat.texi (stat): Likewise.
27080         * modules/stat-tests: New test.
27081         * tests/test-stat.c: Likewise.
27082
27083 2009-09-19  Jim Meyering  <meyering@redhat.com>
27084
27085         syntax-check: detect unnecessary inclusion of canonicalize.h
27086         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27087
27088 2009-09-19  Eric Blake  <ebb9@byu.net>
27089
27090         canonicalize-lgpl: adjust clients to use correct header
27091         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27092         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27093         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27094         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27095         * lib/progreloc.c (includes): Likewise.
27096
27097 2009-09-19  Jim Meyering  <meyering@redhat.com>
27098
27099         test-posixtm.c: correct a comment
27100         * tests/test-posixtm.c: Correct first-line comment.
27101         Spotted by Eric Blake.
27102
27103 2009-09-16  Jim Meyering  <meyering@redhat.com>
27104
27105         posixtm-tests: make T const-correct; add a test case
27106         * tests/test-posixtm.c (T): Declare const.
27107         Add a test for -(2^31+1).
27108         Remove useless can-succeed-only-in-2002 test.
27109
27110         posixtm-tests: adjust the sole failing test
27111         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27112         expected output matches what mktime now produces.  Cross-checked via
27113         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27114
27115         posixtm: move #ifdef'd tests into a new module
27116         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27117         * tests/test-posixtm.c: ... this new file.
27118         * modules/posixtm-tests: New module.
27119
27120 2009-09-19  Eric Blake  <ebb9@byu.net>
27121
27122         openat: simplify use of at-func.c
27123         * lib/at-func.c (includes): Include prerequisites here, to
27124         simplify requirements on client files.
27125         * lib/openat-priv.h: Add double-inclusion guard.
27126         * lib/faccessat.c (includes): Simplify.
27127         * lib/fchmodat.c (includes): Likewise.
27128         * lib/fchownat.c (includes): Likewise.
27129         * lib/mkdirat.c (includes): Likewise.
27130         * lib/mkfifoat.c (includes): Likewise.
27131         * lib/symlinkat.c (includes): Likewise.
27132
27133         openat: allow return of fd 0
27134         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27135         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27136         unistd-safer.
27137         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27138         <fcntl.h>; this module does not leak fds.
27139         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27140         must be allowed to return 0, leaving openat_safer to add the
27141         safety.
27142         (openat_permissive): Avoid writing to just-opened fd 2 if
27143         restoring the current directory fails.
27144         * lib/openat-die.c (openat_restore_fail): Add comment.
27145         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27146         (save_cwd): Guarantee safe fd, but without use of open_safer.
27147         * tests/test-openat.c: New test.
27148         * modules/openat-tests (Files, Makefile.am): Distribute and build
27149         new file.
27150
27151         relocatable-prog-wrapper: fix build
27152         * modules/relocatable-prog-wrapper (Files): Update name of
27153         canonicalize m4 file, broken on 2009-09-17.
27154         Reported by emad hajjar <aleppos@hotmail.com>.
27155
27156 2009-09-19  Bruno Haible  <bruno@clisp.org>
27157
27158         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27159         * lib/safe-alloc.c: Likewise.
27160         Reported by Ian Beckwith <ianb@erislabs.net>.
27161
27162 2009-09-18  Bruno Haible  <bruno@clisp.org>
27163
27164         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27165         Reported by <erobles@sensacd.com.mx>.
27166
27167 2009-09-17  Eric Blake  <ebb9@byu.net>
27168
27169         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27170         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27171         slashes when checking if last component is missing.
27172         * tests/test-canonicalize.c (main): Test this.
27173
27174         canonicalize, canonicalize-lgpl: honor // if distinct from /
27175         * modules/canonicalize (Files): Add double-slash-root.m4.
27176         * modules/canonicalize-lgpl (Files): Likewise.
27177         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27178         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27179         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27180         fallback definition.
27181         (canonicalize_filename_mode): Use it to protect //.
27182         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27183         (__realpath): Likewise.
27184         * tests/test-canonicalize.c (main): Test this.
27185         * tests/test-canonicalize-lgpl.c (main): Likewise.
27186         * modules/canonicalize-tests (Depends-on): Add same-inode.
27187         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27188
27189         canonicalize-lgpl: fix glibc bug with trailing slash
27190         * m4/canonicalize-lgpl.m4: Move contents...
27191         * m4/canonicalize.m4: ...here.
27192         (gl_CANONICALIZE_LGPL): Factor realpath check...
27193         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27194         glibc 2.3.5 bug, fixed 2005-04-27.
27195         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27196         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27197         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27198         * modules/canonicalize-lgpl (Files): Manage file rename.
27199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27200         * modules/stdlib (Makefile.am): Substitute witness.
27201         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27202         is needed.
27203         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27204         replacement is required.
27205         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27206         * doc/glibc-functions/canonicalize_file_name.texi
27207         (canonicalize_file_name): Document this.
27208         * doc/posix-functions/realpath.texi (realpath): Likewise.
27209
27210         canonicalize-lgpl: reject non-directory with trailing slash
27211         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27212         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27213         catches failures in glibc 2.3.5.
27214         * tests/test-canonicalize.c (main): Likewise.
27215
27216         canonicalize-lgpl: use native realpath if it works
27217         * lib/canonicalize-lgpl.c (realpath): Guard with
27218         FUNC_REALPATH_WORKS.
27219         * lib/stdlib.in.h (realpath): Make declaration optional based on
27220         HAVE_REALPATH.
27221         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27222         native realpath works.
27223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27224         * modules/stdlib (Makefile.am): Substitute witness.
27225
27226         canonicalize, canonicalize-lgpl: use <stdlib.h>
27227         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27228         (Include): Mention <stdlib.h>.
27229         (configure.ac): Mention functions we provide.
27230         * modules/canonicalize (configure.ac): Likewise.
27231         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27232         realpath if canonicalize_file_name is missing.
27233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27234         * modules/stdlib (Makefile.am): Substitute witnesses.
27235         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27236         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27237         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27238         * NEWS: Document this.
27239         * doc/glibc-functions/canonicalize_file_name.texi
27240         (canonicalize_file_name): Likewise.
27241         * doc/posix-functions/realpath.texi (realpath): Likewise.
27242         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27243
27244         test-canonicalize: consolidate into single C program
27245         * tests/test-canonicalize.sh: Delete; move setup into...
27246         * tests/test-canonicalize.c (main): ...the program, making it
27247         easier to run in debugger.  Add some tests.
27248         * modules/canonicalize-tests (Files): Remove unused file.
27249         (Depends-on): Add progname.
27250         (configure.ac, Makefile.am): Simplify.
27251
27252         test-canonicalize-lgpl: consolidate into single C program
27253         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27254         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27255         easier to run in debugger.  Add some tests.
27256         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27257         (configure.ac, Makefile.am): Simplify.
27258
27259         canonicalize: avoid resolvepath
27260         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27261         unnecessary checks.
27262         * lib/canonicalize.c (includes): Simplify.
27263         (canonicalize_file_name): Drop resolvepath implementation.
27264         * modules/canonicalize (Depends-on): Drop filenamecat.
27265
27266         canonicalize: don't lose errno
27267         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27268         over calls to free.
27269
27270         canonicalize: simplify errno handling
27271         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27272         assignment.
27273
27274         canonicalize, canonicalize-lgpl: update module dependencies
27275         * modules/canonicalize (Depends-on): Add extensions, lstat,
27276         pathmax, stdlib.
27277         (Files): Drop pathmax.h.
27278         (configure.ac): Adjust macro name.
27279         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27280         lstat, stdlib, sys_stat.
27281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27282         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27283         extensions.
27284         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27285         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27286         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27287         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27288         declaration, if available.
27289         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27290         we can rely on the readlink module.
27291         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27292         (includes): Use <unistd.h> unconditionally.
27293
27294 2009-09-17  Eric Blake  <ebb9@byu.net>
27295
27296         maint: make Include sections of modules consistent
27297         * modules/alloca: Use only header name; no need to list #include.
27298         * modules/alloca-opt: Likewise.
27299         * modules/arpa_inet: Likewise.
27300         * modules/canon-host: Likewise.
27301         * modules/configmake: Likewise.
27302         * modules/dirent: Likewise.
27303         * modules/eealloc: Likewise.
27304         * modules/environ: Likewise.
27305         * modules/fchdir: Likewise.
27306         * modules/fcntl: Likewise.
27307         * modules/fcntl-h: Likewise.
27308         * modules/gethrxtime: Likewise.
27309         * modules/gettime: Likewise.
27310         * modules/ignore-value: Likewise.
27311         * modules/inet_ntop: Likewise.
27312         * modules/inet_pton: Likewise.
27313         * modules/inttypes: Likewise.
27314         * modules/isnand-nolibm: Likewise.
27315         * modules/isnanf-nolibm: Likewise.
27316         * modules/mbchar: Likewise.
27317         * modules/mbfile: Likewise.
27318         * modules/mbiter: Likewise.
27319         * modules/mbuiter: Likewise.
27320         * modules/netdb: Likewise.
27321         * modules/netinet_in: Likewise.
27322         * modules/nproc: Likewise.
27323         * modules/pagealign_alloc: Likewise.
27324         * modules/poll: Likewise.
27325         * modules/printf-frexp: Likewise.
27326         * modules/pthread: Likewise.
27327         * modules/putenv: Likewise.
27328         * modules/random_r: Likewise.
27329         * modules/relocatable-prog: Likewise.
27330         * modules/search: Likewise.
27331         * modules/select: Likewise.
27332         * modules/selinux-h: Likewise.
27333         * modules/settime: Likewise.
27334         * modules/signal: Likewise.
27335         * modules/size_max: Likewise.
27336         * modules/socklen: Likewise.
27337         * modules/ssize_t: Likewise.
27338         * modules/stdarg: Likewise.
27339         * modules/stdbool: Likewise.
27340         * modules/stddef: Likewise.
27341         * modules/stdint: Likewise.
27342         * modules/stdio: Likewise.
27343         * modules/stdlib: Likewise.
27344         * modules/string: Likewise.
27345         * modules/strings: Likewise.
27346         * modules/sys_file: Likewise.
27347         * modules/sys_ioctl: Likewise.
27348         * modules/sys_select: Likewise.
27349         * modules/sys_socket: Likewise.
27350         * modules/sys_stat: Likewise.
27351         * modules/sys_time: Likewise.
27352         * modules/sys_times: Likewise.
27353         * modules/sys_utsname: Likewise.
27354         * modules/sys_wait: Likewise.
27355         * modules/sysexits: Likewise.
27356         * modules/time: Likewise.
27357         * modules/times: Likewise.
27358         * modules/tmpfile: Likewise.
27359         * modules/trim: Likewise.
27360         * modules/unistd: Likewise.
27361         * modules/wchar: Likewise.
27362         * modules/wctype: Likewise.
27363
27364 2009-09-17  Bruno Haible  <bruno@clisp.org>
27365
27366         Make getdate.y compile on QNX and NetBSD 5 / i386.
27367         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27368         TIME_T_FITS_IN_LONG_INT.
27369         * lib/getdate.y (long_time_t): New type.
27370         (relative_time): Change type of 'seconds' field to long_time_t.
27371         (get_date): Update types of local variables. Check against overflow
27372         during conversion from long_time_t to time_t.
27373         Reported by Matt Kraai <kraai@ftbfs.org>
27374         and Hasso Tepper <hasso@netbsd.org>.
27375
27376 2009-09-17  Bruno Haible  <bruno@clisp.org>
27377
27378         * modules/COPYING: Update copyright years.
27379         * modules/README: Likeiwse.
27380         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27381         Reported by Ian Beckwith <ianb@erislabs.net>.
27382
27383 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27384
27385         * users.txt: Update references for gnuit package.
27386
27387 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27388
27389         * m4/getdelim.m4: Fix typo in copyright line.
27390
27391 2009-09-17  Bruno Haible  <bruno@clisp.org>
27392
27393         * lib/atoll.c: Use the standard header with GPL copyright.
27394         * lib/argz.in.h: Likewise.
27395         * lib/glob.c: Likewise.
27396         * lib/glob-libc.h: Likewise.
27397         * lib/random_r.c: Likewise.
27398         * lib/siglist.h: Likewise.
27399         * lib/strsignal.c: Likewise.
27400         Reported by Ian Beckwith <ianb@erislabs.net>.
27401
27402 2009-09-17  Eric Blake  <ebb9@byu.net>
27403
27404         rmdir: ensure correct dependency order
27405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27406
27407 2009-09-17  Bruno Haible  <bruno@clisp.org>
27408
27409         Disable assertion that fails on NetBSD 5 / i386.
27410         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27411         Reported by Sam Steingold <sds@gnu.org>
27412         and Hasso Tepper <hasso@netbsd.org>.
27413
27414 2009-09-16  Eric Blake  <ebb9@byu.net>
27415
27416         unlinkdir: port to mingw
27417         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27418         on which no one can unlink a directory.
27419
27420         stdlib: sort witness names
27421         * modules/stdlib (Makefile.am): Sort replacements.
27422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27423         * lib/stdlib.in.h: Likewise.
27424
27425         parse-duration-tests: avoid link failure
27426         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27427         LIBINTL.
27428         Reported by Tom G. Christensen.
27429
27430         openat-tests: ensure unlinkat behaves like rmdir
27431         * tests/test-rmdir.c (main): Factor guts...
27432         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27433         * modules/rmdir-tests (Files): Ship new file.
27434         * modules/openat-tests: New test.
27435         * tests/test-unlinkat.c: Likewise.
27436
27437         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27438         * modules/rmdir-errno (Status, Notice): Now obsolete.
27439
27440         rmdir: work around cygwin 1.5.x and mingw bugs
27441         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27442         * lib/rmdir.c (rmdir): Work around it.
27443         * modules/rmdir (Status, Notice): No longer obsolete.
27444         (Files): Add dos.m4.
27445         (Depends-on): Add unistd.
27446         (configure.ac): Set witnesses.
27447         (License): Relax to LGPLv2+.
27448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27449         * modules/unistd (Makefile.am): Substitute witnesses.
27450         * lib/unistd.in.h (rmdir): Declare replacement.
27451         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27452         * modules/rmdir-tests: New tests.
27453         * tests/test-rmdir.c: Likewise.
27454
27455 2009-09-15  Eric Blake  <ebb9@byu.net>
27456
27457         fchdir: improve use of replacement functions
27458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27460         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27461         REPLACE_CLOSEDIR.
27462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27463         * modules/sys_stat (Makefile.am): Substitute correct witness.
27464         * modules/dirent (Makefile.am): Likewise.
27465         * modules/unistd (Makefile.am): Likewise.
27466         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27467         * lib/unistd.in.h (dup): Likewise.
27468         * lib/sys_stat.in.h (fstat): Likewise.
27469
27470         maint: ignore gnulib-tool temp files
27471         * .gitignore: Ignore files created during gnulib-tool --test.
27472
27473 2009-09-13  Jim Meyering  <meyering@redhat.com>
27474
27475         posixtm: don't reject a time that specify "60" as the number of seconds
27476         * lib/posixtm.c (posixtime): The code to reject invalid dates
27477         would also reject a time specified with the .60 suffix.
27478         But POSIX allows that, in order to accommodate leap seconds.
27479         So don't reject it.
27480         (main): Adjust tests accordingly.
27481         * modules/posixtm (Depends-on): Add stpcpy.
27482
27483 2009-09-11  Jim Meyering  <meyering@redhat.com>
27484
27485         announce-gen: include [$release_type] in emitted Subject:
27486         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27487         e.g., [stable] in the emitted Subject: line.
27488
27489 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27490
27491         Remove obsolete macros from several modules.
27492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27493         obsolete Autoconf macros with their modern counterparts.
27494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27495         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27497         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27498         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27501         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27502         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27503         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27506         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27507         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27510         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27511         * m4/time_r.m4 (gl_TIME_R): Likewise.
27512         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27513         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27514         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27515
27516         Fix copyright header in build-aux scripts.
27517         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27518         recommendation.
27519         * build-aux/ncftpput-ftp: Likewise.
27520         * build-aux/update-copyright: Likewise.
27521
27522 2009-09-09  Eric Blake  <ebb9@byu.net>
27523
27524         test-link: allow Linux choice of errno
27525         * tests/test-link.c (main): Relax test for alternate error.
27526
27527         strndup: fix improper m4 caching
27528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27529         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27530         (gl_PREREQ_STRNDUP): Delete.
27531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27532         * modules/string (Makefile.am): Substitute it.
27533         * lib/string.in.h (strndup): Modernize prototype.
27534
27535         getcwd: port to mingw
27536         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27537         different from the POSIX assumptions made throughout the getcwd
27538         module; fortunately, the mingw getcwd does not need replacement.
27539         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27540         * modules/getcwd-tests: New test.
27541         * tests/test-getcwd.c: Likewise.
27542
27543         link: fix platform bugs
27544         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27545         * lib/link.c (link): Work around them.  Fix related mingw bug.
27546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27547         * modules/unistd (Makefile.am): Substitute it.
27548         * lib/unistd.in.h (link): Declare replacement.
27549         * doc/posix-functions/link.texi (link): Document this.
27550         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27551
27552         test-link: consolidate into single C program, test more cases
27553         * tests/test-link.sh: Delete.
27554         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27555         at least Cygwin and Solaris.
27556         * modules/link-tests (Files): Remove unused file.
27557         (Depends-on): Add errno, sys_stat.
27558         (Makefile.am): Simplify.
27559
27560 2009-09-08  Bruno Haible  <bruno@clisp.org>
27561
27562         Work around towlower, towupper bug on mingw.
27563         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27564         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27565         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27566         * doc/posix-functions/towupper.texi: Likewise.
27567         Reported by Eric Blake.
27568
27569 2009-09-08  Jim Meyering  <meyering@redhat.com>
27570
27571         build: don't try to run autoheader if we don't use it
27572         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27573         is not used in configure.ac.
27574
27575 2009-09-08  Eric Blake  <ebb9@byu.net>
27576
27577         euidaccess: fix compilation error
27578         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27579
27580         rawmemchr: relax license
27581         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27582         okay.
27583         Reported by Jim Meyering.
27584
27585         mkfifoat: new module
27586         * modules/mkfifoat: New file.
27587         * lib/mkfifoat.c: Likewise.
27588         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27590         * modules/sys_stat (Makefile.am): Use them.
27591         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27592         * MODULES.html.sh (File system functions): Mention module.
27593         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27594         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27595         * modules/mkfifoat-tests: New test.
27596         * tests/test-mkfifoat.c: Likewise.
27597
27598         strchrnul: relax license
27599         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27600         okay.
27601         Reported by Jim Meyering.
27602
27603 2009-09-08  Eric Blake  <ebb9@byu.net>
27604
27605         fstatat: fix compilation on Solaris
27606         * lib/fstatat.c (includes): Add fcntl.h.
27607         Reported by Pádraig Brady.
27608
27609 2009-09-07  Eric Blake  <ebb9@byu.net>
27610
27611         rename: modernize replacement
27612         * modules/rename (Depends-on): Add stdio.
27613         (configure.ac): Declare witness.
27614         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27615         stdio take care of replacement.
27616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27617         * modules/stdio (Makefile.am): Substitute them.
27618         * lib/stdio.in.h (rename): Declare replacement.
27619         * lib/rename.c (includes): Allow cross-compilation to non-windows
27620         machines.
27621         * doc/posix-functions/rename.texi (rename): Improve
27622         documentation.
27623
27624         stdio: sort witness names
27625         * modules/stdio (Makefile.am): Sort replacements.
27626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27627         * lib/stdio.in.h: Likewise.
27628
27629         getcwd: minor cleanups
27630         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27631         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27632
27633         openat: provide more convenience names
27634         * modules/faccessat (configure.ac): Add C witness.
27635         * lib/unistd.in.h (readlinkat): Fix typo.
27636         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27637         convenience wrappers.
27638         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27639         wrappers in syntax checks.
27640
27641 2009-09-06  Eric Blake  <ebb9@byu.net>
27642
27643         doc: fix comments in recent patches
27644         * lib/faccessat.c: Mention correct function.
27645         * lib/fchmodat.c: Likewise.
27646         * lib/fchownat.c: Likewise.
27647         * lib/symlinkat.c: Likewise.
27648         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27649         constants.
27650
27651         faccessat, symlinkat: continue cleanup of previous patch
27652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27653         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27654         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27656         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27657         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27658         set.
27659
27660 2009-09-06  Bruno Haible  <bruno@clisp.org>
27661
27662         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27663         (fstatat): Declare if GNULIB_FSTATAT is set.
27664         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27665         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27666         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27667         * modules/fcntl-h (Files): Remove m4/openat.m4.
27668         * modules/sys_stat (Files): Remove m4/openat.m4.
27669         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27670         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27671         * modules/unistd (Files): Remove m4/openat.m4.
27672         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27673         GNULIB_OPENAT.
27674         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27675         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27676         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27677         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27678         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27679         gl_OPENAT_DEFAULTS.
27680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27681         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27682         Don't require gl_OPENAT_DEFAULTS.
27683         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27684         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27685         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27686         (gl_OPENAT_DEFAULTS): Remove macro.
27687
27688 2009-09-06  Bruno Haible  <bruno@clisp.org>
27689
27690         * modules/openat (configure.ac): Remove unneeded witness.
27691
27692 2009-09-06  Bruno Haible  <bruno@clisp.org>
27693
27694         Set errno to ENOSYS when a function is entirely unsupported.
27695         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27696         EOPNOTSUPP.
27697         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27698         * modules/chown (Depends-on): Remove errno.
27699
27700 2009-09-06  Bruno Haible  <bruno@clisp.org>
27701
27702         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27703
27704 2009-09-06  Bruno Haible  <bruno@clisp.org>
27705
27706         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27707
27708 2009-09-06  Ben Pfaff  <blp@gnu.org>
27709             Bruno Haible  <bruno@clisp.org>
27710
27711         Work around a glibc bug in strtok_r.
27712         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27713         Undefine if UNDEFINE_STRTOK_R is set.
27714         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27716         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27718         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27719         UNDEFINE_STRTOK_R.
27720         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27721
27722 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27723
27724         exclude: minor fix
27725         * lib/exclude.c: Include wctype.h
27726
27727 2009-09-06  Akim Demaille  <demaille@gostai.com>
27728
27729         bootstrap: improve error message
27730         * build-aux/bootstrap (find_tool): Upon failure, report the list
27731         of candidates.
27732         Honor the initial value of the envvar.
27733
27734 2009-09-05  Eric Blake  <ebb9@byu.net>
27735
27736         symlinkat: new module
27737         * modules/symlinkat: New file.
27738         * lib/symlinkat.c: Likewise.
27739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27741         * modules/unistd (Makefile.am): Use them.
27742         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27743         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27744         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27745         * MODULES.html.sh (File system functions): Mention module.
27746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27747         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27748         * modules/symlinkat-tests: New test.
27749         * tests/test-symlinkat.c: Likewise.
27750
27751         test-openat-safer: add more checks
27752         * tests/test-openat-safer.c (main): Check more code paths.
27753
27754 2009-09-05  Jim Meyering  <meyering@redhat.com>
27755
27756         syntax-check: detect unnecessary inclusion of openat.h
27757         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27758
27759 2009-09-05  Bruno Haible  <bruno@clisp.org>
27760
27761         Support towlower, towupper.
27762         * doc/posix-functions/towlower.texi: Mention module wctype.
27763         * doc/posix-functions/towupper.texi: Likewise.
27764         * lib/wctype.in.h (towlower, towupper): New functions.
27765         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27766         (ASSERT): New macro.
27767         (e): New variable.
27768         (main): Test also towlower, towupper. Test WEOF argument.
27769         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27770
27771 2009-09-05  Bruno Haible  <bruno@clisp.org>
27772
27773         Fix conversion behaviour when the input is invalid.
27774         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27775         mark occurring in first pass of indirect conversion.
27776         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27777         input.
27778         Found by clang's static analyzer.
27779
27780 2009-09-05  Bruno Haible  <bruno@clisp.org>
27781
27782         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27783         where direct conversion is possible.
27784
27785 2009-09-04  Eric Blake  <ebb9@byu.net>
27786
27787         openat: fail with ENOENT on empty name
27788         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27789         buffer.
27790
27791         link-follow: fix logic bug in prior patch
27792         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27793         reversed sense of yes and no in prior patch.  Avoid confusing
27794         compilation failure with desired semantics.
27795
27796         link-follow: accomodate mingw and cross-compilation
27797         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27798         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27799         cross-compilation results to -1, to make linkat easier to
27800         implement when cross-compiling.  Trivially support mingw.
27801         * modules/link-follow (configure.ac): Call new name.
27802         * NEWS: Mention this.
27803
27804 2009-09-03  Eric Blake  <ebb9@byu.net>
27805
27806         faccessat: compile replacement
27807         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27808         needed.
27809
27810         fts: fix compilation error
27811         * lib/fts.c (includes): Re-add "openat.h", for
27812         openat_needs_fchdir.
27813
27814         faccessat: new module
27815         * modules/faccessat: New file.
27816         * lib/faccessat.c: Likewise.
27817         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27819         * modules/unistd (Makefile.am): Use it.
27820         * lib/unistd.in.h (faccessat): Declare it.
27821         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27822         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27823         * MODULES.html.sh (File system functions): Mention it.
27824         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27825         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27826
27827         euidaccess: prefer POSIX over non-standard implementation
27828         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27829         * lib/euidaccess.c (euidaccess): Use it if available.
27830
27831         openat: make template easier to use
27832         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27833         AT_FUNC_F2 to be undefined.
27834         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27835         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27836         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27837         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27838         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27839         Likewise.
27840         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27841         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27842         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27843         Likewise.
27844
27845         openat: declare in POSIX headers
27846         * NEWS: Mention this.
27847         * modules/openat (configure.ac): Declare witnesses.
27848         (Depends-on): Add fcntl-h, sys_stat, unistd.
27849         (Include): Mention correct headers.
27850         * modules/fcntl-h (Depends-on): Add link-warning.
27851         (Files): Add openat.m4.
27852         (Makefile.am): Substitute witnesses.
27853         * modules/sys_stat (Files, Makefile.am): Likewise.
27854         * modules/unistd (Files, Makefile.am): Likewise.
27855         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27856         (gl_OPENAT_DEFAULTS): New macro.
27857         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27860         (SYS_STAT_H): Remove unused variable.
27861         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27862         * lib/fcntl--.h (includes): Remove unneeded header.
27863         * lib/openat-safer.c (includes): Likewise.
27864         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27865         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27866         appropriate headers.
27867         (__OPENAT_PREFIX): Delete.
27868         * lib/fcntl.in.h (openat): Provide declaration.
27869         (AT_FDCWD): Fix Solaris bug.
27870         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27871         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27872         * lib/fchmodat.c (includes):  Adjust to find declaration.
27873         * lib/fchownat.c (includes): Likewise.
27874         * lib/mkdirat.c (includes): Likewise.
27875         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27876         still visible.
27877
27878 2009-09-02  Eric Blake  <ebb9@byu.net>
27879
27880         errno: use consistently
27881         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27882         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27883         * lib/canonicalize.c (ELOOP): Likewise.
27884         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27885         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27886         * lib/lchown.c (EOPNOTSUPP): Likewise.
27887         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27888         * lib/savewd.c (ESTALE): Likewise.
27889         * lib/settime.c (ENOSYS): Likewise.
27890         * lib/utimens.c (ENOSYS): Likewise.
27891         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27892         * lib/chdir-safer.c (ELOOP): Likewise.
27893         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27894         * modules/c-stack (Depends-on): Add errno.
27895         * modules/canonicalize (Depends-on): Likewise.
27896         * modules/chdir-safer (Depends-on): Likewise.
27897         * modules/fdopendir (Depends-on): Likewise.
27898         * modules/inet_ntop (Depends-on): Likewise.
27899         * modules/inet_pton (Depends-on): Likewise.
27900         * modules/lchown (Depends-on): Likewise.
27901         * modules/openat (Depends-on): Likewise.
27902         * modules/savewd (Depends-on): Likewise.
27903         * modules/settime (Depends-on): Likewise.
27904         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27905
27906         fts: avoid leaking fds
27907         * modules/fts (Depends-on): Add cloexec.
27908         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27909         flag.
27910
27911         fts: make directory fds more robust
27912         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27913         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27914
27915         backupfile, chdir-long, fts, savedir: make safer
27916         * lib/backupfile.c (includes): Use "dirent--.h", since
27917         numbered_backup can write to stderr during readdir.
27918         * lib/savedir.c (includes): Likewise.
27919         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27920         emulation can write to stderr on failure.
27921         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27922         * lib/getcwd.c: Document why opendir_safer is unused.
27923         * lib/glob.c: Likewise.
27924         * lib/scandir.c: Likewise.
27925         * lib/openat-proc.c: Likewise, for open_safer.
27926         * modules/backupfile (Depends-on): Add dirent-safer.
27927         * modules/savedir (Depends-on): Likewise.
27928         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27929         * modules/chdir-long (Depends-on): Add openat-safer.
27930
27931         openat-safer: new module
27932         * modules/openat-safer: New file.
27933         * lib/openat-safer.c: Likewise.
27934         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27935         * lib/fcntl-safer.h (openat_safer): Declare.
27936         * lib/fcntl--.h (openat): Override.
27937         * MODULES.html.sh (File descriptor based I/O): Mention it.
27938         * lib/openat.h: Add double-inclusion guards.
27939         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27940         "fcntl--.h", so we can implement openat.
27941         * modules/openat-safer-tests: New test.
27942         * tests/test-openat-safer.c: New file.
27943
27944         dirent-safer: new module
27945         * modules/dirent-safer: New file.
27946         * lib/dirent--.h: Likewise.
27947         * lib/dirent-safer.h: Likewise.
27948         * lib/opendir-safer.c: Likewise.
27949         * m4/dirent-safer.m4: Likewise.
27950         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27951         * modules/dirent-safer-tests: New test.
27952         * tests/test-dirent-safer.c: New file.
27953         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27954
27955         fdopendir: optimize on mingw
27956         * lib/unistd.in.h (_gl_directory_name): New prototype.
27957         * lib/fchdir.c (_gl_directory_name): Implement it.
27958         (fchdir): Use it to simplify implementation.
27959         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27960         fchdir, when available, to avoid calling [f]chdir().
27961
27962         fdopendir: split into its own module
27963         * lib/openat.c (fdopendir): Move...
27964         * lib/fdopendir.c: ...into new file.
27965         * modules/fdopendir: New module.
27966         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27967         * modules/openat (Depends-on): Add fdopendir.
27968         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27969         fdopendir here.
27970         * modules/savedir (Depends-on): Only need fdopendir, not full
27971         openat.
27972         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27973         * lib/openat.h (fdopendir): Drop prototype.
27974         * lib/dirent.in.h (fdopendir): Provide prototype.
27975         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27976         * modules/dirent (Makefile.am): Substitute them.
27977         * MODULES.html.sh (File system functions): Mention it.
27978         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27979         * modules/fdopendir-tests: New file.
27980         * tests/test-fdopendir.c: Likewise.
27981
27982         fchdir: use more consistent macro convention
27983         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27984         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27985         REPLACE_FCHDIR, rather than relying on config.h macros.
27986         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27987         inside a single make-time REPLACE_FCHDIR block, rather than using
27988         the config.h FCHDIR_REPLACEMENT.
27989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27990         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27991         Manage fstat replacement.
27992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27993         REPLACE_FCHDIR.
27994         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27995         (Makefile.am): Substitute REPLACE_FCHDIR.
27996         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27997         FCHDIR_REPLACEMENT.
27998         * lib/dup-safer.c (dup_safer): Likewise.
27999         * lib/dup2.c (rpl_dup2): Likewise.
28000         * lib/dup3.c (rpl_dup3): Likewise.
28001         * lib/open.c (rpl_open): Likewise.
28002
28003         fchdir: simplify error handling, and support dup3
28004         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28005         stdbool, malloc-posix, realloc-posix.
28006         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28007         (ensure_dirs_slot): Return false on allocation failure.
28008         (rpl_dup2): Delete.
28009         (_gl_register_dup): New function.
28010         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28011         (_gl_register_fd): Close fd on allocation failure.
28012         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28013         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28014         prototype.
28015         (rpl_dup2_fchdir): Delete prototype.
28016         * lib/open.c (open): Update caller.
28017         * lib/dup2.c (dup2): Track fchdir metadata.
28018         * lib/dup3.c (dup3): Likewise.
28019         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28021
28022 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28023
28024         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28025         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28026         don't pass arguments to AC_OUTPUT.
28027
28028 2009-09-02  Bruno Haible  <bruno@clisp.org>
28029
28030         * modules/mkdtemp (License): Relicense under LGPLv2+.
28031         Reported by Paolo Bonzini.
28032
28033 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28034
28035         Replace uses of obsolete autoconf macros in Jim's modules.
28036         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28037         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28038         can evoke a warning from autoconf when run with -Wobsolete
28039         enabled.  They were declared obsolete for good reasons (see
28040         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28041         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28042         should not continue using the deprecated macros.
28043         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28044         obsolete Autoconf macros with modern counterparts.
28045         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28046         * m4/dos.m4 (gl_AC_DOS): Likewise.
28047         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28048         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28049         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28050         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28051         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28054         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28056         Likewise.
28057         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28059         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28060         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28061         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28062         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28063
28064 2009-09-01  Eric Blake  <ebb9@byu.net>
28065
28066         fchdir: fix off-by-one bug in previous patch
28067         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28068         (_gl_unregister_fd): Delete useless if.
28069
28070 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28071
28072         maint.mk: sort the list of syntax-check rules
28073         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28074         easier to get a sense of progress when the rules are run sequentially
28075         and take a long time.
28076
28077 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28078
28079         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28080         * modules/netinet_in: Likewise.
28081         * modules/sys_file: Likewise.
28082         * modules/sys_ioctl: Likewise.
28083         * modules/sys_select: Likewise.
28084         * modules/sys_socket: Likewise.
28085         * modules/sys_stat: Likewise.
28086         * modules/sys_time: Likewise.
28087         * modules/sys_times: Likewise.
28088         * modules/sys_utsname: Likewise.
28089         * modules/sys_wait: Likewise.
28090
28091 2009-09-01  Jim Meyering  <meyering@redhat.com>
28092
28093         fts: help ensure that return values are not ignored
28094         * lib/fts_.h (__GNUC_PREREQ): Define.
28095         (__attribute_warn_unused_result__): Define.
28096         (fts_children, fts_close, fts_open, fts_read): Declare with
28097         __attribute_warn_unused_result__.
28098
28099         fts: fts_close now fails also when closing a dir file descriptor fails
28100         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28101         and propagate to caller, along with errno.
28102
28103         announce-gen: correct formatting in --help output
28104         * build-aux/announce-gen (usage): Move the one-line description in
28105         --help output "up", to where it belongs, just after Usage:.
28106
28107 2009-08-31  Eric Blake  <ebb9@byu.net>
28108
28109         fchdir: port to mingw
28110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28111         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28112         opened, then use a substitute.
28113         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28114         replacement.
28115         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28116         (_gl_register_fd): No need to check stat if open already filters
28117         all directories.
28118         (fchdir): Fix error condition to match POSIX.
28119         * modules/fchdir (Depends-on): Add sys_stat.
28120         * doc/posix-functions/open.texi (open): Document the limitation.
28121         * modules/fchdir-tests: New file.
28122         * tests/test-fchdir.c: Likewise.
28123
28124         canonicalize: allow cross-testing from cygwin to mingw
28125         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28126         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28127         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28128         Likewise.
28129         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28130         target does not support symlinks.
28131         * tests/test-canonicalize-lgpl.sh: Likewise.
28132
28133         chown: avoid compilation warning on mingw
28134         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28135         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28136         mingw.
28137         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28138         * modules/chown (Depends-on): Add errno.
28139
28140 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28141
28142         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28143         command.
28144
28145 2009-08-31  Jim Meyering  <meyering@redhat.com>
28146
28147         canonicalize: remove useless initialization
28148         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28149         initialization of local, "end".
28150
28151 2009-08-30  Bruno Haible  <bruno@clisp.org>
28152
28153         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28154         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28155         ENOSYS.
28156
28157 2009-08-30  Bruno Haible  <bruno@clisp.org>
28158
28159         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28160         /usr/xpg4/bin/tr when it exists.
28161         * tests/test-pipe-filter-gi1.sh: Likewise.
28162
28163 2009-08-30  Bruno Haible  <bruno@clisp.org>
28164
28165         Work around deficient /usr/bin/id program on Solaris.
28166         * tests/test-file-has-acl.sh (ID): New variable.
28167         * tests/test-set-mode-acl.sh (ID): Likewise.
28168         * tests/test-copy-acl.sh (ID): Likewise.
28169         * tests/test-copy-file.sh (ID): Likewise.
28170
28171 2009-08-30  Bruno Haible  <bruno@clisp.org>
28172
28173         New module 'xstriconveh'.
28174         * lib/xstriconveh.h: New file.
28175         * lib/xstriconveh.c: New file.
28176         * modules/xstriconveh: New file.
28177
28178 2009-08-30  Bruno Haible  <bruno@clisp.org>
28179
28180         Make it easier to use mem_cd_iconveh.
28181         * lib/striconveh.h (iconveh_t): New type.
28182         (iconveh_open, iconveh_close): New declarations.
28183         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28184         with a single 'const iconveh_t *' argument.
28185         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28186         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28187         with a single 'const iconveh_t *' argument.
28188         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28189         * tests/test-striconveh.c (main): Update.
28190         * NEWS: Mention the change.
28191
28192 2009-08-30  Bruno Haible  <bruno@clisp.org>
28193
28194         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28195         problem.
28196
28197 2009-08-30  Bruno Haible  <bruno@clisp.org>
28198
28199         Work around iconv_open problem on Solaris.
28200         * lib/iconv_open-solaris.gperf: New file.
28201         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28203         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28204         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28205         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28206         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28207
28208 2009-08-29  Jim Meyering  <meyering@redhat.com>
28209
28210         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28211         * top/maint.mk (cvs-check): Remove target; it was just an alias
28212         to the better-named vc-diff-check.
28213         (maintainer-distcheck): Remove rule.  It was used only from
28214         the (alpha/beta/major) target, and all of its commands but one
28215         were coreutils-specific.
28216         (vc-dist): Remove rule.
28217         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28218         Run vc-diff-check, not vc-dist.
28219         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28220
28221 2009-08-27  Bruno Haible  <bruno@clisp.org>
28222
28223         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28224         of 0.
28225
28226 2009-08-27  Bruno Haible  <bruno@clisp.org>
28227
28228         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28229         compilers.
28230         * doc/func.texi: Document the SunPRO C bug.
28231
28232 2009-08-27  Bruno Haible  <bruno@clisp.org>
28233
28234         Fix link error on Solaris.
28235         * tests/test-parse-duration.c (xstrdup): Remove function.
28236
28237 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28238
28239         ignore-value: handle pointer types, too
28240         * lib/ignore-value.h (__attribute__): Remove definition.
28241         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28242         of a more concise and more-often effective "(void) i" statement.
28243         (ignore_ptr): New function to suppress warnings from functions that
28244         return pointers, and to make it explicit that one function doesn't
28245         handle all cases.
28246
28247 2009-08-25  Bruno Haible  <bruno@clisp.org>
28248
28249         dup2: work around a Linux bug.
28250         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28251         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28252         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28253         Reported by Simon Josefsson.
28254
28255 2009-08-25  Jim Meyering  <meyering@redhat.com>
28256
28257         libguestfs uses gnulib
28258         * users.txt: Add libguestfs.
28259
28260 2009-08-24  Eric Blake  <ebb9@byu.net>
28261
28262         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28263         * lib/pipe2.c (includes): Add binary-io.h.
28264         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28265
28266 2009-08-24  Bruno Haible  <bruno@clisp.org>
28267
28268         Tolerate declared but missing accept4 syscall.
28269         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28270         available.
28271         * lib/sys_socket.in.h (accept4): If the function is already present,
28272         override it.
28273         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28274         * modules/accept4 (Makefile.am): Compile accept4.c always.
28275         Reported by Paolo Bonzini and Eric Blake.
28276
28277 2009-08-23  Bruno Haible  <bruno@clisp.org>
28278
28279         New module 'accept4'.
28280         * lib/sys_socket.in.h (accept4): New declaration.
28281         * lib/accept4.c: New file.
28282         * m4/accept4.m4: New file.
28283         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28284         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28285         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28286         HAVE_ACCEPT4.
28287         * modules/accept4: New file.
28288         * doc/glibc-functions/accept4.texi: Mention the new module.
28289
28290 2009-08-24  Jim Meyering  <meyering@redhat.com>
28291
28292         progname: also set global program_invocation_name, when possible
28293         Before this change, a libtool-enabled program that calls glibc's
28294         error function would report the program name as
28295         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28296         * modules/progname (configure.ac): Check for a declaration of
28297         program_invocation_name.
28298         * lib/progname.c:  Include <errno.h>.
28299         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28300         Set program_invocation_name.
28301
28302 2009-08-23  Bruno Haible  <bruno@clisp.org>
28303
28304         * lib/dup3.c: Include <string.h>.
28305
28306 2009-08-23  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28309         * lib/pipe2.c (pipe2): Likewise.
28310         Suggested by Eric Blake.
28311
28312 2009-08-23  Bruno Haible  <bruno@clisp.org>
28313
28314         Tolerate declared but missing dup3 syscall.
28315         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28316         * lib/unistd.in.h (dup3): If the function is already present,
28317         override it.
28318         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28319         * modules/dup3 (Makefile.am): Compile dup3.c always.
28320         Reported by Paolo Bonzini.
28321
28322 2009-08-23  Bruno Haible  <bruno@clisp.org>
28323
28324         Tolerate declared but missing pipe2 syscall.
28325         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28326         available.
28327         * lib/unistd.in.h (pipe2): If the function is already present,
28328         override it.
28329         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28330         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28331         Reported by Paolo Bonzini.
28332
28333 2009-08-23  Bruno Haible  <bruno@clisp.org>
28334
28335         * lib/pipe2.c (pipe2): Move #ifs inside function.
28336
28337 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28338
28339         quotearg: document limitations of quote_these_too
28340         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28341         those limitations are created.
28342         * lib/quotearg.h (set_char_quoting): Document that digits and
28343         letters that are special after backslash are not permitted.
28344         (quotearg_char): Cross-reference set_char_quoting documentation.
28345
28346 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28347
28348         quotearg: implement custom_quoting_style
28349         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28350         right_quote fields.
28351         (set_custom_quoting): New public function.
28352         (quotearg_buffer_restyled): Add left_quote and right_quote
28353         arguments, handle them very much like locale quoting, and update
28354         all uses.
28355         (quotearg_n_custom): New public function.
28356         (quotearg_n_custom_mem): New public function.
28357         (quotearg_custom): New public function.
28358         (quotearg_custom_mem): New public function.
28359         * lib/quotearg.h: Prototype and document new public functions.
28360         (enum quoting_style): For escape_quoting_style and
28361         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28362         ignored even though they're otherwise like c_quoting_style.
28363         Add custom_quoting_style member and document with comparison to
28364         clocale_quoting_style.
28365         * tests/test-quotearg.c (custom_quotes): New array.
28366         (custom_results): New array.
28367         (main): Extend to test custom quoting.
28368
28369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28370
28371         quotearg: fix right quote escaping when it's in quote_these_too
28372         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28373         quote, be sure to prepend only one backslash.
28374         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28375         (main): Test it.
28376
28377 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28378
28379         quotearg-tests: test escaping of embedded locale quotes
28380         * tests/test-quotearg.c (struct result_strings): Add member for
28381         new input.
28382         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28383         (inputs): Add new input.
28384         (results_g): Add expected results.
28385         (flag_results): Likewise.
28386         (locale_results): Likewise.
28387         (compare_strings): Check those.
28388
28389 2009-08-23  Bruno Haible  <bruno@clisp.org>
28390
28391         Tests for module 'dup3'.
28392         * modules/dup3-tests: New file.
28393         * tests/test-dup3.c: New file.
28394
28395         New module 'dup3'.
28396         * lib/unistd.in.h (dup3): New declaration.
28397         * lib/dup3.c: New file.
28398         * m4/dup3.m4: New file.
28399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28400         HAVE_DUP3.
28401         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28402         * modules/dup3: New file.
28403         * doc/glibc-functions/dup3.texi: Mention the new module.
28404
28405 2009-08-23  Bruno Haible  <bruno@clisp.org>
28406
28407         Tweak the dup2 test.
28408         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28409         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28410         the test file is still empty. Fix argument order of lseek.
28411
28412 2009-08-23  Bruno Haible  <bruno@clisp.org>
28413
28414         Avoid test link errors when the modules getopt-gnu, gettext are used.
28415         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28417
28418 2009-08-23  Bruno Haible  <bruno@clisp.org>
28419
28420         Fix getdtablesize() on mingw.
28421         * lib/getdtablesize.c (getdtablesize): Implement differently.
28422         * lib/unistd.in.h (getdtablesize): Improve comment.
28423
28424 2009-08-23  Bruno Haible  <bruno@clisp.org>
28425
28426         New module 'mkostemp'.
28427         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28428         * lib/stdlib.in.h (mksotemp): New declaration.
28429         * lib/mkostemp.c: New file, from glibc with modifications.
28430         * lib/tempname.h (GT_FILE): Remove outdated comment.
28431         (gen_tempname): Add flags argument.
28432         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28433         (__GT_FILE): Map to 1.
28434         (small_open, large_open): Remove macros.
28435         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28436         * lib/mkstemp.c (mkstemp): Update.
28437         * lib/mkdtemp.c (mkdtemp): Likewise.
28438         * m4/mkostemp.m4: New file.
28439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28440         HAVE_MKOSTEMP.
28441         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28442         HAVE_MKOSTEMP.
28443         * modules/mkostemp: New file, based on modules/mkstemp.
28444         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28445         * NEWS: Mention the change.
28446
28447 2009-08-23  Bruno Haible  <bruno@clisp.org>
28448
28449         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28450         Reported by Eric Blake.
28451
28452 2009-08-23  Bruno Haible  <bruno@clisp.org>
28453
28454         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28455         Reported by Eric Blake.
28456
28457 2009-08-23  Bruno Haible  <bruno@clisp.org>
28458
28459         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28460         * modules/pipe2 (Depends-on): Likewise.
28461
28462 2009-08-23  Eric Blake  <ebb9@byu.net>
28463
28464         fcntl-h: add O_TTY_INIT support
28465         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28466         * tests/test-fcntl-h.c (o): Test it.
28467         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28468
28469         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28470         * modules/fcntl: Move <fcntl.h> header replacement...
28471         * modules/fcntl-h: ...to new name, so as not to collide with
28472         like-named function.
28473         * tests/test-fcntl.c: Rename...
28474         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28475         * modules/fcntl-tests: Rename...
28476         * modules/fcntl-h-tests: ...to this.  Update test file name.
28477         * modules/chdir-long (Depends-on): Update clients.
28478         * modules/chdir-safer (Depends-on): Likewise.
28479         * modules/fcntl-safer (Depends-on): Likewise.
28480         * modules/fts (Depends-on): Likewise.
28481         * modules/mkancesdirs (Depends-on): Likewise.
28482         * modules/mkdir-p (Depends-on): Likewise.
28483         * modules/open (Depends-on): Likewise.
28484         * modules/savewd (Depends-on): Likewise.
28485         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28486         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28487
28488 2009-08-22  Bruno Haible  <bruno@clisp.org>
28489
28490         * modules/binary-io (License): Relicense under LGPL.
28491         * modules/pipe2 (License): Likewise.
28492
28493 2009-08-22  Bruno Haible  <bruno@clisp.org>
28494
28495         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28496         return value.
28497         * lib/pipe-filter-gi.c (filter_init): Likewise.
28498         Reported by Eric Blake.
28499
28500 2009-08-22  Bruno Haible  <bruno@clisp.org>
28501
28502         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28503         * modules/pipe (Depends-on): Add pipe2.
28504
28505 2009-08-22  Bruno Haible  <bruno@clisp.org>
28506
28507         Tests for module 'pipe2'.
28508         * modules/pipe2-tests: New file.
28509         * tests/test-pipe2.c: New file.
28510
28511         New module 'pipe2'.
28512         * lib/unistd.in.h (pipe2): New declaration.
28513         * lib/pipe2.c: New file.
28514         * m4/pipe2.m4: New file.
28515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28516         HAVE_PIPE2.
28517         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28518         * modules/pipe2: New file.
28519         * doc/glibc-functions/pipe2.texi: Mention the new module.
28520
28521 2009-08-22  Bruno Haible  <bruno@clisp.org>
28522
28523         Reference some new glibc functions.
28524         * doc/glibc-functions/accept4.texi: New file.
28525         * doc/glibc-functions/dup3.texi: New file.
28526         * doc/glibc-functions/mkostemp.texi: New file.
28527         * doc/glibc-functions/pipe2.texi: New file.
28528         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28529         (Glibc sys/socket.h): Refer to accept4.
28530         (Glibc unistd.h): Refer to dup3, pipe2.
28531         Reported by Eric Blake.
28532
28533 2009-08-22  Jim Meyering  <meyering@redhat.com>
28534             Bruno Haible  <bruno@clisp.org>
28535
28536         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28537         This makes it so packages using automake-1.11's silent-rules option
28538         can print e.g., a single "GEN    configmake.h" line, rather than
28539         the 30+ statements that perform the job.  If you want to see the
28540         actual commands, you can still run "make V=1".
28541         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28542         so that make output is abbreviated when those variables are defined
28543         appropriately.
28544         * modules/argz: Likewise.
28545         * modules/arpa_inet: Likewise.
28546         * modules/byteswap: Likewise.
28547         * modules/configmake: Likewise.
28548         * modules/dirent: Likewise.
28549         * modules/errno: Likewise.
28550         * modules/fcntl: Likewise.
28551         * modules/float: Likewise.
28552         * modules/fnmatch: Likewise.
28553         * modules/getopt-posix: Likewise.
28554         * modules/glob: Likewise.
28555         * modules/iconv_open: Likewise.
28556         * modules/inttypes: Likewise.
28557         * modules/localcharset: Likewise.
28558         * modules/locale: Likewise.
28559         * modules/math: Likewise.
28560         * modules/netdb: Likewise.
28561         * modules/netinet_in: Likewise.
28562         * modules/poll: Likewise.
28563         * modules/posix_spawnp-tests: Likewise.
28564         * modules/sched: Likewise.
28565         * modules/search: Likewise.
28566         * modules/selinux-h: Likewise.
28567         * modules/signal: Likewise.
28568         * modules/spawn: Likewise.
28569         * modules/stdarg: Likewise.
28570         * modules/stdbool: Likewise.
28571         * modules/stddef: Likewise.
28572         * modules/stdint: Likewise.
28573         * modules/stdio: Likewise.
28574         * modules/stdlib: Likewise.
28575         * modules/string: Likewise.
28576         * modules/strings: Likewise.
28577         * modules/sys_file: Likewise.
28578         * modules/sys_ioctl: Likewise.
28579         * modules/sys_select: Likewise.
28580         * modules/sys_socket: Likewise.
28581         * modules/sys_stat: Likewise.
28582         * modules/sys_time: Likewise.
28583         * modules/sys_times: Likewise.
28584         * modules/sys_utsname: Likewise.
28585         * modules/sys_wait: Likewise.
28586         * modules/sysexits: Likewise.
28587         * modules/time: Likewise.
28588         * modules/unistd: Likewise.
28589         * modules/wchar: Likewise.
28590         * modules/wctype: Likewise.
28591
28592 2009-08-22  Jim Meyering  <meyering@redhat.com>
28593
28594         announce-gen: detect write failure
28595         * build-aux/announce-gen: Add Coda at end.
28596         Remove equivalent-but-more-verbose block at top.
28597
28598 2009-08-19  Akim Demaille  <demaille@gostai.com>
28599
28600         bootstrap: --help to stdout.
28601         * bootstrap (usage): Don't send --help to stderr.
28602         Use a here doc instead of a long string.
28603
28604 2009-08-21  Eric Blake  <ebb9@byu.net>
28605
28606         test-popen-safer: split from test-popen
28607         * tests/test-popen.c (main): Move...
28608         * tests/test-popen.h: ...into new file.
28609         * tests/test-popen-safer2.c: New file.
28610         * modules/popen-tests (Files): Add test-popen.h.
28611         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28612         Suggested by Bruno Haible.
28613
28614         test-fcntl-safer: split from test-open
28615         * tests/test-open.c (main): Move...
28616         * tests/test-open.h: ...into new file.
28617         * tests/test-fcntl-safer.c: New file.
28618         * modules/open-tests (Files): Add test-open.h.
28619         * modules/fcntl-safer-tests: New file.
28620         Suggested by Bruno Haible.
28621
28622         test-fopen-safer: split from test-fopen
28623         * tests/test-fopen.c (main): Move...
28624         * tests/test-fopen.h: ...into new file.
28625         * tests/test-fopen-safer.c: New file.
28626         * modules/fopen-tests (Files): Add test-fopen.h.
28627         * modules/fopen-safer-tests: New file.
28628         Suggested by Bruno Haible.
28629
28630 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28631
28632         popen-safer: test O_CLOEXEC at run-time.
28633         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28634
28635 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28636
28637         fcntl: move more flags to the header
28638         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28639         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28640         * lib/fcntl.in.h: Do both things here.
28641
28642 2009-08-21  Jim Meyering  <meyering@redhat.com>
28643
28644         consistently remove $@-t before redirecting to it
28645         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28646         * modules/alloca-opt: Likewise.
28647         * modules/byteswap: Likewise.
28648         * modules/fnmatch: Likewise.
28649         * modules/getopt-posix: Likewise.
28650         * modules/glob: Likewise.
28651         * modules/poll: Likewise.
28652         * modules/posix_spawnp-tests: Likewise.
28653         * modules/sys_socket: Likewise.
28654         * modules/sysexits: Likewise.
28655
28656 2009-08-21  Eric Blake  <ebb9@byu.net>
28657
28658         popen: simplify access to original popen
28659         * lib/popen.c (rpl_popen): No need to worry about popen being a
28660         macro.
28661         Reported by Bruno Haible.
28662
28663 2009-08-20  Eric Blake  <ebb9@byu.net>
28664
28665         build: avoid some compiler warnings
28666         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28667         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28668         type.
28669         (new_exclude_segment, excluded_file_pattern_p)
28670         (excluded_file_name_p): Reduce scope.
28671         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28672         old-style declaration.
28673
28674 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28675
28676         * tests/test-exclude1.sh: Handle Windows EOL.
28677         * tests/test-exclude2.sh: Likewise.
28678         * tests/test-exclude3.sh: Likewise.
28679         * tests/test-exclude4.sh: Likewise.
28680         * tests/test-exclude5.sh: Likewise.
28681         * tests/test-exclude6.sh: Likewise.
28682         * tests/test-exclude7.sh: Likewise.
28683
28684 2009-08-19  Akim Demaille  <demaille@gostai.com>
28685
28686         bootstrap: find sha1sum when named gsha1sum.
28687         * bootstrap (find_tool): New.
28688         ($SHA1SUM): New.
28689         Use it.
28690
28691 2009-08-20  Jim Meyering  <meyering@redhat.com>
28692
28693         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28694         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28695         expression that converts "." in a file name to "\." in the resulting
28696         regexp.  Start with a dummy statement, so that prior shell variable
28697         definitions are expanded portably.  Reported by Simon Josefsson.
28698
28699 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28700
28701         Fix polling for writeability of a screen buffer.
28702         * lib/poll.c: Distinguish input and screen buffers for the
28703         Win32 implementation.
28704         * lib/select.c: Likewise.
28705
28706 2009-08-19  Eric Blake  <ebb9@byu.net>
28707
28708         popen-safer: prevent popen from clobbering std descriptors
28709         * modules/popen-safer: New file.
28710         * lib/popen-safer.c: Likewise.
28711         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28712         * lib/stdio--.h (popen): Provide override.
28713         * lib/stdio-safer.h (popen_safer): Provide declaration.
28714         * tests/test-popen.c (includes): Partially test this.
28715         * modules/popen-safer-tests: New file, for more tests.
28716         * tests/test-popen-safer.c: Likewise.
28717         * MODULES.html.sh (file stream based Input/Output): Mention it.
28718
28719         tests: test some of the *-safer modules
28720         * modules/fopen-safer (Depends-on): Add fopen.
28721         * modules/fcntl-safer (Depends-on): Add fcntl.
28722         * modules/stdlib-safer (Depends-on): Add stdlib.
28723         (configure.ac): Set indicator.
28724         * modules/unistd-safer (configure.ac): Likewise.
28725         * modules/tmpfile-safer (configure.ac): Likewise.
28726         (Depends-on): Add tmpfile.
28727         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28728         active.
28729         * tests/test-fopen.c (includes): Test safer versions when they are
28730         in use.
28731         * tests/test-open.c (includes): Likewise.
28732
28733         popen: fix cygwin 1.5 bug when stdin closed
28734         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28735         * modules/popen: New file.
28736         * modules/popen-tests: Likewise.
28737         * tests/test-popen.c: Likewise.
28738         * m4/popen.m4: Likewise.
28739         * lib/popen.c: Likewise.
28740         * lib/stdio.in.h (popen): New declaration.
28741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28742         * modules/stdio (Makefile.am): Likewise.
28743         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28744
28745 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28746
28747         maint.mk: give full control over update-copyright exclusions
28748         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28749         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28750         (update-copyright): Don't force inclusion of top-level
28751         ChangeLog.  Don't force exclusion of all COPYING files, but make
28752         them the default exclusion instead.
28753
28754 2009-08-16  Bruno Haible  <bruno@clisp.org>
28755
28756         Fix test failures on Solaris 10.
28757         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28758         tests when Solaris iconv() is used.
28759         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28760         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28761         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28762         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28763         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28764
28765 2009-08-16  Bruno Haible  <bruno@clisp.org>
28766
28767         Fix test failures on Solaris 10.
28768         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28769         'tr' program and pass it as first argument.
28770         * tests/test-pipe-filter-gi1.sh: Likewise.
28771         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28772         program as first argument.
28773         * tests/test-pipe-filter-gi1.c (main): Likewise.
28774
28775 2009-08-16  Eric Blake  <ebb9@byu.net>
28776
28777         fpurge: fix previous commits
28778         * modules/fpurge (Makefile.am): Make replacement conditional,
28779         partially reverting 2007-04-29 change; missed in previous
28780         attempt.
28781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28782         is missing.
28783
28784 2009-08-16  Bruno Haible  <bruno@clisp.org>
28785
28786         Clarify fpurge's effect on the file position.
28787         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28788         * tests/test-fpurge.c (main): Make a second pass for checking the file
28789         position.
28790
28791 2009-08-16  Bruno Haible  <bruno@clisp.org>
28792
28793         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28794         declaration of fpurge is missing.
28795         * tests/test-fpurge.c (main): Check that the file has not more contents
28796         than expected. Close the file before removing it.
28797
28798 2009-08-15  Eric Blake  <ebb9@byu.net>
28799
28800         fpurge: don't wrap working cygwin implementation
28801         * lib/fpurge.c (fpurge): Fix comment typo.
28802         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28803         1.7 to avoid replacement.
28804         * tests/test-fpurge.c (main): Enhance test.
28805
28806 2009-08-15  Eric Blake  <ebb9@byu.net>
28807         and Jim Meyering  <meyering@redhat.com>
28808
28809         test-update-copyright: skip if perl is insufficient
28810         * tests/test-update-copyright.sh: Failure to run maintainer tool
28811         should not cause testsuite failure on cygwin 1.5.
28812
28813 2009-08-14  Eric Blake  <ebb9@byu.net>
28814
28815         doc: mention more functions added in cygwin 1.7.0
28816         * doc/posix-headers/limits.texi (limits.h): Update for recent
28817         cygwin additions.
28818         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28819         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28820         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28821         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28822         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28823
28824 2009-08-14  Eric Blake  <ebb9@byu.net>
28825
28826         maint.mk: simplify update-copyright rule
28827         * top/maint.mk (update-copyright-local): Delete, and document how
28828         to do it in cfg.mk instead.
28829         (update-copyright-exclude-regexp): Delete, and document how to do
28830         it in .x-update-copyright instead.
28831         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28832         exclude ChangeLog.
28833
28834 2009-08-14  Bruno Haible  <bruno@clisp.org>
28835
28836         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28837
28838 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28839
28840         maint.mk: support update-copyright-env
28841         * top/maint.mk (update-copyright-env): Define place-holder.
28842         (update-copyright): Expand $(update-copyright-env) before
28843         invoking update-copyright.
28844
28845 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28846
28847         update-copyright: implement forced reformatting
28848         * build-aux/update-copyright: Implement and document
28849         UPDATE_COPYRIGHT_FORCE.
28850         * tests/test-update-copyright.sh: Test it.
28851
28852 2009-08-14  Eric Blake  <ebb9@byu.net>
28853         and Bruno Haible  <bruno@clisp.org>
28854
28855         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28856         * tests/test-locale.c: Revert previous patch related to NULL.
28857         * tests/test-stdio.c: Likewise.
28858         * tests/test-stdlib.c: Likewise.
28859         * tests/test-string.c: Likewise.
28860         * tests/test-unistd.c: Likewise.
28861         * modules/time-tests (Depends-on): Add verify.
28862         * modules/wchar-tests (Depends-on): Likewise.
28863         * tests/test-time.c: Test for NULL compliance.
28864         * tests/test-wchar.c: Likewise.
28865         * modules/locale (Depends-on): Add stddef.
28866         * modules/stdio (Depends-on): Likewise.
28867         * modules/stdlib (Depends-on): Likewise.
28868         * modules/string (Depends-on): Likewise.
28869         * modules/time (Depends-on): Likewise.
28870         * modules/unistd (Depends-on): Likewise.
28871         * modules/wchar (Depends-on): Likewise.
28872         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28873         * lib/stdlib.in.h (includes): Likewise.
28874         * lib/string.in.h (includes): Likewise.
28875         * lib/time.in.h (includes): Likewise.
28876         * lib/unistd.in.h (includes): Likewise.
28877         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28878         replaced.
28879         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28880         * m4/stddef_h.m4: New file.
28881         * modules/stddef: Likewise.
28882         * lib/stddef.in.h: Likewise.
28883         * modules/stddef-tests: Likewise.
28884         * tests/test-stddef.c: Likewise.
28885         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28886         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28887         * doc/posix-headers/locale.texi (locale.h): Likewise.
28888         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28889         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28890         * doc/posix-headers/string.texi (string.h): Likewise.
28891         * doc/posix-headers/time.texi (time.h): Likewise.
28892         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28893         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28894
28895 2009-08-14  Eric Blake  <ebb9@byu.net>
28896
28897         doc: improve git diff of texinfo files
28898         * .gitattributes: Add rule for *.texi files, with hint on how to
28899         use it.
28900         Copied from m4, and based on a report by Bruno Haible.
28901
28902 2009-08-14  Bruno Haible  <bruno@clisp.org>
28903
28904         Disable multithread support by default on Cygwin 1.5.x for real.
28905         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28906
28907 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28908
28909         update-copyright: much ado about intervals
28910         * build-aux/update-copyright: Implement and document
28911         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28912         of copyright year intervals.
28913         Also, document UPDATE_COPYRIGHT_YEAR.
28914         * tests/test-update-copyright.sh: Test it.
28915
28916         update-copyright: convert 2-digit to 4-digit years
28917         * build-aux/update-copyright: Implement and document.
28918         * tests/test-update-copyright.sh: Update.
28919
28920 2009-08-14  Jim Meyering  <meyering@redhat.com>
28921
28922         test-exclude: avoid coreutils "make check" failure
28923         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28924         just as in test-argmatch.c.
28925
28926 2009-08-13  Eric Blake  <ebb9@byu.net>
28927
28928         test-dup2: fix bad assumption
28929         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28930         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28931
28932         test-version-etc: fix CRLF portability issue
28933         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28934         recognize \r.
28935         * tests/test-argp-version-etc-1.sh: Likewise.
28936
28937         getopt: update client modules
28938         * modules/argp (Depends-on): Use getopt-gnu.
28939         * modules/git-merge-changelog (Depends-on): Likewise.
28940         * modules/long-options (Depends-on): Likewise.
28941         * modules/xstrtol (Depends-on): Likewise.
28942
28943 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28944
28945         * tests/test-version-etc.sh: Don't fail on different
28946         project/version.  Don't fail on CRLF differences.  Rewrite to use
28947         multiple -e instead of multiple sed forks, suggested by Eric Blake
28948         <ebb9@byu.net>.
28949         * tests/test-argp-version-etc-1.sh: Likewise.
28950
28951 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28952
28953         * tests/test-version-etc.sh: Don't fail on different
28954         project/version.
28955
28956 2009-08-12  Bruno Haible  <bruno@clisp.org>
28957
28958         Tests for modules 'getopt-posix', 'getopt-gnu'.
28959         * modules/getopt-posix-tests: New file.
28960         * tests/test-getopt.c: New file.
28961         * tests/test-getopt.h: New file.
28962         * tests/test-getopt_long.h: New file.
28963
28964         New modules 'getopt-posix', 'getopt-gnu'.
28965         * modules/getopt-gnu: New file, renamed from modules/getopt.
28966         * modules/getopt-posix: New file.
28967         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28968         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28969         (gl_GETOPT): Remove macro.
28970         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28971         Disable the test against BSD systems that declare optreset. Test
28972         against mingw bug. Test against lack of support of optional arguments
28973         on many platforms.
28974         * doc/glibc-headers/getopt.texi: Update module name and list of
28975         relevant platforms.
28976         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28977         'getopt-gnu' and more portability problems.
28978         * NEWS: Mention the changes.
28979
28980 2009-08-12  Bruno Haible  <bruno@clisp.org>
28981
28982         Ensure that optarg etc. get declared by <unistd.h>.
28983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28984         AC_USE_SYSTEM_EXTENSIONS.
28985         * modules/getopt (Depends-on): Add 'extensions'.
28986
28987 2009-08-12  Bruno Haible  <bruno@clisp.org>
28988
28989         Avoid test link errors.
28990         * modules/pipe-filter-ii-tests (Makefile.am): Define
28991         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28992         * modules/pipe-filter-gi-tests (Makefile.am): Define
28993         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28995
28996 2009-08-12  Bruno Haible  <bruno@clisp.org>
28997
28998         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28999         gl_GETOPT_SUBSTITUTE before.
29000         (gl_GETOPT): Use it.
29001         * m4/argp.m4 (gl_ARGP): Update.
29002         Reported by Sergey Poznyakoff.
29003
29004         * m4/getopt.m4: Reorder macros.
29005         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29006         (gl_GETOPT_SUBSTITUTE): Remove macro.
29007
29008 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29009
29010         Minor improvement in gitlog-to-changelog
29011
29012         * build-aux/gitlog-to-changelog: New option `--format' makes
29013         output format string configurable.
29014
29015 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29016
29017         Optimize exclude: use hash tables for non-wildcard patterns.
29018
29019         * lib/exclude.c: Include hash.h and mbuiter.h
29020         (struct exclude_pattern, exclude_segment): New data types.
29021         (struct exclude): Rewrite.
29022         (fnmatch_pattern_has_wildcards): New function.
29023         (new_exclude_segment, free_exclude_segment): New functions.
29024         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29025         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29026         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29027         * modules/exclude: Depend on hash and mbuiter.
29028
29029         * modules/exclude-tests: New file.
29030         * tests/test-exclude.c: New file.
29031         * tests/test-exclude1.sh: New file.
29032         * tests/test-exclude2.sh: New file.
29033         * tests/test-exclude3.sh: New file.
29034         * tests/test-exclude4.sh: New file.
29035         * tests/test-exclude5.sh: New file.
29036         * tests/test-exclude6.sh: New file.
29037         * tests/test-exclude7.sh: New file.
29038
29039 2009-08-12  Bruno Haible  <bruno@clisp.org>
29040
29041         Ensure that getopt() gets declared by <unistd.h>.
29042         * lib/unistd.in.h: Conditionally include getopt.h.
29043         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29044         Set GNULIB_UNISTD_H_GETOPT.
29045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29046         GNULIB_UNISTD_H_GETOPT.
29047         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29048
29049 2009-08-12  Bruno Haible  <bruno@clisp.org>
29050
29051         Clarify logic.
29052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29053         gl_replace_getopt instead of GETOPT_H.
29054
29055 2009-08-12  Bruno Haible  <bruno@clisp.org>
29056
29057         * m4/getopt.m4: Add comments.
29058
29059 2009-08-12  Bruno Haible  <bruno@clisp.org>
29060
29061         Disable multithread support by default on Cygwin 1.5.x.
29062         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29063         set gl_use_threads=no if not specified otherwise.
29064
29065 2009-08-11  Bruno Haible  <bruno@clisp.org>
29066
29067         Avoid compilation error on NetBSD 5.0.
29068         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29069         * tests/test-stdio.c: Likewise.
29070         * tests/test-stdlib.c: Likewise.
29071         * tests/test-string.c: Likewise.
29072         * tests/test-unistd.c: Likewise.
29073         Reported by Greg Troxel <gdt@ir.bbn.com>
29074         at <https://savannah.gnu.org/support/?106973>.
29075
29076 2009-08-11  Bruno Haible  <bruno@clisp.org>
29077
29078         * modules/dup2-tests (Depends-on): Remove close.
29079
29080         Undo 2009-07-19 commit.
29081         * modules/acl-tests (Depends-on): Remove close.
29082         * modules/binary-io-tests (Depends-on): Likewise.
29083         * modules/closein-tests (Depends-on): Likewise.
29084         * modules/flock-tests (Depends-on): Likewise.
29085         * modules/fsync-tests (Depends-on): Likewise.
29086         * modules/lseek-tests (Depends-on): Likewise.
29087         * modules/pipe-tests (Depends-on): Likewise.
29088         * modules/posix_spawn-tests (Depends-on): Likewise.
29089         * modules/posix_spawnp-tests (Depends-on): Likewise.
29090         * modules/stat-time-tests (Depends-on): Likewise.
29091         * modules/yesno-tests (Depends-on): Likewise.
29092
29093 2009-08-10  Bruno Haible  <bruno@clisp.org>
29094
29095         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29096
29097 2009-08-10  Bruno Haible  <bruno@clisp.org>
29098
29099         Fix a gcc warning.
29100         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29101
29102 2009-08-10  Bruno Haible  <bruno@clisp.org>
29103
29104         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29105         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29106         not only the first time.
29107         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29108         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29109         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29110         is 1, not only the the first time.
29111
29112 2009-08-10  Bruno Haible  <bruno@clisp.org>
29113
29114         Make it possible to use module 'gethostname' without module 'close'.
29115         * lib/unistd.in.h (close): Evoke a link error only if
29116         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29118         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29119         * modules/unistd (Makefile.am): Substitute
29120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29121         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29122         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29124         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29125         * modules/sys_ioctl (Makefile.am): Substitute
29126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29127         * modules/socket (configure.ac): On native Windows, set
29128         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29129         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29130         Reported by Sam Steingold <sds@gnu.org>.
29131
29132 2009-08-10  Bruno Haible  <bruno@clisp.org>
29133
29134         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29135         * modules/ioctl (configure.ac): Likewise.
29136
29137 2009-08-10  Bruno Haible  <bruno@clisp.org>
29138
29139         Avoid collision between gnulib wrapper and libintl wrapper.
29140         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29141         already defined in intl/printf.c.
29142         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29143         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29144
29145 2009-08-09  Bruno Haible  <bruno@clisp.org>
29146
29147         Make <sys/select.h> really self-contained, also on Solaris 10.
29148         * lib/sys_select.in.h: Include <string.h>.
29149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29150         Solaris 10 problem.
29151         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29152         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29153         Reported by Jim Meyering.
29154
29155 2009-08-09  Bruno Haible  <bruno@clisp.org>
29156
29157         Avoid warnings from 'aclocal' that are due to a use of macro name
29158         AM_XGETTEXT_OPTION that is not defined in automake.
29159         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29160         automake.
29161         * modules/error (configure.ac): Likewise.
29162         * modules/propername (configure.ac): Likewise.
29163         * modules/vasprintf (configure.ac): Likewise.
29164         * modules/verror (configure.ac): Likewise.
29165         * modules/xprintf (configure.ac): Likewise.
29166         * modules/xvasprintf (configure.ac): Likewise.
29167
29168 2009-08-08  Bruno Haible  <bruno@clisp.org>
29169
29170         Avoid compilation error in C++ mode.
29171         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29172         Reported by Sam Steingold <sds@gnu.org>.
29173
29174 2009-08-08  Bruno Haible  <bruno@clisp.org>
29175
29176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29177         for the various Unix platforms.
29178         * doc/posix-headers/limits.texi: Update platforms list regarding
29179         HOST_NAME_MAX.
29180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29181
29182 2009-08-07  Jim Meyering  <meyering@redhat.com>
29183
29184         selinux-at: fix typo in a comment
29185         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29186         Spotted by Paolo Bonzini.
29187
29188         selinux-at: remove redundant m4 code, add documentation
29189         * modules/selinux-at (configure.ac): Remove redundant code.
29190         LIB_SELINUX is already set via the dependent module, selinux-h.
29191         (Include): Add quotes around selinux-at.h.
29192         * lib/selinux-at.h: Add documentation.
29193         Reported by Bruno Haible in
29194         http://marc.info/?l=gnulib-bug&m=124958988300749
29195
29196 2009-08-07  Bruno Haible  <bruno@clisp.org>
29197
29198         Avoid link error on MacOS X 10.3 and 10.4.
29199         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29200         on non-ELF systems.
29201         * lib/argp-pv.c (argp_program_version): Likewise.
29202         Reported by Simon Josefsson.
29203
29204 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29205
29206         * tests/test-version-etc.sh: Use $EXEEXT.
29207
29208 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29209
29210         update-copyright: update documentation to point to maint.mk
29211         * build-aux/update-copyright: Here.
29212
29213 2009-08-06  Jim Meyering  <meyering@redhat.com>
29214
29215         maint.mk: support update-copyright-local
29216         * top/maint.mk (update-copyright-local): Define place-holder.
29217         (update-copyright): Depend on $(update-copyright-local).
29218
29219 2009-08-06  Jim Meyering  <meyering@redhat.com>
29220
29221         selinux-at: new module
29222         Initially written for coreutils, this module will soon be
29223         used by findutils, too.
29224         * MODULES.html.sh [Misc]: Add selinux-at.
29225         * lib/selinux-at.h: New file, from coreutils.
29226         * lib/selinux-at.c: Likewise.
29227         * modules/selinux-at: Likewise.
29228         (License): Change from LGPL to GPL, since it depends
29229         on the GPL'd openat module.
29230
29231         doc: update README
29232         * README: Remove references to cogito.
29233         Remove cvs-repo-updating instructions from 2007.
29234         Don't imply that CVS is better if you have limited disk space.
29235
29236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29237
29238         update-copyright: support C-style comments
29239         * build-aux/update-copyright: Implement and document.
29240         * tests/test-update-copyright.sh: Test.
29241
29242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29243
29244         update-copyright: support omitted "(C)"
29245         * build-aux/update-copyright: Implement and document.  Also,
29246         allow variable whitespace before "(C)".
29247         * tests/test-update-copyright.sh: Test.
29248
29249 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29250
29251         update-copyright: don't trip on non-FSF copyright statements
29252         * build-aux/update-copyright: Fix so that the first correctly
29253         formatted FSF copyright statement is recognized no matter what
29254         appears before it.  Update documentation.
29255         * tests/test-update-copyright.sh: Test that.
29256
29257 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29258
29259         update-copyright: clean up code a little
29260         * build-aux/update-copyright: Append "_re" to the name of any
29261         variable holding a regular expression.
29262         Replace "old" and "new" with "stmt" in variable names.
29263         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29264         handled correctly.
29265         Format code more consistently.
29266
29267 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29268
29269         update-copyright-tests: improve portability
29270         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29271         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29272
29273 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29274
29275         update-copyright: support @copyright{} and &copy;
29276         * build-aux/update-copyright: Implement and document.
29277         * tests/test-update-copyright.sh: Test.
29278
29279 2009-08-04  Jim Meyering  <meyering@redhat.com>
29280
29281         update-copyright-tests: correctly test EOL=\r\n handling
29282         * tests/test-update-copyright.sh: Put \r at the end of some lines
29283         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29284
29285         maint.mk: make update-copyright exclusion list more configurable
29286         * top/maint.mk (update-copyright): Default to excluding COPYING,
29287         but allow an override, in case someone does want to update that file.
29288
29289         maint.mk: don't update copyright date in COPYING
29290         * top/maint.mk (update-copyright): Exclude COPYING.
29291
29292         maint.mk: add a copyright-updating rule
29293         * top/maint.mk (update-copyright): New rule.
29294         Derived from coreutils/Makefile.am.
29295
29296         update-copyright: rename some variables
29297         * build-aux/update-copyright: Rename a few variables for clarity.
29298         Tweak syntax.  List Joel E. Denny as coauthor.
29299
29300 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29301
29302         update-copyright: fix bug for 2-digit last year and add tests
29303         * build-aux/update-copyright: Fix bug.
29304         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29305         specified.
29306         * modules/update-copyright-tests: New
29307         * tests/test-update-copyright.sh: New.
29308
29309 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29310
29311         update-copyright: handle leading tabs in line prefix
29312         * build-aux/update-copyright: Count leading tabs as 8 spaces
29313         when computing margin.  This helps with the formatting of
29314         ChangeLogs, for example.
29315         Fix documentation a little.
29316
29317 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29318
29319         update-copyright: support EOL=\r\n
29320         * build-aux/update-copyright: Implement that.
29321
29322 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29323
29324         update-copyright: automatically format copyright statements
29325         * build-aux/update-copyright: Implement that.
29326         Also, be a little more predictable and safer by always failing
29327         when the full copyright format is not perfectly recognized as an
29328         unbroken whole.  Discussed at
29329         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29330         Rewrite documentation.
29331
29332 2009-08-03  Bruno Haible  <bruno@clisp.org>
29333
29334         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29335
29336 2009-08-02  Bruno Haible  <bruno@clisp.org>
29337
29338         Tests for module 'uname'.
29339         * modules/uname-tests: New file.
29340         * tests/test-uname.c: New file.
29341
29342         New module 'uname'.
29343         * lib/uname.c: New file.
29344         * m4/uname.m4: New file.
29345         * modules/uname: New file.
29346         * doc/posix-functions/uname.texi: Mention the new module.
29347
29348 2009-08-02  Bruno Haible  <bruno@clisp.org>
29349
29350         Tests for module 'sys_utsname'.
29351         * modules/sys_utsname-tests: New file.
29352         * tests/test-sys_utsname.c: New file.
29353
29354         New module 'sys_utsname'.
29355         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29356         * m4/sys_utsname_h.m4: New file.
29357         * modules/sys_utsname: New file.
29358         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29359
29360 2009-08-02  Bruno Haible  <bruno@clisp.org>
29361
29362         Implicitly initialize the sockets library.
29363         * lib/gethostname.c: Include sockets.h.
29364         (rpl_gethostname): Invoke gl_sockets_startup.
29365         * lib/socket.c: Include sockets.h.
29366         (rpl_socket): Invoke gl_sockets_startup.
29367         * modules/gethostname (Depends-on): Add sockets.
29368         * modules/socket (Depends-on): Likewise.
29369         * tests/test-poll.c: Don't include sockets.h.
29370         (main): Don't invoke gl_sockets_startup.
29371         * tests/test-select.c: Don't include sockets.h.
29372         (main): Don't invoke gl_sockets_startup.
29373
29374 2009-08-02  Bruno Haible  <bruno@clisp.org>
29375
29376         Allow multiple calls to gl_sockets_startup.
29377         * lib/sockets.c (initialized_sockets_version): New variable.
29378         (gl_sockets_startup): Do nothing if already called for this or a higher
29379         version.
29380         (gl_sockets_cleanup): Reset initialized_sockets_version.
29381
29382 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29383
29384         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29385         different project/version.
29386
29387 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29388             Bruno Haible  <bruno@clisp.org>
29389
29390         Tests for module 'pipe-filter-gi'.
29391         * modules/pipe-filter-gi-tests: New file.
29392         * tests/test-pipe-filter-gi1.sh: New file.
29393         * tests/test-pipe-filter-gi1.c: New file.
29394         * tests/test-pipe-filter-gi2.sh: New file.
29395         * tests/test-pipe-filter-gi2-main.c: New file.
29396         * tests/test-pipe-filter-gi2-child.c: New file.
29397
29398         New module 'pipe-filter-gi'.
29399         * lib/pipe-filter-gi.c: New file.
29400         * modules/pipe-filter-gi: New file.
29401
29402 2009-08-02  Bruno Haible  <bruno@clisp.org>
29403             Paolo Bonzini  <bonzini@gnu.org>
29404
29405         Tests for module 'pipe-filter-ii'.
29406         * modules/pipe-filter-ii-tests: New file.
29407         * tests/test-pipe-filter-ii1.sh: New file.
29408         * tests/test-pipe-filter-ii1.c: New file.
29409         * tests/test-pipe-filter-ii2.sh: New file.
29410         * tests/test-pipe-filter-ii2-main.c: New file.
29411         * tests/test-pipe-filter-ii2-child.c: New file.
29412
29413         New module 'pipe-filter-ii'.
29414         * lib/pipe-filter.h: New file.
29415         * lib/pipe-filter-ii.c: New file.
29416         * lib/pipe-filter-aux.h: New file.
29417         * modules/pipe-filter-ii: New file.
29418
29419 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29420
29421         * lib/gc-libgcrypt.c: Change copyright to FSF.
29422         * lib/gc-gnulib.c: Likewise.
29423
29424 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29425
29426         * lib/gethostname.c: Include limits.h.
29427
29428 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29429             Bruno Haible  <bruno@clisp.org>
29430
29431         Ensure HOST_NAME_MAX as part of the gethostname module.
29432         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29433         define also HOST_NAME_MAX.
29434         * tests/test-gethostname.c: Include <limits.h>.
29435         (main): Check also HOST_NAME_MAX.
29436         * doc/posix-headers/limits.texi: Document the mingw problem.
29437
29438 2009-08-02  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29441         Add comments.
29442
29443 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29444
29445         * lib/gethostname.c: Add Windows wrapper.
29446         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29447         * modules/gethostname: Depend on sys_socket & errno, for also
29448         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29449         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29450
29451 2009-07-31  Jim Meyering  <meyering@redhat.com>
29452
29453         getloadavg: fix symbol name in comment
29454         * lib/getloadavg.c: Correct a typo I introduced when adding
29455         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29456         Matt Kraai spotted the problem.
29457
29458 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29459
29460         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29461         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29462         code also if ! defined N_NAME_POINTER.
29463         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29464         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29465         but the n_name member is a 12-byte array.
29466
29467 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29468
29469         update-copyright: generalize comment handling
29470         * build-aux/update-copyright: Handle copyright statements
29471         within more comment styles.
29472         Document usage.
29473         Report any file with an external copyright holder or parse failure.
29474
29475 2009-07-29  Jim Meyering  <meyering@redhat.com>
29476
29477         mktime: correct setting of REPLACE_MKTIME
29478         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29479
29480         update-copyright: new module
29481         * modules/update-copyright: New file.
29482         * build-aux/update-copyright: New file.
29483         * MODULES.html.sh (maint+release support): Add update-copyright.
29484
29485 2009-07-27  Bruno Haible  <bruno@clisp.org>
29486
29487         Fix compilation error when <ctime> is used and mktime is replaced.
29488         * lib/time.in.h (mktime): New declaration.
29489         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29490         REPLACE_MKTIME instead of defining mktime in config.h.
29491         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29492         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29493         Reported by Ross McFarland <rwmcfa1@neces.com>.
29494
29495 2009-07-27  Bruno Haible  <bruno@clisp.org>
29496
29497         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29498         Reported by Matt Kraai <mkraai@beckman.com>.
29499
29500 2009-07-25  Jim Meyering  <meyering@redhat.com>
29501
29502         maint.mk: avoid warnings about missing files
29503         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29504         diagnostic when .prev-version does not exist.
29505         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29506         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29507         nonexistent cfg.mk.
29508         Suggestions from Simon Josefsson.
29509
29510 2009-07-25  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29513         defined as macros. Needed on QNX 6.4.1.
29514         Reported by Matt Kraai <mkraai@beckman.com>.
29515
29516 2009-07-23  Jim Meyering  <meyering@redhat.com>
29517
29518         maint.mk: invoke "make dist" with a working value of XZ_OPT
29519         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29520
29521 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29522
29523         Make fseeko.c compile on QNX.
29524         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29525
29526 2009-07-22  Peter Simons  <simons@cryp.to>
29527
29528         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29529         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29530         * lib/md4.h: Likewise.
29531         * lib/md5.h: Likewise.
29532         * lib/sha1.h: Likewise.
29533         * lib/sha256.h: Likewise.
29534         * lib/sha512.h: Likewise.
29535
29536         tests-sha1: don't assign literal string to 'char *' variable
29537         * tests/test-sha1.c (main): Declare locals with "const" to match
29538         attributes of the right hand side.
29539
29540 2009-07-21  Eric Blake  <ebb9@byu.net>
29541
29542         dup2: fix more mingw problems
29543         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29544         fd to itself.
29545         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29546         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29547         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29548         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29549         care of mingw bugs.
29550
29551 2009-07-21  Jim Meyering  <meyering@redhat.com>
29552
29553         vc-list-files: avoid failure when /bin/sh is dash
29554         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29555         On some Debian based systems, /bin/sh is a symlink to dash, and running
29556         this command would omit the "/" following each 'tests' prefix:
29557           dash -x build-aux/vc-list-files -C . tests
29558         That is because bash and dash work differently:
29559           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29560           bash ok
29561           dash odd
29562
29563 2009-07-21  Eric Blake  <ebb9@byu.net>
29564
29565         dup2-tests: test previous patch
29566         * modules/dup2-tests: New file.
29567         * tests/test-dup2.c: Likewise.
29568         * tests/test-open.c (main): Avoid unspecified behavior.
29569         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29570         test.
29571
29572         dup2: work around mingw and cygwin 1.5 bug
29573         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29575         * modules/unistd (Makefile.am): Substitute it.
29576         * lib/unistd.in.h (dup2): Declare the replacement.
29577         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29578         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29579         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29580         * modules/execute (Depends-on): Add dup2.
29581         * modules/fseterr (Depends-on): Likewise.
29582         * modules/pipe (Depends-on): Likewise.
29583         * modules/posix_spawn-internal (Depends-on): Likewise.
29584
29585 2009-07-21  Bruno Haible  <bruno@clisp.org>
29586
29587         * modules/.gitattributes: New file.
29588
29589 2009-07-20  Bruno Haible  <bruno@clisp.org>
29590
29591         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29592         (main): Use it.
29593
29594 2009-07-20  Eric Blake  <ebb9@byu.net>
29595
29596         test-pipe: make a bit more robust.
29597         * tests/test-pipe.c (myerr): Allow error messages regardless of
29598         what we do to stderr.
29599         (test_pipe): Rearrange to avoid deadlock.
29600         (child_main): Try a larger read, to ensure we avoided deadlock.
29601         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29602         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29603         if misused.
29604
29605 2009-07-19  Jim Meyering  <meyering@redhat.com>
29606
29607         fts: avoid false-positive cycle-detection
29608         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29609         for each new command line argument.
29610
29611 2009-07-19  Bruno Haible  <bruno@clisp.org>
29612
29613         Fix build error on mingw with the modules sys_select and unistd.
29614         * modules/acl-tests (Depends-on): Add close.
29615         * modules/binary-io-tests (Depends-on): Likewise.
29616         * modules/closein-tests (Depends-on): Likewise.
29617         * modules/flock-tests (Depends-on): Likewise.
29618         * modules/fsync-tests (Depends-on): Likewise.
29619         * modules/lseek-tests (Depends-on): Likewise.
29620         * modules/pipe-tests (Depends-on): Likewise.
29621         * modules/posix_spawn-tests (Depends-on): Likewise.
29622         * modules/posix_spawnp-tests (Depends-on): Likewise.
29623         * modules/stat-time-tests (Depends-on): Likewise.
29624         * modules/yesno-tests (Depends-on): Likewise.
29625
29626 2009-07-19  Bruno Haible  <bruno@clisp.org>
29627
29628         Unify conditionals.
29629         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29630         macros, not at the compiler macros.
29631         * lib/pipe.c: Likewise.
29632         * lib/execute.c: Likewise.
29633         * lib/spawni.c: Likewise.
29634
29635 2009-07-19  Bruno Haible  <bruno@clisp.org>
29636
29637         Fix handling of closed stdin/stdout/stderr on mingw.
29638         * lib/w32spawn.h: Include unistd.h.
29639         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29640         file descriptor with O_NOINHERIT flag.
29641         (fd_safer_noinherit): New function, based on fd-safer.c.
29642         (dup_safer_noinherit): New function, based on dup-safer.c.
29643         (undup_safer_noinherit): New function.
29644         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29645         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29646         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29647         instead of fd_safer.
29648         * tests/test-pipe.c: Include <windows.h>.
29649         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29650         result.
29651
29652         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29653         from main.
29654         (test_pipe): Pass an extra argument for disambiguation.
29655         (main): Invoke parent_main or child_main.
29656
29657         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29658         consistently.
29659
29660 2009-07-18  Eric Blake  <ebb9@byu.net>
29661
29662         test-pipe: fix mingw build
29663         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29664
29665 2009-07-18  Bruno Haible  <bruno@clisp.org>
29666
29667         * modules/pipe-tests (Makefile.am): Fix typo.
29668
29669 2009-07-18  Eric Blake  <ebb9@byu.net>
29670
29671         error: fix mingw build
29672         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29673         Reported by Bruno Haible.
29674
29675         error: avoid undefined use of stdout
29676         * lib/error.c (error, error_at_line): Check that fd 1 is open
29677         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29678         is handling faults and the close_stdout module wants to report the
29679         detection of closed stdout as an error.
29680
29681 2009-07-17  Eric Blake  <ebb9@byu.net>
29682
29683         pipe: be robust in face of closed fds
29684         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29685         should cause child to misbehave.
29686         * modules/pipe-tests: New module.
29687         * tests/test-pipe.c: New file.
29688         * tests/test-pipe.sh: New file.
29689         Reported by Akim Demaille.
29690
29691 2009-07-14  Bruno Haible  <bruno@clisp.org>
29692
29693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29694         Reported by anonymous kc.
29695
29696 2009-07-07  Jim Meyering  <meyering@redhat.com>
29697
29698         maint.mk: don't look for translatable strings in *.m4 or *.mk
29699         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29700         when searching for translatable strings.
29701
29702 2009-07-05  Jim Meyering  <meyering@redhat.com>
29703
29704         remove superfluous parentheses in STREQ definition
29705         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29706         * lib/getugroups.c (STREQ): Likewise.
29707         * lib/fnmatch.c (STREQ): Likewise.
29708         Spotted by Bruno Haible.
29709
29710 2009-07-04  Jim Meyering  <meyering@redhat.com>
29711
29712         argv-iter: new module
29713         * MODULES.html.sh: Add argv-iter.
29714         * lib/argv-iter.c, lib/argv-iter.h: New files.
29715         * modules/argv-iter: New file.
29716         * modules/argv-iter-tests: New file.
29717         * tests/test-argv-iter.c: Test it.
29718
29719 2009-07-04  Bruno Haible  <bruno@clisp.org>
29720
29721         Fix assertion.
29722         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29723         contains more exact copies of a given entry than file2, leave the extra
29724         copies unpaired rather than aborting.
29725         Reported by Eric Blake.
29726
29727 2009-07-02  Bruno Haible  <bruno@clisp.org>
29728
29729         Speedup git-merge-changelog for git cherry-pick.
29730         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29731         (entries_mapping_get): New function, extracted from compute_mapping.
29732         (entries_mapping_reverse_get): New function.
29733         (compute_mapping): Add a 'full' argument. Return the result in a
29734         'struct entries_mapping'.
29735         (main): Update. Access the mappings through entries_mapping_get.
29736         Reported by Eric Blake.
29737
29738 2009-07-02  Bruno Haible  <bruno@clisp.org>
29739
29740         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29741         best_i.
29742
29743 2009-07-02  Bruno Haible  <bruno@clisp.org>
29744
29745         Speed up approximate search for matching ChangeLog entries.
29746         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29747         argument. Call fstrcmp_bounded instead of fstrcmp.
29748         (compute_mapping, try_split_merged_entry, main): Update callers.
29749
29750 2009-07-02  Bruno Haible  <bruno@clisp.org>
29751
29752         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29753
29754 2009-06-30  Bruno Haible  <bruno@clisp.org>
29755
29756         Reduce the number of uc_is_cased calls.
29757         * lib/unicase.h (casing_suffix_context_t): Add
29758         'first_char_except_ignorable' field.
29759         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29760         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29761         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29762         Update initializer.
29763         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29764         case-ignorable characters.
29765         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29766         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29767         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29768         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29769         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29770
29771 2009-06-30  Bruno Haible  <bruno@clisp.org>
29772
29773         Tests for module 'unicase/ignorable'.
29774         * modules/unicase/ignorable-tests: New file.
29775         * tests/unicase/test-ignorable.c: New file, generated by
29776         gen-uni-tables.
29777
29778         Tests for module 'unicase/cased'.
29779         * modules/unicase/cased-tests: New file.
29780         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29781         * tests/unicase/test-predicate-part1.h: New file, derived from
29782         tests/unictype/test-predicate-part1.h.
29783         * tests/unicase/test-predicate-part2.h: New file, same as
29784         tests/unictype/test-predicate-part2.h.
29785
29786         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29787         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29788         (output_casing_properties): New function.
29789         (main): Call it.
29790         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29791         * lib/unicase/cased.c: Include unictype/bitmap.h.
29792         (uc_is_cased): Define through a bitmap lookup.
29793         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29794         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29795         (uc_is_case_ignorable): Define through a bitmap lookup.
29796         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29797         lib/unictype/bitmap.h.
29798         (Depends-on): Add inline. Clean up.
29799         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29800         lib/unictype/bitmap.h.
29801         (Depends-on): Add inline. Clean up.
29802         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29803         recognition.
29804         * tests/unicase/test-u16-tolower.c (main): Likewise.
29805         * tests/unicase/test-u32-tolower.c (main): Likewise.
29806
29807 2009-06-30  Bruno Haible  <bruno@clisp.org>
29808
29809         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29810         * lib/unicase/u16-casemap.c: Likewise.
29811         * lib/unicase/u32-casemap.c: Likewise.
29812
29813 2009-06-29  Bruno Haible  <bruno@clisp.org>
29814
29815         Define u32_casefold as a wrapper around u32_ct_casefold.
29816         * lib/unicase/u32-casefold.c: Update.
29817         * modules/unicase/u32-casefold (Depends-on): Add
29818         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29819         unicase/empty-suffix-context. Clean up.
29820
29821         Define u16_casefold as a wrapper around u16_ct_casefold.
29822         * lib/unicase/u16-casefold.c: Update.
29823         * modules/unicase/u16-casefold (Depends-on): Add
29824         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29825         unicase/empty-suffix-context. Clean up.
29826
29827         Define u8_casefold as a wrapper around u8_ct_casefold.
29828         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29829         * lib/unicase/u8-casefold.c: Update.
29830         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29831         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29832
29833         Define u32_totitle as a wrapper around u32_ct_totitle.
29834         * lib/unicase/u32-totitle.c: Update.
29835         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29836         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29837
29838         Define u16_totitle as a wrapper around u16_ct_totitle.
29839         * lib/unicase/u16-totitle.c: Update.
29840         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29841         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29842
29843         Define u8_totitle as a wrapper around u8_ct_totitle.
29844         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29845         functions.
29846         (FUNC): Delegate to U_CT_TOTITLE.
29847         * lib/unicase/u8-totitle.c: Update.
29848         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29849         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29850
29851         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29852         invocation.
29853         * modules/unicase/u32-tolower (Depends-on): Add
29854         unicase/empty-prefix-context, unicase/empty-suffix-context.
29855
29856         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29857         invocation.
29858         * modules/unicase/u16-tolower (Depends-on): Add
29859         unicase/empty-prefix-context, unicase/empty-suffix-context.
29860
29861         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29862         * modules/unicase/u8-tolower (Depends-on): Add
29863         unicase/empty-prefix-context, unicase/empty-suffix-context.
29864
29865         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29866         invocation.
29867         * modules/unicase/u32-toupper (Depends-on): Add
29868         unicase/empty-prefix-context, unicase/empty-suffix-context.
29869
29870         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29871         invocation.
29872         * modules/unicase/u16-toupper (Depends-on): Add
29873         unicase/empty-prefix-context, unicase/empty-suffix-context.
29874
29875         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29876         * modules/unicase/u8-toupper (Depends-on): Add
29877         unicase/empty-prefix-context, unicase/empty-suffix-context.
29878
29879         New module 'unicase/u32-ct-casefold'.
29880         * lib/unicase/u32-ct-casefold.c: New file.
29881         * modules/unicase/u32-ct-casefold: New file.
29882
29883         New module 'unicase/u16-ct-casefold'.
29884         * lib/unicase/u16-ct-casefold.c: New file.
29885         * modules/unicase/u16-ct-casefold: New file.
29886
29887         New module 'unicase/u8-ct-casefold'.
29888         * lib/unicase/u8-ct-casefold.c: New file.
29889         * lib/unicase/u-ct-casefold.h: New file, derived from
29890         lib/unicase/u-casefold.h.
29891         * modules/unicase/u8-ct-casefold: New file.
29892
29893         New module 'unicase/u32-ct-totitle'.
29894         * lib/unicase/u32-ct-totitle.c: New file.
29895         * modules/unicase/u32-ct-totitle: New file.
29896
29897         New module 'unicase/u16-ct-totitle'.
29898         * lib/unicase/u16-ct-totitle.c: New file.
29899         * modules/unicase/u16-ct-totitle: New file.
29900
29901         New module 'unicase/u8-ct-totitle'.
29902         * lib/unicase/u8-ct-totitle.c: New file.
29903         * lib/unicase/u-ct-totitle.h: New file, derived from
29904         lib/unicase/u-totitle.h.
29905         * modules/unicase/u8-ct-totitle: New file.
29906
29907         New module 'unicase/u32-ct-tolower'.
29908         * lib/unicase/u32-ct-tolower.c: New file.
29909         * modules/unicase/u32-ct-tolower: New file.
29910
29911         New module 'unicase/u16-ct-tolower'.
29912         * lib/unicase/u16-ct-tolower.c: New file.
29913         * modules/unicase/u16-ct-tolower: New file.
29914
29915         New module 'unicase/u8-ct-tolower'.
29916         * lib/unicase/u8-ct-tolower.c: New file.
29917         * modules/unicase/u8-ct-tolower: New file.
29918
29919         New module 'unicase/u32-ct-toupper'.
29920         * lib/unicase/u32-ct-toupper.c: New file.
29921         * modules/unicase/u32-ct-toupper: New file.
29922
29923         New module 'unicase/u16-ct-toupper'.
29924         * lib/unicase/u16-ct-toupper.c: New file.
29925         * modules/unicase/u16-ct-toupper: New file.
29926
29927         New module 'unicase/u8-ct-toupper'.
29928         * lib/unicase/u8-ct-toupper.c: New file.
29929         * modules/unicase/u8-ct-toupper: New file.
29930
29931         Add context arguments to u*_casemap functions.
29932         * lib/unicase/unicasemap.h: Include unicase.h.
29933         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29934         suffix_context arguments.
29935         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29936         functions.
29937         (FUNC): Add prefix_context and suffix_context arguments. Use
29938         uc_is_cased and uc_is_case_ignorable.
29939         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29940         * lib/unicase/u16-casemap.c: Likewise.
29941         * lib/unicase/u32-casemap.c: Likewise.
29942         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29943         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29944         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29945         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29946         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29947         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29948
29949         New module 'unicase/u32-suffix-context'.
29950         * lib/unicase/u32-suffix-context.c: New file.
29951         * modules/unicase/u32-suffix-context: New file.
29952
29953         New module 'unicase/u16-suffix-context'.
29954         * lib/unicase/u16-suffix-context.c: New file.
29955         * modules/unicase/u16-suffix-context: New file.
29956
29957         New module 'unicase/u8-suffix-context'.
29958         * lib/unicase/u8-suffix-context.c: New file.
29959         * lib/unicase/u-suffix-context.h: New file.
29960         * modules/unicase/u8-suffix-context: New file.
29961
29962         New module 'unicase/empty-suffix-context'.
29963         * lib/unicase/empty-suffix-context.c: New file.
29964         * modules/unicase/empty-suffix-context: New file.
29965
29966         New module 'unicase/u32-prefix-context'.
29967         * lib/unicase/u32-prefix-context.c: New file.
29968         * modules/unicase/u32-prefix-context: New file.
29969
29970         New module 'unicase/u16-prefix-context'.
29971         * lib/unicase/u16-prefix-context.c: New file.
29972         * modules/unicase/u16-prefix-context: New file.
29973
29974         New module 'unicase/u8-prefix-context'.
29975         * lib/unicase/u8-prefix-context.c: New file.
29976         * lib/unicase/u-prefix-context.h: New file.
29977         * lib/unicase/context.h: New file.
29978         * modules/unicase/u8-prefix-context: New file.
29979
29980         New module 'unicase/empty-prefix-context'.
29981         * lib/unicase/empty-prefix-context.c: New file.
29982         * modules/unicase/empty-prefix-context: New file.
29983
29984         New module 'unicase/ignorable'.
29985         * lib/unicase/ignorable.c: New file.
29986         * modules/unicase/ignorable: New file.
29987
29988         New module 'unicase/cased'.
29989         * lib/unicase/caseprop.h: New file.
29990         * lib/unicase/cased.c: New file.
29991         * modules/unicase/cased: New file.
29992
29993         New functions for case mapping of substrings.
29994         * lib/unicase.h (casing_prefix_context_t): New type.
29995         (unicase_empty_prefix_context): New variable.
29996         (u8_casing_prefix_context, u16_casing_prefix_context,
29997         u32_casing_prefix_context, u8_casing_prefixes_context,
29998         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29999         declarations.
30000         (casing_suffix_context_t): New type.
30001         (unicase_empty_suffix_context): New variable.
30002         (u8_casing_suffix_context, u16_casing_suffix_context,
30003         u32_casing_suffix_context, u8_casing_suffixes_context,
30004         u16_casing_suffixes_context, u32_casing_suffixes_context,
30005         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30006         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30007         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30008         declarations.
30009
30010 2009-06-28  Jim Meyering  <meyering@redhat.com>
30011
30012         boostrap: indent only with spaces
30013         * build-aux/bootstrap: Indent only with spaces, never TABs.
30014
30015         bootstrap: split long lines
30016         * build-aux/bootstrap: Keep line length < 80.
30017
30018         bootstrap: sync from coreutils
30019         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30020         just as autoreconf does.  Verify a list of prerequisite
30021         package-name,version-number pairs if defined in bootstrap.conf.
30022         Refer to README-prereq, if prerequisites are not satisfied.
30023
30024 2009-06-27  Eric Blake  <ebb9@byu.net>
30025
30026         tests: add test for bogus NULL definition
30027         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30028         * tests/test-stdlib.c: Likewise.
30029         * tests/test-string.c: Likewise.
30030         * tests/test-locale.c: Likewise.
30031         * tests/test-unistd.c: Likewise.
30032         * modules/stdio-tests (Depends-on): Add verify.
30033         * modules/stdlib-tests (Depends-on): Likewise.
30034         * modules/string-tests (Depends-on): Likewise.
30035         * modules/locale-tests (Depends-on): Likewise.
30036         * modules/unistd-tests (Depends-on): Likewise.
30037
30038 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30039
30040         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30041         self-explaining comment.
30042         * m4/selinux-selinux-h: Update serial.
30043         (gl_LIBSELINUX): New macro, adding a warning for missing development
30044         packages to code extracted from...
30045         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30046         Add warning for missing development packages here, too.
30047
30048 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30049
30050         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30051
30052 2009-06-25  Eric Blake  <ebb9@byu.net>
30053
30054         version-etc: fix regression
30055         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30056         gcc.
30057         (version_etc): Use it, to catch bugs with trailing NULL.
30058         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30059         (version_etc_va): Fix logic bug.
30060         * modules/version-etc-tests: Add test.
30061         * tests/test-version-etc.c: New file.
30062         * tests/test-version-etc.sh: Likewise.
30063
30064 2009-06-25  Sam Steingold  <sds@gnu.org>
30065
30066         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30067         mbtowc declaration.
30068
30069 2009-06-25  Eric Blake  <ebb9@byu.net>
30070
30071         fpurge: migrate into <stdio.h>
30072         * lib/fpurge.h: Delete...
30073         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30074         * lib/fpurge.c (fpurge): Change declaring header.
30075         * modules/fpurge (Files): Drop deleted file.
30076         (Depends-on): Add stdio.
30077         (configure.ac): Set witness.
30078         * modules/stdio (Makefile.am): Support fpurge macros.
30079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30080         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30081         * lib/fflush.c: Update client.
30082         * tests/test-fpurge.c: Likewise.
30083         * NEWS: Mention the change.
30084
30085 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30086
30087         * lib/argp-version-etc.c (program_authors): Add const
30088         qualifier.
30089         * lib/version-etc.c: Fix typos in the comments.
30090         * modules/argp-version-etc: Depends on version-etc.
30091
30092 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30093
30094         argp-version-etc: new module.
30095
30096         * lib/argp-version-etc.c: New file.
30097         * lib/argp-version-etc.h: New file.
30098         * modules/argp-version-etc: New file.
30099         * modules/argp-version-etc-tests: New file.
30100         * tests/test-argp-version-etc.c: New test.
30101         * tests/test-argp-version-etc-1.sh: New test.
30102
30103 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30104
30105         Provide additional interfaces and documentation for version-etc
30106         module.
30107
30108         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30109         interfaces.
30110         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30111         prototypes.
30112
30113 2009-06-24  Bruno Haible  <bruno@clisp.org>
30114
30115         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30116         HAVE_LIB${NAME} macro.
30117         Reported by Sam Steingold <sds@gnu.org>.
30118
30119 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30120
30121         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30122         needed.
30123
30124 2009-06-21  Bruno Haible  <bruno@clisp.org>
30125
30126         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30127         work.
30128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30129         together with LIB${NAME}, LTLIB${NAME}.
30130         Reported by Sam Steingold <sds@gnu.org>.
30131
30132 2009-06-20  Jim Meyering  <meyering@redhat.com>
30133
30134         tests: make sc_require_test_exit_idiom more generic
30135         * top/maint.mk (Exit_witness_file): New overridable variable.
30136         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30137         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30138
30139 2009-06-19  Jim Meyering  <meyering@redhat.com>
30140
30141         hash: reverse order of src/dst parameters in an internal interface
30142         * lib/hash.c (transfer_entries): Reverse order of parameters to
30143         put DST before SRC.  Adjust callers.
30144
30145         tests: test-hash: avoid wholesale duplication
30146         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30147         Instead, use a loop and add a single conditional.
30148
30149         tests: test-hash: allow seed selection via a command line argument
30150         * tests/test-hash.c (get_seed): New function.
30151         (main): Use it.
30152
30153 2009-06-19  Eric Blake  <ebb9@byu.net>
30154
30155         hash: avoid memory leak on allocation failure
30156         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30157         failure.  Factor repeated algorithm...
30158         (transfer_entries): ...into new helper routine.
30159         (hash_delete): React to hash_rehash return value.
30160
30161         hash: reduce memory pressure in hash_rehash no-op case
30162         * lib/hash.c (next_prime): Avoid overflow.
30163         (hash_initialize): Factor bucket size computation...
30164         (compute_bucket_size): ...into new helper function.
30165         (hash_rehash): Use new function and open coding to reduce memory
30166         pressure, and avoid a memory leak in USE_OBSTACK code.
30167         Reported by Jim Meyering.
30168
30169 2009-06-18  Eric Blake  <ebb9@byu.net>
30170
30171         hash: make rotation more obvious
30172         * modules/hash (Depends-on): Add bitrotate and stdint.
30173         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30174         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30175         (SIZE_MAX): Rely on headers for definition.
30176         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30177         (raw_hasher): Use rotr_sz.
30178         Suggested by Jim Meyering.
30179
30180         hash: fix memory leak in last patch
30181         * lib/hash.c (hash_rehash): Avoid memory leak.
30182
30183         hash: avoid no-op rehashing
30184         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30185
30186         hash: provide default callback functions
30187         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30188         (hash_initialize): Use them as defaults.
30189         * tests/test-hash.c (main): Test this.
30190
30191         hash: minor optimization
30192         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30193         when possible.
30194         (hash_initialize): Document this promise.
30195         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30196         * tests/test-hash.c (hash_compare_strings): Test this.
30197
30198 2009-06-18  Bruno Haible  <bruno@clisp.org>
30199
30200         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30201         going to be replaced anyway.
30202
30203 2009-06-18  Bruno Haible  <bruno@clisp.org>
30204
30205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30206         in one place.
30207         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30208         be replaced anyway.
30209
30210 2009-06-18  Eric Blake  <ebb9@byu.net>
30211
30212         hash: check for resize before insertion
30213         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30214         threshold before insertion, so that a pathological hash_rehash
30215         that fills every bucket can still trigger another rehash.
30216
30217 2009-06-18  Jim Meyering  <meyering@redhat.com>
30218
30219         hash-tests: add a loop around the small tests
30220         * tests/test-hash.c (main): Repeat small tests with selected
30221         small initial table sizes.
30222
30223 2009-06-17  Eric Blake  <ebb9@byu.net>
30224
30225         hash: minor cleanups
30226         * lib/hash.h (hash_entry): Make opaque, by moving...
30227         * lib/hash.c (hash_entry): ...here.
30228         (hash_insert): Clarify restrictions on what can be inserted.
30229         (hash_get_next): Clarify when it is safe to remove an element
30230         during traversal.
30231         (check_tuning): Skip verification when tuning is known safe.
30232         (hash_initialize): Clarify restrictions on tuning.
30233
30234 2009-06-17  Jim Meyering  <jim@meyering.net>
30235         and Eric Blake  <ebb9@byu.net>
30236
30237         hash-tests: new module
30238         * modules/hash-tests: New file.
30239         * tests/test-hash.c: New file.
30240
30241 2009-06-17  Eric Blake  <ebb9@byu.net>
30242
30243         strstr-simple: document new module
30244         * MODULES.html.sh: Document new module.
30245
30246         strstr, strcasestr: replace on platforms with broken memchr
30247         * modules/strstr: Split into...
30248         * modules/strstr-simple: ...new module that does not care about
30249         performance, but does care about glibc bug.
30250         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30251         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30252         if platform memchr is broken, per Debian bug 521737.
30253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30254         memchr.
30255         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30256         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30257         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30258         * modules/mountlist (Depends-on): Add strstr-simple.
30259         * modules/gen-uni-tables (Depends-on): Likewise.
30260         * modules/argz (Depends-on): Add strstr.
30261
30262 2009-06-17  Bruno Haible  <bruno@clisp.org>
30263
30264         * modules/posix_spawn-internal (Depends-on): Add errno.
30265
30266 2009-06-17  Bruno Haible  <bruno@clisp.org>
30267
30268         Define missing ESTALE on Interix 3.5.
30269         * lib/errno.in.h (ESTALE): Assign a value if missing.
30270         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30272         missing.
30273         * doc/posix-headers/errno.texi: Mention the Interix bug.
30274         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30275
30276 2009-06-15  Eric Blake  <ebb9@byu.net>
30277
30278         memchr, memchr2: add valgrind exception
30279         * lib/memchr.valgrind: New file.
30280         * lib/memchr2.valgrind: New file.
30281         * modules/memchr (Files): Distribute valgrind file.
30282         * modules/memchr2 (Files): Likewise.
30283
30284         docs: memchr is no longer obsolete
30285         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30286         * lib/string.in.h (memchr): Simplify logic.
30287
30288 2009-06-14  Jim Meyering  <meyering@redhat.com>
30289
30290         link-follow: fix the "checking..." message to not mention trailing slash
30291         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30292         never considered trailing slashes.
30293
30294 2009-06-14  Bruno Haible  <bruno@clisp.org>
30295
30296         * m4/memchr.m4: Mention also the bug on IA-64.
30297         * doc/posix-functions/memchr.texi: Likewise.
30298
30299 2009-06-12  Eric Blake  <ebb9@byu.net>
30300
30301         memchr: detect broken x86_64 and alpha implementations
30302         * modules/memchr-tests (Depends-on): Move mmap detection...
30303         * modules/memchr (Depends-on): ...here.
30304         (configure.ac): Set indicator.
30305         * lib/string.in.h (memchr): Declare replacement.
30306         * modules/string (Makefile.am): Trigger replacement.
30307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30308         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30309         bugs.
30310         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30311         * modules/getpagesize (License): Relax license.
30312
30313 2009-06-11  Bruno Haible  <bruno@clisp.org>
30314
30315         * lib/idpriv.h: Add more references.
30316
30317 2009-06-08  Bruno Haible  <bruno@clisp.org>
30318
30319         Tests for module 'idpriv-droptemp'.
30320         * modules/idpriv-droptemp-tests: New file.
30321         * tests/test-idpriv-droptemp.sh: New file.
30322         * tests/test-idpriv-droptemp.su.sh: New file.
30323         * tests/test-idpriv-droptemp.c: New file.
30324
30325         New module 'idpriv-droptemp'.
30326         * lib/idpriv-droptemp.c: New file.
30327         * modules/idpriv-droptemp: New file.
30328
30329 2009-06-08  Bruno Haible  <bruno@clisp.org>
30330
30331         Tests for module 'idpriv-drop'.
30332         * modules/idpriv-drop-tests: New file.
30333         * tests/test-idpriv-drop.sh: New file.
30334         * tests/test-idpriv-drop.su.sh: New file.
30335         * tests/test-idpriv-drop.c: New file.
30336
30337         New module 'idpriv-drop'.
30338         * lib/idpriv.h: New file.
30339         * lib-idpriv-drop.c: New file.
30340         * m4/idpriv.m4: New file.
30341         * modules/idpriv-drop: New file.
30342
30343 2009-06-08  Bruno Haible  <bruno@clisp.org>
30344
30345         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30352
30353 2009-06-08  Eric Blake  <ebb9@byu.net>
30354
30355         test-strstr: use memory fence, when possible
30356         * tests/test-strstr.c (main): Use memory fence, in order to be
30357         more likely to trigger Debian bug 521737.
30358         * modules/strstr-tests (Files): Pull in additional files.
30359
30360         memchr: no longer obsolete, for wider field testing
30361         * modules/memchr (Status, Notice): Delete, this module is no
30362         longer obsolete.
30363         * modules/vasnprintf (Depends-on): Add memchr.
30364
30365 2009-06-07  Jim Meyering  <meyering@redhat.com>
30366
30367         hash: declare some functions with the warn_unused_result attribute
30368         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30369
30370 2009-06-07  Bruno Haible  <bruno@clisp.org>
30371
30372         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30373         Reported by Eric Blake.
30374
30375 2009-06-06  Eric Blake  <ebb9@byu.net>
30376
30377         test-alignof: fix typo with long double
30378         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30379         compiler error.
30380
30381 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30382
30383         Escape non-texinfo { and }s.
30384         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30385         markup error.
30386
30387 2009-06-04  Jim Meyering  <meyering@redhat.com>
30388
30389         gitlog-to-changelog: don't infloop on an empty commit log
30390         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30391         Reported by Boris Petersen <transacid@centerim.org>.
30392
30393 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30394
30395         version-etc: extend for packagers
30396         Add three new configure options, intended for packagers:
30397           --with-packager="packager name"
30398           --with-packager-version="packager-specific version"
30399           --with-packager-bug-reports="packager bug reporting"
30400         An example with coreutils:
30401           $ ./configure \
30402             --with-packager=Gentoo \
30403             --with-packager-bug-report=http://bugs.gentoo.org/ \
30404             --with-packager-version="patchset 1.6"
30405           $ ./src/ls --version | head -n2
30406           ls (GNU coreutils) 7.1-dirty
30407           Packaged by Gentoo (patchset 1.6)
30408         Note that the bug reporting info via --help doesn't show up because
30409         coreutils uses its own custom emit_bug_reporting_address() implementation
30410         in src/system.h.  If it didn't, it'd look like:
30411           $ ./src/ls --help | tail -n4
30412           Report bugs to <bug-coreutils@gnu.org>.
30413           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30414           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30415           General help using GNU software: <http://www.gnu.org/gethelp/>.
30416         * lib/version-etc.c: Print new information, if provided.
30417         * m4/version-etc.m4: New file.
30418         * modules/version-etc (Files): Add m4/version-etc.m4.
30419         (configure.ac): Add gl_VERSION_ETC.
30420
30421 2009-05-31  Bruno Haible  <bruno@clisp.org>
30422
30423         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30424         and 'int64_t'.
30425         * modules/alignof-tests (Dependencies): Add stdint.
30426         Reported by Eric Blake.
30427
30428 2009-05-31  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30431         restriction due to compiler bugs.
30432         Reported by Eric Blake.
30433
30434 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30435             Bruno Haible  <bruno@clisp.org>
30436
30437         Fix test-alignof failure.
30438         * lib/alignof.h (alignof_slot): New macro.
30439         (alignof_type): New macro, with the same semantics as the previous
30440         'alignof'.
30441         (alignof): Alias to alignof_slot.
30442         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30443         check that the results are usable as constant expressions.
30444
30445 2009-05-31  Bruno Haible  <bruno@clisp.org>
30446
30447         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30448         * tests/test-memchr.c (main): Check that memchr does not read past the
30449         first occurrence of the byte.
30450         * tests/test-strstr.c (main): Update comment.
30451         Suggested by Eric Blake.
30452
30453 2009-05-30  Bruno Haible  <bruno@clisp.org>
30454
30455         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30456         detail how to use dumpbin.
30457         Reported by David Byron <dbyron@dbyron.com>.
30458
30459 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30460
30461         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30462
30463 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30464
30465         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30466
30467 2009-05-28  Bruno Haible  <bruno@clisp.org>
30468
30469         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30470         build-aux/ files.
30471
30472 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30473
30474         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30475
30476 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30477
30478         * gnulib-tool (sed_transform_main_lib_file)
30479         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30480         regexps.
30481
30482 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30483
30484         * tests/test-strstr.c: Add another self-test.
30485         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30486         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30487
30488 2009-05-23  Bruno Haible  <bruno@clisp.org>
30489
30490         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30491         change.
30492
30493 2009-05-21  Bruno Haible  <bruno@clisp.org>
30494
30495         Simplify use of mode_t varargs.
30496         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30497         uses 'mode_t' or 'int'.
30498         * lib/openat.c (openat): Likewise.
30499         * lib/open-safer.c (open_safer): Likewise.
30500         * m4/mode_t.m4: New file.
30501         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30502         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30503         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30504         * modules/open (Files): Add m4/mode_t.m4.
30505         * modules/openat (Files): Likewise.
30506         * modules/fcntl-safer (Files): Likewise.
30507         Suggested by Eric Blake.
30508
30509 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30510
30511         * doc/glibc-functions/fallocate.texi: New file.
30512         * doc/gnulib.texi: Include it.
30513
30514 2009-05-21  Eric Blake  <ebb9@byu.net>
30515             Bruno Haible  <bruno@clisp.org>
30516
30517         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30518         invocations.
30519         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30520
30521 2009-05-21  Eric Blake  <ebb9@byu.net>
30522             Bruno Haible  <bruno@clisp.org>
30523
30524         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30525         include_next. Fix of 2008-11-20 commit.
30526         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30527         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30528         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30529         NEXT_MATH_H.
30530         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30531         instead of NEXT_MATH_H.
30532
30533 2009-05-21  Bruno Haible  <bruno@clisp.org>
30534
30535         Avoid redefinition warnings for SIZE_MAX.
30536         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30537         Reported by Simon Josefsson.
30538
30539 2009-05-21  Bruno Haible  <bruno@clisp.org>
30540
30541         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30542         AC_CACHE_VAL.
30543
30544 2009-05-20  Bruno Haible  <bruno@clisp.org>
30545
30546         Make zeroptr.h work on mingw.
30547         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30548         mprotect.
30549         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30550         * modules/memchr2-tests (configure.ac): Likewise.
30551         * modules/memcmp-tests (configure.ac): Likewise.
30552         * modules/memmem-tests (configure.ac): Likewise.
30553         * modules/memrchr-tests (configure.ac): Likewise.
30554         Reported by Simon Josefsson.
30555
30556 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30557
30558         * tests/test-glob.c: Include string.h for strcmp prototype.
30559
30560 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30561
30562         * modules/getdelim (Depends-on): Add explicit stdint, although it
30563         was implicitly already pulled in via realloc-posix.
30564         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30565
30566 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30567
30568         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30569         G. Christensen" <tgc@jupiterrise.com>.
30570         * m4/sys_socket_h.m4: Check for sa_family_t.
30571         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30572         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30573         * tests/test-sys_socket.c: Check that sa_family_t works.
30574
30575 2009-05-18  Eric Blake  <ebb9@byu.net>
30576
30577         maint.mk: allow gnulib_dir in VPATH build
30578         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30579
30580 2009-05-15  Jim Meyering  <meyering@redhat.com>
30581
30582         maint.mk: Give gnulib_dir a default definition.
30583         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30584         Thus, most packages no longer need to specify this variable in cfg.mk
30585
30586 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30587
30588         rename.m4: fix typos that would make non-mingw cross-configure fail
30589         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30590
30591 2009-05-13  Eric Blake  <ebb9@byu.net>
30592
30593         mmap-anon: avoid out-of-order autoconf expansion
30594         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30595         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30596         * modules/memchr-tests (Depends-on): Add extensions.
30597         * modules/memchr2-tests (Depends-on): Add extensions.
30598         * modules/memcmp-tests (Depends-on): Add extensions.
30599         * modules/memmem-tests (Depends-on): Add extensions.
30600         * modules/memrchr-tests (Depends-on): Add extensions.
30601
30602 2009-05-13  Bruno Haible  <bruno@clisp.org>
30603
30604         Make some tests ISO C 99 compliant.
30605         * tests/zerosize-ptr.h: New file.
30606         * tests/test-memchr.c: Include zerosize-ptr.h.
30607         (main): Use a zero-size object pointer instead of NULL.
30608         * tests/test-memchr2.c: Include zerosize-ptr.h.
30609         (main): Use a zero-size object pointer instead of NULL.
30610         * tests/test-memcmp.c: Include zerosize-ptr.h.
30611         (main): Use a zero-size object pointer instead of NULL.
30612         * tests/test-memmem.c: Include zerosize-ptr.h.
30613         (main): Use a zero-size object pointer instead of NULL.
30614         * tests/test-memrchr.c: Include zerosize-ptr.h.
30615         (main): Use a zero-size object pointer instead of NULL.
30616         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30617         m4/mmap-anon.m4.
30618         (Depends-on): Add getpagesize.
30619         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30620         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30621         m4/mmap-anon.m4.
30622         (Depends-on): Add getpagesize.
30623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30624         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30625         m4/mmap-anon.m4.
30626         (Depends-on): Add getpagesize.
30627         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30628         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30629         m4/mmap-anon.m4.
30630         (Depends-on): Add getpagesize.
30631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30632         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30633         m4/mmap-anon.m4.
30634         (Depends-on): Add getpagesize.
30635         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30636
30637 2009-05-12  Bruno Haible  <bruno@clisp.org>
30638
30639         Tests for module 'alignof'.
30640         * modules/alignof-tests: New file.
30641         * tests/test-alignof.c: New file.
30642
30643 2009-05-12  Bruno Haible  <bruno@clisp.org>
30644
30645         Fix alignof macro.
30646         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30647         vendor compilers that are always correct.
30648
30649 2009-05-12  Bruno Haible  <bruno@clisp.org>
30650
30651         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30652         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30653         not whether its fully works.
30654
30655 2009-05-12  Bruno Haible  <bruno@clisp.org>
30656
30657         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30658
30659 2009-05-12  Jim Meyering  <meyering@redhat.com>
30660
30661         * top/maint.mk: Adjust backslash alignment.
30662
30663 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30664
30665         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30666
30667 2009-05-11  Eric Blake  <ebb9@byu.net>
30668
30669         argp: avoid undefined behavior
30670         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30671         macros.
30672
30673 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30674
30675         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30676         user.name to prevent git commit from complaining.
30677
30678 2009-05-10  Bruno Haible  <bruno@clisp.org>
30679
30680         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30681         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30682         it rewrites every file name only once.
30683         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30684
30685 2009-05-08  Bruno Haible  <bruno@clisp.org>
30686
30687         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30688         instead of 'max'.
30689
30690 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30691
30692         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30693         sockaddr_storage test.
30694
30695 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30696
30697         * modules/sys_socket (Makefile.am): Substitute
30698         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30699         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30700         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30701         * tests/test-sys_socket.c: Check sockaddr_storage.
30702
30703 2009-05-08  Bruno Haible  <bruno@clisp.org>
30704
30705         New module 'alignof'.
30706         * lib/alignof.h: New file.
30707         * modules/alignof: New file.
30708
30709 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30710             Bruno Haible  <bruno@clisp.org>
30711
30712         Fix test-file-has-acl on FreeBSD.
30713         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30714         mask is implicitly added.
30715         * tests/test-file-has-acl.c: Include <signal.h>.
30716         (main): Terminate the test after 5 seconds.
30717         * modules/acl-tests (configure.ac): Check for alarm function.
30718
30719 2009-05-04  Bruno Haible  <bruno@clisp.org>
30720
30721         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30723         * modules/errno (configure.ac): Drop AC_REQUIRE.
30724         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30725         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30726
30727 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30728
30729         * modules/glob-tests: New module.
30730         * tests/test-glob.c: Add.
30731
30732 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30733
30734         * modules/fnmatch-tests: New module.
30735         * tests/test-fnmatch.c: Add.
30736
30737 2009-05-04  Eric Blake  <ebb9@byu.net>
30738
30739         maint: make the new no-submodule-changes rule VPATH-safe
30740         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30741
30742 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30743             Bruno Haible  <bruno@clisp.org>
30744
30745         acl: Fix infinite loop on FreeBSD.
30746         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30747         of return value from acl_get_entry.
30748         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30749         Likewise.
30750
30751 2009-05-03  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/acl-internal.h (acl_entries): Clarify return value.
30754         * lib/acl_entries.c (acl_entries): Likewise.
30755
30756 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30757
30758         Bug fix in acl module.
30759         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30760
30761 2009-05-03  Bruno Haible  <bruno@clisp.org>
30762
30763         Create gperf-generated file in the source dir, not in the build dir.
30764         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30765         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30766         * modules/unicase/locale-language (unicase/locale-languages.h):
30767         Likewise.
30768         * modules/unicase/special-casing (unicase/special-casing-table.h):
30769         Likewise.
30770         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30771         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30772         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30773         Reported by Ralf Wildenhues.
30774
30775 2009-05-03  Bruno Haible  <bruno@clisp.org>
30776
30777         * modules/fnmatch (Description, configure.ac): Taken from
30778         fnmatch-posix.
30779         * modules/fnmatch-posix: Turn into a symbolic reference to the
30780         'fnmatch' module, and deprecate.
30781         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30782
30783 2009-05-03  Bruno Haible  <bruno@clisp.org>
30784
30785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30786         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30787         Reported by Ralf Wildenhues.
30788
30789 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30790
30791         * m4/fnmatch.m4: Fix fnmatch re-define.
30792
30793 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30794
30795         priv-set: new module and tests; adapt write-any-file
30796         * lib/priv-set.c: New file.
30797         * lib/priv-set.h: New file.
30798         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30799         * lib/write-any-file.c: Simplify by using priv-set module.
30800         * m4/priv-set.m4: New file.
30801         * modules/priv-set: New file.
30802         * modules/unlinkdir: Add dependency on priv-set module.
30803         * modules/write-any-file: Likewise.
30804
30805         Tests for module 'priv-set'.
30806         * modules/priv-set-tests: New file.
30807         * tests/test-priv-set.c: New file.
30808
30809 2009-05-03  Jim Meyering  <meyering@redhat.com>
30810             Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30813         use the converted UTF-8 variant of the name instead.
30814
30815 2009-05-03  Jim Meyering  <meyering@redhat.com>
30816
30817         tests: tighten some getdate tests
30818         * tests/test-getdate.c (main): Tighten tests: require equality,
30819         not just greater than.  Set TZ envvar to UTC0.
30820
30821 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30822
30823         getdate: correctly interpret "next monday" when run on a Monday
30824         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30825         that e.g., "next tues" (when run on a tuesday) results in a date
30826         that is one week in the future, and not today's date.
30827         I.e., add a week when the wday is the same as the current one.
30828         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30829         and earlier by Martin Bernreuther and Jan Minář.
30830         * tests/test-getdate.c (main): Check that "next DAY" is always in
30831         the future and that "last DAY" is always in the past.
30832
30833 2009-05-02  Jim Meyering  <meyering@redhat.com>
30834
30835         build: ensure that a release build fails when a submodule is unclean
30836         * top/maint.mk (no-submodule-changes): New rule.
30837         (alpha beta major): Depend on it.
30838
30839 2009-05-02  Bruno Haible  <bruno@clisp.org>
30840
30841         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30842         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30843         shell variable gl_fnmatch_required to detect which variant is
30844         requested.
30845         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30846         gl_FUNC_FNMATCH_POSIX.
30847         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30848         exclude fnmatch-posix.
30849
30850 2009-05-02  Bruno Haible  <bruno@clisp.org>
30851
30852         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30853         * modules/mbsrtowcs (License): Change to LGPLv2+.
30854         * modules/strnlen1 (License): Likewise.
30855         Reported by Simon Josefsson.
30856
30857 2009-05-02  Bruno Haible  <bruno@clisp.org>
30858
30859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30860         "cross".
30861         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30862         gnulib-tool was called with option --source-base=lib.
30863
30864 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30865
30866         Use automake *-local hooks without commands, for extensibility.
30867         * modules/localcharset (Makefile.am): Rename install-exec-local
30868         rule to install-exec-localcharset, and make it a prerequisite of
30869         install-exec-local.  Likewise, rename the uninstall-local rule to
30870         uninstall-localcharset, and make it a prerequisite of the former.
30871
30872 2009-05-01  Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30875         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30876         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30878         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30879         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30880         m4/locale-zh.m4, m4/codeset.m4.
30881
30882         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30883         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30884         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30885         m4/locale-zh.m4.
30886
30887         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30888         REPLACE_WCRTOMB if mbstate_t must be replaced.
30889         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30890         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30891
30892 2009-05-01  Bruno Haible  <bruno@clisp.org>
30893
30894         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30895         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30896         dngettext, dcngettext, textdomain, bindtextdomain,
30897         bind_textdomain_codeset): Undefine before redefining.
30898
30899 2009-04-30  Bruno Haible  <bruno@clisp.org>
30900
30901         Fix bug introduced on 2009-04-25.
30902         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30903         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30904         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30905         is defined.
30906         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30907         is defined.
30908         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30909         is defined.
30910         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30911
30912 2009-04-28  Bruno Haible  <bruno@clisp.org>
30913
30914         Comment tweaks.
30915         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30916         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30917         * lib/unicase.h (u*_casexfrm): Likewise.
30918         Reported by Paolo Bonzini.
30919
30920 2009-04-28  Bruno Haible  <bruno@clisp.org>
30921
30922         Fix a compilation error.
30923         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30924         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30925         Reported by Jim Meyering.
30926
30927 2009-04-27  Bruno Haible  <bruno@clisp.org>
30928
30929         New module 'libunistring'.
30930         * modules/libunistring: New file.
30931         * m4/libunistring.m4: New file.
30932         * MODULES.html.sh (Unicode string functions): Add it.
30933
30934 2009-04-27  Eric Blake  <ebb9@byu.net>
30935
30936         maint.mk: allow package-specific header to provide <config.h>
30937         * top/maint.mk (sc_require_config_h): New variable.
30938         (sc_require_config_h, sc_require_config_h_first): Use it.
30939
30940 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30941
30942         * top/maint.mk (sc_avoid_if_before_free): Except
30943         useless-if-before-free script.
30944
30945 2009-04-27  Eric Blake  <ebb9@byu.net>
30946
30947         maintainer-makefile: depend on all required helper scripts
30948         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30949         useless-if-before-free.
30950         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30951         version, rather than assuming gnulib checkout is available.
30952         Reported by Simen Josefsson.
30953
30954 2009-04-26  Bruno Haible  <bruno@clisp.org>
30955
30956         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30957         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30958         "../" or "..".
30959
30960 2009-04-26  Bruno Haible  <bruno@clisp.org>
30961
30962         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30963         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30964         AC_LIB_HAVE_LINKFLAGS.
30965
30966 2009-04-26  Bruno Haible  <bruno@clisp.org>
30967
30968         Simplify calling convention of u*_conv_from_encoding.
30969         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30970         u32_conv_from_encoding): Expect a resultbuf argument and return the
30971         result directly as a pointer.
30972         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30973         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30974         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30975         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30976         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30977         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30978         Update.
30979         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30980         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30981         * lib/vasnprintf.c (VASNPRINTF): Update.
30982         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30983         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30984         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30985         * NEWS: Mention the change.
30986
30987 2009-04-26  Bruno Haible  <bruno@clisp.org>
30988
30989         Simplify calling convention of u*_conv_to_encoding.
30990         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30991         u32_conv_to_encoding): Expect a resultbuf argument and return the
30992         result directly as a pointer.
30993         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30994         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30995         freeing scaled_offsets if mem_iconveha failed.
30996         * lib/unicase/u-casexfrm.h (FUNC): Update.
30997         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30998         * lib/vasnprintf.c (VASNPRINTF): Update.
30999         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31000         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31001         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31002         * NEWS: Mention the change.
31003
31004 2009-04-26  Bruno Haible  <bruno@clisp.org>
31005
31006         Avoid test failures on AIX and OSF/1.
31007         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31008         malloc(0).
31009         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31010         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31011         Likewise.
31012         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31013         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31014         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31015         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31016         * doc/posix-functions/malloc.texi: Document the portability problem
31017         related to malloc(0).
31018
31019 2009-04-26  Bruno Haible  <bruno@clisp.org>
31020
31021         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31022         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31023         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31024
31025 2009-04-25  Bruno Haible  <bruno@clisp.org>
31026
31027         Avoid link error when creating a namespace clean library.
31028         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31029         as macro with arguments if already defined as an alias.
31030         * lib/signbitf.c (gl_signbitf): Don't undefine.
31031         * lib/signbitd.c (gl_signbitd): Don't undefine.
31032         * lib/signbitl.c (gl_signbitl): Don't undefine.
31033
31034 2009-04-25  Jim Meyering  <meyering@redhat.com>
31035
31036         vc-list-files: fix another quoting bug
31037         * build-aux/vc-list-files: Avoid sed backslash expansion
31038         of pathological directory names.
31039
31040 2009-04-25  Eric Blake  <ebb9@byu.net>
31041
31042         vc-list-files: fix shell quoting error
31043         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31044         timestamp.
31045
31046 2009-04-25  Jim Meyering  <meyering@redhat.com>
31047
31048         vc-list-files: restore lost functionality with subdir argument
31049         * build-aux/vc-list-files: When given a non-"." sub-directory
31050         argument, substitute the $dir/ prefix back onto each resulting name.
31051         Otherwise, coreutils' root_tests check would fail.
31052
31053 2009-04-24  Eric Blake  <ebb9@byu.net>
31054
31055         vc-list-files: ignore git symlinks
31056         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31057         than ls-files, to ignore git symlinks.
31058
31059         maint.mk: import improvements from m4
31060         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31061         (move_if_change): Delete unused macro.
31062         (news-date-check, vc-diff-check): Support VPATH builds.
31063         (announcement): Likewise.  Split --bootstrap-tools list...
31064         (boostrap-tools): ...into separate list, which can be overridden
31065         in cfg.mk.
31066         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31067         requiring dependency on useless-if-before-free module.
31068         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31069         Support VPATH builds.
31070
31071 2009-04-24  Jim Meyering  <meyering@redhat.com>
31072
31073         maint.mk: remove coreutils-specific rules and variables
31074         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31075         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31076         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31077
31078         maint.mk: remove obsolete rule
31079         * top/maint.mk (rel-check): Remove rule.
31080         (WGET, WGETFLAGS): Remove now-unused variables.
31081
31082 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31083
31084         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31085         consistency.
31086
31087         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31088         '$(PATH_SEPARATOR)' instead of ':'.
31089
31090 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31091
31092         * lib/getopt1.c (main): Use 'const' for static array.
31093
31094 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31095
31096         * top/maint.mk: Sync with coreutils.
31097         * NEWS: Explain incompatibilities.
31098
31099 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31100             Bruno Haible  <bruno@clisp.org>
31101
31102         Fix cross-compilation results.
31103         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31104         statement, as third argument of AC_TRY_RUN.
31105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31106         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31107         Likewise.
31108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31109         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31110         Likewise.
31111         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31113         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31114
31115 2009-04-20  Bruno Haible  <bruno@clisp.org>
31116
31117         Avoid test failure on mingw.
31118         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31119
31120 2009-04-20  Bruno Haible  <bruno@clisp.org>
31121
31122         Avoid compilation error on mingw.
31123         * modules/localename-tests (Depends-on): Add locale.
31124
31125 2009-04-19  Bruno Haible  <bruno@clisp.org>
31126
31127         Support for building a shared library on Windows platforms.
31128         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31129         (main): Test the presence of UNINORM_NFC here.
31130         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31131         (main): Test the presence of UNINORM_NFD here.
31132         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31133         (main): Test the presence of UNINORM_NFKC here.
31134         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31135         (main): Test the presence of UNINORM_NFKD here.
31136
31137 2009-04-19  Bruno Haible  <bruno@clisp.org>
31138
31139         Avoid a compiler warning.
31140         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31141         Change type of variable 'sequence'.
31142
31143 2009-04-19  Bruno Haible  <bruno@clisp.org>
31144
31145         * modules/configmake (Makefile.am): When the contents of configmake.h
31146         does not change, arrange to preserve its modification time.
31147
31148 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31149
31150         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31151         gettext domain.
31152
31153 2009-04-16  Jim Meyering  <meyering@redhat.com>
31154
31155         useless-if-before-free: improve conversion code
31156         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31157         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31158
31159 2009-04-14  Bruno Haible  <bruno@clisp.org>
31160
31161         * modules/fcntl (Depends-on): Add extensions.
31162         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31163
31164 2009-04-12  Ben Pfaff  <blp@gnu.org>
31165
31166         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31167         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31168
31169 2009-03-20  Ben Pfaff  <blp@gnu.org>
31170
31171         Make rename replace existing destinations on Windows.
31172         * m4/rename.m4: Add test for Mingw.
31173         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31174         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31175         * doc/posix-functions/rename.texi: Document.
31176
31177 2009-04-10  Bruno Haible  <bruno@clisp.org>
31178
31179         New include file "iconveh.h".
31180         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31181         * lib/striconveh.h: Include it.
31182         (enum iconv_ilseq_handler): Remove definition.
31183         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31184         striconveh.h.
31185         * lib/striconveha.c: Include striconveh.h.
31186         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31187         * modules/striconveh (Files): Add lib/iconveh.h.
31188         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31189         lib/striconveh.h.
31190
31191 2009-04-10  Bruno Haible  <bruno@clisp.org>
31192
31193         * lib/uniconv.h: Update comment.
31194
31195 2009-04-10  Bruno Haible  <bruno@clisp.org>
31196
31197         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31198         always.
31199         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31200         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31201         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31202         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31203         "unistring-notinline.h", so that the function gets defined always.
31204         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31205         * lib/unistr/u8-uctomb.c: Likewise.
31206         * lib/unistr/u16-mbtouc.c: Likewise.
31207         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31208         * lib/unistr/u16-uctomb.c: Likewise.
31209         * lib/unistr/u32-mbtouc.c: Likewise.
31210         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31211         * lib/unistr/u32-uctomb.c: Likewise.
31212
31213 2009-04-10  Bruno Haible  <bruno@clisp.org>
31214
31215         Mark 'utime' obsolete.
31216         * modules/utime (Status, Notice): New sections.
31217         Suggested by Jim Meyering.
31218
31219         Fix cross-compile guess for utime test.
31220         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31221         autoconf.
31222         * doc/posix-functions/utime.texi: Give more precisions.
31223         Reported by Jan <ipif@ymail.com>.
31224
31225 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31226
31227         filevercmp: correct today's change
31228         * lib/filevercmp.c: Also handle coreutils' test inputs.
31229         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31230
31231         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31232         for reporting it.
31233         * lib/filevercmp.c: Special handle for "", "." and "..".
31234         * tests/test-filevercmp.c: Enlarge the set suite.
31235
31236 2009-04-07  Jim Meyering  <meyering@redhat.com>
31237
31238         useless-if-before-free: show how to remove braced useless free, too
31239         * build-aux/useless-if-before-free: still only in a comment, though.
31240
31241 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31242
31243         maint.mk: import changes to syntax-check macros from coreutils
31244         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31245         Use them in the relevant macros.
31246
31247 2009-04-06  Bruno Haible  <bruno@clisp.org>
31248
31249         Fix unportable use of bit-fields.
31250         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31251         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31252         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31253
31254 2009-04-06  Bruno Haible  <bruno@clisp.org>
31255
31256         Avoid test failures on AIX and OSF/1.
31257         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31258         that malloc(0) = NULL.
31259         * tests/unicase/test-u8-tolower.c (check): Likewise.
31260         * tests/unicase/test-u8-totitle.c (check): Likewise.
31261         * tests/unicase/test-u8-toupper.c (check): Likewise.
31262         * tests/unicase/test-u16-casefold.c (check): Likewise.
31263         * tests/unicase/test-u16-tolower.c (check): Likewise.
31264         * tests/unicase/test-u16-totitle.c (check): Likewise.
31265         * tests/unicase/test-u16-toupper.c (check): Likewise.
31266         * tests/unicase/test-u32-casefold.c (check): Likewise.
31267         * tests/unicase/test-u32-tolower.c (check): Likewise.
31268         * tests/unicase/test-u32-totitle.c (check): Likewise.
31269         * tests/unicase/test-u32-toupper.c (check): Likewise.
31270         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31271         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31272         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31273         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31274         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31275         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31276         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31277         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31278         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31279         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31280         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31281         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31282
31283 2009-04-05  Bruno Haible  <bruno@clisp.org>
31284
31285         Work around an autoconf limitation.
31286         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31287         comment line if it would be longer than 3 KB.
31288
31289 2009-04-05  Bruno Haible  <bruno@clisp.org>
31290
31291         Avoid test failure with libiconv-1.13.
31292         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31293         of the expected test results.
31294
31295 2009-04-05  Bruno Haible  <bruno@clisp.org>
31296
31297         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31298         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31299         that it should be installed.
31300
31301 2009-04-05  Bruno Haible  <bruno@clisp.org>
31302
31303         * gnulib-tool: New option --copy-file.
31304         (func_usage): Document it.
31305         (func_dest_tmpfilename): Moved out of func_import.
31306         (func_add_file, func_update_file): New functions, extracted from
31307         func_import.
31308         (func_import): Update.
31309
31310 2009-04-05  Karl Berry  <karl@gnu.org>
31311
31312         * README: prominently mention gnulib-tool.
31313         Rearrange sections so getting the code is near the top.
31314
31315 2009-04-05  Bruno Haible  <bruno@clisp.org>
31316
31317         * lib/unicase.h: Mention u*_cmp2.
31318         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31319         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31320         * lib/unicase/ulc-casecmp.c: Likewise.
31321         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31322         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31323         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31324         unistr/u8-cmp.
31325         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31326         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31327         unistr/u16-cmp.
31328         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31329         unistr/u32-cmp.
31330
31331         * lib/uninorm.h: Mention u*_cmp2.
31332         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31333         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31334         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31335         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31336         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31337         unistr/u8-cmp.
31338         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31339         unistr/u16-cmp.
31340         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31341         unistr/u32-cmp.
31342
31343         New module 'unistr/u32-cmp2'.
31344         * lib/unistr/u32-cmp2.c: New file.
31345         * modules/unistr/u32-cmp2: New file.
31346
31347         New module 'unistr/u16-cmp2'.
31348         * lib/unistr/u16-cmp2.c: New file.
31349         * modules/unistr/u16-cmp2: New file.
31350
31351         New module 'unistr/u8-cmp2'.
31352         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31353         * lib/unistr/u8-cmp2.c: New file.
31354         * lib/unistr/u-cmp2.h: New file.
31355         * modules/unistr/u8-cmp2: New file.
31356
31357 2009-04-05  Bruno Haible  <bruno@clisp.org>
31358
31359         * lib/unictype.h (uc_property_is_valid): New macro.
31360         * tests/unictype/test-pr_byname.c (main): Use it.
31361
31362         * lib/unistr.h: Doc fixes.
31363         * lib/uniconv.h: Doc fixes.
31364         * lib/unictype.h: Doc fixes.
31365
31366 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31367
31368         Port coreutils 7.2 to Solaris 8.
31369
31370         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31371         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31372         for Solaris 8.  This is a bit of a hack, as it means it's the
31373         caller's responsibility to add -lnsl if needed, but most likely it
31374         won't be needed since only getaddrinfo uses this and getaddrinfo
31375         isn't needed on Solaris 8.
31376
31377         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31378         problem to Solaris 8 encountered with coreutils 7.2, which
31379         resulted in a message "fnmatch.c:292: warning: passing argument 4
31380         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31381         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31382
31383 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31384
31385         * m4/ld-version-script.m4: Add FIXME comment.
31386
31387 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31388
31389         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31390         SOVERSION variable.
31391
31392 2009-04-02  Bruno Haible  <bruno@clisp.org>
31393
31394         * Makefile (info, html, dvi, pdf): Combine the rules.
31395         Suggested by Jim Meyering.
31396
31397 2009-04-01  Bruno Haible  <bruno@clisp.org>
31398
31399         * Makefile (info, html, dvi, pdf): New targets.
31400         Reported by Reuben Thomas <rrt@sc3d.org>.
31401
31402 2009-04-01  Bruno Haible  <bruno@clisp.org>
31403
31404         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31405         can be put into PATH.
31406         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31407
31408 2009-04-01  Bruno Haible  <bruno@clisp.org>
31409
31410         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31411
31412 2009-04-01  Bruno Haible  <bruno@clisp.org>
31413
31414         Rename module 'visibility'.
31415         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31416         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31417         * doc/gnulib.texi: Update.
31418         * MODULES.html.sh (Misc): Update.
31419         * NEWS: Mention the change.
31420
31421 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31422
31423         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31424         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31425         Eric Blake <ebb9@byu.net> for review.
31426         * MODULES.html.sh: Add lib-msvc-compat.
31427         * doc/gnulib.texi: Link to new section.
31428         * m4/ld-output-def.m4: New file.
31429         * doc/ld-output-def.texi: New file.
31430
31431 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31432
31433         Rename ld-version-script to lib-symbol-versions.  Suggested by
31434         Bruno Haible <bruno@clisp.org>.
31435         * modules/ld-version-script: Renamed to lib-symbol-versions.
31436         * doc/ld-version-script.texi: Fix module name.
31437         * MODULES.html.sh: Add lib-symbol-versions.
31438
31439 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31440
31441         * modules/u64-tests: New file.
31442         * tests/test-u64.c: New file.
31443
31444 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31445
31446         * MODULES.html.sh: Mention u64.
31447         * modules/u64: New module.
31448         * modules/crypto/sha512: Depend on u64 module instead of providing
31449         u64.h.
31450
31451 2009-03-27  Eric Blake  <ebb9@byu.net>
31452
31453         test-strerror: make debugging EAI_SYSTEM easier
31454         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31455         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31456         failure was EAI_SYSTEM.
31457
31458 2009-03-25  Bruno Haible  <bruno@clisp.org>
31459
31460         Fix a problem with --enable-relocatable on Solaris 7.
31461         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31462         since 2008-02-24.
31463
31464 2009-03-25  Eric Blake  <ebb9@byu.net>
31465
31466         test-sockets: avoid gcc warning
31467         * tests/test-sockets.c (main): Silence compiler warning.
31468
31469 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31470
31471         New modules nproc, pthread, contributed by Glen Lenker.
31472
31473         * MODULES.html.sh: Add pthread, nproc.
31474         * lib/nproc.c: New file.
31475         * lib/nproc.h: New file.
31476         * lib/pthread.in.h: New file.
31477         * m4/pthread.m4: New file.
31478         * modules/nproc: New file.
31479         * modules/pthread: New file.
31480
31481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31482
31483         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31484         New variable.
31485
31486 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31487
31488         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31489         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31490         * tests/test-filevercmp.c: Add tests for backup suffixes.
31491
31492 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31493
31494         * modules/stdlib (Depends-on): Add stdint, needed when defining
31495         struct random_data on, for example, HP-UX 10.20.  Reported by
31496         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31497
31498 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31499
31500         * lib/readline.c (readline): Call fflush on stdout after printing
31501         prompt.
31502
31503 2009-03-20  Bruno Haible  <bruno@clisp.org>
31504
31505         Remove dependency from 'close' module to -lws2_32 on native Windows.
31506         * lib/close-hook.h: New file.
31507         * lib/close-hook.c: New file.
31508         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31509         w32sock.h.
31510         (_gl_close_fd_maybe_socket): Remove function.
31511         (rpl_close): Invoke execute_all_close_hooks instead of
31512         _gl_close_fd_maybe_socket.
31513         * lib/sockets.c: Include close-hook.h, w32sock.h.
31514         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31515         (close_sockets_hook): New variable.
31516         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31517         (gl_sockets_cleanup): Unregister it.
31518         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31519         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31520         * modules/close-hook: New file.
31521         * modules/close (Files): Remove lib/w32sock.h.
31522         (Depends-on): Add close-hook.
31523         (Link): Remove section.
31524         * modules/sockets (Files): Add lib/w32sock.h.
31525         (Depends-on): Add close-hook.
31526         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31527         invocation.
31528         * NEWS: Mention that LIB_CLOSE is gone.
31529
31530 2009-03-23  Eric Blake  <ebb9@byu.net>
31531
31532         signal-tests: test previous patch
31533         * tests/test-signal.c: New file.
31534         * modules/signal-tests: Likewise.
31535
31536         signal.h: always support 'volatile sig_atomic_t'
31537         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31538         (gl_SIGNAL_H_DEFAULTS): Add a default.
31539         * modules/signal (Makefile.am): Substitute if needed.
31540         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31541         users can blindly add volatile.
31542         * doc/posix-headers/signal.texi (signal.h): Document it.
31543         Reported by Matthew Woehlke.
31544
31545 2009-03-23  Jim Meyering  <meyering@redhat.com>
31546
31547         pathmax: PATH_MAX: use pathconf only when available
31548         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31549         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31550         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31551         This avoids a link failure in a PSP cross-compilation environment
31552         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31553
31554         * lib/vasnprintf.c (divide): Fix typo in comment.
31555
31556 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31557
31558         * gnulib-tool (func_filter_filelist): Fix comment.
31559
31560 2009-03-20  Bruno Haible  <bruno@clisp.org>
31561
31562         Make sockets.h self-contained.
31563         * lib/sockets.c: Include sockets.h first.
31564         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31565
31566 2009-03-19  Eric Blake  <ebb9@byu.net>
31567
31568         doc: mention more functions added in cygwin 1.7.0
31569         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31570         addition.
31571         * doc/posix-functions/log2f.texi: Likewise.
31572
31573 2009-03-19  Jim Meyering  <meyering@redhat.com>
31574
31575         fsusage: avoid syntax error due to statement-before-declaration
31576         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31577         after all declarations.  Reported by Matthew Woehlke in
31578         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31579
31580 2009-03-18  Eric Blake  <ebb9@byu.net>
31581
31582         build-aux/compile: sync from automake
31583         * build-aux/compile: New file, from automake.
31584         * config/srclist.txt: Mention build-aux/compile.
31585
31586 2009-03-17  Bruno Haible  <bruno@clisp.org>
31587
31588         * lib/git-merge-changelog.c: Fix typo in comment.
31589         Reported by Reuben Thomas <rrt@sc3d.org>.
31590
31591 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31592
31593         * m4/regex.m4: update and improve help for
31594         --without-included-regex.
31595
31596 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31597
31598         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31599         failure on missing include files.
31600
31601 2009-03-17  Eric Blake  <ebb9@byu.net>
31602
31603         doc: mention more functions added in cygwin 1.7.0
31604         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31605         addition.
31606         * doc/posix-functions/fwscanf.texi: Likewise.
31607         * doc/posix-functions/swprintf.texi: Likewise.
31608         * doc/posix-functions/swscanf.texi: Likewise.
31609         * doc/posix-functions/vfwprintf.texi: Likewise.
31610         * doc/posix-functions/vfwscanf.texi: Likewise.
31611         * doc/posix-functions/vswprintf.texi: Likewise.
31612         * doc/posix-functions/vswscanf.texi: Likewise.
31613         * doc/posix-functions/vwprintf.texi: Likewise.
31614         * doc/posix-functions/vwscanf.texi: Likewise.
31615         * doc/posix-functions/wcscasecmp.texi: Likewise.
31616         * doc/posix-functions/wcsdup.texi: Likewise.
31617         * doc/posix-functions/wcsftime.texi: Likewise.
31618         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31619         * doc/posix-functions/wprintf.texi: Likewise.
31620         * doc/posix-functions/wscanf.texi: Likewise.
31621         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31622
31623 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31624
31625         maint.mk: really add $(AM_MAKEFLAGS)
31626         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31627         was inadvertently omitted in the last commit.
31628         Spotted by Bruno Haible.
31629
31630         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31631         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31632         $(AM_MAKEFLAGS)' rather than plain `make'.
31633
31634         gnulib-tool: execute $MAKE not make
31635         * gnulib-tool: Default $MAKE to 'make'.
31636         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31637         than make.  Initialize $MAKE in the do-autobuild script.
31638
31639         gnulib-tool: use $MAKE not make in generated files
31640         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31641         make, in generated files.  Initialize $MAKE in the do-autobuild
31642         script.
31643
31644         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31645
31646         GNUmakefile: disable parallelism only for multiple, recursive targets
31647         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31648         additions in the Makefile.
31649         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31650         by Automake.
31651         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31652         are listed on the command line and at least one of them is
31653         listed in $(ALL_RECURSIVE_TARGETS).
31654
31655 2009-03-14  Bruno Haible  <bruno@clisp.org>
31656
31657         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31658         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31659         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31660         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31661         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31662         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31663         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31664         unistr/u8-uctomb.
31665         * modules/unistr/u8-strchr (Depends-on): Likewise.
31666         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31667         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31668         unistr/u16-uctomb.
31669         * modules/unistr/u16-strchr (Depends-on): Likewise.
31670         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31671
31672 2009-03-12  Bruno Haible  <bruno@clisp.org>
31673
31674         Work around select() bug on Interix 3.5.
31675         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31676         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31677         * m4/select.m4: New file.
31678         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31679         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31680         * modules/select (Files): Add m4/select.m4.
31681         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31682         * modules/nanosleep (Depends-on): Add select.
31683         * modules/poll (Depends-on): Likewise.
31684         * doc/posix-functions/select.texi: Mention the Interix bug.
31685         Reported by Markus Duft <mduft@gentoo.org>.
31686
31687         * lib/select.c: Renamed from lib/winsock-select.c.
31688         * modules/select (Files): Add lib/select.c, remove
31689         lib/winsock-select.c.
31690         (configure.ac): Update.
31691
31692 2009-03-12  Jim Meyering  <meyering@redhat.com>
31693
31694         avoid gcc warnings about unused macro definitions
31695         * lib/readtokens.c (STREQ): Remove unused definition.
31696         * lib/xmalloc.c (SIZE_MAX): Likewise.
31697         * lib/openat-die.c (N_): Likewise.
31698         * lib/mountlist.c (SIZE_MAX): Remove definition.
31699         Instead, include <stdint.h>.
31700         * lib/readutmp.c: Likewise.
31701         * modules/readutmp (Depends-on): Add stdint.
31702         * modules/mountlist (Depends-on): Add stdint.
31703         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31704
31705 2009-03-10  Bruno Haible  <bruno@clisp.org>
31706
31707         Tests for module 'mbmemcasecoll'.
31708         * modules/mbmemcasecoll-tests: New file.
31709         * tests/test-mbmemcasecoll1.sh: New file.
31710         * tests/test-mbmemcasecoll2.sh: New file.
31711         * tests/test-mbmemcasecoll3.sh: New file.
31712         * tests/test-mbmemcasecoll.c: New file.
31713
31714         New module 'mbmemcasecoll'.
31715         * lib/mbmemcasecoll.h: New file.
31716         * lib/mbmemcasecoll.c: New file.
31717         * modules/mbmemcasecoll: New file.
31718
31719         * tests/test-mbmemcasecmp.h: New file, extracted from
31720         tests/test-mbmemcasecmp.c.
31721         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31722         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31723         (main): Update.
31724         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31725
31726 2009-03-09  Bruno Haible  <bruno@clisp.org>
31727
31728         Tests for module 'mbmemcasecmp'.
31729         * modules/mbmemcasecmp-tests: New file.
31730         * tests/test-mbmemcasecmp1.sh: New file.
31731         * tests/test-mbmemcasecmp2.sh: New file.
31732         * tests/test-mbmemcasecmp3.sh: New file.
31733         * tests/test-mbmemcasecmp.c: New file.
31734
31735         New module 'mbmemcasecmp'.
31736         * lib/mbmemcasecmp.h: New file.
31737         * lib/mbmemcasecmp.c: New file.
31738         * modules/mbmemcasecmp: New file.
31739
31740 2009-03-09  Bruno Haible  <bruno@clisp.org>
31741
31742         Tests for module 'unicase/ulc-casecoll'.
31743         * modules/unicase/ulc-casecoll-tests: New file.
31744         * tests/unicase/test-ulc-casecoll1.sh: New file.
31745         * tests/unicase/test-ulc-casecoll2.sh: New file.
31746         * tests/unicase/test-ulc-casecoll.c: New file.
31747
31748         New module 'unicase/ulc-casecoll'.
31749         * lib/unicase.h (ulc_casecoll): New declaration.
31750         * lib/unicase/ulc-casecoll.c: New file.
31751         * modules/unicase/ulc-casecoll: New file.
31752
31753         New module 'unicase/ulc-casexfrm'.
31754         * lib/unicase.h (ulc_casexfrm): New declaration.
31755         * lib/unicase/ulc-casexfrm.c: New file.
31756         * modules/unicase/ulc-casexfrm: New file.
31757
31758 2009-03-09  Bruno Haible  <bruno@clisp.org>
31759
31760         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31761         invocations.
31762
31763         * m4/mbscasecmp.m4: Remove file.
31764         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31765         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31766
31767         * m4/mbscasestr.m4: Remove file.
31768         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31769         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31770
31771         * m4/mbschr.m4: Remove file.
31772         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31773         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31774
31775         * m4/mbscspn.m4: Remove file.
31776         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31777         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31778
31779         * m4/mbslen.m4: Remove file.
31780         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31781         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31782
31783         * m4/mbsncasecmp.m4: Remove file.
31784         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31785         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31786
31787         * m4/mbsnlen.m4: Remove file.
31788         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31789         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31790
31791         * m4/mbspbrk.m4: Remove file.
31792         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31793         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31794
31795         * m4/mbspcasecmp.m4: Remove file.
31796         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31797         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31798
31799         * m4/mbsrchr.m4: Remove file.
31800         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31801         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31802
31803         * m4/mbssep.m4: Remove file.
31804         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31805         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31806
31807         * m4/mbsspn.m4: Remove file.
31808         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31809         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31810
31811         * m4/mbsstr.m4: Remove file.
31812         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31813         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31814
31815         * m4/mbstok_r.m4: Remove file.
31816         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31817         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31818
31819         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31820
31821         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31822         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31823
31824         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31825
31826 2009-03-08  Bruno Haible  <bruno@clisp.org>
31827
31828         Tests for module 'unicase/ulc-casecmp'.
31829         * modules/unicase/ulc-casecmp-tests: New file.
31830         * tests/unicase/test-ulc-casecmp1.sh: New file.
31831         * tests/unicase/test-ulc-casecmp2.sh: New file.
31832         * tests/unicase/test-ulc-casecmp.c: New file.
31833
31834         New module 'unicase/ulc-casecmp'.
31835         * lib/unicase.h (ulc_casecmp): New declaration.
31836         * lib/unicase/ulc-casecmp.c: New file.
31837         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31838         'const SRC_UNIT *'.
31839         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31840         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31841         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31842         * modules/unicase/ulc-casecmp: New file.
31843
31844         Tests for module 'unicase/u32-is-cased'.
31845         * modules/unicase/u32-is-cased-tests: New file.
31846         * tests/unicase/test-u32-is-cased.c: New file.
31847
31848         Tests for module 'unicase/u16-is-cased'.
31849         * modules/unicase/u16-is-cased-tests: New file.
31850         * tests/unicase/test-u16-is-cased.c: New file.
31851
31852         Tests for module 'unicase/u8-is-cased'.
31853         * modules/unicase/u8-is-cased-tests: New file.
31854         * tests/unicase/test-u8-is-cased.c: New file.
31855         * tests/unicase/test-is-cased.h: New file.
31856
31857         New module 'unicase/u32-is-cased'.
31858         * lib/unicase/u32-is-cased.c: New file.
31859         * modules/unicase/u32-is-cased: New file.
31860
31861         New module 'unicase/u16-is-cased'.
31862         * lib/unicase/u16-is-cased.c: New file.
31863         * modules/unicase/u16-is-cased: New file.
31864
31865         New module 'unicase/u8-is-cased'.
31866         * lib/unicase/u8-is-cased.c: New file.
31867         * lib/unicase/u-is-cased.h: New file.
31868         * modules/unicase/u8-is-cased: New file.
31869
31870         Tests for module 'unicase/u32-is-casefolded'.
31871         * modules/unicase/u32-is-casefolded-tests: New file.
31872         * tests/unicase/test-u32-is-casefolded.c: New file.
31873
31874         Tests for module 'unicase/u16-is-casefolded'.
31875         * modules/unicase/u16-is-casefolded-tests: New file.
31876         * tests/unicase/test-u16-is-casefolded.c: New file.
31877
31878         Tests for module 'unicase/u8-is-casefolded'.
31879         * modules/unicase/u8-is-casefolded-tests: New file.
31880         * tests/unicase/test-u8-is-casefolded.c: New file.
31881         * tests/unicase/test-is-casefolded.h: New file.
31882
31883         New module 'unicase/u32-is-casefolded'.
31884         * lib/unicase/u32-is-casefolded.c: New file.
31885         * modules/unicase/u32-is-casefolded: New file.
31886
31887         New module 'unicase/u16-is-casefolded'.
31888         * lib/unicase/u16-is-casefolded.c: New file.
31889         * modules/unicase/u16-is-casefolded: New file.
31890
31891         New module 'unicase/u8-is-casefolded'.
31892         * lib/unicase/u8-is-casefolded.c: New file.
31893         * modules/unicase/u8-is-casefolded: New file.
31894
31895         Tests for module 'unicase/u32-is-titlecase'.
31896         * modules/unicase/u32-is-titlecase-tests: New file.
31897         * tests/unicase/test-u32-is-titlecase.c: New file.
31898
31899         Tests for module 'unicase/u16-is-titlecase'.
31900         * modules/unicase/u16-is-titlecase-tests: New file.
31901         * tests/unicase/test-u16-is-titlecase.c: New file.
31902
31903         Tests for module 'unicase/u8-is-titlecase'.
31904         * modules/unicase/u8-is-titlecase-tests: New file.
31905         * tests/unicase/test-u8-is-titlecase.c: New file.
31906         * tests/unicase/test-is-titlecase.h: New file.
31907
31908         New module 'unicase/u32-is-titlecase'.
31909         * lib/unicase/u32-is-titlecase.c: New file.
31910         * modules/unicase/u32-is-titlecase: New file.
31911
31912         New module 'unicase/u16-is-titlecase'.
31913         * lib/unicase/u16-is-titlecase.c: New file.
31914         * modules/unicase/u16-is-titlecase: New file.
31915
31916         New module 'unicase/u8-is-titlecase'.
31917         * lib/unicase/u8-is-titlecase.c: New file.
31918         * modules/unicase/u8-is-titlecase: New file.
31919
31920         Tests for module 'unicase/u32-is-lowercase'.
31921         * modules/unicase/u32-is-lowercase-tests: New file.
31922         * tests/unicase/test-u32-is-lowercase.c: New file.
31923
31924         Tests for module 'unicase/u16-is-lowercase'.
31925         * modules/unicase/u16-is-lowercase-tests: New file.
31926         * tests/unicase/test-u16-is-lowercase.c: New file.
31927
31928         Tests for module 'unicase/u8-is-lowercase'.
31929         * modules/unicase/u8-is-lowercase-tests: New file.
31930         * tests/unicase/test-u8-is-lowercase.c: New file.
31931         * tests/unicase/test-is-lowercase.h: New file.
31932
31933         New module 'unicase/u32-is-lowercase'.
31934         * lib/unicase/u32-is-lowercase.c: New file.
31935         * modules/unicase/u32-is-lowercase: New file.
31936
31937         New module 'unicase/u16-is-lowercase'.
31938         * lib/unicase/u16-is-lowercase.c: New file.
31939         * modules/unicase/u16-is-lowercase: New file.
31940
31941         New module 'unicase/u8-is-lowercase'.
31942         * lib/unicase/u8-is-lowercase.c: New file.
31943         * modules/unicase/u8-is-lowercase: New file.
31944
31945         Tests for module 'unicase/u32-is-uppercase'.
31946         * modules/unicase/u32-is-uppercase-tests: New file.
31947         * tests/unicase/test-u32-is-uppercase.c: New file.
31948
31949         Tests for module 'unicase/u16-is-uppercase'.
31950         * modules/unicase/u16-is-uppercase-tests: New file.
31951         * tests/unicase/test-u16-is-uppercase.c: New file.
31952
31953         Tests for module 'unicase/u8-is-uppercase'.
31954         * modules/unicase/u8-is-uppercase-tests: New file.
31955         * tests/unicase/test-u8-is-uppercase.c: New file.
31956         * tests/unicase/test-is-uppercase.h: New file.
31957
31958         New module 'unicase/u32-is-uppercase'.
31959         * lib/unicase/u32-is-uppercase.c: New file.
31960         * modules/unicase/u32-is-uppercase: New file.
31961
31962         New module 'unicase/u16-is-uppercase'.
31963         * lib/unicase/u16-is-uppercase.c: New file.
31964         * modules/unicase/u16-is-uppercase: New file.
31965
31966         New module 'unicase/u8-is-uppercase'.
31967         * lib/unicase/u8-is-uppercase.c: New file.
31968         * modules/unicase/u8-is-uppercase: New file.
31969
31970         New module 'unicase/u32-is-invariant'.
31971         * lib/unicase/u32-is-invariant.c: New file.
31972         * modules/unicase/u32-is-invariant: New file.
31973
31974         New module 'unicase/u16-is-invariant'.
31975         * lib/unicase/u16-is-invariant.c: New file.
31976         * modules/unicase/u16-is-invariant: New file.
31977
31978         New module 'unicase/u8-is-invariant'.
31979         * lib/unicase/u8-is-invariant.c: New file.
31980         * lib/unicase/invariant.h: New file.
31981         * lib/unicase/u-is-invariant.h: New file.
31982         * modules/unicase/u8-is-invariant: New file.
31983
31984         Tests for module 'unicase/u32-casecoll'.
31985         * modules/unicase/u32-casecoll-tests: New file.
31986         * tests/unicase/test-u32-casecoll.c: New file.
31987
31988         Tests for module 'unicase/u16-casecoll'.
31989         * modules/unicase/u16-casecoll-tests: New file.
31990         * tests/unicase/test-u16-casecoll.c: New file.
31991
31992         Tests for module 'unicase/u8-casecoll'.
31993         * modules/unicase/u8-casecoll-tests: New file.
31994         * tests/unicase/test-u8-casecoll.c: New file.
31995
31996         New module 'unicase/u32-casecoll'.
31997         * lib/unicase/u32-casecoll.c: New file.
31998         * modules/unicase/u32-casecoll: New file.
31999
32000         New module 'unicase/u16-casecoll'.
32001         * lib/unicase/u16-casecoll.c: New file.
32002         * modules/unicase/u16-casecoll: New file.
32003
32004         New module 'unicase/u8-casecoll'.
32005         * lib/unicase/u8-casecoll.c: New file.
32006         * lib/unicase/u-casecoll.h: New file.
32007         * modules/unicase/u8-casecoll: New file.
32008
32009         New module 'unicase/u32-casexfrm'.
32010         * lib/unicase/u32-casexfrm.c: New file.
32011         * modules/unicase/u32-casexfrm: New file.
32012
32013         New module 'unicase/u16-casexfrm'.
32014         * lib/unicase/u16-casexfrm.c: New file.
32015         * modules/unicase/u16-casexfrm: New file.
32016
32017         New module 'unicase/u8-casexfrm'.
32018         * lib/unicase/u8-casexfrm.c: New file.
32019         * lib/unicase/u-casexfrm.h: New file.
32020         * modules/unicase/u8-casexfrm: New file.
32021
32022         Tests for module 'unicase/u32-casecmp'.
32023         * modules/unicase/u32-casecmp-tests: New file.
32024         * tests/unicase/test-u32-casecmp.c: New file.
32025
32026         Tests for module 'unicase/u16-casecmp'.
32027         * modules/unicase/u16-casecmp-tests: New file.
32028         * tests/unicase/test-u16-casecmp.c: New file.
32029
32030         Tests for module 'unicase/u8-casecmp'.
32031         * modules/unicase/u8-casecmp-tests: New file.
32032         * tests/unicase/test-u8-casecmp.c: New file.
32033         * tests/unicase/test-casecmp.h: New file.
32034
32035         New module 'unicase/u32-casecmp'.
32036         * lib/unicase/u32-casecmp.c: New file.
32037         * modules/unicase/u32-casecmp: New file.
32038
32039         New module 'unicase/u16-casecmp'.
32040         * lib/unicase/u16-casecmp.c: New file.
32041         * modules/unicase/u16-casecmp: New file.
32042
32043         New module 'unicase/u8-casecmp'.
32044         * lib/unicase/u8-casecmp.c: New file.
32045         * lib/unicase/u-casecmp.h: New file.
32046         * modules/unicase/u8-casecmp: New file.
32047
32048         Tests for module 'unicase/u32-casefold'.
32049         * modules/unicase/u32-casefold-tests: New file.
32050         * tests/unicase/test-u32-casefold.c: New file.
32051
32052         Tests for module 'unicase/u16-casefold'.
32053         * modules/unicase/u16-casefold-tests: New file.
32054         * tests/unicase/test-u16-casefold.c: New file.
32055
32056         Tests for module 'unicase/u8-casefold'.
32057         * modules/unicase/u8-casefold-tests: New file.
32058         * tests/unicase/test-u8-casefold.c: New file.
32059
32060         New module 'unicase/u32-casefold'.
32061         * lib/unicase/u32-casefold.c: New file.
32062         * modules/unicase/u32-casefold: New file.
32063
32064         New module 'unicase/u16-casefold'.
32065         * lib/unicase/u16-casefold.c: New file.
32066         * modules/unicase/u16-casefold: New file.
32067
32068         New module 'unicase/u8-casefold'.
32069         * lib/unicase/u8-casefold.c: New file.
32070         * lib/unicase/u-casefold.h: New file.
32071         * modules/unicase/u8-casefold: New file.
32072
32073         New module 'unicase/tocasefold'.
32074         * lib/unicase/casefold.h: New file.
32075         * lib/unicase/tocasefold.c: New file.
32076         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32077         * modules/unicase/tocasefold: New file.
32078
32079         Tests for module 'unicase/u32-totitle'.
32080         * modules/unicase/u32-totitle-tests: New file.
32081         * tests/unicase/test-u32-totitle.c: New file.
32082
32083         Tests for module 'unicase/u16-totitle'.
32084         * modules/unicase/u16-totitle-tests: New file.
32085         * tests/unicase/test-u16-totitle.c: New file.
32086
32087         Tests for module 'unicase/u8-totitle'.
32088         * modules/unicase/u8-totitle-tests: New file.
32089         * tests/unicase/test-u8-totitle.c: New file.
32090
32091         New module 'unicase/u32-totitle'.
32092         * lib/unicase/u32-totitle.c: New file.
32093         * modules/unicase/u32-totitle: New file.
32094
32095         New module 'unicase/u16-totitle'.
32096         * lib/unicase/u16-totitle.c: New file.
32097         * modules/unicase/u16-totitle: New file.
32098
32099         New module 'unicase/u8-totitle'.
32100         * lib/unicase/u8-totitle.c: New file.
32101         * lib/unicase/u-totitle.h: New file.
32102         * modules/unicase/u8-totitle: New file.
32103
32104         Tests for module 'unicase/u32-tolower'.
32105         * modules/unicase/u32-tolower-tests: New file.
32106         * tests/unicase/test-u32-tolower.c: New file.
32107
32108         Tests for module 'unicase/u16-tolower'.
32109         * modules/unicase/u16-tolower-tests: New file.
32110         * tests/unicase/test-u16-tolower.c: New file.
32111
32112         Tests for module 'unicase/u8-tolower'.
32113         * modules/unicase/u8-tolower-tests: New file.
32114         * tests/unicase/test-u8-tolower.c: New file.
32115
32116         New module 'unicase/u32-tolower'.
32117         * lib/unicase/u32-tolower.c: New file.
32118         * modules/unicase/u32-tolower: New file.
32119
32120         New module 'unicase/u16-tolower'.
32121         * lib/unicase/u16-tolower.c: New file.
32122         * modules/unicase/u16-tolower: New file.
32123
32124         New module 'unicase/u8-tolower'.
32125         * lib/unicase/u8-tolower.c: New file.
32126         * modules/unicase/u8-tolower: New file.
32127
32128         Tests for module 'unicase/u32-toupper'.
32129         * modules/unicase/u32-toupper-tests: New file.
32130         * tests/unicase/test-u32-toupper.c: New file.
32131
32132         Tests for module 'unicase/u16-toupper'.
32133         * modules/unicase/u16-toupper-tests: New file.
32134         * tests/unicase/test-u16-toupper.c: New file.
32135
32136         Tests for module 'unicase/u8-toupper'.
32137         * modules/unicase/u8-toupper-tests: New file.
32138         * tests/unicase/test-u8-toupper.c: New file.
32139
32140         New module 'unicase/u32-toupper'.
32141         * lib/unicase/u32-toupper.c: New file.
32142         * modules/unicase/u32-toupper: New file.
32143
32144         New module 'unicase/u16-toupper'.
32145         * lib/unicase/u16-toupper.c: New file.
32146         * modules/unicase/u16-toupper: New file.
32147
32148         New module 'unicase/u8-toupper'.
32149         * lib/unicase/u8-toupper.c: New file.
32150         * modules/unicase/u8-toupper: New file.
32151
32152         New module 'unicase/u32-casemap'.
32153         * lib/unicase/u32-casemap.c: New file.
32154         * modules/unicase/u32-casemap: New file.
32155
32156         New module 'unicase/u16-casemap'.
32157         * lib/unicase/u16-casemap.c: New file.
32158         * modules/unicase/u16-casemap: New file.
32159
32160         New module 'unicase/u8-casemap'.
32161         * lib/unicase/unicasemap.h: New file.
32162         * lib/unicase/u8-casemap.c: New file.
32163         * lib/unicase/u-casemap.h: New file.
32164         * modules/unicase/u8-casemap: New file.
32165
32166         New module 'unicase/special-casing'.
32167         * lib/unicase/special-casing.h: New file.
32168         * lib/unicase/special-casing.c: New file.
32169         * lib/unicase/special-casing-table.gperf: New file, generated by
32170         gen-uni-tables.c.
32171         * modules/unicase/special-casing: New file.
32172
32173         Tests for module 'unicase/locale-language'.
32174         * modules/unicase/locale-language-tests: New file.
32175         * tests/unicase/test-locale-language.sh: New file.
32176         * tests/unicase/test-locale-language.c: New file.
32177
32178         New module 'unicase/locale-language'.
32179         * lib/unicase/locale-language.c: New file.
32180         * lib/unicase/locale-languages.gperf: New file.
32181         * modules/unicase/locale-language: New file.
32182
32183         Generate more tables for case conversion and case folding.
32184         * lib/gen-uni-tables.c (SCC_*): New enum items.
32185         (struct special_casing_rule): New type.
32186         (casing_rules, num_casing_rules, allocated_casing_rules): New
32187         variables.
32188         (add_casing_rule, fill_casing_rules): New functions.
32189         (struct casefold_rule): New type.
32190         (casefolding_rules, num_casefolding_rules,
32191         allocated_casefolding_rules): New variables.
32192         (fill_casefolding_rules): New function.
32193         (unicode_casefold): New variable.
32194         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32195         sort_casing_rules, output_casing_rules): New functions.
32196         (main): Accept to more arguments: SpecialCasing.txt and
32197         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32198         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32199         Output mapping for casefolding.
32200
32201         * lib/unicase.h: Include stdbool.h, uninorm.h.
32202         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32203         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32204         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32205         arguments.
32206         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32207         resultp arguments.
32208         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32209         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32210         resultp arguments.
32211         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32212         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32213         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32214         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32215         declarations.
32216         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32217
32218 2009-03-08  Bruno Haible  <bruno@clisp.org>
32219
32220         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32221         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32222         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32223         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32224
32225 2009-03-07  Bruno Haible  <bruno@clisp.org>
32226
32227         Adjust u*_normcmp, u*_normcoll API.
32228         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32229         u16_normcoll, u32_normcoll): Change failure conventions.
32230         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32231         errno and return -1.
32232         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32233
32234 2009-03-07  Bruno Haible  <bruno@clisp.org>
32235
32236         Tests for module 'uninorm/u32-normcoll'.
32237         * modules/uninorm/u32-normcoll-tests: New file.
32238         * tests/uninorm/test-u32-normcoll.c: New file.
32239
32240         Tests for module 'uninorm/u16-normcoll'.
32241         * modules/uninorm/u16-normcoll-tests: New file.
32242         * tests/uninorm/test-u16-normcoll.c: New file.
32243
32244         Tests for module 'uninorm/u8-normcoll'.
32245         * modules/uninorm/u8-normcoll-tests: New file.
32246         * tests/uninorm/test-u8-normcoll.c: New file.
32247
32248 2009-03-07  Bruno Haible  <bruno@clisp.org>
32249
32250         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32251         tests/uninorm/test-u32-normcmp.c.
32252         * tests/uninorm/test-u32-normcmp.c: Include it.
32253         (test_nonascii): New function, extracted from main. Add some more
32254         tests.
32255         (main): Invoke test_ascii and test_nonascii.
32256         * modules/uninorm/u32-normcmp-tests (Files): Add
32257         tests/uninorm/test-u32-normcmp.h.
32258         (Depends-on): Remove uninorm/u32-normcmp.
32259
32260         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32261         tests/uninorm/test-u16-normcmp.c.
32262         * tests/uninorm/test-u16-normcmp.c: Include it.
32263         (test_nonascii): New function, extracted from main. Add some more
32264         tests.
32265         (main): Invoke test_ascii and test_nonascii.
32266         * modules/uninorm/u16-normcmp-tests (Files): Add
32267         tests/uninorm/test-u16-normcmp.h.
32268         (Depends-on): Remove uninorm/u16-normcmp.
32269
32270         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32271         tests/uninorm/test-u8-normcmp.c.
32272         * tests/uninorm/test-u8-normcmp.c: Include it.
32273         (test_nonascii): New function, extracted from main. Add some more
32274         tests.
32275         (main): Invoke test_ascii and test_nonascii.
32276         * modules/uninorm/u8-normcmp-tests (Files): Add
32277         tests/uninorm/test-u8-normcmp.h.
32278         (Depends-on): Remove uninorm/u8-normcmp.
32279
32280 2009-03-07  Bruno Haible  <bruno@clisp.org>
32281
32282         New module 'uninorm/u32-normcoll'.
32283         * lib/uninorm/u32-normcoll.c: New file.
32284         * modules/uninorm/u32-normcoll: New file.
32285
32286         New module 'uninorm/u16-normcoll'.
32287         * lib/uninorm/u16-normcoll.c: New file.
32288         * modules/uninorm/u16-normcoll: New file.
32289
32290         New module 'uninorm/u8-normcoll'.
32291         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32292         declarations.
32293         * lib/uninorm/u8-normcoll.c: New file.
32294         * lib/uninorm/u-normcoll.h: New file.
32295         * modules/uninorm/u8-normcoll: New file.
32296
32297         New module 'uninorm/u32-normxfrm'.
32298         * lib/uninorm/u32-normxfrm.c: New file.
32299         * modules/uninorm/u32-normxfrm: New file.
32300
32301         New module 'uninorm/u16-normxfrm'.
32302         * lib/uninorm/u16-normxfrm.c: New file.
32303         * modules/uninorm/u16-normxfrm: New file.
32304
32305         New module 'uninorm/u8-normxfrm'.
32306         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32307         declarations.
32308         * lib/uninorm/u8-normxfrm.c: New file.
32309         * lib/uninorm/u-normxfrm.h: New file.
32310         * modules/uninorm/u8-normxfrm: New file.
32311
32312 2009-03-07  Bruno Haible  <bruno@clisp.org>
32313
32314         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32315         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32316         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32317
32318 2009-03-07  Bruno Haible  <bruno@clisp.org>
32319
32320         New module 'memxfrm'.
32321         * lib/memxfrm.h: New file.
32322         * lib/memxfrm.c: New file.
32323         * modules/memxfrm: New file.
32324
32325 2009-03-07  Bruno Haible  <bruno@clisp.org>
32326
32327         New module 'memcmp2'.
32328         * lib/memcmp2.h: New file.
32329         * lib/memcmp2.c: New file.
32330         * modules/memcmp2: New file.
32331
32332 2009-03-07  Bruno Haible  <bruno@clisp.org>
32333
32334         Tests for module 'uninorm/decomposing-form'.
32335         * modules/uninorm/decomposing-form-tests: New file.
32336         * tests/uninorm/test-decomposing-form.c: New file.
32337
32338         New module 'uninorm/decomposing-form'.
32339         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32340         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32341         Add 'decomposing_variant' field.
32342         * lib/uninorm/decomposing-form.c: New file.
32343         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32344         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32345         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32346         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32347         * modules/uninorm/decomposing-form: New file.
32348         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32349         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32350
32351 2009-03-07  Bruno Haible  <bruno@clisp.org>
32352
32353         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32354         strings.
32355
32356 2009-03-06  Bruno Haible  <bruno@clisp.org>
32357
32358         Tests for module 'uninorm/u32-normcmp'.
32359         * tests/uninorm/test-u32-normcmp.c: New file.
32360         * modules/uninorm/u32-normcmp-tests: New file.
32361
32362         Tests for module 'uninorm/u16-normcmp'.
32363         * tests/uninorm/test-u16-normcmp.c: New file.
32364         * modules/uninorm/u16-normcmp-tests: New file.
32365
32366         Tests for module 'uninorm/u8-normcmp'.
32367         * tests/uninorm/test-u8-normcmp.c: New file.
32368         * modules/uninorm/u8-normcmp-tests: New file.
32369
32370         New module 'uninorm/u32-normcmp'.
32371         * lib/uninorm/u32-normcmp.c: New file.
32372         * modules/uninorm/u32-normcmp: New file.
32373
32374         New module 'uninorm/u16-normcmp'.
32375         * lib/uninorm/u16-normcmp.c: New file.
32376         * modules/uninorm/u16-normcmp: New file.
32377
32378         New module 'uninorm/u8-normcmp'.
32379         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32380         declarations.
32381         * lib/uninorm/u8-normcmp.c: New file.
32382         * lib/uninorm/u-normcmp.h: New file.
32383         * modules/uninorm/u8-normcmp: New file.
32384
32385 2009-03-06  Bruno Haible  <bruno@clisp.org>
32386
32387         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32388         Reported by Eric Blake.
32389
32390 2009-03-06  Eric Blake  <ebb9@byu.net>
32391             Bruno Haible  <bruno@clisp.org>
32392
32393         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32394         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32395         condition.
32396         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32397         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32398         condition.
32399         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32400
32401 2009-03-06  Eric Blake  <ebb9@byu.net>
32402
32403         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32404         to avoid compiler warnings.
32405         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32406
32407 2009-03-05  Bruno Haible  <bruno@clisp.org>
32408
32409         * tests/test-ftell.c (main): Disable test beyond end of file on
32410         FreeMiNT.
32411         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32412
32413 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32414
32415         * lib/filevercmp.c: Move hidden files up in ordering.
32416         * tests/test-filevercmp.c: Add tests for hidden files.
32417
32418 2009-03-04  Bruno Haible  <bruno@clisp.org>
32419
32420         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32421         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32422         AM_CFLAGS.
32423         Reported by Simon Josefsson.
32424
32425 2009-03-03  Bruno Haible  <bruno@clisp.org>
32426
32427         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32428         Reported by Simon Josefsson.
32429
32430         * doc/ld-version-script.texi: Update node reference.
32431
32432 2009-03-03  Bruno Haible  <bruno@clisp.org>
32433
32434         * modules/visibility (License): Change to 'unlimited'.
32435         Suggested by Simon Josefsson.
32436
32437 2009-03-03  Jim Meyering  <meyering@redhat.com>
32438
32439         unlinkdir: cannot_unlink_dir may modify process state
32440         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32441         it's neither thread-safe nor appropriate for use in a library.
32442
32443 2009-03-03  Eric Blake  <ebb9@byu.net>
32444
32445         test-closein: silence test under Darwin
32446         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32447         care if it dies from EPIPE or EBADF.
32448
32449 2009-03-03  Bruno Haible  <bruno@clisp.org>
32450
32451         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32452         earlier.
32453         * doc/visibility.texi: Fix @node and @section.
32454
32455 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32456
32457         * doc/gnulib.texi: Link to sections for ld version script and
32458         visibility.
32459         * doc/visibility.texi: Add @node and @section.
32460         * modules/ld-version-script: New module.
32461         * m4/ld-version-script.m4: New file.
32462         * doc/ld-version-script.texi: New file.
32463
32464 2009-03-02  David Lutterkort  <lutter@redhat.com>
32465
32466         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32468
32469 2009-03-02  Bruno Haible  <bruno@clisp.org>
32470
32471         * doc/visibility.texi: Mention libtool's -export-symbols option.
32472
32473 2009-03-02  Jim Meyering  <meyering@redhat.com>
32474
32475         announce-gen: new option: --no-print-checksums
32476         * build-aux/announce-gen (usage): Describe it.
32477         (print_checksums): Print a newline here, not in the [*] footnote.
32478         (main): Honor it.
32479
32480 2009-03-01  Bruno Haible  <bruno@clisp.org>
32481
32482         Use socklen_t in the native Windows replacements prototypes.
32483         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32484         instead of 'int'.
32485         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32486         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32487         * modules/getsockopt (Depends-on): Add socklen.
32488         * modules/setsockopt (Depends-on): Add socklen.
32489
32490 2009-03-01  Bruno Haible  <bruno@clisp.org>
32491
32492         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32493         least 4.2.
32494
32495 2009-03-01  Eric Blake  <ebb9@byu.net>
32496             Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32499         error messages.
32500         * lib/wait-process.c (wait_subprocess): Omit error message about
32501         deadly signal sent to the child of termsigp != NULL.
32502
32503 2009-03-01  Eric Blake  <ebb9@byu.net>
32504
32505         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32506
32507 2009-03-01  Bruno Haible  <bruno@clisp.org>
32508
32509         Avoid a gcc warning.
32510         * tests/test-sched.c (b): Make global.
32511         Reported by Eric Blake.
32512
32513 2009-01-19  Martin Lambers  <marlam@marlam.de>
32514
32515         Provide POSIX semantics for socket timeout options on W32.
32516         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32517         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32518         * modules/setsockopt: Depend on sys_time module for struct timeval.
32519         * modules/getsockopt: Depend on sys_time module for struct timeval.
32520
32521 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32522
32523         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32524         __USE_GNU, for consistency with netdb.in.h.
32525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32526
32527 2009-03-01  Bruno Haible  <bruno@clisp.org>
32528
32529         More support for FreeMiNT.
32530         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32531         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32532
32533 2009-03-01  Bruno Haible  <bruno@clisp.org>
32534
32535         More support for FreeMiNT.
32536         * lib/fpurge.c (fpurge): Correct last commit.
32537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32538
32539 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32540
32541         Fix unportable awk script in vc-list-files.
32542         * build-aux/vc-list-files: In the replacement awk script, use
32543         substr with a second argument of 1, not zero.
32544         Report by Simon Josefsson.
32545
32546 2009-02-28  Bruno Haible  <bruno@clisp.org>
32547
32548         More support for FreeMiNT.
32549         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32550         to FreeMiNT today.
32551         * lib/fwriting.c (fwriting): Likewise.
32552         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32553
32554 2009-02-28  Bruno Haible  <bruno@clisp.org>
32555
32556         * tests/test-freadseek.c (main): Disable test beyond end of file on
32557         FreeMiNT.
32558         * tests/test-ftello.c (main): Likewise.
32559         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32560
32561 2009-02-28  Bruno Haible  <bruno@clisp.org>
32562
32563         Add tentative support for FreeMiNT.
32564         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32565         * lib/fpurge.c (fpurge): Likewise.
32566         * lib/freadable.c (freadable): Likewise.
32567         * lib/freading.c (freading): Likewise.
32568         * lib/freadptr.c (freadptr): Likewise.
32569         * lib/freadseek.c (freadptrinc): Likewise.
32570         * lib/fseeko.c (rpl_fseeko): Likewise.
32571         * lib/fseterr.c (fseterr): Likewise.
32572         * lib/fwritable.c (fwritable): Likewise.
32573         * lib/fwriting.c (fwriting): Likewise.
32574         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32575         Hourihane.
32576         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32577
32578 2009-02-28  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32581         SIGCHLD.
32582         Reported by Jim Meyering.
32583
32584 2009-02-28  Bruno Haible  <bruno@clisp.org>
32585
32586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32587         Mention the results of these tests on various platforms.
32588         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32589         order.
32590         * doc/posix-functions/printf.texi: Likewise.
32591         * doc/posix-functions/snprintf.texi: Likewise.
32592         * doc/posix-functions/sprintf.texi: Likewise.
32593         * doc/posix-functions/vfprintf.texi: Likewise.
32594         * doc/posix-functions/vprintf.texi: Likewise.
32595         * doc/posix-functions/vsnprintf.texi: Likewise.
32596         * doc/posix-functions/vsprintf.texi: Likewise.
32597         * doc/glibc-functions/obstack_printf.texi: Likewise.
32598         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32599
32600 2009-02-28  Bruno Haible  <bruno@clisp.org>
32601
32602         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32603         Reported by Loïc Minier <lool@dooz.org>.
32604
32605 2009-02-27  Bruno Haible  <bruno@clisp.org>
32606
32607         * gnulib-tool (func_import): Make the sed expression used to create the
32608         sed script for updating the .gitignore file POSIX compliant.
32609         Reported by Eric Blake.
32610
32611 2009-02-27  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (sed): Don't alias as "sed --posix".
32614         Reported by Eric Blake.
32615
32616 2009-02-27  Bruno Haible  <bruno@clisp.org>
32617
32618         Avoid test link errors.
32619         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32620         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32621         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32622         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32624
32625 2009-02-27  Bruno Haible  <bruno@clisp.org>
32626
32627         Avoid spurious "(cached)" in configure output.
32628         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32630         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32631         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32632         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32634         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32635         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32636         Reported by Eric Blake.
32637
32638 2009-02-27  Eric Blake  <ebb9@byu.net>
32639
32640         printf: fix regression in previous patch
32641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32642
32643 2009-02-27  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32646         value.
32647         * lib/stdint.in.h: Likewise.
32648         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32649
32650 2009-02-27  Eric Blake  <ebb9@byu.net>
32651
32652         doc: mention more functions added in cygwin 1.7.0
32653         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32654         addition.
32655         * doc/posix-functions/open_wmemstream.texi: Likewise.
32656         * doc/posix-functions/wcsnlen.texi: Likewise.
32657         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32658         * doc/posix-functions/wcstod.texi: Likewise.
32659         * doc/posix-functions/wcstof.texi: Likewise.
32660         * doc/posix-functions/wcstoimax.texi: Likewise.
32661         * doc/posix-functions/wcstok.texi: Likewise.
32662         * doc/posix-functions/wcstoumax.texi: Likewise.
32663
32664         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32666         * doc/posix-functions/fprintf.texi: Update.
32667         * doc/posix-functions/printf.texi: Update.
32668         * doc/posix-functions/snprintf.texi: Update.
32669         * doc/posix-functions/sprintf.texi: Update.
32670         * doc/posix-functions/vfprintf.texi: Update.
32671         * doc/posix-functions/vprintf.texi: Update.
32672         * doc/posix-functions/vsnprintf.texi: Update.
32673         * doc/posix-functions/vsprintf.texi: Update.
32674         * doc/glibc-functions/obstack_printf.texi: Update.
32675         * doc/glibc-functions/obstack_vprintf.texi: Update.
32676
32677 2009-02-26  Eric Blake  <ebb9@byu.net>
32678
32679         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32680         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32681         compilation bug by using runtime conversion.
32682         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32683         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32684         * modules/ceill-tests (Files): Use nan.h.
32685         * modules/floorl-tests (Files): Likewise.
32686         * modules/frexpl-tests (Files): Likewise.
32687         * modules/isnanl-tests (Files): Likewise.
32688         * modules/ldexpl-tests (Files): Likewise.
32689         * modules/roundl-tests (Files): Likewise.
32690         * modules/truncl-tests (Files): Likewise.
32691         * tests/test-ceill.c (main): Use a working NaN.
32692         * tests/test-floorl.c (main): Likewise.
32693         * tests/test-frexpl.c (main): Likewise.
32694         * tests/test-isnan.c (test_long_double): Likewise.
32695         * tests/test-isnanl.h (main): Likewise.
32696         * tests/test-ldexpl.h (main): Likewise.
32697         * tests/test-roundl.h (main): Likewise.
32698         * tests/test-truncl.h (main): Likewise.
32699         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32700
32701 2009-02-26  Eric Blake  <ebb9@byu.net>
32702             Bruno Haible  <bruno@clisp.org>
32703
32704         Work around a *printf bug with %ls on Solaris.
32705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32706         precision is specified, sprintf stops converting the wide string
32707         argument when the number of bytes that have been produced by this
32708         conversion equals or exceeds the precision.
32709         * doc/posix-functions/fprintf.texi: Update.
32710         * doc/posix-functions/printf.texi: Update.
32711         * doc/posix-functions/snprintf.texi: Update.
32712         * doc/posix-functions/sprintf.texi: Update.
32713         * doc/posix-functions/vfprintf.texi: Update.
32714         * doc/posix-functions/vprintf.texi: Update.
32715         * doc/posix-functions/vsnprintf.texi: Update.
32716         * doc/posix-functions/vsprintf.texi: Update.
32717         * doc/glibc-functions/obstack_printf.texi: Update.
32718         * doc/glibc-functions/obstack_vprintf.texi: Update.
32719
32720 2009-02-26  Eric Blake  <ebb9@byu.net>
32721
32722         stdlib: favor compiler check of random.h
32723         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32724         to avoid an ObjC random.h installed by Swarm.
32725
32726 2009-02-26  Bruno Haible  <bruno@clisp.org>
32727
32728         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32729         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32730         Reported by Gary V. Vaughan <gary@gnu.org>.
32731
32732 2009-02-26  Bruno Haible  <bruno@clisp.org>
32733
32734         Fix *printf behaviour regarding the %ls directive.
32735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32736         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32737         NEED_PRINTF_DIRECTIVE_LS.
32738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32739         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32741         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32742         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32743         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32744         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32749         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32753         * doc/posix-functions/fprintf.texi: Update.
32754         * doc/posix-functions/printf.texi: Update.
32755         * doc/posix-functions/snprintf.texi: Update.
32756         * doc/posix-functions/sprintf.texi: Update.
32757         * doc/posix-functions/vfprintf.texi: Update.
32758         * doc/posix-functions/vprintf.texi: Update.
32759         * doc/posix-functions/vsnprintf.texi: Update.
32760         * doc/posix-functions/vsprintf.texi: Update.
32761         * doc/glibc-functions/obstack_printf.texi: Update.
32762         * doc/glibc-functions/obstack_vprintf.texi: Update.
32763         Reported by Eric Blake.
32764
32765 2009-02-25  Bruno Haible  <bruno@clisp.org>
32766
32767         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32768         with known value.
32769         Reported by Gary V. Vaughan <gary@gnu.org>.
32770
32771 2009-02-25  Bruno Haible  <bruno@clisp.org>
32772
32773         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32774         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32775         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32776         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32777         Reported by Gary V. Vaughan <gary@gnu.org>.
32778
32779 2009-02-25  Bruno Haible  <bruno@clisp.org>
32780
32781         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32782         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32783         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32784         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32785         Reported by Gary V. Vaughan <gary@gnu.org>.
32786
32787 2009-02-25  Eric Blake  <ebb9@byu.net>
32788
32789         tests: skip fseek/ftell tests if ungetc is broken
32790         * m4/ungetc.m4: New file.
32791         * modules/fseek-tests: Split test, so ungetc dependency is
32792         separate from rest of test.
32793         * modules/fseeko-tests: Likewise.
32794         * modules/ftell-tests: Likewise.
32795         * modules/ftello-tests: Likewise.
32796         * tests/test-fseek.c (main): Isolate ungetc dependency.
32797         * tests/test-fseeko.c (main): Likewise.
32798         * tests/test-ftell.c (main): Likewise.
32799         * tests/test-ftello.c (main): Likewise.
32800         * tests/test-fseek2.sh: New file.
32801         * tests/test-fseeko2.sh: Likewise.
32802         * tests/test-ftell2.sh: Likewise.
32803         * tests/test-ftello2.sh: Likewise.
32804
32805 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32806
32807         test-getaddrinfo: fix usage of skip return code 77
32808         * tests/test-gettaddrinfo.c: Return skip code 77 only
32809         for first occurance of skip (4x77 is not 77)
32810
32811 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32812
32813         strtod: avoid C99 decl-after-statement
32814         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32815
32816 2009-02-24  Eric Blake  <ebb9@byu.net>
32817
32818         strtod: detect HP-UX 11.31 bug
32819         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32820         Reported by Gary V. Vaughan.
32821
32822 2009-02-23  Bruno Haible  <bruno@clisp.org>
32823
32824         Fix invalid read past end of memory block.
32825         * lib/vasnprintf.c (DCHAR_SET): Define.
32826         (local_wcslen): Define only when needed.
32827         (local_strnlen, local_wcsnlen): New functions.
32828         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32829         directives that involve a conversion ourselves.
32830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32831         wcsnlen, mbrtowc, wcrtomb.
32832         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32833         * tests/test-vasprintf-posix.c (test_function): Likewise.
32834         * tests/test-snprintf-posix.h (test_function): Likewise.
32835         * tests/test-sprintf-posix.h (test_function): Likewise.
32836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32837
32838 2009-02-22  Bruno Haible  <bruno@clisp.org>
32839
32840         Implement new clarified decomposition of Hangul syllables.
32841         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32842         of type LTV, return only a pairwise decomposition.
32843         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32844         Likewise.
32845         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32846         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32847         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32848
32849 2009-02-22  Bruno Haible  <bruno@clisp.org>
32850
32851         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32852         zero-length results and shrink excess allocated memory.
32853         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32854         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32855         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32856         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32857         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32858         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32859         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32860         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32861         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32862         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32863         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32864         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32865
32866 2009-02-21  Bruno Haible  <bruno@clisp.org>
32867
32868         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32869         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32870         spaces after a period. Put a space between a macro name and its
32871         argument list. Trivial rewordings.
32872         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32873         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32874         (main): Return 0 explicitly.
32875
32876 2009-02-21  Bruno Haible  <bruno@clisp.org>
32877
32878         Tests for module 'uninorm/filter'.
32879         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32880         * modules/uninorm/filter-tests: New file.
32881
32882         New module 'uninorm/filter'.
32883         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32884         uninorm_filter_flush, uninorm_filter_free): New declarations.
32885         * lib/uninorm/uninorm-filter.c: New file.
32886         * modules/uninorm/filter: New file.
32887
32888 2009-02-21  Bruno Haible  <bruno@clisp.org>
32889
32890         Tests for module 'uninorm/nfkc'.
32891         * tests/uninorm/test-nfkc.c: New file.
32892         * tests/uninorm/test-u8-nfkc.c: New file.
32893         * tests/uninorm/test-u16-nfkc.c: New file.
32894         * tests/uninorm/test-u32-nfkc.c: New file.
32895         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32896         * tests/uninorm/test-u32-nfkc-big.c: New file.
32897         * modules/uninorm/nfkc-tests: New file.
32898
32899         New module 'uninorm/nfkc'.
32900         * lib/uninorm/nfkc.c: New file.
32901         * modules/uninorm/nfkc: New file.
32902
32903         Tests for module 'uninorm/nfkd'.
32904         * tests/uninorm/test-nfkd.c: New file.
32905         * tests/uninorm/test-u8-nfkd.c: New file.
32906         * tests/uninorm/test-u16-nfkd.c: New file.
32907         * tests/uninorm/test-u32-nfkd.c: New file.
32908         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32909         * tests/uninorm/test-u32-nfkd-big.c: New file.
32910         * modules/uninorm/nfkd-tests: New file.
32911
32912         New module 'uninorm/nfkd'.
32913         * lib/uninorm/nfkd.c: New file.
32914         * modules/uninorm/nfkd: New file.
32915
32916         Tests for module 'uninorm/nfc'.
32917         * tests/uninorm/test-nfc.c: New file.
32918         * tests/uninorm/test-u8-nfc.c: New file.
32919         * tests/uninorm/test-u16-nfc.c: New file.
32920         * tests/uninorm/test-u32-nfc.c: New file.
32921         * tests/uninorm/test-u32-nfc-big.sh: New file.
32922         * tests/uninorm/test-u32-nfc-big.c: New file.
32923         * modules/uninorm/nfc-tests: New file.
32924
32925         New module 'uninorm/nfc'.
32926         * lib/uninorm/nfc.c: New file.
32927         * modules/uninorm/nfc: New file.
32928
32929         Tests for module 'uninorm/nfd'.
32930         * tests/uninorm/test-nfd.c: New file.
32931         * tests/uninorm/test-u8-nfd.c: New file.
32932         * tests/uninorm/test-u16-nfd.c: New file.
32933         * tests/uninorm/test-u32-nfd.c: New file.
32934         * tests/uninorm/test-u32-nfd-big.sh: New file.
32935         * tests/uninorm/test-u32-nfd-big.c: New file.
32936         * tests/uninorm/test-u32-normalize-big.h: New file.
32937         * tests/uninorm/test-u32-normalize-big.c: New file.
32938         * tests/uninorm/NormalizationTest.txt: New file, created from
32939         Unicode 5.1.0 NormalizationTest.txt.
32940         * modules/uninorm/nfd-tests: New file.
32941
32942         New module 'uninorm/nfd'.
32943         * lib/uninorm/nfd.c: New file.
32944         * modules/uninorm/nfd: New file.
32945
32946         New module 'uninorm/u32-normalize'.
32947         * lib/uninorm/u32-normalize.c: New file.
32948         * modules/uninorm/u32-normalize: New file.
32949
32950         New module 'uninorm/u16-normalize'.
32951         * lib/uninorm/u16-normalize.c: New file.
32952         * modules/uninorm/u16-normalize: New file.
32953
32954         New module 'uninorm/u8-normalize'.
32955         * lib/uninorm/u8-normalize.c: New file.
32956         * lib/uninorm/normalize-internal.h: New file.
32957         * lib/uninorm/u-normalize-internal.h: New file.
32958         * modules/uninorm/u8-normalize: New file.
32959
32960         New module 'uninorm/decompose-internal'.
32961         * lib/uninorm/decompose-internal.c: New file.
32962         * modules/uninorm/decompose-internal: New file.
32963
32964         Tests for module 'uninorm/composition'.
32965         * tests/uninorm/test-composition.c: New file.
32966         * modules/uninorm/composition-tests: New file.
32967
32968         New module 'uninorm/composition'.
32969         * lib/uninorm/composition.c: New file.
32970         * lib/uninorm/composition-table.gperf: New file, generated by
32971         gen-uni-tables.
32972         * modules/uninorm/composition: New file.
32973
32974         Tests for module 'uninorm/compat-decomposition'.
32975         * tests/uninorm/test-compat-decomposition.c: New file.
32976         * modules/uninorm/compat-decomposition-tests: New file.
32977
32978         New module 'uninorm/compat-decomposition'.
32979         * lib/uninorm/decompose-internal.h: New file.
32980         * lib/uninorm/compat-decomposition.c: New file.
32981         * modules/uninorm/compat-decomposition: New file.
32982
32983         Tests for module 'uninorm/canonical-decomposition'.
32984         * tests/uninorm/test-canonical-decomposition.c: New file.
32985         * modules/uninorm/canonical-decomposition-tests: New file.
32986
32987         New module 'uninorm/canonical-decomposition'.
32988         * lib/uninorm/canonical-decomposition.c: New file.
32989         * modules/uninorm/canonical-decomposition: New file.
32990
32991         Tests for module 'uninorm/decomposition'.
32992         * tests/uninorm/test-decomposition.c: New file.
32993         * modules/uninorm/decomposition-tests: New file.
32994
32995         New module 'uninorm/decomposition'.
32996         * lib/uninorm/decomposition.c: New file.
32997         * modules/uninorm/decomposition: New file.
32998
32999         New module 'uninorm/decomposition-table'.
33000         * lib/uninorm/decomposition-table.h: New file.
33001         * lib/uninorm/decomposition-table.c: New file.
33002         * lib/uninorm/decomposition-table1.h: New file, generated by
33003         gen-uni-tables.
33004         * lib/uninorm/decomposition-table2.h: New file, generated by
33005         gen-uni-tables.
33006         * modules/uninorm/decomposition-table: New file.
33007
33008         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33009         (UC_DECOMP_*): New enumeration items.
33010         (get_decomposition): New function.
33011         (struct decomp_table): New type.
33012         (output_decomposition, output_decomposition_tables): New functions.
33013         (unicode_composition_exclusions): New variable.
33014         (fill_composition_exclusions, debug_output_composition_tables): New
33015         functions.
33016         (main): Accept one more argument. Invoke fill_composition_exclusions.
33017         Output decomposition and composition tables.
33018
33019         New module 'uninorm/base'.
33020         * lib/uninorm.h: New file.
33021         * lib/unictype.h: Update comment.
33022         * modules/uninorm/base: New file.
33023
33024 2009-02-21  David Lutterkort  <lutter@redhat.com>
33025
33026         Tests for module 'safe-alloc'.
33027         * tests/test-safe-alloc.c: New file.
33028         * modules/safe-alloc-tests: New file.
33029
33030         New module 'safe-alloc'.
33031         * lib/safe-alloc.h: New file.
33032         * lib/safe-alloc.c: New file.
33033         * m4/safe-alloc.m4: New file.
33034         * modules/safe-alloc: New file.
33035         * doc/safe-alloc.texi: New file.
33036         * doc/gnulib.texi: Include it.
33037         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33038         safe-alloc.
33039
33040 2009-02-18  Bruno Haible  <bruno@clisp.org>
33041
33042         Fix link error on non-glibc systems.
33043         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33044         variable.
33045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33046
33047 2009-02-18  Jim Meyering  <meyering@redhat.com>
33048
33049         fts: avoid used-uninitialized error due to recent change
33050         * lib/fts.c (fts_read): Guard uses of the new member,
33051         parent->fts_n_dirs_remaining, since it's not relevant for
33052         the parent of a directory specified on the command-line.
33053
33054 2009-02-17  James Youngman  <jay@gnu.org>
33055             Bruno Haible  <bruno@clisp.org>
33056
33057         * m4/include_next.m4: Reformulate comment.
33058
33059 2009-02-16  Jim Meyering  <meyering@redhat.com>
33060
33061         fts: add #if guards so that the fts_lgpl module still builds
33062         * lib/fts.c: Guard just-added hash-table-using parts with
33063         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33064         Reported by Simon Josefsson.
33065
33066 2009-02-15  Bruno Haible  <bruno@clisp.org>
33067
33068         * modules/array-mergesort-tests: New file.
33069         * tests/test-array-mergesort.c: New file.
33070
33071         New module 'array-mergesort'.
33072         * modules/array-mergesort: New file.
33073         * lib/array-mergesort.h: New file.
33074
33075 2009-02-15  Bruno Haible  <bruno@clisp.org>
33076
33077         Fix 2009-02-07 commit.
33078         * lib/gen-uni-tables.c (output_predicate, output_category,
33079         output_combclass, output_bidi_category, output_decimal_digit,
33080         output_digit, output_numeric, output_mirror, output_scripts,
33081         output_ident_category, output_simple_mapping): Fix format directives.
33082         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33083
33084 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33085
33086         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33087         fixes are available from IBM.
33088
33089 2009-02-13  Jim Meyering  <meyering@redhat.com>
33090
33091         fts: arrange not to stat non-directories in more cases
33092         This makes GNU find (when it doesn't need to stat each file)
33093         *much* more efficient at traversing reiserfs file systems.
33094         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33095         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33096         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33097         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33098         (leaf_optimization_applies): New function.
33099         (LCO_hash, LCO_compare): New helper functions.
33100         (link_count_optimize_ok): New function.
33101         (fts_stat): Initialize new member (if dir).
33102         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33103         we've just stat'ed a directory.  Skip the stat call when possible.
33104         ---
33105         Note this AFS-related exchange:
33106         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33107         and note find's pioctl call in find/fstype.c.
33108         But that is necessary only if you want to enable the
33109         optimization for AFS, and for now, I don't.
33110
33111         fts: move a function definition "up" (no semantic change)
33112         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33113         "up" to precede upcoming use of a related function.
33114
33115 2009-02-11  Jim Meyering  <meyering@redhat.com>
33116
33117         fts: correct internal computation of nlinks (optimization-related)
33118         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33119         whether the current entry is a directory, so don't test it.
33120
33121 2009-02-10  Bruno Haible  <bruno@clisp.org>
33122
33123         Tests for module 'uniwbrk/ulc-wordbreaks'.
33124         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33125         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33126         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33127
33128         Tests for module 'uniwbrk/u32-wordbreaks'.
33129         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33130         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33131
33132         Tests for module 'uniwbrk/u16-wordbreaks'.
33133         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33134         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33135
33136         Tests for module 'uniwbrk/u8-wordbreaks'.
33137         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33138         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33139
33140 2009-02-10  Bruno Haible  <bruno@clisp.org>
33141
33142         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33143         property.
33144         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33145         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33146         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33147
33148 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33149
33150         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33151         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33152
33153 2009-02-10  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33156         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33157         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33158         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33159         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33160         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33161
33162 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33163
33164         * lib/sockets.h (gl_fd_to_handle): New function.
33165
33166         * tests/test-sockets.c: Call gl_fd_to_handle.
33167
33168 2009-02-09  Bruno Haible  <bruno@clisp.org>
33169
33170         * doc/havelib.texi: Document the conventions on bi-arch systems.
33171
33172 2009-02-08  Bruno Haible  <bruno@clisp.org>
33173
33174         Document the AC_LIB_LINKFLAGS macro.
33175         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33176         * doc/gnulib.texi: Include it.
33177
33178 2009-02-08  Bruno Haible  <bruno@clisp.org>
33179
33180         Fix wrong order of sections, compared to TOC.
33181         * doc/gnulib.texi: Include relocatable-maint.texi after the
33182         "Regular expressions" node, not before.
33183
33184 2009-02-08  Bruno Haible  <bruno@clisp.org>
33185
33186         Tests for module 'unicase/totitle'.
33187         * modules/unicase/totitle-tests: New file.
33188
33189         Tests for module 'unicase/tolower'.
33190         * modules/unicase/tolower-tests: New file.
33191
33192         Tests for module 'unicase/toupper'.
33193         * modules/unicase/toupper-tests: New file.
33194         * tests/unicase/test-mapping-part1.h: New file.
33195         * tests/unicase/test-mapping-part2.h: New file.
33196
33197         New module 'unicase/totitle'.
33198         * modules/unicase/totitle: New file.
33199         * lib/unicase/totitle.c: New file.
33200
33201         New module 'unicase/tolower'.
33202         * modules/unicase/tolower: New file.
33203         * lib/unicase/tolower.c: New file.
33204
33205         New module 'unicase/toupper'.
33206         * modules/unicase/toupper: New file.
33207         * lib/unicase/toupper.c: New file.
33208         * lib/unicase/simple-mapping.h: New file.
33209
33210         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33211         (mapping_table): New structure.
33212         (output_simple_mapping): New function.
33213         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33214         * modules/gen-uni-tables (Description): Update.
33215         * lib/unicase/toupper.h: New file, automatically generated by
33216         gen-uni-tables.
33217         * lib/unicase/tolower.h: New file, automatically generated by
33218         gen-uni-tables.
33219         * lib/unicase/totitle.h: New file, automatically generated by
33220         gen-uni-tables.
33221         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33222         gen-uni-tables.
33223         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33224         gen-uni-tables.
33225         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33226         gen-uni-tables.
33227
33228         New module 'unicase/base'.
33229         * modules/unicase/base: New file.
33230         * lib/unicase.h: New file.
33231
33232 2009-02-08  Bruno Haible  <bruno@clisp.org>
33233
33234         New module 'uniwbrk/ulc-wordbreaks'.
33235         * modules/uniwbrk/ulc-wordbreaks: New file.
33236         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33237
33238         New module 'uniwbrk/u32-wordbreaks'.
33239         * modules/uniwbrk/u32-wordbreaks: New file.
33240         * lib/uniwbrk/u32-wordbreaks.c: New file.
33241
33242         New module 'uniwbrk/u16-wordbreaks'.
33243         * modules/uniwbrk/u16-wordbreaks: New file.
33244         * lib/uniwbrk/u16-wordbreaks.c: New file.
33245
33246         New module 'uniwbrk/u8-wordbreaks'.
33247         * modules/uniwbrk/u8-wordbreaks: New file.
33248         * lib/uniwbrk/u8-wordbreaks.c: New file.
33249         * lib/uniwbrk/u-wordbreaks.h: New file.
33250
33251         New module 'uniwbrk/table'.
33252         * modules/uniwbrk/table: New file.
33253         * lib/uniwbrk/wbrktable.h: New file.
33254         * lib/uniwbrk/wbrktable.c: New file.
33255
33256         New module 'uniwbrk/wordbreak-property'.
33257         * modules/uniwbrk/wordbreak-property: New file.
33258         * lib/uniwbrk/wordbreak-property.c: New file.
33259
33260         * lib/gen-uni-tables.c (WBP_*): New enum items.
33261         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33262         (unicode_org_wbp): New variable.
33263         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33264         New functions.
33265         (wbp_table): New structure.
33266         (output_wbp, output_wbrk_tables): New functions.
33267         (main): Accept additional argument. Invoke fill_org_wbp,
33268         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33269         output_wbrk_tables.
33270         * modules/gen-uni-tables (Description): Update.
33271         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33272         gen-uni-tables.
33273
33274         New module 'uniwbrk/base'.
33275         * modules/uniwbrk/base: New file.
33276         * lib/uniwbrk.h: New file.
33277
33278 2009-02-08  Bruno Haible  <bruno@clisp.org>
33279
33280         Update to Unicode 5.1.0.
33281         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33282         U+2185..U+2188.
33283         (is_property_default_ignorable_code_point): Don't include characters
33284         of category Cc or Cs and not-a-characters.
33285         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33286         U+0D79, U+109E, U+109F, U+A60C.
33287         * lib/unictype/bidi_of.h: Regenerated.
33288         * lib/unictype/blocks.h: Regenerated.
33289         * lib/unictype/categ_C.h: Regenerated.
33290         * lib/unictype/categ_Cf.h: Regenerated.
33291         * lib/unictype/categ_Cn.h: Regenerated.
33292         * lib/unictype/categ_L.h: Regenerated.
33293         * lib/unictype/categ_Ll.h: Regenerated.
33294         * lib/unictype/categ_Lm.h: Regenerated.
33295         * lib/unictype/categ_Lo.h: Regenerated.
33296         * lib/unictype/categ_Lu.h: Regenerated.
33297         * lib/unictype/categ_M.h: Regenerated.
33298         * lib/unictype/categ_Mc.h: Regenerated.
33299         * lib/unictype/categ_Me.h: Regenerated.
33300         * lib/unictype/categ_Mn.h: Regenerated.
33301         * lib/unictype/categ_N.h: Regenerated.
33302         * lib/unictype/categ_Nd.h: Regenerated.
33303         * lib/unictype/categ_Nl.h: Regenerated.
33304         * lib/unictype/categ_No.h: Regenerated.
33305         * lib/unictype/categ_P.h: Regenerated.
33306         * lib/unictype/categ_Pd.h: Regenerated.
33307         * lib/unictype/categ_Pe.h: Regenerated.
33308         * lib/unictype/categ_Pf.h: Regenerated.
33309         * lib/unictype/categ_Pi.h: Regenerated.
33310         * lib/unictype/categ_Po.h: Regenerated.
33311         * lib/unictype/categ_Ps.h: Regenerated.
33312         * lib/unictype/categ_S.h: Regenerated.
33313         * lib/unictype/categ_Sk.h: Regenerated.
33314         * lib/unictype/categ_Sm.h: Regenerated.
33315         * lib/unictype/categ_So.h: Regenerated.
33316         * lib/unictype/categ_of.h: Regenerated.
33317         * lib/unictype/combining.h: Regenerated.
33318         * lib/unictype/ctype_alnum.h: Regenerated.
33319         * lib/unictype/ctype_alpha.h: Regenerated.
33320         * lib/unictype/ctype_graph.h: Regenerated.
33321         * lib/unictype/ctype_lower.h: Regenerated.
33322         * lib/unictype/ctype_print.h: Regenerated.
33323         * lib/unictype/ctype_punct.h: Regenerated.
33324         * lib/unictype/ctype_upper.h: Regenerated.
33325         * lib/unictype/decdigit.h: Regenerated.
33326         * lib/unictype/digit.h: Regenerated.
33327         * lib/unictype/mirror.h: Regenerated.
33328         * lib/unictype/numeric.h: Regenerated.
33329         * lib/unictype/pr_alphabetic.h: Regenerated.
33330         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33331         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33332         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33333         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33334         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33335         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33336         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33337         * lib/unictype/pr_combining.h: Regenerated.
33338         * lib/unictype/pr_dash.h: Regenerated.
33339         * lib/unictype/pr_decimal_digit.h: Regenerated.
33340         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33341         * lib/unictype/pr_deprecated.h: Regenerated.
33342         * lib/unictype/pr_diacritic.h: Regenerated.
33343         * lib/unictype/pr_extender.h: Regenerated.
33344         * lib/unictype/pr_format_control.h: Regenerated.
33345         * lib/unictype/pr_grapheme_base.h: Regenerated.
33346         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33347         * lib/unictype/pr_grapheme_link.h: Regenerated.
33348         * lib/unictype/pr_id_continue.h: Regenerated.
33349         * lib/unictype/pr_id_start.h: Regenerated.
33350         * lib/unictype/pr_ideographic.h: Regenerated.
33351         * lib/unictype/pr_ignorable_control.h: Regenerated.
33352         * lib/unictype/pr_lowercase.h: Regenerated.
33353         * lib/unictype/pr_math.h: Regenerated.
33354         * lib/unictype/pr_numeric.h: Regenerated.
33355         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33356         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33357         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33358         * lib/unictype/pr_other_id_continue.h: Regenerated.
33359         * lib/unictype/pr_other_lowercase.h: Regenerated.
33360         * lib/unictype/pr_other_math.h: Regenerated.
33361         * lib/unictype/pr_punctuation.h: Regenerated.
33362         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33363         * lib/unictype/pr_soft_dotted.h: Regenerated.
33364         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33365         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33366         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33367         * lib/unictype/pr_uppercase.h: Regenerated.
33368         * lib/unictype/pr_xid_continue.h: Regenerated.
33369         * lib/unictype/pr_xid_start.h: Regenerated.
33370         * lib/unictype/pr_zero_width.h: Regenerated.
33371         * lib/unictype/scripts.h: Regenerated.
33372         * lib/unictype/scripts_byname.gperf: Regenerated.
33373         * lib/unictype/sy_java_ident.h: Regenerated.
33374         * lib/unilbrk/lbrkprop1.h: Regenerated.
33375         * lib/unilbrk/lbrkprop2.h: Regenerated.
33376         * tests/unictype/test-categ_C.c: Regenerated.
33377         * tests/unictype/test-categ_Cf.c: Regenerated.
33378         * tests/unictype/test-categ_Cn.c: Regenerated.
33379         * tests/unictype/test-categ_L.c: Regenerated.
33380         * tests/unictype/test-categ_Ll.c: Regenerated.
33381         * tests/unictype/test-categ_Lm.c: Regenerated.
33382         * tests/unictype/test-categ_Lo.c: Regenerated.
33383         * tests/unictype/test-categ_Lu.c: Regenerated.
33384         * tests/unictype/test-categ_M.c: Regenerated.
33385         * tests/unictype/test-categ_Mc.c: Regenerated.
33386         * tests/unictype/test-categ_Me.c: Regenerated.
33387         * tests/unictype/test-categ_Mn.c: Regenerated.
33388         * tests/unictype/test-categ_N.c: Regenerated.
33389         * tests/unictype/test-categ_Nd.c: Regenerated.
33390         * tests/unictype/test-categ_Nl.c: Regenerated.
33391         * tests/unictype/test-categ_No.c: Regenerated.
33392         * tests/unictype/test-categ_P.c: Regenerated.
33393         * tests/unictype/test-categ_Pd.c: Regenerated.
33394         * tests/unictype/test-categ_Pe.c: Regenerated.
33395         * tests/unictype/test-categ_Pf.c: Regenerated.
33396         * tests/unictype/test-categ_Pi.c: Regenerated.
33397         * tests/unictype/test-categ_Po.c: Regenerated.
33398         * tests/unictype/test-categ_Ps.c: Regenerated.
33399         * tests/unictype/test-categ_S.c: Regenerated.
33400         * tests/unictype/test-categ_Sk.c: Regenerated.
33401         * tests/unictype/test-categ_Sm.c: Regenerated.
33402         * tests/unictype/test-categ_So.c: Regenerated.
33403         * tests/unictype/test-ctype_alnum.c: Regenerated.
33404         * tests/unictype/test-ctype_alpha.c: Regenerated.
33405         * tests/unictype/test-ctype_graph.c: Regenerated.
33406         * tests/unictype/test-ctype_lower.c: Regenerated.
33407         * tests/unictype/test-ctype_print.c: Regenerated.
33408         * tests/unictype/test-ctype_punct.c: Regenerated.
33409         * tests/unictype/test-ctype_upper.c: Regenerated.
33410         * tests/unictype/test-decdigit.h: Regenerated.
33411         * tests/unictype/test-digit.h: Regenerated.
33412         * tests/unictype/test-numeric.h: Regenerated.
33413         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33414         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33415         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33416         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33417         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33418         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33419         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33420         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33421         * tests/unictype/test-pr_combining.c: Regenerated.
33422         * tests/unictype/test-pr_dash.c: Regenerated.
33423         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33424         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33425         * tests/unictype/test-pr_deprecated.c: Regenerated.
33426         * tests/unictype/test-pr_diacritic.c: Regenerated.
33427         * tests/unictype/test-pr_extender.c: Regenerated.
33428         * tests/unictype/test-pr_format_control.c: Regenerated.
33429         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33430         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33431         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33432         * tests/unictype/test-pr_id_continue.c: Regenerated.
33433         * tests/unictype/test-pr_id_start.c: Regenerated.
33434         * tests/unictype/test-pr_ideographic.c: Regenerated.
33435         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33436         * tests/unictype/test-pr_lowercase.c: Regenerated.
33437         * tests/unictype/test-pr_math.c: Regenerated.
33438         * tests/unictype/test-pr_numeric.c: Regenerated.
33439         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33440         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33441         Regenerated.
33442         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33443         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33444         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33445         * tests/unictype/test-pr_other_math.c: Regenerated.
33446         * tests/unictype/test-pr_punctuation.c: Regenerated.
33447         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33448         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33449         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33450         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33451         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33452         * tests/unictype/test-pr_uppercase.c: Regenerated.
33453         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33454         * tests/unictype/test-pr_xid_start.c: Regenerated.
33455         * tests/unictype/test-pr_zero_width.c: Regenerated.
33456
33457         Update to Unicode 5.1.0.
33458         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33459         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33460         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33461         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33462         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33463         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33464         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33465         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33466         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33467         (nonspacing_table_ind): Update.
33468         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33469
33470         Update to Unicode 5.1.0.
33471         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33472         code transform.
33473         * lib/uniname/uniname.c (unicode_character_name,
33474         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33475         * lib/uniname/uninames.h: Regenerated.
33476         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33477
33478 2009-02-07  Bruno Haible  <bruno@clisp.org>
33479
33480         Merge gen-ctype and gen-lbrk into a single program.
33481         * lib/gen-uni-tables.c: New file, incorporating
33482         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33483         Add directory prefixes to the names of the generated files.
33484         * lib/unictype/gen-ctype.c: Remove file.
33485         * lib/unilbrk/gen-lbrk.c: Remove file.
33486         * modules/gen-uni-tables: New file.
33487         * modules/unictype/gen-ctype: Remove file.
33488         * modules/unilbrk/gen-lbrk: Remove file.
33489
33490 2009-02-07  Bruno Haible  <bruno@clisp.org>
33491
33492         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33493
33494         New module 'unistr/u32-strcoll'.
33495         * modules/unistr/u32-strcoll: New file.
33496         * lib/unistr/u32-strcoll.c: New file.
33497
33498         New module 'unistr/u16-strcoll'.
33499         * modules/unistr/u16-strcoll: New file.
33500         * lib/unistr/u16-strcoll.c: New file.
33501
33502         New module 'unistr/u8-strcoll'.
33503         * modules/unistr/u8-strcoll: New file.
33504         * lib/unistr/u8-strcoll.c: New file.
33505         * lib/unistr/u-strcoll.h: New file.
33506
33507 2009-02-07  Bruno Haible  <bruno@clisp.org>
33508
33509         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33510         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33511         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33512         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33513         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33514         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33515
33516 2009-02-07  Bruno Haible  <bruno@clisp.org>
33517
33518         Make 64-bit clean.
33519         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33520         output_combclass, output_bidi_category, output_decimal_digit,
33521         output_digit, output_numeric, output_mirror, output_scripts,
33522         output_ident_category): Use proper width specifier in format strings.
33523
33524 2009-02-07  Bruno Haible  <bruno@clisp.org>
33525
33526         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33527         failure behaviour.
33528
33529 2009-02-07  Jim Meyering  <meyering@redhat.com>
33530
33531         regex: avoid compilation failure with upcoming gcc-4.4
33532         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33533         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33534         "... error: integer overflow in preprocessor expression".
33535
33536 2009-02-05  Ben Pfaff  <blp@gnu.org>
33537
33538         Fix link errors on Windows when close module is used.
33539         * modules/close: Add $(LIB_CLOSE) to Link section.
33540         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33541         $(LIB_CLOSE) on Windows.
33542
33543 2009-02-05  Jim Meyering  <meyering@redhat.com>
33544
33545         still avoid unused-parameter warnings, but do it cleanly
33546         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33547         (get_fs_usage): Cast to void instead.
33548         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33549         (dev_from_mount_options, read_file_system_list): Cast to void.
33550         Prompted by Bruno Haible.
33551
33552 2009-02-04  Jim Meyering  <meyering@redhat.com>
33553
33554         fsusage.c: correct copyright year
33555         * lib/fsusage.c: Reflect year in which the change is pushed into
33556
33557         avoid misc. warnings
33558         * lib/fsusage.c (UNUSED_PARAM): Define.
33559         (get_fs_usage): Mark parameter "disk" as unused.
33560         * lib/getugroups.c (getgrent): Use "void" in prototype.
33561         * lib/mountlist.c: Mark unused parameters.
33562         (read_file_system_list): Declare a local with "const".
33563         * lib/nanosleep.c (getnow): Declare static.
33564         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33565
33566         dirfd: set errno upon failure
33567         * lib/dirfd.c: Include <errno.h>.
33568         Set errno to ENOTSUP when returning -1.
33569         * modules/dirfd (Depends-on): Add errno.
33570         Suggested by John Kodis <kodis@comcast.net>.
33571
33572 2009-02-01  Bruno Haible  <bruno@clisp.org>
33573
33574         Don't assume sizeof (long) >= sizeof (void *).
33575         * lib/memcmp.c: Include stdint.h.
33576         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33577         srcp2 to 'const byte *'.
33578         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33579         types to uintptr_t.
33580         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33581         * modules/memcmp (Depends-on): Add stdint.
33582         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33583
33584 2009-01-30  Eric Blake  <ebb9@byu.net>
33585
33586         fix more require-before-expand issues
33587         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33588         expand, AC_PROG_AWK.
33589         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33590
33591 2009-01-28  Eric Blake  <ebb9@byu.net>
33592
33593         version-etc: use consistent URL formatting
33594         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33595         Improve formatting.  Use fputs for string without %.
33596
33597 2009-01-28  Jim Meyering  <meyering@redhat.com>
33598
33599         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33600         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33601         "underquoted definition of NAME" from autoconf-2.59.
33602
33603 2009-01-28  Bruno Haible  <bruno@clisp.org>
33604
33605         * doc/gnulib.texi: Add "Obsolete modules" to index.
33606
33607 2009-01-28  Jim Meyering  <meyering@redhat.com>
33608
33609         useless-if-before-free: recognize more variants
33610         * build-aux/useless-if-before-free: Also recognize e.g.,
33611         if (NULL != p) free (p);
33612
33613 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33614
33615         test-getaddrinfo: skip (don't fail) this test when there's no network
33616         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33617         on the presumption that it means you lack network access.
33618
33619 2009-01-26  Jim Meyering  <meyering@redhat.com>
33620
33621         fflush: avoid warnings on modern systems
33622         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33623         pos and result, into scopes where they're used.
33624
33625 2009-01-26  Eric Blake  <ebb9@byu.net>
33626
33627         Silence warning reintroduced by recent extensions patch.
33628         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33629         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33630         autoconf.
33631
33632         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33633         * m4/00gnulib.m4: New file.
33634         * gnulib-tool (func_get_filelist): Always use it.
33635         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33636         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33637
33638 2009-01-25  Bruno Haible  <bruno@clisp.org>
33639
33640         Make test-quotearg work on MacOS X and AIX.
33641         * tests/test-quotearg.sh: New file.
33642         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33643         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33644         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33645         include <libintl.h>.
33646         (fake_locale): Remove variable.
33647         (gettext, dgettext, dcgettext): Remove functions.
33648         (main): Instead of setting a fake locale, set a real locale. Call
33649         textdomain and bindtextdomain.
33650         * modules/quotearg-tests (Files): Add the new files.
33651         (Depends-on): Add gettext, setenv, unsetenv.
33652         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33653         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33654         Augment TESTS_ENVIRONMENT.
33655
33656 2009-01-25  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33659         fr_FR.ISO8859-1 locale on MacOS X.
33660         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33661         ja_JP.eucJP locale on MacOS X.
33662         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33663         zh_CN.GB18030 locale on MacOS X.
33664
33665 2009-01-25  Bruno Haible  <bruno@clisp.org>
33666
33667         Avoid link errors on MacOS X 10.3.
33668         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33669         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33670
33671 2009-01-25  Bruno Haible  <bruno@clisp.org>
33672
33673         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33674         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33675         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33676         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33677         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33678         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33679         posix_spawnattr_init, posix_spawnattr_setsigmask,
33680         posix_spawnattr_setflags, posix_spawnattr_destroy.
33681
33682         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33683         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33684         * modules/execute (Files): Remove m4/posix_spawn.m4.
33685         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33686         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33687         posix_spawnattr_init, posix_spawnattr_setsigmask,
33688         posix_spawnattr_setflags, posix_spawnattr_destroy.
33689
33690 2009-01-25  Bruno Haible  <bruno@clisp.org>
33691
33692         * lib/glthread/threadlib.c: Include <stdlib.h>.
33693
33694 2009-01-25  Bruno Haible  <bruno@clisp.org>
33695
33696         * lib/glthread/threadlib.c (dummy): New declaration.
33697
33698 2009-01-25  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33701         multibyte characters also for the GB18030 encoding. Don't crash when
33702         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33703
33704 2009-01-25  Bruno Haible  <bruno@clisp.org>
33705
33706         Avoid redefining 'struct random_data' on OSF/1 5.1.
33707         * lib/stdlib.in.h: Include <random.h> if it exists.
33708         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33709         HAVE_RANDOM_H. Include <random.h> when testing whether
33710         'struct random_data' exists.
33711         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33712
33713 2009-01-25  Bruno Haible  <bruno@clisp.org>
33714
33715         Don't install charset.alias on MacOS X >= 10.3.
33716         * lib/localcharset.c (DARWIN7): New macro.
33717         (get_charset_aliases): Hardcode the result for Darwin7.
33718         * modules/localcharset (install-exec-local): Don't install
33719         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33720
33721 2009-01-25  Bruno Haible  <bruno@clisp.org>
33722
33723         Don't install charset.alias on mingw and Cygwin.
33724         * modules/localcharset (install-exec-local): Don't install
33725         charset.alias on mingw and Cygwin, if the file does not yet exist.
33726         The result for these platforms is hardcoded in localcharset.c.
33727
33728 2009-01-25  Bruno Haible  <bruno@clisp.org>
33729
33730         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33732         before requiring AC_USE_SYSTEM_EXTENSIONS.
33733
33734 2009-01-25  Jim Meyering  <meyering@redhat.com>
33735
33736         c-strtod: avoid warnings
33737         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33738         "assignment discards qualifiers from pointer target type" warnings.
33739
33740 2009-01-24  Bruno Haible  <bruno@clisp.org>
33741
33742         Add support for non-UTF-8 locales on MacOS X.
33743         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33744         canonical encodings. For Darwin 7 and newer, don't map traditional
33745         encodings to UTF-8.
33746         Reported by Vincent Lefevre <vincent@vinc17.org>
33747         at <http://savannah.gnu.org/bugs/?25235>.
33748
33749 2009-01-24  Bruno Haible  <bruno@clisp.org>
33750
33751         * doc/gnulib.texi (Obsolete modules): New section.
33752         Reported by Mike Frysinger <vapier@gentoo.org>.
33753
33754 2009-01-24  Bruno Haible  <bruno@clisp.org>
33755
33756         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33757         (%.dvi): New rule.
33758
33759 2009-01-24  Bruno Haible  <bruno@clisp.org>
33760
33761         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33762         Reported by Eric Blake.
33763
33764 2009-01-24  Bruno Haible  <bruno@clisp.org>
33765
33766         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33767         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33768         Reported by Gary V. Vaughan <gary@gnu.org>.
33769
33770 2009-01-24  Bruno Haible  <bruno@clisp.org>
33771
33772         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33773
33774 2009-01-23  Bruno Haible  <bruno@clisp.org>
33775
33776         Make c-strtod, c-strtold usable in libraries.
33777         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33778         (C_STRTOD): Call strdup instead of xstrdup.
33779         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33780         * modules/c-strtold (Depends-on): Likewise.
33781         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33782         * NEWS: Mention the change.
33783         Reported by Michael Gold <mgold@ncf.ca>.
33784
33785 2009-01-23  Jim Meyering  <meyering@redhat.com>
33786
33787         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33788         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33789         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33790
33791 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33792
33793         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33794         GNU CoreUtils.
33795         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33796         * modules/version-etc (Description): Update.
33797
33798 2009-01-22  Bruno Haible  <bruno@clisp.org>
33799
33800         Cache the C locale object.
33801         * lib/c-strtod.c (c_locale_cache): New variable.
33802         (c_locale): New function.
33803         (C_STRTOD): Use it, and don't call freelocale.
33804         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33805         Suggested by Paolo Bonzini.
33806
33807 2009-01-21  Bruno Haible  <bruno@clisp.org>
33808
33809         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33810         conditions other than overflow.
33811
33812 2009-01-21  Bruno Haible  <bruno@clisp.org>
33813
33814         * lib/c-strtod.c: Include errno.h.
33815         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33816         value from STRTOD_L and STRTOD.
33817
33818 2009-01-21  Bruno Haible  <bruno@clisp.org>
33819         and Jim Meyering  <meyering@redhat.com>
33820
33821         nanosleep: skip configure test (fail it) for apple universal builds
33822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33823         universal builds, assume that nanosleep does not work.
33824         * modules/nanosleep (Depends-on): Add multiarch.
33825
33826         mktime: skip configure test (fail it) for apple universal builds
33827         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33828         universal builds, assume that mktime does not work.
33829         * modules/mktime (Depends-on): Add multiarch.
33830
33831 2009-01-21  Eric Blake  <ebb9@byu.net>
33832
33833         multiarch: avoid expand-before-require warning
33834         * modules/multiarch (configure.ac): Require, rather than expand,
33835         gl_MULTIARCH.
33836         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33837         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33838         enforce that all clients require it.  Partial reversion of
33839         2008-12-29 patch.
33840
33841         error: avoid expand-before-require warning
33842         * modules/errno (configure.ac): Require, rather than expand,
33843         gl_HEADER_ERRNO_H.
33844         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33845         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33846         enforce that all clients require it.
33847
33848         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33849         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33850         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33851         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33852
33853 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33854
33855         Revert:
33856         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33857
33858         regex: do not depend on obsolete modules.
33859         * modules/regex: Remove memcmp and memmove.
33860
33861 2009-01-20  Bruno Haible  <bruno@clisp.org>
33862
33863         Make the 'link' module link on Windows NT 4.
33864         * lib/link.c (_WIN32_WINNT): Don't define.
33865         (CreateHardLinkFuncType): New type.
33866         (CreateHardLinkFunc, initialized): New variables.
33867         (initialize): New function.
33868         (link): Invoke CreateHardLink indirectly through the function pointer.
33869
33870 2009-01-20  Bruno Haible  <bruno@clisp.org>
33871
33872         Fix compilation failure on mingw.
33873         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33874
33875 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33876
33877         * doc/c-strtod.texi: Mention a couple of restrictions.
33878
33879 2009-01-20  Jim Meyering  <meyering@redhat.com>
33880
33881         gettimeofday: move more declarations out of functions
33882         * lib/gettimeofday.c: Move extern declarations of tzset and
33883         gmtime out of containing functions.  Prompted by Bruno Haible.
33884
33885 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33886
33887         regex: do not depend on obsolete modules.
33888         * modules/regex: Remove memcmp and memmove.
33889
33890 2009-01-19  Bruno Haible  <bruno@clisp.org>
33891
33892         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33893         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33894         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33895         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33896         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33897
33898 2009-01-19  Bruno Haible  <bruno@clisp.org>
33899
33900         * tests/test-link.c: Include <errno.h>.
33901         (main): Exit with code 77 when a hard link cannot be created due to
33902         the file system.
33903         * tests/test-link.sh: Skip test when a hard link cannot be created due
33904         to the file system.
33905         Suggested by Eric Blake.
33906
33907 2009-01-19  Martin Lambers  <marlam@marlam.de>
33908
33909         * modules/link-tests: New file.
33910         * tests/test-link.sh: New file.
33911         * tests/test-link.c: New file.
33912
33913 2009-01-19  Eric Blake  <ebb9@byu.net>
33914
33915         doc: mention another function added in cygwin 1.7.0
33916         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33917         Another new function in cygwin 1.7.
33918
33919 2009-01-19  Bruno Haible  <bruno@clisp.org>
33920
33921         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33922         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33923         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33924         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33925         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33926         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33928         * m4/md4.m4 (gl_MD4): Likewise.
33929         * m4/md5.m4 (gl_MD5): Likewise.
33930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33931         * m4/sha1.m4 (gl_SHA1): Likewise.
33932         * m4/sha256.m4 (gl_SHA256): Likewise.
33933         * m4/sha512.m4 (gl_SHA512): Likewise.
33934
33935 2009-01-19  Bruno Haible  <bruno@clisp.org>
33936
33937         * modules/uniname/uniname-tests (Depends-on): Add progname.
33938         * tests/uniname/test-uninames.c: Include progname.h.
33939         (main): Call set_program_name.
33940
33941         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33942         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33943         (main): Call set_program_name.
33944
33945         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33946         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33947         (main): Call set_program_name.
33948
33949         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33950         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33951         (main): Call set_program_name.
33952
33953         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33954         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33955         (main): Call set_program_name.
33956
33957         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33958         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33959         (main): Call set_program_name.
33960
33961         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33962         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33963         (main): Call set_program_name.
33964
33965         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33966         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33967         (main): Call set_program_name.
33968
33969         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33970         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33971         (main): Call set_program_name.
33972
33973 2009-01-19  Eric Blake  <ebb9@byu.net>
33974
33975         test-unistd: test previous patch
33976         * tests/test-unistd.c: Test *_FILENO macros.
33977
33978         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33979         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33980         Guarantee a definition.
33981         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33982         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33983         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33984         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33985         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33986         Likewise.
33987         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33988         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33989         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33990         Likewise.
33991         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33992         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33993         (STDERR_FILENO): Likewise.
33994         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33995         (STDERR_FILENO): Likewise.
33996         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33997         (STDERR_FILENO): Likewise.
33998         Reported by Elbert Pol.
33999
34000 2009-01-19  Eric Blake  <ebb9@byu.net>
34001
34002         doc: mention more functions added in cygwin 1.7.0
34003         * doc/posix-functions/abort.texi (abort): Update wording related
34004         to cygwin.
34005         * doc/posix-functions/daylight.texi (daylight): Likewise.
34006         * doc/posix-functions/optarg.texi (optarg): Likewise.
34007         * doc/posix-functions/optarg.texi (opterr): Likewise.
34008         * doc/posix-functions/optarg.texi (optind): Likewise.
34009         * doc/posix-functions/optarg.texi (optopt): Likewise.
34010         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34011         worked in 1.5.x, and was withdrawn in 1.7.
34012         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34013         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34014         cygwin versions.
34015         * doc/posix-functions/perror.texi (perror): Likewise.
34016         * doc/posix-functions/printf.texi (printf): Likewise.
34017         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34018         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34019         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34020         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34021         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34022         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34023         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34024         Likewise.
34025         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34026         Likewise.
34027         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34028         this function.
34029         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34030         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34031         Likewise.
34032         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34033         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34034         * doc/posix-functions/confstr.texi (confstr): Likewise.
34035         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34036         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34037         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34038         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34039         * doc/posix-functions/fputws.texi (fputws): Likewise.
34040         * doc/posix-functions/fwide.texi (fwide): Likewise.
34041         * doc/posix-functions/getwc.texi (getwc): Likewise.
34042         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34043         * doc/posix-functions/putwc.texi (putwc): Likewise.
34044         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34045         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34046         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34047         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34048         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34049         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34050         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34051         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34052         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34053         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34054         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34055
34056 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34057
34058         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34059         * lib/ioctl.c: Include <sys/ioctl.h>.
34060
34061 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34062
34063         * modules/getdate-tests (Depends-on): Add progname.
34064         * tests/test-getdate.c: Use progname module, to avoid link errors
34065         on non-glibc systems.
34066
34067 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34068
34069         * modules/filenamecat-tests (Depends-on): Add progname.
34070         * modules/fstrcmp-tests (Depends-on): Likewise.
34071
34072         * tests/test-filenamecat.c: Use progname module, to avoid link
34073         errors on non-glibc systems.
34074         * tests/test-fstrcmp.c: Likewise.
34075
34076 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34077
34078         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34079         * lib/gettimeofday.c: Move extern declaration out of function.
34080
34081 2009-01-18  Bruno Haible  <bruno@clisp.org>
34082
34083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34084         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34085         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34086
34087 2009-01-18  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/strftime.c (MEMPCPY): Remove unused macro.
34090         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34091
34092 2009-01-18  Martin Lambers  <marlam@marlam.de>
34093
34094         New module 'link'.
34095         * lib/unistd.in.h (link): New declaration.
34096         * lib/link.c: New file.
34097         * m4/link.m4: New file.
34098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34099         HAVE_LINK.
34100         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34101         * modules/link: New file.
34102         * doc/posix-functions/link.texi: Mention the new module.
34103
34104 2009-01-18  Bruno Haible  <bruno@clisp.org>
34105
34106         * tests/test-avltree_list.c (main): Call set_program_name.
34107         * tests/test-avltree_oset.c (main): Likewise.
34108         * tests/test-obstack-printf.c: Include progname.h.
34109         (main): Call set_program_name.
34110         * tests/test-quotearg.c: Include progname.h.
34111         (main): Call set_program_name.
34112         * tests/test-xmemdup0.c: Include progname.h.
34113         (main): Call set_program_name.
34114
34115 2009-01-18  Bruno Haible  <bruno@clisp.org>
34116
34117         New module 'alphasort'.
34118         * lib/dirent.in.h (alphasort): New declaration.
34119         * lib/alphasort.c: New file, from glibc with modifications.
34120         * m4/alphasort.m4: New file.
34121         * modules/alphasort: New file.
34122         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34123         HAVE_ALPHASORT.
34124         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34125         HAVE_ALPHASORT.
34126         * doc/posix-functions/alphasort.texi: Mention the new module and the
34127         portability problems.
34128
34129 2009-01-18  Bruno Haible  <bruno@clisp.org>
34130
34131         New module 'scandir'.
34132         * lib/dirent.in.h (scandir): New declaration.
34133         * lib/scandir.c: New file, from glibc with modifications.
34134         * m4/scandir.m4: New file.
34135         * modules/scandir: New file.
34136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34137         HAVE_SCANDIR.
34138         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34139         HAVE_SCANDIR.
34140         * doc/posix-functions/scandir.texi: Mention the new module and the
34141         portability problems.
34142
34143 2009-01-17  Bruno Haible  <bruno@clisp.org>
34144
34145         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34146         Update documentation.
34147         (func_remove_suffix): Escape all dots in the suffix. Update
34148         documentation.
34149         (func_filter_filelist): Update documentation.
34150         Reported by Ralf Wildenhues.
34151
34152 2009-01-17  Bruno Haible  <bruno@clisp.org>
34153
34154         * modules/dprintf-posix-tests: New file.
34155         * tests/test-dprintf-posix.sh: New file.
34156         * tests/test-dprintf-posix.c: New file.
34157
34158         New modules 'dprintf', 'dprintf-posix'.
34159         * lib/stdio.in.h (dprintf): New declaration.
34160         * lib/dprintf.c: New file.
34161         * m4/dprintf.m4: New file.
34162         * m4/dprintf-posix.m4: New file.
34163         * modules/dprintf: New file.
34164         * modules/dprintf-posix: New file.
34165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34166         HAVE_DPRINTF, REPLACE_DPRINTF.
34167         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34168         HAVE_DPRINTF, REPLACE_DPRINTF.
34169         * doc/posix-functions/dprintf.texi: Mention the new modules.
34170
34171 2009-01-17  Bruno Haible  <bruno@clisp.org>
34172
34173         * modules/vdprintf-posix-tests: New file.
34174         * tests/test-vdprintf-posix.sh: New file.
34175         * tests/test-vdprintf-posix.c: New file.
34176
34177         New modules 'vdprintf', 'vdprintf-posix'.
34178         * lib/stdio.in.h (vdprintf): New declaration.
34179         * lib/vdprintf.c: New file.
34180         * m4/vdprintf.m4: New file.
34181         * m4/vdprintf-posix.m4: New file.
34182         * modules/vdprintf: New file.
34183         * modules/vdprintf-posix: New file.
34184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34185         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34186         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34187         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34188         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34189
34190 2009-01-17  Bruno Haible  <bruno@clisp.org>
34191
34192         Fix replacement of fopen on mingw.
34193         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34194         mingw.
34195
34196 2009-01-17  Bruno Haible  <bruno@clisp.org>
34197
34198         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34199         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34200
34201 2009-01-17  Bruno Haible  <bruno@clisp.org>
34202
34203         Avoid test-fflush2.sh failure on mingw.
34204         * tests/test-fflush2.c: Include binary-io.h.
34205         (main): Put standard input into binary mode.
34206         * modules/fflush-tests (Depends-on): Add binary-io.
34207
34208 2009-01-17  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/wchar.in.h: In another particular situation, include only the
34211         system's <wchar.h> file.
34212         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34213         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34214         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34215
34216 2009-01-17  Bruno Haible  <bruno@clisp.org>
34217
34218         Support for stripping executables in --enable-relocatable.
34219         * build-aux/install-reloc: Expect one more argument, or an environment
34220         variable RELOC_STRIP_PROG. If set, strip the destination program and
34221         its wrapper.
34222         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34223         RELOC_STRIP_PROG.
34224         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34225         to set RELOCATABLE_STRIP.
34226         * NEWS: Mention the new Makefile requirement.
34227
34228 2009-01-17  Bruno Haible  <bruno@clisp.org>
34229
34230         * build-aux/install-reloc: Remove debugging information left over by
34231         C compiler on MacOS X.
34232
34233 2009-01-17  Bruno Haible  <bruno@clisp.org>
34234
34235         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34236         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34237         _NSGetExecutablePath.
34238
34239 2009-01-16  Jim Meyering  <meyering@redhat.com>
34240
34241         strerror: avoid warnings about discarding "const"
34242         * lib/strerror.c (rpl_strerror): Instead of returning a const
34243         string from each and every "case", use a variable, and add a single
34244         cast after the switch.
34245
34246 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34247
34248         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34249
34250 2009-01-16  Bruno Haible  <bruno@clisp.org>
34251
34252         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34253         array initializer syntax that also works in C++ mode.
34254         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34255
34256 2009-01-16  Jim Meyering  <meyering@redhat.com>
34257
34258         poll: suppress a warning
34259         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34260         to ignore "...unsigned expression < 0 is always false" warnings.
34261
34262 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34263
34264         poll: remove declarations of unused variables
34265         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34266         sockbuf and optlen.
34267
34268 2009-01-15  Bruno Haible  <bruno@clisp.org>
34269
34270         Make fflush-after-ungetc POSIX compliant on BSD systems.
34271         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34272         (clear_ungetc_buffer): Implement also for other systems.
34273         (rpl_fflush): On glibc systems, invoke
34274         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34275         clear_ungetc_buffer after fetching the stream's position, not before.
34276
34277 2009-01-15  Bruno Haible  <bruno@clisp.org>
34278
34279         Make fflush-after-ungetc POSIX compliant on glibc systems.
34280         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34281         after ungetc.
34282         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34283         (rpl_fflush): On glibc systems, simply call the system's fflush
34284         function after clearing the ungetc buffer.
34285         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34286         Instead, lseek only to the end of file, then use the system's fseeko
34287         for the rest. On glibc systems, reset the EOF indicator bit.
34288
34289 2009-01-15  Jim Meyering  <meyering@redhat.com>
34290
34291         openmp.m4: revert quote-adding change, for portability to older autoconf
34292         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34293         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34294         Simon Josefsson noticed the problem when using autoconf-2.61.
34295
34296 2009-01-15  Bruno Haible  <bruno@clisp.org>
34297
34298         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34299         * tests/test-fflush2.c (ASSERT): Always fail.
34300         (main): Add two tests for fflush() after ungetc(), taking into account
34301         the Austin Group's clarification.
34302         Suggested by Eric Blake.
34303
34304 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34305
34306         mktime.m4: remove K&R-style function prototypes
34307         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34308         for the Sun C++ compiler.
34309
34310 2009-01-14  Bruno Haible  <bruno@clisp.org>
34311
34312         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34313         while including <wchar.h>.
34314         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34315         the system's <wchar.h> file.
34316         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34317
34318 2009-01-14  Bruno Haible  <bruno@clisp.org>
34319
34320         * m4/csharp.m4: Don't mention gettext on the serial number line.
34321         * m4/csharpexec.m4: Likewise.
34322         * m4/eaccess.m4: Likewise.
34323         * m4/javaexec.m4: Likewise.
34324         * m4/sig_atomic_t.m4: Likewise.
34325         * m4/tmpdir.m4: Likewise.
34326         * m4/intldir.m4: Bump gettext version.
34327         * m4/lib-ld.m4: Likewise.
34328
34329 2009-01-14  Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/progname.c (set_program_name): Add more comments.
34332         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34333
34334 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34335
34336         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34337         were sys/stat.h does not define it.
34338
34339 2009-01-14  Jim Meyering  <meyering@redhat.com>
34340
34341         many *.m4 files: improve m4 quoting
34342         99% of this change was performed by running the following commands:
34343         git ls-files | grep '\.m4$' | xargs perl -pi \
34344           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34345           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34346           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34347           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34348         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34349         The remainder were to add Copyright dates, increment serial numbers,
34350         undo some changes in comments, exclude m4/intl.m4, and add quotes
34351         around the "1" in ",1" where the unusual spacing prohibited the
34352         above regexps from doing the job.  For more details, see
34353         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34354         * m4/acl.m4: Modified.
34355         * m4/afs.m4: Likewise.
34356         * m4/alloca.m4: Likewise.
34357         * m4/argp.m4: Likewise.
34358         * m4/argz.m4: Likewise.
34359         * m4/atexit.m4: Likewise.
34360         * m4/bison-i18n.m4: Likewise.
34361         * m4/bison.m4: Likewise.
34362         * m4/byteswap.m4: Likewise.
34363         * m4/c-stack.m4: Likewise.
34364         * m4/c-strtod.m4: Likewise.
34365         * m4/calloc.m4: Likewise.
34366         * m4/canonicalize-lgpl.m4: Likewise.
34367         * m4/chown.m4: Likewise.
34368         * m4/clock_time.m4: Likewise.
34369         * m4/codeset.m4: Likewise.
34370         * m4/copy-file.m4: Likewise.
34371         * m4/csharp.m4: Likewise.
34372         * m4/csharpcomp.m4: Likewise.
34373         * m4/csharpexec.m4: Likewise.
34374         * m4/d-ino.m4: Likewise.
34375         * m4/d-type.m4: Likewise.
34376         * m4/dirfd.m4: Likewise.
34377         * m4/double-slash-root.m4: Likewise.
34378         * m4/eaccess.m4: Likewise.
34379         * m4/eealloc.m4: Likewise.
34380         * m4/environ.m4: Likewise.
34381         * m4/errno_h.m4: Likewise.
34382         * m4/euidaccess.m4: Likewise.
34383         * m4/execute.m4: Likewise.
34384         * m4/fatal-signal.m4: Likewise.
34385         * m4/fchdir.m4: Likewise.
34386         * m4/fcntl_h.m4: Likewise.
34387         * m4/fileblocks.m4: Likewise.
34388         * m4/filenamecat.m4: Likewise.
34389         * m4/findprog.m4: Likewise.
34390         * m4/flexmember.m4: Likewise.
34391         * m4/fnmatch.m4: Likewise.
34392         * m4/fopen.m4: Likewise.
34393         * m4/fpending.m4: Likewise.
34394         * m4/fprintf-posix.m4: Likewise.
34395         * m4/free.m4: Likewise.
34396         * m4/frexp.m4: Likewise.
34397         * m4/frexpl.m4: Likewise.
34398         * m4/fsusage.m4: Likewise.
34399         * m4/ftruncate.m4: Likewise.
34400         * m4/gc-camellia.m4: Likewise.
34401         * m4/gc-random.m4: Likewise.
34402         * m4/gc.m4: Likewise.
34403         * m4/getaddrinfo.m4: Likewise.
34404         * m4/getcwd-abort-bug.m4: Likewise.
34405         * m4/getcwd-path-max.m4: Likewise.
34406         * m4/getdate.m4: Likewise.
34407         * m4/getdomainname.m4: Likewise.
34408         * m4/getgroups.m4: Likewise.
34409         * m4/gethostname.m4: Likewise.
34410         * m4/gethrxtime.m4: Likewise.
34411         * m4/getline.m4: Likewise.
34412         * m4/getloadavg.m4: Likewise.
34413         * m4/getndelim2.m4: Likewise.
34414         * m4/getpass.m4: Likewise.
34415         * m4/gettext.m4: Likewise.
34416         * m4/gettime.m4: Likewise.
34417         * m4/gettimeofday.m4: Likewise.
34418         * m4/gnulib-common.m4: Likewise.
34419         * m4/group-member.m4: Likewise.
34420         * m4/host-os.m4: Likewise.
34421         * m4/iconv.m4: Likewise.
34422         * m4/iconv_open.m4: Likewise.
34423         * m4/inet_ntop.m4: Likewise.
34424         * m4/inet_pton.m4: Likewise.
34425         * m4/inline.m4: Likewise.
34426         * m4/intldir.m4: Likewise.
34427         * m4/intlmacosx.m4: Likewise.
34428         * m4/intmax.m4: Likewise.
34429         * m4/intmax_t.m4: Likewise.
34430         * m4/inttypes.m4: Likewise.
34431         * m4/inttypes_h.m4: Likewise.
34432         * m4/inttypes-pri.m4: Likewise.
34433         * m4/isapipe.m4: Likewise.
34434         * m4/isnand.m4: Likewise.
34435         * m4/isnanf.m4: Likewise.
34436         * m4/isnanl.m4: Likewise.
34437         * m4/javacomp.m4: Likewise.
34438         * m4/javaexec.m4: Likewise.
34439         * m4/jm-winsz1.m4: Likewise.
34440         * m4/jm-winsz2.m4: Likewise.
34441         * m4/lchown.m4: Likewise.
34442         * m4/lcmessage.m4: Likewise.
34443         * m4/ldexpl.m4: Likewise.
34444         * m4/lib-ld.m4: Likewise.
34445         * m4/lib-link.m4: Likewise.
34446         * m4/libsigsegv.m4: Likewise.
34447         * m4/link-follow.m4: Likewise.
34448         * m4/localcharset.m4: Likewise.
34449         * m4/locale-fr.m4: Likewise.
34450         * m4/locale-ja.m4: Likewise.
34451         * m4/locale-tr.m4: Likewise.
34452         * m4/locale-zh.m4: Likewise.
34453         * m4/lock.m4: Likewise.
34454         * m4/longlong.m4: Likewise.
34455         * m4/ls-mntd-fs.m4: Likewise.
34456         * m4/lstat.m4: Likewise.
34457         * m4/malloc.m4: Likewise.
34458         * m4/mathl.m4: Likewise.
34459         * m4/mbrtowc.m4: Likewise.
34460         * m4/mbstate_t.m4: Likewise.
34461         * m4/mbswidth.m4: Likewise.
34462         * m4/memchr.m4: Likewise.
34463         * m4/memcmp.m4: Likewise.
34464         * m4/memcpy.m4: Likewise.
34465         * m4/memmem.m4: Likewise.
34466         * m4/memmove.m4: Likewise.
34467         * m4/mempcpy.m4: Likewise.
34468         * m4/memrchr.m4: Likewise.
34469         * m4/memset.m4: Likewise.
34470         * m4/minmax.m4: Likewise.
34471         * m4/mkdir-slash.m4: Likewise.
34472         * m4/mkdtemp.m4: Likewise.
34473         * m4/mktime.m4: Likewise.
34474         * m4/mmap-anon.m4: Likewise.
34475         * m4/mountlist.m4: Likewise.
34476         * m4/nanosleep.m4: Likewise.
34477         * m4/nls.m4: Likewise.
34478         * m4/nocrash.m4: Likewise.
34479         * m4/open.m4: Likewise.
34480         * m4/openat.m4: Likewise.
34481         * m4/openmp.m4: Likewise.
34482         * m4/pathmax.m4: Likewise.
34483         * m4/perl.m4: Likewise.
34484         * m4/physmem.m4: Likewise.
34485         * m4/pipe.m4: Likewise.
34486         * m4/po.m4: Likewise.
34487         * m4/poll.m4: Likewise.
34488         * m4/posixtm.m4: Likewise.
34489         * m4/posixver.m4: Likewise.
34490         * m4/printf-frexp.m4: Likewise.
34491         * m4/printf-frexpl.m4: Likewise.
34492         * m4/printf-posix.m4: Likewise.
34493         * m4/printf-posix-rpl.m4: Likewise.
34494         * m4/printf.m4: Likewise.
34495         * m4/progtest.m4: Likewise.
34496         * m4/putenv.m4: Likewise.
34497         * m4/readline.m4: Likewise.
34498         * m4/readlink.m4: Likewise.
34499         * m4/readutmp.m4: Likewise.
34500         * m4/realloc.m4: Likewise.
34501         * m4/regex.m4: Likewise.
34502         * m4/relocatable.m4: Likewise.
34503         * m4/relocatable-lib.m4: Likewise.
34504         * m4/rename-dest-slash.m4: Likewise.
34505         * m4/rename.m4: Likewise.
34506         * m4/rmdir-errno.m4: Likewise.
34507         * m4/rmdir.m4: Likewise.
34508         * m4/roundf.m4: Likewise.
34509         * m4/roundl.m4: Likewise.
34510         * m4/rpmatch.m4: Likewise.
34511         * m4/save-cwd.m4: Likewise.
34512         * m4/selinux-selinux-h.m4: Likewise.
34513         * m4/setenv.m4: Likewise.
34514         * m4/settime.m4: Likewise.
34515         * m4/sig2str.m4: Likewise.
34516         * m4/sig_atomic_t.m4: Likewise.
34517         * m4/signalblocking.m4: Likewise.
34518         * m4/signbit.m4: Likewise.
34519         * m4/sigpipe.m4: Likewise.
34520         * m4/sockets.m4: Likewise.
34521         * m4/sockpfaf.m4: Likewise.
34522         * m4/st_dm_mode.m4: Likewise.
34523         * m4/stat-time.m4: Likewise.
34524         * m4/stdbool.m4: Likewise.
34525         * m4/stdint.m4: Likewise.
34526         * m4/stdint_h.m4: Likewise.
34527         * m4/stpcpy.m4: Likewise.
34528         * m4/stpncpy.m4: Likewise.
34529         * m4/strcase.m4: Likewise.
34530         * m4/strchrnul.m4: Likewise.
34531         * m4/strcspn.m4: Likewise.
34532         * m4/strdup.m4: Likewise.
34533         * m4/strftime.m4: Likewise.
34534         * m4/strndup.m4: Likewise.
34535         * m4/strnlen.m4: Likewise.
34536         * m4/strpbrk.m4: Likewise.
34537         * m4/strptime.m4: Likewise.
34538         * m4/strsep.m4: Likewise.
34539         * m4/strtod.m4: Likewise.
34540         * m4/strtoimax.m4: Likewise.
34541         * m4/strtok_r.m4: Likewise.
34542         * m4/strtol.m4: Likewise.
34543         * m4/strtoll.m4: Likewise.
34544         * m4/strtoul.m4: Likewise.
34545         * m4/strtoull.m4: Likewise.
34546         * m4/strtoumax.m4: Likewise.
34547         * m4/strverscmp.m4: Likewise.
34548         * m4/threadlib.m4: Likewise.
34549         * m4/timegm.m4: Likewise.
34550         * m4/tm_gmtoff.m4: Likewise.
34551         * m4/tmpdir.m4: Likewise.
34552         * m4/tmpfile.m4: Likewise.
34553         * m4/tzset.m4: Likewise.
34554         * m4/uintmax_t.m4: Likewise.
34555         * m4/unlinkdir.m4: Likewise.
34556         * m4/unlocked-io.m4: Likewise.
34557         * m4/uptime.m4: Likewise.
34558         * m4/userspec.m4: Likewise.
34559         * m4/utimbuf.m4: Likewise.
34560         * m4/utime.m4: Likewise.
34561         * m4/utimes-null.m4: Likewise.
34562         * m4/utimes.m4: Likewise.
34563         * m4/vararrays.m4: Likewise.
34564         * m4/vasnprintf.m4: Likewise.
34565         * m4/vfprintf-posix.m4: Likewise.
34566         * m4/vprintf-posix.m4: Likewise.
34567         * m4/wait-process.m4: Likewise.
34568         * m4/wchar_t.m4: Likewise.
34569         * m4/wint_t.m4: Likewise.
34570         * m4/write-any-file.m4: Likewise.
34571         * m4/yield.m4: Likewise.
34572
34573 2009-01-13  Bruno Haible  <bruno@clisp.org>
34574
34575         Avoid test-copy-file.sh failures when ACL support insufficient.
34576         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34577         TESTS_ENVIRONMENT.
34578         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34579         Reported by Jim Meyering.
34580
34581 2009-01-13  Bruno Haible  <bruno@clisp.org>
34582
34583         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34584         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34585         * modules/unistdio/u8-printf-parse (Files): Likewise.
34586         * modules/unistdio/u32-printf-parse (Files): Likewise.
34587         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34588
34589 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34590
34591         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34592         and m4/inttypes_h.m4 too.
34593
34594 2009-01-12  Eric Blake  <ebb9@byu.net>
34595
34596         tests: IRIX 6.2 cc can't compile -0.0 into .data
34597         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34598         rather than at compile-time.
34599         * tests/test-floorl.c (minus_zero): Likewise.
34600         * tests/test-frexpl.c (minus_zero): Likewise.
34601         * tests/test-isnan.c (minus_zerol): Likewise.
34602         * tests/test-isnanl.h (minus_zero): Likewise.
34603         * tests/test-ldexpl.c (minus_zero): Likewise.
34604         * tests/test-roundl.c (minus_zero): Likewise.
34605         * tests/test-signbit.c (minus_zerol): Likewise.
34606         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34607         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34608         * tests/test-truncl.c (minus_zero): Likewise.
34609         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34610         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34611         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34612
34613 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34614
34615         regex: fix glibc bug 9697
34616         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34617         handling.
34618
34619 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34620
34621         regex: fix glibc bug 697
34622         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34623         being NULL also if there are no backreferences.
34624
34625 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34626
34627         regex: merge glibc changes
34628         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34629         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34630         re_string_skip_chars, re_string_reconstruct): Likewise.
34631         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34632
34633 2009-01-07  Jim Meyering  <meyering@redhat.com>
34634
34635         poll: filter through cppi
34636         * lib/poll.c: Indent cpp directives to reflect nesting.
34637
34638 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34639
34640         poll: don't return uninitialized
34641         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34642
34643 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34644
34645         avoid compile failure on AIX 6.1
34646         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34647         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34648
34649 2009-01-04  Jim Meyering  <meyering@redhat.com>
34650
34651         remove duplicate inclusion of <stdio.h>
34652         * tests/test-fprintf-posix.c: Likewise.
34653         * tests/test-printf-posix.c: Likewise.
34654         * tests/test-snprintf-posix.c: Likewise.
34655         * tests/test-sprintf-posix.c: Likewise.
34656         * tests/test-vasprintf-posix.c: Likewise.
34657         * tests/test-vfprintf-posix.c: Likewise.
34658         * tests/test-vprintf-posix.c: Likewise.
34659         * tests/test-vsnprintf-posix.c: Likewise.
34660         * tests/test-vsprintf-posix.c: Likewise.
34661
34662 2009-01-03  Jim Meyering  <meyering@redhat.com>
34663
34664         gnulib-tool: fix sed-based filtering
34665         * gnulib-tool (func_filter_filelist): Remove extra backslash
34666         in sed_fff_filter definition.
34667
34668 2009-01-02  Jim Meyering  <meyering@redhat.com>
34669
34670         strftime: avoid compilation failure on Solaris 2.6
34671         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34672         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34673         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34674         be available.  Reported by Tom G. Christensen.  Details in
34675         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34676
34677 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34678             Bruno Haible  <bruno@clisp.org>
34679
34680         Speed up gnulib-tool by doing more string processing through shell
34681         built-ins.
34682         * gnulib-tool (fast_func_append): New variable.
34683         (func_remove_prefix, func_remove_suffix): New functions.
34684         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34685         (func_filter_filelist): New function.
34686         (func_get_dependencies): Use func_remove_suffix instead of sed.
34687         (func_get_automake_snippet): Use func_filter_filelist instead of a
34688         subshell and sed invocation.
34689
34690 2009-01-01  Bruno Haible  <bruno@clisp.org>
34691
34692         Fix a security bug.
34693         * gnulib-tool (func_import, import, update): Don't allow the characters
34694         '"', '$', '`', '\' in macro arguments that become part of commands that
34695         are evaluated.
34696
34697 2009-01-01  Bruno Haible  <bruno@clisp.org>
34698
34699         * gnulib-tool (func_reset_sigpipe): Add more comments.
34700
34701 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34702
34703         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34704         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34705         already know the answer.
34706
34707 2009-01-01  Jim Meyering  <meyering@redhat.com>
34708
34709         * lib/version-etc.c (version_etc_va): Update copyright year.
34710
34711 2008-12-30  Bruno Haible  <bruno@clisp.org>
34712
34713         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34714         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34715         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34716
34717 2008-12-29  Eric Blake  <ebb9@byu.net>
34718
34719         multiarch: avoid autoconf AC_REQUIRE bug
34720         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34721         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34722         2.63 and older.
34723         Reported by Bruno Haible, and analyzed in
34724         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34725
34726 2008-12-29  Bruno Haible  <bruno@clisp.org>
34727
34728         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34729         files in subdirectories correctly.
34730         Reported by Ralf Wildenhues.
34731
34732 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34733
34734         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34735         rather than 'join FILE -', for Solaris join.
34736
34737 2008-12-29  Bruno Haible  <bruno@clisp.org>
34738
34739         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34740         quoting.
34741         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34742         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34743         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34744         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34745         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34746         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34747         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34748         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34749         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34750         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34751         * m4/nls.m4 (AM_NLS): Likewise.
34752         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34753         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34754         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34755         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34756         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34757         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34758         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34759         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34760         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34761         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34762         * m4/xsize.m4 (gl_XSIZE): Likewise.
34763         Suggested by Jim Meyering.
34764
34765 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34766
34767         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34768         * lib/parse-duration.c: use a switch instead of cascading if's.
34769
34770 2008-12-29  Eric Blake  <ebb9@byu.net>
34771
34772         wchar.h: supply WEOF on Irix 5.3
34773         * lib/wchar.in.h (wint_t): Also supply WEOF.
34774         * lib/wctype.in.h (wint_t): Likewise.
34775         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34776         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34777         Reported by Tom G. Christensen.
34778
34779 2008-12-26  Bruno Haible  <bruno@clisp.org>
34780
34781         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34782         i486, i586, i686.
34783
34784 2008-12-26  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34787
34788 2008-12-26  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34791         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34792         not __STDC_CONSTANT_MACROS.
34793         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34794
34795 2008-12-25  Bruno Haible  <bruno@clisp.org>
34796
34797         Add support for universal builds to vasnprintf.
34798         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34799         universal builds, guess no.
34800         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34801         * modules/vasprintf-posix (Depends-on): Likewise.
34802         * modules/fprintf-posix (Depends-on): Likewise.
34803         * modules/vfprintf-posix (Depends-on): Likewise.
34804         * modules/snprintf-posix (Depends-on): Likewise.
34805         * modules/vsnprintf-posix (Depends-on): Likewise.
34806         * modules/sprintf-posix (Depends-on): Likewise.
34807         * modules/vsprintf-posix (Depends-on): Likewise.
34808         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34809         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34810         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34812         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34813         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34814         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34815
34816         Add support for universal builds to <inttypes.h>.
34817         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34818         _SCNu64_PREFIX): In Apple
34819         universal builds, define directly, using _LP64.
34820         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34821         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34822         * modules/inttypes (Depends-on): Add multiarch.
34823         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34824
34825         Add support for universal builds to <stdint.h>.
34826         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34827         universal builds, define directly, using _LP64.
34828         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34829         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34830         and size_t.
34831         * modules/stdint (Depends-on): Add multiarch.
34832         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34833
34834         New module 'multiarch'.
34835         * modules/multiarch: New file.
34836         * m4/multiarch.m4: New file.
34837
34838 2008-12-25  Bruno Haible  <bruno@clisp.org>
34839
34840         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34841
34842 2008-12-25  Bruno Haible  <bruno@clisp.org>
34843
34844         * modules/btowc (License): Relicense under LGPLv2+.
34845         * modules/mbsinit (License): Likewise.
34846         * modules/mbrtowc (License): Likewise.
34847         * modules/wcrtomb (License): Likewise.
34848         * modules/streq (License): Likewise.
34849         Reported by David Lutterkort <lutter@redhat.com>.
34850
34851 2008-12-23  Bruno Haible  <bruno@clisp.org>
34852
34853         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34854
34855 2008-12-23  Bruno Haible  <bruno@clisp.org>
34856
34857         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34859         GETADDRINFO_LIB, not in LIBS.
34860         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34861         * modules/canon-host (Link): Likewise.
34862         * NEWS: Mention the change.
34863         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34864         GETADDRINFO_LIB.
34865
34866 2008-12-22  Bruno Haible  <bruno@clisp.org>
34867
34868         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34869         * doc/posix-functions/iswalpha_l.texi: Likewise.
34870         * doc/posix-functions/iswblank_l.texi: Likewise.
34871         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34872         * doc/posix-functions/iswctype_l.texi: Likewise.
34873         * doc/posix-functions/iswdigit_l.texi: Likewise.
34874         * doc/posix-functions/iswgraph_l.texi: Likewise.
34875         * doc/posix-functions/iswlower_l.texi: Likewise.
34876         * doc/posix-functions/iswprint_l.texi: Likewise.
34877         * doc/posix-functions/iswpunct_l.texi: Likewise.
34878         * doc/posix-functions/iswspace_l.texi: Likewise.
34879         * doc/posix-functions/iswupper_l.texi: Likewise.
34880         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34881         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34882         * doc/posix-functions/open_wmemstream.texi: Likewise.
34883         * doc/posix-functions/swscanf.texi: Likewise.
34884         * doc/posix-functions/towctrans_l.texi: Likewise.
34885         * doc/posix-functions/towlower.texi: Likewise.
34886         * doc/posix-functions/towlower_l.texi: Likewise.
34887         * doc/posix-functions/towupper.texi: Likewise.
34888         * doc/posix-functions/towupper_l.texi: Likewise.
34889         * doc/posix-functions/vfwprintf.texi: Likewise.
34890         * doc/posix-functions/vfwscanf.texi: Likewise.
34891         * doc/posix-functions/vswscanf.texi: Likewise.
34892         * doc/posix-functions/vwprintf.texi: Likewise.
34893         * doc/posix-functions/vwscanf.texi: Likewise.
34894         * doc/posix-functions/wcpcpy.texi: Likewise.
34895         * doc/posix-functions/wcpncpy.texi: Likewise.
34896         * doc/posix-functions/wcscasecmp.texi: Likewise.
34897         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34898         * doc/posix-functions/wcscoll_l.texi: Likewise.
34899         * doc/posix-functions/wcsdup.texi: Likewise.
34900         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34901         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34902         * doc/posix-functions/wcsnlen.texi: Likewise.
34903         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34904         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34905         * doc/posix-functions/wctrans_l.texi: Likewise.
34906         * doc/posix-functions/wctype_l.texi: Likewise.
34907         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34908         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34909         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34910         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34911         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34912         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34913         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34914         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34915         * doc/glibc-functions/wcschrnul.texi: Likewise.
34916         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34917         * doc/glibc-functions/wcstod_l.texi: Likewise.
34918         * doc/glibc-functions/wcstof_l.texi: Likewise.
34919         * doc/glibc-functions/wcstol_l.texi: Likewise.
34920         * doc/glibc-functions/wcstold_l.texi: Likewise.
34921         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34922         * doc/glibc-functions/wcstoq.texi: Likewise.
34923         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34924         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34925         * doc/glibc-functions/wcstouq.texi: Likewise.
34926         * doc/glibc-functions/wmempcpy.texi: Likewise.
34927
34928 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34929             Eric Blake  <ebb9@byu.net>
34930             Paolo Bonzini  <bonzini@gnu.org>
34931             Bruno Haible  <bruno@clisp.org>
34932
34933         Make c-stack work on Haiku.
34934         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34935         (c_stack_action): Use SA_ONSTACK flag.
34936
34937 2008-12-22  Bruno Haible  <bruno@clisp.org>
34938
34939         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34940
34941 2008-12-22  Bruno Haible  <bruno@clisp.org>
34942
34943         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34944         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34945         being overridden.
34946         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34947         New macros.
34948         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34950         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34951         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34952
34953 2008-12-22  Bruno Haible  <bruno@clisp.org>
34954
34955         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34956         from test code.
34957
34958 2008-12-22  Eric Blake  <ebb9@byu.net>
34959
34960         Avoid gcc warnings on cygwin.
34961         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34962         Avoid unused variable.
34963         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34964         Likewise.
34965
34966 2008-12-22  Bruno Haible  <bruno@clisp.org>
34967
34968         Remove HAVE_MBRTOWC conditionals.
34969         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34970         (mbscasecmp): Assume mbrtowc function.
34971         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34972         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34973         * lib/mbschr.c: Include mbuiter.h unconditionally.
34974         (mbschr): Assume mbrtowc function.
34975         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34976         (mbscspn): Assume mbrtowc function.
34977         * lib/mbslen.c: Include mbuiter.h unconditionally.
34978         (mbslen): Assume mbrtowc function.
34979         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34980         (mbsncasecmp): Assume mbrtowc function.
34981         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34982         (mbsnlen): Assume mbrtowc function.
34983         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34984         (mbspbrk): Assume mbrtowc function.
34985         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34986         (mbspcasecmp): Assume mbrtowc function.
34987         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34988         (mbsrchr): Assume mbrtowc function.
34989         * lib/mbssep.c: Include mbuiter.h unconditionally.
34990         (mbssep): Assume mbrtowc function.
34991         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34992         (mbsspn): Assume mbrtowc function.
34993         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34994         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34995         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34996         (mbstok_r): Assume mbrtowc function.
34997         * lib/propername.c: Include mbuiter.h unconditionally.
34998         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34999         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35000         (trim2): Assume mbrtowc function.
35001         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35002         (mbsnwidth): Assume mbrtowc function.
35003         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35004         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35005         fallback definitions.
35006         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35007
35008 2008-12-22  Bruno Haible  <bruno@clisp.org>
35009
35010         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35011
35012 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35013
35014         * modules/regex: Request emulations for the mb*/wc* functions we need.
35015         * m4/regex.m4: Don't look for those functions here.
35016         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35017
35018 2008-12-22  Bruno Haible  <bruno@clisp.org>
35019
35020         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35021
35022 2008-12-21  Bruno Haible  <bruno@clisp.org>
35023
35024         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35025         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35026         (Include): Remove conditionalization.
35027         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35028         (Include): Remove conditionalization.
35029         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35030         (Include): Remove conditionalization.
35031         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35032         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35033         * NEWS: Mention the change.
35034         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35035         via Sergey Poznyakoff <gray@gnu.org.ua>.
35036
35037 2008-12-21  Bruno Haible  <bruno@clisp.org>
35038
35039         * MODULES.html.sh (Extended multibyte and wide character utilities
35040         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35041         wcrtomb, wcsrtombs.
35042         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35043         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35044         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35045         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35046
35047 2008-12-21  Bruno Haible  <bruno@clisp.org>
35048
35049         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35050
35051 2008-12-21  Bruno Haible  <bruno@clisp.org>
35052
35053         * modules/wcsnrtombs-tests: New file.
35054         * tests/test-wcsnrtombs1.sh: New file.
35055         * tests/test-wcsnrtombs2.sh: New file.
35056         * tests/test-wcsnrtombs3.sh: New file.
35057         * tests/test-wcsnrtombs4.sh: New file.
35058         * tests/test-wcsnrtombs.c: New file.
35059
35060         New module 'wcsnrtombs'.
35061         * lib/wchar.in.h (wcsnrtombs): New declaration.
35062         * lib/wcsnrtombs.c: New file.
35063         * lib/wcsrtombs-state.c: New file.
35064         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35065         (internal_state): Remove variable.
35066         * m4/wcsnrtombs.m4: New file.
35067         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35068         compilation units.
35069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35070         HAVE_WCSNRTOMBS.
35071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35072         HAVE_WCSNRTOMBS.
35073         * modules/wcsnrtombs: New file.
35074         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35075         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35076
35077 2008-12-21  Bruno Haible  <bruno@clisp.org>
35078
35079         * modules/wcsrtombs-tests: New file.
35080         * tests/test-wcsrtombs1.sh: New file.
35081         * tests/test-wcsrtombs2.sh: New file.
35082         * tests/test-wcsrtombs3.sh: New file.
35083         * tests/test-wcsrtombs4.sh: New file.
35084         * tests/test-wcsrtombs.c: New file.
35085
35086         New module 'wcsrtombs'.
35087         * lib/wchar.in.h (wcsrtombs): New declaration.
35088         * lib/wcsrtombs.c: New file.
35089         * m4/wcsrtombs.m4: New file.
35090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35091         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35093         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35094         * modules/wcsrtombs: New file.
35095         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35096         bugs.
35097
35098 2008-12-21  Bruno Haible  <bruno@clisp.org>
35099
35100         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35101         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35103         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35104         if not correct.
35105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35106         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35107         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35108         m4/locale-zh.m4, m4/codeset.m4.
35109         * doc/posix-functions/wcrtomb.texi: Document the bug.
35110
35111 2008-12-21  Bruno Haible  <bruno@clisp.org>
35112
35113         Work around a btowc() bug on IRIX 6.5.
35114         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35115         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35116         REPLACE_WTOBC if not.
35117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35118         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35119         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35120
35121 2008-12-21  Bruno Haible  <bruno@clisp.org>
35122
35123         * modules/wcrtomb-tests: New file.
35124         * tests/test-wcrtomb.sh: New file.
35125         * tests/test-wcrtomb.c: New file.
35126
35127         New module 'wcrtomb'.
35128         * lib/wchar.in.h (wcrtomb): New declaration.
35129         * lib/wcrtomb.c: New file.
35130         * m4/wcrtomb.m4: New file.
35131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35132         HAVE_WCRTOMB.
35133         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35134         HAVE_WCRTOMB.
35135         * modules/wcrtomb: New file.
35136         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35137
35138 2008-12-21  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35141         * modules/mbsrtowcs (Files): Likewise.
35142         * modules/wctob (Files): Likewise.
35143         * modules/c-strcase-tests (Files): Likewise.
35144         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35145         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35146         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35147         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35148         * modules/vasnprintf-posix-tests (Files): Likewise.
35149
35150 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35151
35152         gitlog-to-changelog: pass all command-line arguments to git-log
35153         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35154         it is sometimes convenient to filter the commits in various ways.
35155         gitlog-to-changelog only allows --since to specify a start date,
35156         but git-log itself supports many other filtering mechanisms.
35157         At the moment, I want to filter by branch name.  Rather than
35158         adding a --branch option to gitlog-to-changelog, it seems more
35159         flexible to simply pass all options directly to git-log and let
35160         git do the work.  Notice that this effectively makes --since a
35161         redundant option for gitlog-to-changelog, but removing it would
35162         require current usage to change since calls would then require
35163         an additional '--'.
35164
35165 2008-12-21  Bruno Haible  <bruno@clisp.org>
35166
35167         * modules/mbsnrtowcs-tests: New file.
35168         * tests/test-mbsnrtowcs1.sh: New file.
35169         * tests/test-mbsnrtowcs2.sh: New file.
35170         * tests/test-mbsnrtowcs3.sh: New file.
35171         * tests/test-mbsnrtowcs4.sh: New file.
35172         * tests/test-mbsnrtowcs.c: New file.
35173
35174         New module 'mbsnrtowcs'.
35175         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35176         * lib/mbsnrtowcs.c: New file.
35177         * lib/mbsrtowcs-state.c: New file.
35178         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35179         (internal_state): Remove variable.
35180         * m4/mbsnrtowcs.m4: New file.
35181         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35182         compilation units.
35183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35184         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35185         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35186         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35187         * modules/mbsnrtowcs: New file.
35188         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35189         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35190         portability problem.
35191
35192 2008-12-21  Bruno Haible  <bruno@clisp.org>
35193
35194         Work around mbsrtowcs bug.
35195         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35196         (gl_FUNC_MBSRTOWCS): Invoke it.
35197         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35198         m4/locale-zh.m4.
35199         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35200
35201 2008-12-21  Bruno Haible  <bruno@clisp.org>
35202
35203         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35204
35205 2008-12-21  Bruno Haible  <bruno@clisp.org>
35206
35207         Update doc for AIX.
35208         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35209         16-bit wchar_t type.
35210         * doc/posix-functions/btowc.texi: Likewise.
35211         * doc/posix-functions/fgetwc.texi: Likewise.
35212         * doc/posix-functions/fgetws.texi: Likewise.
35213         * doc/posix-functions/fputwc.texi: Likewise.
35214         * doc/posix-functions/fputws.texi: Likewise.
35215         * doc/posix-functions/fwide.texi: Likewise.
35216         * doc/posix-functions/fwprintf.texi: Likewise.
35217         * doc/posix-functions/fwscanf.texi: Likewise.
35218         * doc/posix-functions/getwchar.texi: Likewise.
35219         * doc/posix-functions/getwc.texi: Likewise.
35220         * doc/posix-functions/iswalnum.texi: Likewise.
35221         * doc/posix-functions/iswalpha.texi: Likewise.
35222         * doc/posix-functions/iswblank.texi: Likewise.
35223         * doc/posix-functions/iswcntrl.texi: Likewise.
35224         * doc/posix-functions/iswctype.texi: Likewise.
35225         * doc/posix-functions/iswdigit.texi: Likewise.
35226         * doc/posix-functions/iswgraph.texi: Likewise.
35227         * doc/posix-functions/iswlower.texi: Likewise.
35228         * doc/posix-functions/iswprint.texi: Likewise.
35229         * doc/posix-functions/iswpunct.texi: Likewise.
35230         * doc/posix-functions/iswspace.texi: Likewise.
35231         * doc/posix-functions/iswupper.texi: Likewise.
35232         * doc/posix-functions/iswxdigit.texi: Likewise.
35233         * doc/posix-functions/mbrtowc.texi: Likewise.
35234         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35235         * doc/posix-functions/mbstowcs.texi: Likewise.
35236         * doc/posix-functions/mbtowc.texi: Likewise.
35237         * doc/posix-functions/putwchar.texi: Likewise.
35238         * doc/posix-functions/putwc.texi: Likewise.
35239         * doc/posix-functions/swprintf.texi: Likewise.
35240         * doc/posix-functions/tolower.texi: Likewise.
35241         * doc/posix-functions/toupper.texi: Likewise.
35242         * doc/posix-functions/towctrans.texi: Likewise.
35243         * doc/posix-functions/ungetwc.texi: Likewise.
35244         * doc/posix-functions/vswprintf.texi: Likewise.
35245         * doc/posix-functions/wcrtomb.texi: Likewise.
35246         * doc/posix-functions/wcscat.texi: Likewise.
35247         * doc/posix-functions/wcschr.texi: Likewise.
35248         * doc/posix-functions/wcscmp.texi: Likewise.
35249         * doc/posix-functions/wcscoll.texi: Likewise.
35250         * doc/posix-functions/wcscpy.texi: Likewise.
35251         * doc/posix-functions/wcscspn.texi: Likewise.
35252         * doc/posix-functions/wcsftime.texi: Likewise.
35253         * doc/posix-functions/wcslen.texi: Likewise.
35254         * doc/posix-functions/wcsncat.texi: Likewise.
35255         * doc/posix-functions/wcsncmp.texi: Likewise.
35256         * doc/posix-functions/wcsncpy.texi: Likewise.
35257         * doc/posix-functions/wcspbrk.texi: Likewise.
35258         * doc/posix-functions/wcsrchr.texi: Likewise.
35259         * doc/posix-functions/wcsrtombs.texi: Likewise.
35260         * doc/posix-functions/wcsspn.texi: Likewise.
35261         * doc/posix-functions/wcsstr.texi: Likewise.
35262         * doc/posix-functions/wcstod.texi: Likewise.
35263         * doc/posix-functions/wcstof.texi: Likewise.
35264         * doc/posix-functions/wcstoimax.texi: Likewise.
35265         * doc/posix-functions/wcstok.texi: Likewise.
35266         * doc/posix-functions/wcstold.texi: Likewise.
35267         * doc/posix-functions/wcstoll.texi: Likewise.
35268         * doc/posix-functions/wcstol.texi: Likewise.
35269         * doc/posix-functions/wcstombs.texi: Likewise.
35270         * doc/posix-functions/wcstoull.texi: Likewise.
35271         * doc/posix-functions/wcstoul.texi: Likewise.
35272         * doc/posix-functions/wcstoumax.texi: Likewise.
35273         * doc/posix-functions/wcswidth.texi: Likewise.
35274         * doc/posix-functions/wcsxfrm.texi: Likewise.
35275         * doc/posix-functions/wctob.texi: Likewise.
35276         * doc/posix-functions/wctomb.texi: Likewise.
35277         * doc/posix-functions/wctrans.texi: Likewise.
35278         * doc/posix-functions/wctype.texi: Likewise.
35279         * doc/posix-functions/wcwidth.texi: Likewise.
35280         * doc/posix-functions/wmemchr.texi: Likewise.
35281         * doc/posix-functions/wmemcmp.texi: Likewise.
35282         * doc/posix-functions/wmemcpy.texi: Likewise.
35283         * doc/posix-functions/wmemmove.texi: Likewise.
35284         * doc/posix-functions/wmemset.texi: Likewise.
35285         * doc/posix-functions/wprintf.texi: Likewise.
35286         * doc/posix-functions/wscanf.texi: Likewise.
35287
35288 2008-12-21  Bruno Haible  <bruno@clisp.org>
35289
35290         Update doc for HP-UX 11.11.
35291         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35292         in HP-UX version 11.00, not in all versions of HP-UX 11.
35293         * doc/posix-functions/fwide.texi: Likewise.
35294         * doc/posix-functions/fwprintf.texi: Likewise.
35295         * doc/posix-functions/fwscanf.texi: Likewise.
35296         * doc/posix-functions/inet_ntop.texi: Likewise.
35297         * doc/posix-functions/inet_pton.texi: Likewise.
35298         * doc/posix-functions/mbrlen.texi: Likewise.
35299         * doc/posix-functions/mbrtowc.texi: Likewise.
35300         * doc/posix-functions/mbsinit.texi: Likewise.
35301         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35302         * doc/posix-functions/swprintf.texi: Likewise.
35303         * doc/posix-functions/swscanf.texi: Likewise.
35304         * doc/posix-functions/towctrans.texi: Likewise.
35305         * doc/posix-functions/vfwprintf.texi: Likewise.
35306         * doc/posix-functions/vswprintf.texi: Likewise.
35307         * doc/posix-functions/vwprintf.texi: Likewise.
35308         * doc/posix-functions/wcrtomb.texi: Likewise.
35309         * doc/posix-functions/wcsrtombs.texi: Likewise.
35310         * doc/posix-functions/wcsstr.texi: Likewise.
35311         * doc/posix-functions/wctob.texi: Likewise.
35312         * doc/posix-functions/wctrans.texi: Likewise.
35313         * doc/posix-functions/wmemchr.texi: Likewise.
35314         * doc/posix-functions/wmemcmp.texi: Likewise.
35315         * doc/posix-functions/wmemcpy.texi: Likewise.
35316         * doc/posix-functions/wmemmove.texi: Likewise.
35317         * doc/posix-functions/wmemset.texi: Likewise.
35318         * doc/posix-functions/wprintf.texi: Likewise.
35319         * doc/posix-functions/wscanf.texi: Likewise.
35320
35321 2008-12-21  Bruno Haible  <bruno@clisp.org>
35322
35323         Work around a portability problem.
35324         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35325         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35326
35327 2008-12-20  Bruno Haible  <bruno@clisp.org>
35328
35329         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35331         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35333         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35334
35335         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35336         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35337         set.
35338         (GNULIB_defined_mbstate_t): New macro.
35339         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35340         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35341         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35342         reuses the system's mbrtowc function but works around the bugs.
35343         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35344         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35345         macros.
35346         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35347         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35348         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35349         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35350         REPLACE_MBSINIT if mbsinit needs to be overridden.
35351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35352         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35353         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35354         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35355         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35356         m4/locale-zh.m4.
35357         (Depends): Add mbsinit.
35358         * modules/mbsinit (Depends): Add mbrtowc.
35359         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35360
35361 2008-12-20  Bruno Haible  <bruno@clisp.org>
35362
35363         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35364         so that there are no conversion errors on AIX.
35365         * tests/test-mbsrtowcs.c (main): LIkewise.
35366
35367 2008-12-20  Bruno Haible  <bruno@clisp.org>
35368
35369         Work around wctob bug on Solaris <= 9.
35370         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35371         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35373         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35374         * modules/wctob (Files): Add m4/locale-fr.m4.
35375         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35376
35377 2008-12-20  Bruno Haible  <bruno@clisp.org>
35378
35379         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35380         /dev/null.
35381         * tests/test-select-in.sh: Likewise.
35382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35383
35384 2008-12-20  Bruno Haible  <bruno@clisp.org>
35385
35386         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35387         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35388         Cygwin 1.5.x.
35389
35390 2008-12-20  Bruno Haible  <bruno@clisp.org>
35391
35392         Ensure mbstate_t is defined on HP-UX 11.11.
35393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35394         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35395         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35396         AC_USE_SYSTEM_EXTENSIONS.
35397         * modules/fnmatch (Depends-on): Add extensions.
35398         * modules/mbrlen (Depends-on): Likewise.
35399         * modules/mbrtowc (Depends-on): Likewise.
35400         * modules/mbsinit (Depends-on): Likewise.
35401         * modules/mbsrtowcs (Depends-on): Likewise.
35402         * modules/mbswidth (Depends-on): Likewise.
35403         * modules/quotearg (Depends-on): Likewise.
35404         * modules/strftime (Depends-on): Likewise.
35405
35406 2008-12-20  Bruno Haible  <bruno@clisp.org>
35407
35408         Ensure wctob is declared on IRIX 6.5.
35409         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35410         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35411         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35413         of HAVE_WCTOB.
35414         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35415         HAVE_WCTOB.
35416         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35417
35418 2008-12-19  Bruno Haible  <bruno@clisp.org>
35419
35420         * modules/mbsrtowcs-tests: New file.
35421         * tests/test-mbsrtowcs1.sh: New file.
35422         * tests/test-mbsrtowcs2.sh: New file.
35423         * tests/test-mbsrtowcs3.sh: New file.
35424         * tests/test-mbsrtowcs4.sh: New file.
35425         * tests/test-mbsrtowcs.c: New file.
35426
35427         New module 'mbsrtowcs'.
35428         * lib/wchar.in.h (mbsrtowcs): New declaration.
35429         * lib/mbsrtowcs.c: New file.
35430         * m4/mbsrtowcs.m4: New file.
35431         * modules/mbsrtowcs: New file.
35432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35433         HAVE_MBSRTOWCS.
35434         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35435         HAVE_MBSRTOWCS.
35436         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35437
35438 2008-12-19  Bruno Haible  <bruno@clisp.org>
35439
35440         New module 'mbrlen'.
35441         * lib/wchar.in.h (mbrlen): New declaration.
35442         * lib/mbrlen.c: New file.
35443         * m4/mbrlen.m4: New file.
35444         * modules/mbrlen: New file.
35445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35446         HAVE_MBRLEN.
35447         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35448         HAVE_MBRLEN.
35449         * doc/posix-functions/mbrlen.texi: Document the new module.
35450
35451 2008-12-19  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35454         * modules/mbrtowc (Depends-on): Add verify.
35455         Suggested by Paul Eggert.
35456
35457 2008-12-18  Bruno Haible  <bruno@clisp.org>
35458
35459         * modules/mbsinit-tests: New file.
35460         * tests/test-mbsinit.sh: New file.
35461         * tests/test-mbsinit.c: New file.
35462
35463 2008-12-18  Bruno Haible  <bruno@clisp.org>
35464
35465         * modules/mbrtowc-tests: New file.
35466         * tests/test-mbrtowc1.sh: New file.
35467         * tests/test-mbrtowc2.sh: New file.
35468         * tests/test-mbrtowc3.sh: New file.
35469         * tests/test-mbrtowc4.sh: New file.
35470         * tests/test-mbrtowc.c: New file.
35471
35472         New module 'mbrtowc'.
35473         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35474         mbsinit and mbrtowc.
35475         (mbrtowc): New declaration.
35476         * lib/mbrtowc.c: New file.
35477         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35478         * modules/mbrtowc: New file.
35479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35480         HAVE_MBRTOWC.
35481         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35482         HAVE_MBRTOWC.
35483         * doc/posix-functions/mbrtowc.texi: Document the new module.
35484
35485 2008-12-18  Bruno Haible  <bruno@clisp.org>
35486
35487         New module 'wctob'.
35488         * lib/wchar.in.h (wctob): New declaration.
35489         * lib/wctob.c: New file.
35490         * m4/wctob.m4: New file.
35491         * modules/wctob: New file.
35492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35493         HAVE_WCTOB.
35494         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35495         * doc/posix-functions/wctob.texi: Document the new module.
35496
35497 2008-12-18  Bruno Haible  <bruno@clisp.org>
35498
35499         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35500         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35501
35502 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35503
35504         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35505         G. Christensen" <tgc@jupiterrise.com>.
35506
35507         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35508         G. Christensen" <tgc@jupiterrise.com>.
35509
35510         * lib/flock.c: Need to include string.h.  Reported by "Tom
35511         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35512         <ebb9@byu.net>.
35513
35514 2008-12-18  Bruno Haible  <bruno@clisp.org>
35515
35516         * m4/locale-ja.m4: New file, from GNU gettext.
35517
35518 2008-12-17  Bruno Haible  <bruno@clisp.org>
35519
35520         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35521         Suggested by Eric Blake.
35522
35523 2008-12-17  Bruno Haible  <bruno@clisp.org>
35524
35525         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35526
35527 2008-12-17  Bruno Haible  <bruno@clisp.org>
35528
35529         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35530         * modules/mbsinit (Depends-on): Add verify.
35531         Suggested by Paul Eggert.
35532
35533 2008-12-17  Bruno Haible  <bruno@clisp.org>
35534
35535         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35536         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35537         gl_FUNC_MBRTOWC.
35538         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35539         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35540         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35541         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35542         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35543         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35544         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35545         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35546         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35547         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35548         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35549         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35550         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35551         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35552         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35554         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35555         * modules/trim (configure.ac): Likewise.
35556
35557 2008-12-17  Bruno Haible  <bruno@clisp.org>
35558
35559         * modules/btowc-tests: New file.
35560         * tests/test-btowc1.sh: New file.
35561         * tests/test-btowc2.sh: New file.
35562         * tests/test-btowc.c: New file.
35563
35564         New module 'btowc'.
35565         * lib/wchar.in.h (btowc): New declaration.
35566         * lib/btowc.c: New file.
35567         * m4/btowc.m4: New file.
35568         * modules/btowc: New file.
35569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35570         HAVE_BTOWC.
35571         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35572         * doc/posix-functions/btowc.texi: Document the new module.
35573
35574 2008-12-17  Bruno Haible  <bruno@clisp.org>
35575
35576         New module 'mbsinit'.
35577         * lib/wchar.in.h (mbsinit): New declaration.
35578         * lib/mbsinit.c: New file.
35579         * m4/mbsinit.m4: New file.
35580         * modules/mbsinit: New file.
35581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35582         HAVE_MBSINIT.
35583         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35584         HAVE_MBSINIT.
35585         * doc/posix-functions/mbsinit.texi: Document the new module.
35586
35587 2008-12-16  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/unistd.in.h: Add comment.
35590         * tests/test-environ.c: Don't include <stdlib.h>.
35591
35592 2008-12-16  Bruno Haible  <bruno@clisp.org>
35593
35594         * lib/parse-duration.h (parse_duration): Document return value
35595         convention.
35596         * lib/parse-duration.c: Include specification header first. Add
35597         comments.
35598         (_): Remove macro.
35599         (parse_year_month_day, parse_hour_minute_second): Move side effects
35600         outside of strchr call.
35601         (parse_non_iso8601): Move side effects outside of isspace call.
35602         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35603         call.
35604
35605 2008-12-16  Bruno Haible  <bruno@clisp.org>
35606
35607         * tests/test-parse-duration.sh: Produce no output when the test
35608         succeeds.
35609
35610 2008-12-16  Bruno Haible  <bruno@clisp.org>
35611
35612         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35613         expressions.
35614
35615 2008-12-15  Bruno Haible  <bruno@clisp.org>
35616
35617         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35618         * doc/glibc-functions/flistxattr.texi: Likewise.
35619         * doc/glibc-functions/fopencookie.texi: Likewise.
35620         * doc/glibc-functions/fremovexattr.texi: Likewise.
35621         * doc/glibc-functions/fsetxattr.texi: Likewise.
35622         * doc/glibc-functions/getxattr.texi: Likewise.
35623         * doc/glibc-functions/lgetxattr.texi: Likewise.
35624         * doc/glibc-functions/listxattr.texi: Likewise.
35625         * doc/glibc-functions/llistxattr.texi: Likewise.
35626         * doc/glibc-functions/lremovexattr.texi: Likewise.
35627         * doc/glibc-functions/lsetxattr.texi: Likewise.
35628         * doc/glibc-functions/removexattr.texi: Likewise.
35629         * doc/glibc-functions/setxattr.texi: Likewise.
35630         * doc/posix-functions/open_memstream.texi: Likewise.
35631
35632 2008-12-15  Eric Blake  <ebb9@byu.net>
35633
35634         Update doc for cygwin 1.7.
35635         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35636         functions.
35637         * doc/posix-functions/fchmodat.texi: Likewise.
35638         * doc/posix-functions/fchownat.texi: Likewise.
35639         * doc/posix-functions/fdopendir.texi: Likewise.
35640         * doc/posix-functions/fmemopen.texi: Likewise.
35641         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35642         * doc/posix-functions/fstatat.texi: Likewise.
35643         * doc/posix-functions/futimens.texi: Likewise.
35644         * doc/posix-functions/gai_strerror.texi: Likewise.
35645         * doc/posix-functions/getaddrinfo.texi: Likewise.
35646         * doc/posix-functions/getnameinfo.texi: Likewise.
35647         * doc/posix-functions/if_freenameindex.texi: Likewise.
35648         * doc/posix-functions/if_indextoname.texi: Likewise.
35649         * doc/posix-functions/if_nameindex.texi: Likewise.
35650         * doc/posix-functions/if_nametoindex.texi: Likewise.
35651         * doc/posix-functions/insque.texi: Likewise.
35652         * doc/posix-functions/linkat.texi: Likewise.
35653         * doc/posix-functions/llrint.texi: Likewise.
35654         * doc/posix-functions/llrintf.texi: Likewise.
35655         * doc/posix-functions/llrintl.texi: Likewise.
35656         * doc/posix-functions/lockf.texi: Likewise.
35657         * doc/posix-functions/lrintl.texi: Likewise.
35658         * doc/posix-functions/mkdirat.texi: Likewise.
35659         * doc/posix-functions/mkfifoat.texi: Likewise.
35660         * doc/posix-functions/mknodat.texi: Likewise.
35661         * doc/posix-functions/mq_close.texi: Likewise.
35662         * doc/posix-functions/mq_getattr.texi: Likewise.
35663         * doc/posix-functions/mq_notify.texi: Likewise.
35664         * doc/posix-functions/mq_open.texi: Likewise.
35665         * doc/posix-functions/mq_receive.texi: Likewise.
35666         * doc/posix-functions/mq_send.texi: Likewise.
35667         * doc/posix-functions/mq_setattr.texi: Likewise.
35668         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35669         * doc/posix-functions/mq_timedsend.texi: Likewise.
35670         * doc/posix-functions/mq_unlink.texi: Likewise.
35671         * doc/posix-functions/open_memstream.texi: Likewise.
35672         * doc/posix-functions/openat.texi: Likewise.
35673         * doc/posix-functions/posix_fadvise.texi: Likewise.
35674         * doc/posix-functions/posix_fallocate.texi: Likewise.
35675         * doc/posix-functions/posix_madvise.texi: Likewise.
35676         * doc/posix-functions/posix_memalign.texi: Likewise.
35677         * doc/posix-functions/posix_openpt.texi: Likewise.
35678         * doc/posix-functions/readlinkat.texi: Likewise.
35679         * doc/posix-functions/remque.texi: Likewise.
35680         * doc/posix-functions/renameat.texi: Likewise.
35681         * doc/posix-functions/rintl.texi: Likewise.
35682         * doc/posix-functions/sem_unlink.texi: Likewise.
35683         * doc/posix-functions/shm_open.texi: Likewise.
35684         * doc/posix-functions/shm_unlink.texi: Likewise.
35685         * doc/posix-functions/signgam.texi: Likewise.
35686         * doc/posix-functions/sigset.texi: Likewise.
35687         * doc/posix-functions/stpcpy.texi: Likewise.
35688         * doc/posix-functions/stpncpy.texi: Likewise.
35689         * doc/posix-functions/strerror.texi: Likewise.
35690         * doc/posix-functions/strtod.texi: Likewise.
35691         * doc/posix-functions/symlinkat.texi: Likewise.
35692         * doc/posix-functions/unlinkat.texi: Likewise.
35693         * doc/posix-functions/utimensat.texi: Likewise.
35694         * doc/glibc-functions/bindresvport.texi: Likewise.
35695         * doc/glibc-functions/dn_expand.texi: Likewise.
35696         * doc/glibc-functions/exp10.texi: Likewise.
35697         * doc/glibc-functions/exp10f.texi: Likewise.
35698         * doc/glibc-functions/fgetxattr.texi: Likewise.
35699         * doc/glibc-functions/flistxattr.texi: Likewise.
35700         * doc/glibc-functions/fopencookie.texi: Likewise.
35701         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35702         * doc/glibc-functions/fremovexattr.texi: Likewise.
35703         * doc/glibc-functions/fsetxattr.texi: Likewise.
35704         * doc/glibc-functions/getifaddrs.texi: Likewise.
35705         * doc/glibc-functions/getxattr.texi: Likewise.
35706         * doc/glibc-functions/lgetxattr.texi: Likewise.
35707         * doc/glibc-functions/listxattr.texi: Likewise.
35708         * doc/glibc-functions/llistxattr.texi: Likewise.
35709         * doc/glibc-functions/lremovexattr.texi: Likewise.
35710         * doc/glibc-functions/lsetxattr.texi: Likewise.
35711         * doc/glibc-functions/pow10.texi: Likewise.
35712         * doc/glibc-functions/pow10f.texi: Likewise.
35713         * doc/glibc-functions/rcmd_af.texi: Likewise.
35714         * doc/glibc-functions/removexattr.texi: Likewise.
35715         * doc/glibc-functions/res_init.texi: Likewise.
35716         * doc/glibc-functions/res_mkquery.texi: Likewise.
35717         * doc/glibc-functions/res_query.texi: Likewise.
35718         * doc/glibc-functions/res_querydomain.texi: Likewise.
35719         * doc/glibc-functions/res_send.texi: Likewise.
35720         * doc/glibc-functions/rresvport_af.texi: Likewise.
35721         * doc/glibc-functions/setxattr.texi: Likewise.
35722         * doc/glibc-functions/strcasestr.texi: Likewise.
35723
35724 2008-12-15  Bruno Haible  <bruno@clisp.org>
35725
35726         Fix compilation error on OSF/1 4.0.
35727         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35728         <sys/time.h>, simply delegate to the system header.
35729         Reported by Daniel Richard G. <oss@teragram.com>.
35730
35731 2008-12-15  Bruno Haible  <bruno@clisp.org>
35732
35733         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35734         * doc/posix-functions/fchmodat.texi: Likewise.
35735         * doc/posix-functions/fchownat.texi: Likewise.
35736         * doc/posix-functions/fdopendir.texi: Likewise.
35737         * doc/posix-functions/fstatat.texi: Likewise.
35738         * doc/posix-functions/mkdirat.texi: Likewise.
35739         * doc/posix-functions/unlinkat.texi: Likewise.
35740
35741 2008-12-14  Bruno Haible  <bruno@clisp.org>
35742
35743         Update doc for POSIX:2008.
35744         * doc/posix-functions/faccessat.texi: New file.
35745         * doc/posix-functions/fchmodat.texi: New file.
35746         * doc/posix-functions/fchownat.texi: New file.
35747         * doc/posix-functions/fdopendir.texi: New file.
35748         * doc/posix-functions/fstatat.texi: New file.
35749         * doc/posix-functions/futimens.texi: New file.
35750         * doc/posix-functions/linkat.texi: New file.
35751         * doc/posix-functions/mkdirat.texi: New file.
35752         * doc/posix-functions/mkfifoat.texi: New file.
35753         * doc/posix-functions/mknodat.texi: New file.
35754         * doc/posix-functions/open_wmemstream.texi: New file.
35755         * doc/posix-functions/openat.texi: New file.
35756         * doc/posix-functions/psiginfo.texi: New file.
35757         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35758         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35759         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35760         * doc/posix-functions/readlinkat.texi: New file.
35761         * doc/posix-functions/renameat.texi: New file.
35762         * doc/posix-functions/strerror_l.texi: New file.
35763         * doc/posix-functions/symlinkat.texi: New file.
35764         * doc/posix-functions/unlinkat.texi: New file.
35765         * doc/posix-functions/utimensat.texi: New file.
35766         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35767
35768 2008-12-14  Bruno Haible  <bruno@clisp.org>
35769
35770         Update doc for POSIX:2008.
35771         * doc/posix-functions/alphasort.texi: Renamed from
35772         doc/glibc-functions/alphasort.texi.
35773         * doc/posix-functions/dirfd.texi: Renamed from
35774         doc/glibc-functions/dirfd.texi.
35775         * doc/posix-functions/dprintf.texi: Renamed from
35776         doc/glibc-functions/dprintf.texi.
35777         * doc/posix-functions/duplocale.texi: Renamed from
35778         doc/glibc-functions/duplocale.texi.
35779         * doc/posix-functions/fexecve.texi: Renamed from
35780         doc/glibc-functions/fexecve.texi.
35781         * doc/posix-functions/fmemopen.texi: Renamed from
35782         doc/glibc-functions/fmemopen.texi.
35783         * doc/posix-functions/freelocale.texi: Renamed from
35784         doc/glibc-functions/freelocale.texi.
35785         * doc/posix-functions/getdate_err.texi: Renamed from
35786         doc/glibc-functions/getdate_err.texi.
35787         * doc/posix-functions/isalnum_l.texi: Renamed from
35788         doc/glibc-functions/isalnum_l.texi.
35789         * doc/posix-functions/isalpha_l.texi: Renamed from
35790         doc/glibc-functions/isalpha_l.texi.
35791         * doc/posix-functions/isblank_l.texi: Renamed from
35792         doc/glibc-functions/isblank_l.texi.
35793         * doc/posix-functions/iscntrl_l.texi: Renamed from
35794         doc/glibc-functions/iscntrl_l.texi.
35795         * doc/posix-functions/isdigit_l.texi: Renamed from
35796         doc/glibc-functions/isdigit_l.texi.
35797         * doc/posix-functions/isgraph_l.texi: Renamed from
35798         doc/glibc-functions/isgraph_l.texi.
35799         * doc/posix-functions/islower_l.texi: Renamed from
35800         doc/glibc-functions/islower_l.texi.
35801         * doc/posix-functions/isprint_l.texi: Renamed from
35802         doc/glibc-functions/isprint_l.texi.
35803         * doc/posix-functions/ispunct_l.texi: Renamed from
35804         doc/glibc-functions/ispunct_l.texi.
35805         * doc/posix-functions/isspace_l.texi: Renamed from
35806         doc/glibc-functions/isspace_l.texi.
35807         * doc/posix-functions/isupper_l.texi: Renamed from
35808         doc/glibc-functions/isupper_l.texi.
35809         * doc/posix-functions/iswalnum_l.texi: Renamed from
35810         doc/glibc-functions/iswalnum_l.texi.
35811         * doc/posix-functions/iswalpha_l.texi: Renamed from
35812         doc/glibc-functions/iswalpha_l.texi.
35813         * doc/posix-functions/iswblank_l.texi: Renamed from
35814         doc/glibc-functions/iswblank_l.texi.
35815         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35816         doc/glibc-functions/iswcntrl_l.texi.
35817         * doc/posix-functions/iswctype_l.texi: Renamed from
35818         doc/glibc-functions/iswctype_l.texi.
35819         * doc/posix-functions/iswdigit_l.texi: Renamed from
35820         doc/glibc-functions/iswdigit_l.texi.
35821         * doc/posix-functions/iswgraph_l.texi: Renamed from
35822         doc/glibc-functions/iswgraph_l.texi.
35823         * doc/posix-functions/iswlower_l.texi: Renamed from
35824         doc/glibc-functions/iswlower_l.texi.
35825         * doc/posix-functions/iswprint_l.texi: Renamed from
35826         doc/glibc-functions/iswprint_l.texi.
35827         * doc/posix-functions/iswpunct_l.texi: Renamed from
35828         doc/glibc-functions/iswpunct_l.texi.
35829         * doc/posix-functions/iswspace_l.texi: Renamed from
35830         doc/glibc-functions/iswspace_l.texi.
35831         * doc/posix-functions/iswupper_l.texi: Renamed from
35832         doc/glibc-functions/iswupper_l.texi.
35833         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35834         doc/glibc-functions/iswxdigit_l.texi.
35835         * doc/posix-functions/isxdigit_l.texi: Renamed from
35836         doc/glibc-functions/isxdigit_l.texi.
35837         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35838         doc/glibc-functions/mbsnrtowcs.texi.
35839         * doc/posix-functions/mkdtemp.texi: Renamed from
35840         doc/glibc-functions/mkdtemp.texi.
35841         * doc/posix-functions/newlocale.texi: Renamed from
35842         doc/glibc-functions/newlocale.texi.
35843         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35844         doc/glibc-functions/nl_langinfo_l.texi.
35845         * doc/posix-functions/open_memstream.texi: Renamed from
35846         doc/glibc-functions/open_memstream.texi.
35847         * doc/posix-functions/opterr.texi: Renamed from
35848         doc/glibc-functions/opterr.texi.
35849         * doc/posix-functions/optind.texi: Renamed from
35850         doc/glibc-functions/optind.texi.
35851         * doc/posix-functions/optopt.texi: Renamed from
35852         doc/glibc-functions/optopt.texi.
35853         * doc/posix-functions/psignal.texi: Renamed from
35854         doc/glibc-functions/psignal.texi.
35855         * doc/posix-functions/scandir.texi: Renamed from
35856         doc/glibc-functions/scandir.texi.
35857         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35858         doc/glibc-functions/sched_get_priority_min.texi.
35859         * doc/posix-functions/signgam.texi: Renamed from
35860         doc/glibc-functions/signgam.texi.
35861         * doc/posix-functions/stpcpy.texi: Renamed from
35862         doc/glibc-functions/stpcpy.texi.
35863         * doc/posix-functions/stpncpy.texi: Renamed from
35864         doc/glibc-functions/stpncpy.texi.
35865         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35866         doc/glibc-functions/strcasecmp_l.texi.
35867         * doc/posix-functions/strcoll_l.texi: Renamed from
35868         doc/glibc-functions/strcoll_l.texi.
35869         * doc/posix-functions/strfmon_l.texi: Renamed from
35870         doc/glibc-functions/strfmon_l.texi.
35871         * doc/posix-functions/strftime_l.texi: Renamed from
35872         doc/glibc-functions/strftime_l.texi.
35873         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35874         doc/glibc-functions/strncasecmp_l.texi.
35875         * doc/posix-functions/strndup.texi: Renamed from
35876         doc/glibc-functions/strndup.texi.
35877         * doc/posix-functions/strnlen.texi: Renamed from
35878         doc/glibc-functions/strnlen.texi.
35879         * doc/posix-functions/strsignal.texi: Renamed from
35880         doc/glibc-functions/strsignal.texi.
35881         * doc/posix-functions/strxfrm_l.texi: Renamed from
35882         doc/glibc-functions/strxfrm_l.texi.
35883         * doc/posix-functions/timer_gettime.texi: Renamed from
35884         doc/glibc-functions/timer_gettime.texi.
35885         * doc/posix-functions/tolower_l.texi: Renamed from
35886         doc/glibc-functions/tolower_l.texi.
35887         * doc/posix-functions/toupper_l.texi: Renamed from
35888         doc/glibc-functions/toupper_l.texi.
35889         * doc/posix-functions/towctrans_l.texi: Renamed from
35890         doc/glibc-functions/towctrans_l.texi.
35891         * doc/posix-functions/towlower_l.texi: Renamed from
35892         doc/glibc-functions/towlower_l.texi.
35893         * doc/posix-functions/towupper_l.texi: Renamed from
35894         doc/glibc-functions/towupper_l.texi.
35895         * doc/posix-functions/uselocale.texi: Renamed from
35896         doc/glibc-functions/uselocale.texi.
35897         * doc/posix-functions/vdprintf.texi: Renamed from
35898         doc/glibc-functions/vdprintf.texi.
35899         * doc/posix-functions/wcpcpy.texi:
35900         Renamed from doc/glibc-functions/wcpcpy.texi.
35901         * doc/posix-functions/wcpncpy.texi: Renamed from
35902         doc/glibc-functions/wcpncpy.texi.
35903         * doc/posix-functions/wcscasecmp.texi: Renamed from
35904         doc/glibc-functions/wcscasecmp.texi.
35905         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35906         doc/glibc-functions/wcscasecmp_l.texi.
35907         * doc/posix-functions/wcscoll_l.texi: Renamed from
35908         doc/glibc-functions/wcscoll_l.texi.
35909         * doc/posix-functions/wcsdup.texi: Renamed from
35910         doc/glibc-functions/wcsdup.texi.
35911         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35912         doc/glibc-functions/wcsncasecmp.texi.
35913         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35914         doc/glibc-functions/wcsncasecmp_l.texi.
35915         * doc/posix-functions/wcsnlen.texi: Renamed from
35916         doc/glibc-functions/wcsnlen.texi.
35917         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35918         doc/glibc-functions/wcsnrtombs.texi.
35919         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35920         doc/glibc-functions/wcsxfrm_l.texi.
35921         * doc/posix-functions/wctrans_l.texi: Renamed from
35922         doc/glibc-functions/wctrans_l.texi.
35923         * doc/posix-functions/wctype_l.texi: Renamed from
35924         doc/glibc-functions/wctype_l.texi.
35925         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35926         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35927         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35928         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35929         these subsections.
35930         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35931         Remove sections.
35932
35933 2008-12-14  Bruno Haible  <bruno@clisp.org>
35934
35935         Update doc for POSIX:2008.
35936         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35937
35938 2008-12-14  Bruno Haible  <bruno@clisp.org>
35939
35940         Update doc for POSIX:2008.
35941         * doc/pastposix-functions/bcmp.texi: Renamed from
35942         doc/posix-functions/bcmp.texi.
35943         * doc/pastposix-functions/bcopy.texi: Renamed from
35944         doc/posix-functions/bcopy.texi.
35945         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35946         doc/posix-functions/bsd_signal.texi.
35947         * doc/pastposix-functions/bzero.texi: Renamed from
35948         doc/posix-functions/bzero.texi.
35949         * doc/pastposix-functions/ecvt.texi: Renamed from
35950         doc/posix-functions/ecvt.texi.
35951         * doc/pastposix-functions/fcvt.texi: Renamed from
35952         doc/posix-functions/fcvt.texi.
35953         * doc/pastposix-functions/ftime.texi: Renamed from
35954         doc/posix-functions/ftime.texi.
35955         * doc/pastposix-functions/gcvt.texi: Renamed from
35956         doc/posix-functions/gcvt.texi.
35957         * doc/pastposix-functions/getcontext.texi: Renamed from
35958         doc/posix-functions/getcontext.texi.
35959         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35960         doc/posix-functions/gethostbyaddr.texi.
35961         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35962         doc/posix-functions/gethostbyname.texi.
35963         * doc/pastposix-functions/getwd.texi: Renamed from
35964         doc/posix-functions/getwd.texi.
35965         * doc/pastposix-functions/h_errno.texi: Renamed from
35966         doc/posix-functions/h_errno.texi.
35967         * doc/pastposix-functions/index.texi: Renamed from
35968         doc/posix-functions/index.texi.
35969         * doc/pastposix-functions/makecontext.texi: Renamed from
35970         doc/posix-functions/makecontext.texi.
35971         * doc/pastposix-functions/mktemp.texi: Renamed from
35972         doc/posix-functions/mktemp.texi.
35973         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35974         doc/posix-functions/pthread_attr_getstackaddr.texi.
35975         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35976         doc/posix-functions/pthread_attr_setstackaddr.texi.
35977         * doc/pastposix-functions/rindex.texi: Renamed from
35978         doc/posix-functions/rindex.texi.
35979         * doc/pastposix-functions/scalb.texi: Renamed from
35980         doc/posix-functions/scalb.texi.
35981         * doc/pastposix-functions/setcontext.texi: Renamed from
35982         doc/posix-functions/setcontext.texi.
35983         * doc/pastposix-functions/swapcontext.texi: Renamed from
35984         doc/posix-functions/swapcontext.texi.
35985         * doc/pastposix-functions/ualarm.texi: Renamed from
35986         doc/posix-functions/ualarm.texi.
35987         * doc/pastposix-functions/usleep.texi: Renamed from
35988         doc/posix-functions/usleep.texi.
35989         * doc/pastposix-functions/vfork.texi: Renamed from
35990         doc/posix-functions/vfork.texi.
35991         * doc/pastposix-functions/wcswcs.texi: Renamed from
35992         doc/posix-functions/wcswcs.texi.
35993         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35994         (Function Substitutes): Update.
35995
35996 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35997
35998         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35999         m4/strerror.m4.
36000
36001 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36002             Bruno Haible  <bruno@clisp.org>
36003
36004         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36005
36006 2008-12-13  Bruno Haible  <bruno@clisp.org>
36007
36008         * modules/strtoull (Depends-on): Remove unistd.
36009
36010 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36011
36012         * modules/strtoull (Depends-on): Add stdlib.
36013
36014 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36015
36016         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36017
36018 2008-12-10  Jim Meyering  <meyering@redhat.com>
36019
36020         gl_ASSERT: don't say assertions are disabled when they're not
36021         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36022         "checking whether to enable assertions... no", when they are in
36023         fact enabled.  This is solely a bug in the output of configure.
36024         In spite of saying "no", NDEBUG was not defined in that case.
36025         Also, as noted by Eric Blake, leave assertions enabled upon
36026         --enable-assert=INVALID.
36027
36028 2008-12-10  Bruno Haible  <bruno@clisp.org>
36029
36030         Change MODULES.html to refer to POSIX:2008 where possible.
36031         * MODULES.html.sh (POSIX2008_URL): New variable.
36032         (posix_headers): Remove sys/timeb, ucontext.
36033         (posix2001_headers): New variable.
36034         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36035         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36036         index, makecontext, mktemp, pthread_attr_getstackaddr,
36037         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36038         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36039         (posix2001_functions): New variable.
36040         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36041         otherwise.
36042
36043 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36044
36045         add missing include to parse-duration.c
36046         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36047         * modules/parse-duration (Depends-on): Add xalloc.
36048
36049         fix sed script reading maint.mk
36050         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36051         (syntax-check-rules): Use it.
36052
36053 2008-12-09  Bruno Haible  <bruno@clisp.org>
36054
36055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36056         MacOS X 10.4/PowerPC.
36057         Reported by Simon Josefsson.
36058
36059 2008-12-08  Jim Meyering  <meyering@redhat.com>
36060
36061         work around mingw's lack of some S_IF definitions
36062         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36063         Reported by Simon Josefsson.
36064
36065 2008-12-08  Bruno Haible  <bruno@clisp.org>
36066
36067         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36068         applied to variables. Needed on MacOS X 10.4/PowerPC.
36069         Reported by Simon Josefsson.
36070
36071 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36072         and Eric Blake  <ebb9@byu.net>
36073
36074         assert: honor --enable-assert
36075         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36076         order to honor --enable-assert, rather than treating it as a
36077         synonym for --disable-assert.
36078
36079 2008-12-08  Jim Meyering  <meyering@redhat.com>
36080
36081         * lib/posixtm.c: Remove now-useless declaration of mktime.
36082
36083         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36084
36085 2008-12-07  Bruno Haible  <bruno@clisp.org>
36086
36087         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36088         test_once): Mark functions as static.
36089         * tests/test-tls.c (test_tls): Likewise.
36090
36091 2008-12-07  Bruno Haible  <bruno@clisp.org>
36092
36093         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36094         iconv_register_autodetect.
36095
36096 2008-12-07  Jim Meyering  <meyering@redhat.com>
36097
36098         posixtm.c: avoid a warning
36099         * lib/posixtm.c (posixtime): Don't initialize tm0.
36100         It's no longer needed to placate gcc4's -Wuninitialized,
36101         and the attempt to placate would elicit a new warning.
36102
36103         unicodeio.c: mark unused parameters
36104         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36105         (fallback_failure_callback): Likewise.
36106
36107 2008-12-07  Bruno Haible  <bruno@clisp.org>
36108
36109         * gnulib-tool (func_create_testdir): When building the tests
36110         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36111         Reported by Simon Josefsson.
36112
36113 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36114
36115         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36116
36117 2008-12-06  Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36120         Suggested by Eric Blake.
36121
36122 2008-12-06  Bruno Haible  <bruno@clisp.org>
36123
36124         Fix a c-stack test failure on MacOS X.
36125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36126         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36127         handler for SIGBUS as well.
36128         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36129         install a signal handler for SIGBUS as well.
36130         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36131
36132 2008-12-06  Bruno Haible  <bruno@clisp.org>
36133
36134         Advocacy documentation.
36135         * doc/gnulib-intro.texi (Benefits): New section.
36136         * doc/gnulib.texi: Update.
36137
36138 2008-12-06  Bruno Haible  <bruno@clisp.org>
36139
36140         Document the 'manywarnings' module.
36141         * doc/manywarnings.texi: New file.
36142         * doc/gnulib.texi: Include it.
36143
36144 2008-12-05  Eric Blake  <ebb9@byu.net>
36145
36146         tests: silence some gcc warnings
36147         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36148         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36149         type mismatches.
36150
36151 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36152             Bruno Haible  <bruno@clisp.org>
36153
36154         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36155
36156 2008-11-29  Jim Meyering  <meyering@redhat.com>
36157
36158         unicodeio.c: mark unused parameters
36159         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36160         (fallback_failure_callback): Likewise.
36161
36162         fts: fix a thinko
36163         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36164         (set_stat_type): Return S_IF*-valued "type" directly.
36165         Prompted by James Youngman's spotting a related bug.
36166         Confirmed by further testing through find.
36167
36168         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36169         * lib/fts.c (D_TYPE): Define.
36170         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36171         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36172         (s_ifmt_shift_bits): New function.
36173         (set_stat_type): New function.
36174         (fts_build): When not calling fts_stat, call set_stat_type
36175         to propagate dirent.d_type info to fts_read caller.
36176         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36177         fts_statp->st_mode type information may be valid.
36178
36179 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36180
36181         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36182         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36183         <sds@gnu.org>.
36184
36185 2008-11-20  Bruno Haible  <bruno@clisp.org>
36186
36187         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36188         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36189         INCLUDE_NEXT.
36190         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36191         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36192         * modules/math (Makefile.am): Substitute
36193         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36195
36196 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36197             Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/stdint.in.h: Define all type macros so that their expansion is
36200         a single typedef'ed token. Fixes a compilation failure in Boost which
36201         does "using ::int8_t;".
36202
36203 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36204
36205         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36206         gl_MANYWARN_ALL_GCC.
36207         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36208         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36209         * modules/manywarnings: New file.
36210         * MODULES.html.sh: Mention manywarnings module.
36211
36212 2008-11-18  Bruno Haible  <bruno@clisp.org>
36213
36214         * doc/gnulib-tool.texi (Unit tests): New section.
36215
36216 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36217
36218         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36219         paths like 'lib/po/foo.po'.
36220
36221 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36222
36223         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36224         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36225
36226 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36227
36228         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36229         parameter works.
36230
36231 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36232
36233         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36234
36235 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36236
36237         * modules/parse-duration-tests: New file.
36238         * tests/test-parse-duration.sh: New file.
36239         * tests/test-parse-duration.c: New file.
36240
36241         New module 'parse-duration'.
36242         * lib/parse-duration.h: New file.
36243         * lib/parse-duration.c: New file.
36244         * modules/parse-duration: New file.
36245
36246 2008-11-17  Bruno Haible  <bruno@clisp.org>
36247
36248         * tests/test-select-out.sh: Comment out the first pipe test.
36249         Reported by Simon Josefsson.
36250
36251 2008-11-17  Bruno Haible  <bruno@clisp.org>
36252
36253         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36255         gl_HOSTENT.
36256
36257 2008-11-17  Bruno Haible  <bruno@clisp.org>
36258
36259         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36260         -lnetwork and -lnet. Needed for Haiku and BeOS.
36261
36262 2008-11-16  Bruno Haible  <bruno@clisp.org>
36263
36264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36265
36266 2008-11-16  Bruno Haible  <bruno@clisp.org>
36267
36268         Avoid test failure on Haiku.
36269         * tests/test-fsync.c: Include <errno.h>.
36270         (main): Don't require that fsync (0) fails.
36271
36272 2008-11-15  Bruno Haible  <bruno@clisp.org>
36273
36274         New module 'hostent'.
36275         * modules/hostent: New file.
36276         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36277
36278 2008-11-15  Bruno Haible  <bruno@clisp.org>
36279
36280         New module 'servent'.
36281         * modules/servent: New file.
36282         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36283
36284 2008-11-15  Bruno Haible  <bruno@clisp.org>
36285
36286         Avoid generating same test program with two different rules.
36287         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36288         test-frexp to test-frexp-nolibm.
36289         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36290         test-frexpl to test-frexpl-nolibm.
36291
36292 2008-11-15  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36295         $(FREXPL_LIBM).
36296
36297 2008-11-15  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/netdb.in.h: Activate the definitions also when the system's
36300         <netdb.h> has 'struct addrinfo'.
36301         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36302         EAI_OVERFLOW or AI_NUMERICSERV.
36303         * doc/posix-headers/netdb.texi: Document the problem.
36304
36305 2008-11-15  Bruno Haible  <bruno@clisp.org>
36306
36307         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36308
36309         Make the 'sched' module work on platforms where <sched.h> exists but
36310         is incomplete (such as Haiku).
36311         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36312         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36313         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36314         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36315         HAVE_STRUCT_SCHED_PARAM.
36316         * modules/sched (Depends-on): Add include_next.
36317         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36318         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36319         * doc/posix-headers/sched.texi: Document the issue.
36320
36321 2008-11-13  Jim Meyering  <meyering@redhat.com>
36322
36323         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36324         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36325         test would fail due to the difference in the Report bugs to ...
36326         line.  The expected address is empty, "<>", while the actual
36327         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36328
36329 2008-11-12  Bruno Haible  <bruno@clisp.org>
36330
36331         lstat: don't compile lstat.c on systems lacking lstat
36332         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36333         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36334         Reported by Daniel P. Berrange via Jim Meyering.
36335
36336 2008-11-12  Jim Meyering  <meyering@redhat.com>
36337
36338         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36339
36340 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36341
36342         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36343         instead.
36344
36345 2008-11-12  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/unicodeio.c: Include unistr.h.
36348         (utf8_wctomb): Remove function.
36349         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36350
36351 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36352
36353         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36354         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36355         <bruno@clisp.org>.
36356         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36357
36358 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36359
36360         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36361         * doc/gnulib.texi: Add section for warnings.
36362
36363 2008-11-11  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/sockets.h: Add a comment.
36366
36367 2008-11-11  Karl Berry  <karl@gnu.org>
36368
36369         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36370
36371 2008-11-11  Eric Blake  <ebb9@byu.net>
36372
36373         fdl.texi: avoid git symlinks
36374         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36375
36376 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36377
36378         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36379
36380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36381
36382         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36383         (gl_WARN_ADD): Substitute $2 if literal.
36384
36385 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36386
36387         * m4/warning.m4: Remove.
36388
36389 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36390
36391         * m4/warnings.m4: Almost complete rewrite. :-)
36392
36393 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36394
36395         * modules/warnings: New module.
36396         * m4/warnings.m4: New file.
36397         * MODULES.html.sh: Mention warnings module.
36398         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36399         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36400
36401 2008-11-10  Eric Blake  <ebb9@byu.net>
36402
36403         fdl.texi: make a symlink to the latest version
36404         * doc/standards.texi: Revert today's earlier change.
36405         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36406         * doc/fdl.texi: ...and replace this with a symlink to the newer
36407         fdl-1.3.texi.
36408
36409 2008-11-10  Bruno Haible  <bruno@clisp.org>
36410
36411         * tests/test-select-fd.c (main): Accept the result file name as fourth
36412         argument.
36413         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36414         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36415
36416 2008-11-10  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36419         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36420         as autoconf-substituted macros.
36421         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36423         gl_NETDB_H_DEFAULTS. Set these variables.
36424         * modules/netdb (Makefile.am): Substitute these variables.
36425
36426 2008-11-10  Eric Blake  <ebb9@byu.net>
36427
36428         standards.texi: include correct file for FDL 1.3
36429         * doc/standards.texi (GNU Free Documentation License): Change
36430         include file to pull in FDL 1.3, not 1.2.
36431
36432         fdl.texi: revert accidental change to license
36433         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36434
36435 2008-11-10  Bruno Haible  <bruno@clisp.org>
36436
36437         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36438         cross-compiling guesses also when the native compile gives no result.
36439
36440 2008-11-10  Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/spawni.c (__spawni): Force variable into the stack.
36443
36444 2008-11-10  Bruno Haible  <bruno@clisp.org>
36445
36446         Add support for Haiku.
36447         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36448         glibc and BeOS, but also on Haiku.
36449         * lib/fpurge.c (fpurge): Likewise.
36450         * lib/freadable.c (freadable): Likewise.
36451         * lib/freadahead.c (freadahead): Likewise.
36452         * lib/freading.c (freading): Likewise.
36453         * lib/freadptr.c (freadptr): Likewise.
36454         * lib/freadseek.c (freadptrinc): Likewise.
36455         * lib/fseeko.c (rpl_fseeko): Likewise.
36456         * lib/fseterr.c (fseterr): Likewise.
36457         * lib/fwritable.c (fwritable): Likewise.
36458         * lib/fwriting.c (fwriting): Likewise.
36459         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36460
36461 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36462
36463         * lib/config.charset: Treat Haiku like BeOS.
36464
36465 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36466
36467         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36468         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36469
36470 2008-11-08  Bruno Haible  <bruno@clisp.org>
36471
36472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36473         AC_CACHE_CHECK.
36474
36475 2008-11-08  Bruno Haible  <bruno@clisp.org>
36476
36477         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36478
36479 2008-11-08  Bruno Haible  <bruno@clisp.org>
36480
36481         * tests/test-select-fd.c: New file.
36482         * tests/test-select-in.sh: New file.
36483         * tests/test-select-out.sh: New file.
36484         * tests/test-select-stdin.c: New file.
36485         * modules/select-tests (Files): Add the new files.
36486         (Depends-on): Add gettimeofday.
36487         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36488         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36489         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36490
36491 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36492             Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36495
36496 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36497
36498         * build-aux/pmccabe2html: Added support for C++ source files.
36499
36500 2008-11-05  Ben Pfaff  <blp@gnu.org>
36501
36502         Fix lib/close.c build on Windows.
36503         * modules/close (Files): Add lib/w32sock.h.
36504
36505 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36506
36507         Accept Bison's NEWS format.
36508         * build-aux/announce-gen (print_news_deltas): Tweak
36509         $re_prefix.
36510
36511 2008-11-04  Bruno Haible  <bruno@clisp.org>
36512
36513         * modules/random_r (Maintainer): Add glibc.
36514
36515 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36516
36517         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36518         by karl@freefriends.org (Karl Berry).
36519         * doc/alloca.texi: Likewise.
36520         * doc/c-ctype.texi: Likewise.
36521         * doc/c-strcase.texi: Likewise.
36522         * doc/c-strcaseeq.texi: Likewise.
36523         * doc/c-strcasestr.texi: Likewise.
36524         * doc/c-strstr.texi: Likewise.
36525         * doc/c-strtod.texi: Likewise.
36526         * doc/c-strtold.texi: Likewise.
36527         * doc/ctime.texi: Likewise.
36528         * doc/error.texi: Likewise.
36529         * doc/fdl.texi: Likewise.
36530         * doc/gcd.texi: Likewise.
36531         * doc/getdate.texi: Likewise.
36532         * doc/gnulib-intro.texi: Likewise.
36533         * doc/gnulib-tool.texi: Likewise.
36534         * doc/gnulib.texi: Likewise.
36535         * doc/inet_ntoa.texi: Likewise.
36536         * doc/maintain.texi: Likewise.
36537         * doc/make-stds.texi: Likewise.
36538         * doc/quote.texi: Likewise.
36539         * doc/regexprops-generic.texi: Likewise.
36540         * doc/standards.texi: Likewise.
36541         * doc/verify.texi: Likewise.
36542         * doc/visibility.texi: Likewise.
36543         * doc/gnulib.texi (GNU Free Documentation License): Include
36544         fdl-1.3.texi instead of fdl.texi.
36545
36546 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36547
36548         * doc/fdl-1.3.texi: New file, from
36549         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36550         * modules/fdl-1.3: Add.
36551         * MODULES.html.sh: Add fdl-1.3.
36552
36553 2008-11-03  Bruno Haible  <bruno@clisp.org>
36554
36555         Make determination of absolute name of header file work with AIX xlc.
36556         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36557         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36558         preprocessing.
36559         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36560         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36561
36562 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36563
36564         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36565         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36566         <ludo@gnu.org>.
36567
36568 2008-11-02  Bruno Haible  <bruno@clisp.org>
36569
36570         Mark 'strpbrk' obsolete.
36571         * modules/strpbrk (Status, Notice): New sections.
36572         * modules/strtok_r (Depends-on): Add strpbrk.
36573
36574 2008-11-02  Bruno Haible  <bruno@clisp.org>
36575
36576         Mark 'strdup' obsolete.
36577         * modules/strdup (Status, Notice): New sections.
36578         * modules/findprog (Depends-on): Add strdup.
36579         * modules/getaddrinfo (Depends-on): Likewise.
36580         * modules/localename (Depends-on): Likewise.
36581         * modules/relocatable-lib (Depends-on): Likewise.
36582         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36583         * modules/relocatable-prog (Depends-on): Likewise.
36584         * modules/trim (Depends-on): Likewise.
36585         * modules/unictype/gen-ctype (Depends-on): Likewise.
36586         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36587
36588 2008-11-02  Bruno Haible  <bruno@clisp.org>
36589
36590         Mark 'strcspn' obsolete.
36591         * modules/strcspn (Status, Notice): New sections.
36592
36593 2008-11-02  Bruno Haible  <bruno@clisp.org>
36594
36595         Mark 'rmdir' obsolete.
36596         * modules/rmdir (Status, Notice): New sections.
36597         * modules/clean-temp (Depends-on): Add rmdir.
36598         * modules/openat (Depends-on): Likewise.
36599
36600 2008-11-02  Bruno Haible  <bruno@clisp.org>
36601
36602         Mark 'raise' obsolete.
36603         * modules/raise (Status, Notice): New sections.
36604         (Include): Specify <signal.h>.
36605         * modules/stdio (Depends-on): Add raise.
36606         * modules/write (Depends-on): Likewise.
36607
36608 2008-11-02  Bruno Haible  <bruno@clisp.org>
36609
36610         Mark 'memset' obsolete.
36611         * modules/memset (Status, Notice): New sections.
36612
36613 2008-11-02  Bruno Haible  <bruno@clisp.org>
36614
36615         Mark 'memmove' obsolete.
36616         * modules/memmove (Status, Notice): New sections.
36617         * modules/argp (Depends-on): Add memmove.
36618         * modules/argz (Depends-on): Likewise.
36619         * modules/canonicalize (Depends-on): Likewise.
36620         * modules/canonicalize-lgpl (Depends-on): Likewise.
36621         * modules/fts (Depends-on): Likewise.
36622         * modules/getcwd (Depends-on): Likewise.
36623         * modules/human (Depends-on): Likewise.
36624         * modules/regex (Depends-on): Likewise.
36625         * modules/striconveh (Depends-on): Likewise.
36626         * modules/trim (Depends-on): Likewise.
36627         * modules/unistr/u8-move (Depends-on): Likewise.
36628         * modules/unistr/u16-move (Depends-on): Likewise.
36629         * modules/unistr/u32-move (Depends-on): Likewise.
36630
36631 2008-11-02  Bruno Haible  <bruno@clisp.org>
36632
36633         Mark 'memcpy' obsolete.
36634         * modules/memcpy (Status, Notice): New sections.
36635
36636 2008-11-02  Bruno Haible  <bruno@clisp.org>
36637
36638         Mark 'memcmp' obsolete.
36639         * modules/memcmp (Status, Notice): New sections.
36640         * modules/argmatch (Depends-on): Add memchr.
36641         * modules/backupfile (Depends-on): Likewise.
36642         * modules/c-strcasestr (Depends-on): Likewise.
36643         * modules/crypto/des (Depends-on): Likewise.
36644         * modules/csharpcomp (Depends-on): Likewise.
36645         * modules/fnmatch (Depends-on): Likewise.
36646         * modules/git-merge-changelog (Depends-on): Likewise.
36647         * modules/isnand (Depends-on): Likewise.
36648         * modules/isnand-nolibm (Depends-on): Likewise.
36649         * modules/isnanf (Depends-on): Likewise.
36650         * modules/isnanf-nolibm (Depends-on): Likewise.
36651         * modules/isnanl (Depends-on): Likewise.
36652         * modules/isnanl-nolibm (Depends-on): Likewise.
36653         * modules/mbchar (Depends-on): Likewise.
36654         * modules/memcoll (Depends-on): Likewise.
36655         * modules/quotearg (Depends-on): Likewise.
36656         * modules/regex (Depends-on): Likewise.
36657         * modules/relocatable-prog (Depends-on): Likewise.
36658         * modules/same (Depends-on): Likewise.
36659         * modules/signbit (Depends-on): Likewise.
36660         * modules/strcasestr-simple (Depends-on): Likewise.
36661         * modules/unictype/gen-ctype (Depends-on): Likewise.
36662         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36663         * modules/uniname/uniname (Depends-on): Likewise.
36664         * modules/unistr/u8-cmp (Depends-on): Likewise.
36665
36666 2008-11-02  Bruno Haible  <bruno@clisp.org>
36667
36668         Mark 'memchr' obsolete.
36669         * modules/memchr (Status, Notice): New sections.
36670         * modules/argp (Depends-on): Add memchr.
36671         * modules/base64 (Depends-on): Likewise.
36672         * modules/c-strcasestr (Depends-on): Likewise.
36673         * modules/chdir-long (Depends-on): Likewise.
36674         * modules/fnmatch (Depends-on): Likewise.
36675         * modules/getsubopt (Depends-on): Likewise.
36676         * modules/git-merge-changelog (Depends-on): Likewise.
36677         * modules/glob (Depends-on): Likewise.
36678         * modules/strcasestr-simple (Depends-on): Likewise.
36679         * modules/strnlen (Depends-on): Likewise.
36680
36681 2008-11-02  Bruno Haible  <bruno@clisp.org>
36682
36683         Mark 'atexit' obsolete.
36684         * modules/atexit (Status, Notice): New sections.
36685         * modules/chdir-long (Depends-on): Add atexit.
36686         * modules/wait-process (Depends-on): Likewise.
36687
36688 2008-11-02  Bruno Haible  <bruno@clisp.org>
36689
36690         * gnulib-tool: New option --with-obsolete.
36691         (func_usage): Document it.
36692         (func_modules_transitive_closure): Drop obsolete dependencies if
36693         incobsolete is not true.
36694         (func_import): Read and save the incobsolete variable to the cache.
36695
36696 2008-11-02  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36699         * gnulib-tool: New option --extract-status.
36700         (func_usage): Document it.
36701         (sed_extract_prog): Recognize it.
36702         (func_get_status): New function.
36703
36704 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36705
36706         * modules/sockets (License): Change from LGPL to LGPLv2+.
36707
36708 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36709
36710         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36711
36712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36713
36714         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36715         Mention times and sys_times.
36716         * modules/sys_times, modules/sys_times-tests: New modules.
36717         * modules/times, modules/times-tests: Likewise
36718         * m4/sys_times_h.m4: New file.
36719         * lib/sys_times.in.h: Likewise
36720         * lib/times.c: Likewise.
36721         * tests/test-sys_times.c: Likewise.
36722         * tests/test-times.c: Likewise.
36723         * doc/posix-headers/sys_times.texi: Update.
36724         * doc/posix-functions/times.texi: Update.
36725
36726 2008-10-28  Jim Meyering  <meyering@redhat.com>
36727
36728         * modules/tempname (Depends-on): Add lstat.
36729
36730         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36731
36732 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36733
36734         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36735         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36736         using idiom used elsewhere in gnulib.
36737
36738 2008-10-27  Jim Meyering  <meyering@redhat.com>
36739
36740         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36741
36742 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36743
36744         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36745         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36746         programs.
36747         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36748
36749 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36750
36751         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36752
36753 2008-10-27  Bruno Haible  <bruno@clisp.org>
36754
36755         * tests/test-lstat.c: Include <stdio.h>.
36756
36757 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36758
36759         * modules/lstat-tests: New module.
36760         * tests/test-lstat.c: New file.
36761
36762 2008-10-26  Jim Meyering  <meyering@redhat.com>
36763
36764         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36765
36766 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36767             Bruno Haible  <bruno@clisp.org>
36768
36769         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36770         * modules/configmake (Include): Add a note that the include must come
36771         after all system headers.
36772         * lib/javaversion.c: Include configmake.h after all other includes.
36773
36774 2008-10-26  Bruno Haible  <bruno@clisp.org>
36775
36776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36777         HAVE_STRUCT_RANDOM_DATA to 1.
36778         (gl_STDLIB_H): Simplify.
36779
36780 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36781
36782         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36783         substitute HAVE_STRUCT_RANDOM_DATA.
36784         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36785         random_data.
36786         * modules/stdlib (Makefile.am): Substitute
36787         HAVE_STRUCT_RANDOM_DATA.
36788
36789 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36790
36791         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36792         * doc/gnulib-intro.texi (Copyright): Likewise.
36793
36794 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36795
36796         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36797         findings.
36798
36799 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36800             Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/unistd.in.h: Include <winsock2.h>.
36803         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36804         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36805         Provide dummy declarations.
36806         (gethostname): Override.
36807         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36808         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36809         gl_PREREQ_SYS_H_WINSOCK2.
36810         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36811         * doc/posix-functions/gethostname.texi: More details.
36812
36813 2008-10-25  Bruno Haible  <bruno@clisp.org>
36814
36815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36816         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36817         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36818
36819         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36820         here ...
36821         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36823         gl_UNISTD_H_DEFAULTS.
36824
36825 2008-10-25  Eric Blake  <ebb9@byu.net>
36826
36827         signbit: avoid spurious compiler failure
36828         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36829         declarations inside function.
36830
36831 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36832             Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36835         * modules/random_r (Depends-on): Add stdint.
36836
36837 2008-10-24  Bruno Haible  <bruno@clisp.org>
36838
36839         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36840         Eggert.
36841         * modules/strerror (License): Likewise.
36842
36843 2008-10-24  Jim Meyering  <meyering@redhat.com>
36844
36845         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36846         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36847
36848 2008-10-24  Eric Blake  <ebb9@byu.net>
36849
36850         getgroups: fix compilation when getgroups is available
36851         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36852         but with <config.h> override of getgroups disabled.
36853
36854 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36855
36856         * doc/gnulib.texi (Header files): Add note about C++ problems.
36857         Explained by Bruno Haible <bruno@clisp.org>.
36858
36859 2008-10-23  Bruno Haible  <bruno@clisp.org>
36860
36861         Define a dummy SA_NODEFER macro on Interix.
36862         * lib/signal.in.h (SA_NODEFER): Define fallback.
36863         Reported by Aleksey Cheusov <cheusov@tut.by> via
36864         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36865
36866 2008-10-23  Bruno Haible  <bruno@clisp.org>
36867
36868         * modules/freadahead (License): Change to LGPLv2+.
36869         Suggested by Simon Josefsson.
36870
36871 2008-10-23  Jim Meyering  <meyering@redhat.com>
36872
36873         random_r: new module
36874         * modules/random_r: New file.
36875         * m4/random_r.m4: New file.
36876         * lib/random_r.c: New file, from glibc.
36877         * modules/random_r-tests: New file.
36878         * tests/test-random_r.c: New file.
36879         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36880          Declare.
36881         (RAND_MAX): Define.
36882         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36883         * modules/stdlib: Substitute them, too.
36884         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36885         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36886         * doc/glibc-functions/random_r.texi: Likewise.
36887         * doc/glibc-functions/setstate_r.texi: Likewise.
36888         * doc/glibc-functions/srandom_r.texi: Likewise.
36889         * config/srclist.txt: Mention it.
36890
36891 2008-10-23  David Lutterkort  <lutter@redhat.com>
36892
36893         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36894         link requirement
36895
36896 2008-10-23  Jim Meyering  <meyering@redhat.com>
36897
36898         selinux-h: mark parameters of stub functions as intentionally unused
36899         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36900         * lib/se-context.in.h: Likewise.
36901
36902 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36903
36904         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36905
36906 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36907
36908         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36909
36910 2008-10-22  Eric Blake  <ebb9@byu.net>
36911
36912         glthread/thread: avoid compiler warning
36913         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36914         Add unreachable abort to silence compiler.
36915
36916 2008-10-22  Eric Blake  <ebb9@byu.net>
36917
36918         netdb: also supply struct addrinfo for cygwin 1.5.x
36919         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36920         older cygwin.
36921         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36922         cygwin.
36923         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36924
36925 2008-10-22  Bruno Haible  <bruno@clisp.org>
36926
36927         * users.txt: Update entry about pspp.
36928
36929 2008-10-21  Bruno Haible  <bruno@clisp.org>
36930
36931         Simplification.
36932         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36933         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36934
36935         Simplification.
36936         * lib/ioctl.c (ioctl): Don't undefine.
36937         * lib/socket.c (socket): Don't undefine.
36938
36939         Remove unused module indicator macros.
36940         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36941         GNULIB_$1 as a C macro.
36942
36943         * doc/posix-functions/close.texi: Undo last change.
36944         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36945         Windows platforms.
36946
36947 2008-10-21  Bruno Haible  <bruno@clisp.org>
36948
36949         Add gethostname() declaration to <unistd.h>.
36950         * lib/unistd.in.h (gethostname): New declaration.
36951         * lib/gethostname.c: Include <unistd.h>.
36952         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36953         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36955         and HAVE_GETHOSTNAME.
36956         * modules/gethostname (Depends-on): Add unistd.
36957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36958         (Include): Specify <unistd.h>.
36959         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36960         HAVE_GETHOSTNAME.
36961         * tests/test-gethostname.c: Include <unistd.h> first.
36962
36963 2008-10-21  Bruno Haible  <bruno@clisp.org>
36964
36965         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36966         * modules/select-tests (Depends-on): Likewise.
36967         Reported by Simon Josefsson.
36968
36969 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36970
36971         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36972         * lib/accept.c: New file, based on winsock.c.
36973         * lib/bind.c: New file, based on winsock.c.
36974         * lib/connect.c: New file, based on winsock.c.
36975         * lib/getpeername.c: New file, based on winsock.c.
36976         * lib/getsockname.c: New file, based on winsock.c.
36977         * lib/getsockopt.c: New file, based on winsock.c.
36978         * lib/ioctl.c: New file, based on winsock.c.
36979         * lib/listen.c: New file, based on winsock.c.
36980         * lib/recv.c: New file, based on winsock.c.
36981         * lib/recvfrom.c: New file, based on winsock.c.
36982         * lib/send.c: New file, based on winsock.c.
36983         * lib/sendto.c: New file, based on winsock.c.
36984         * lib/setsockopt.c: New file, based on winsock.c.
36985         * lib/shutdown.c: New file, based on winsock.c.
36986         * lib/socket.c: New file, based on winsock.c.
36987         * lib/w32sock.h: New file, based on winsock.c.
36988         * lib/winsock.c: Remove file.
36989         * modules/accept: Likewise.
36990         * modules/bind: Likewise.
36991         * modules/connect: Likewise.
36992         * modules/getpeername: Likewise.
36993         * modules/getsockname: Likewise.
36994         * modules/getsockopt: Likewise.
36995         * modules/ioctl: Likewise.
36996         * modules/listen: Likewise.
36997         * modules/recv: Likewise.
36998         * modules/recvfrom: Likewise.
36999         * modules/send: Likewise.
37000         * modules/sendto: Likewise.
37001         * modules/setsockopt: Likewise.
37002         * modules/shutdown: Likewise.
37003         * modules/socket: Use socket.c instead of winsock.c.
37004         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37005         * doc/posix-functions/accept.texi: Doc fix.
37006         * doc/posix-functions/bind.texi: Doc fix.
37007         * doc/posix-functions/close.texi: Doc fix.
37008         * doc/posix-functions/connect.texi: Doc fix.
37009         * doc/posix-functions/getpeername.texi: Doc fix.
37010         * doc/posix-functions/getsockname.texi: Doc fix.
37011         * doc/posix-functions/getsockopt.texi: Doc fix.
37012         * doc/posix-functions/ioctl.texi: Doc fix.
37013         * doc/posix-functions/listen.texi: Doc fix.
37014         * doc/posix-functions/recv.texi: Doc fix.
37015         * doc/posix-functions/recvfrom.texi: Doc fix.
37016         * doc/posix-functions/send.texi: Doc fix.
37017         * doc/posix-functions/sendto.texi: Doc fix.
37018         * doc/posix-functions/setsockopt.texi: Doc fix.
37019         * doc/posix-functions/shutdown.texi: Doc fix.
37020         * doc/posix-functions/socket.texi: Doc fix.
37021
37022 2008-10-20  Bruno Haible  <bruno@clisp.org>
37023
37024         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37025         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37026         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37027         as an alias for SIGABRT.
37028         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37029         (sigaction): Map it to SIGABRT.
37030         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37031
37032 2008-10-20  Bruno Haible  <bruno@clisp.org>
37033
37034         * lib/fts.c: Don't include lstat.h.
37035         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37036
37037         Move the lstat() declaration to <sys/stat.h>.
37038         * lib/lstat.h: Remove file.
37039         * lib/sys_stat.in.h: Add special invocation convention.
37040         (lstat): New declaration.
37041         * lib/lstat.c (orig_lstat): New function.
37042         (rpl_lstat): Use orig_lstat instead of lstat.
37043         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37044         AC_C_INLINE. Set REPLACE_LSTAT.
37045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37046         and REPLACE_LSTAT.
37047         * modules/lstat (Files): Remove lib/lstat.h.
37048         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37049         (Include): Specify <sys/stat.h> instead of lstat.h.
37050         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37051         REPLACE_LSTAT.
37052         * NEWS: Mention the change.
37053
37054 2008-10-20  Bruno Haible  <bruno@clisp.org>
37055
37056         * modules/posix_spawn-tests: New file.
37057         * tests/test-posix_spawn3.c: New file.
37058
37059 2008-10-20  Bruno Haible  <bruno@clisp.org>
37060
37061         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37062         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37063         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37064         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37065         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37066
37067 2008-10-20  Bruno Haible  <bruno@clisp.org>
37068
37069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37070         of posix_spawn on AIX 5.3.
37071
37072 2008-10-20  Bruno Haible  <bruno@clisp.org>
37073
37074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37075
37076 2008-10-20  Bruno Haible  <bruno@clisp.org>
37077
37078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37079         of AC_LANG_PROGRAM.
37080
37081 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37082
37083         * lib/netdb.in.h: Don't define GNU specific constants until they
37084         are supported or needed.  Reported by Bruno Haible
37085         <bruno@clisp.org>.
37086
37087 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37088
37089         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37090
37091 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37092
37093         * lib/getaddrinfo.h: Remove file.
37094         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37095         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37096         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37097         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37098         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37099         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37100         * tests/test-getaddrinfo.c: Likewise.
37101         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37102         * NEWS: Mention change.
37103
37104 2008-10-19  Bruno Haible  <bruno@clisp.org>
37105
37106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37107
37108 2008-10-19  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/wait-process.c: Include simply <sys/wait.h>.
37111         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37112         WIFSTOPPED): Remove fallback definitions.
37113         * modules/wait-process (Depends-on): Add sys_wait.
37114
37115         New module 'sys_wait'.
37116         * modules/sys_wait: New file.
37117         * lib/sys_wait.in.h: New file, partially copied from
37118         lib/wait-process.c.
37119         * m4/sys_wait_h.m4: New file.
37120         * doc/posix-headers/sys_wait.texi: Mention the new module.
37121
37122 2008-10-19  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37125
37126 2008-10-19  Bruno Haible  <bruno@clisp.org>
37127
37128         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37129         * lib/wait-process.c (WAIT_T): Remove type.
37130         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37131         (wait_subprocess): Update.
37132
37133 2008-10-19  Bruno Haible  <bruno@clisp.org>
37134
37135         New module 'atoll'.
37136         * modules/atoll: New file.
37137         * lib/stdlib.in.h (atoll): New declaration.
37138         * lib/atoll.c: New file, from glibc with modifications.
37139         * m4/atoll.m4: New file.
37140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37141         HAVE_ATOLL.
37142         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37143         * doc/posix-functions/atoll.texi: Mention the new module.
37144
37145 2008-10-19  Bruno Haible  <bruno@clisp.org>
37146
37147         Add strtoull() declaration to <stdlib.h>.
37148         * lib/stdlib.in.h (strtoull): New declaration.
37149         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37150         Set HAVE_STRTOULL.
37151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37152         HAVE_STRTOULL.
37153         * modules/strtoull (Depends-on): Add stdlib.
37154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37155         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37156         HAVE_STRTOULL.
37157
37158 2008-10-19  Bruno Haible  <bruno@clisp.org>
37159
37160         Add strtoll() declaration to <stdlib.h>.
37161         * lib/stdlib.in.h (strtoll): New declaration.
37162         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37163         Set HAVE_STRTOLL.
37164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37165         HAVE_STRTOLL.
37166         * modules/strtoll (Depends-on): Add stdlib.
37167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37168         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37169
37170 2008-10-19  Bruno Haible  <bruno@clisp.org>
37171
37172         * modules/bcopy (Depends-on): Add strings.
37173         (Include): Specify <strings.h>.
37174
37175 2008-10-19  Bruno Haible  <bruno@clisp.org>
37176
37177         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37178
37179 2008-10-19  Bruno Haible  <bruno@clisp.org>
37180
37181         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37182         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37183         mingw.
37184
37185 2008-10-19  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/atanl.c: Don't include isnanl.h.
37188         * lib/cosl.c: Likewise.
37189         * lib/ldexpl.c: Likewise.
37190         * lib/logl.c: Likewise.
37191         * lib/sinl.c: Likewise.
37192         * lib/sqrtl.c: Likewise.
37193         * lib/tanl.c: Likewise.
37194
37195         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37196         * lib/isnanf.h: Remove file.
37197         * lib/isnand.h: Remove file.
37198         * lib/isnanl.h: Remove file.
37199         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37200         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37201         macros.
37202         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37203         HAVE_ISNANF, don't define it as a C macro.
37204         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37205         HAVE_ISNAND, don't define it as a C macro.
37206         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37207         HAVE_ISNANL, don't define it as a C macro.
37208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37209         HAVE_ISNAN[FDL].
37210         * modules/isnanf (Files): Remove lib/isnanf.h.
37211         (Depends-on): Add math.
37212         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37213         (Include): Specify <math.h> instead of isnanf.h.
37214         * modules/isnand (Files): Remove lib/isnand.h.
37215         (Depends-on): Add math.
37216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37217         (Include): Specify <math.h> instead of isnand.h.
37218         * modules/isnanl (Files): Remove lib/isnanl.h.
37219         (Depends-on): Add math.
37220         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37221         (Include): Specify <math.h> instead of isnanl.h.
37222         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37223         HAVE_ISNAN[FDL].
37224         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37225         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37226         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37227         * NEWS: Mention the change.
37228
37229 2008-10-18  Bruno Haible  <bruno@clisp.org>
37230
37231         Add getusershell(), setusershell(), endusershell() declarations to
37232         <unistd.h>.
37233         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37234         declarations.
37235         * lib/getusershell.c: Include unistd.h.
37236         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37237         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37238         HAVE_GETUSERSHELL.
37239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37240         and HAVE_GETUSERSHELL.
37241         * modules/getusershell (Depends-on): Add unistd, extensions.
37242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37243         (Include): Specify <unistd.h>.
37244         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37245         HAVE_GETUSERSHELL.
37246
37247 2008-10-18  Bruno Haible  <bruno@clisp.org>
37248
37249         Add a getloadavg() declaration to <stdlib.h>.
37250         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37251         getloadavg declaration.
37252         (getloadavg): New declaration.
37253         * lib/getloadavg.c: Include <stdlib.h> first.
37254         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37255         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37256         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37258         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37259         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37260         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37261         (Include): Specify <stdlib.h>.
37262         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37263         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37264
37265 2008-10-18  Bruno Haible  <bruno@clisp.org>
37266
37267         * lib/dirchownmod.c: Don't include lchmod.h.
37268
37269         Move the lchmod() declaration to <sys/stat.h>.
37270         * lib/lchmod.h: Remove file.
37271         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37272         (lchmod): New declaration, moved here from lib/lchown.h.
37273         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37274         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37275         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37276         and HAVE_LCHMOD.
37277         * modules/lchmod (Files): Remove lib/lchmod.h.
37278         (Depends-on): Add sys_stat, extensions.
37279         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37280         (Include): Specify <sys/stat.h> instead of lchmod.h.
37281         * modules/sys_stat (Depends-on): Add link-warning.
37282         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37283         definition of GL_LINK_WARNING.
37284         * NEWS: Mention the change.
37285
37286 2008-10-18  Bruno Haible  <bruno@clisp.org>
37287
37288         * lib/fchdir.c: Don't include dirfd.h.
37289         * lib/fts.c: Likewise.
37290         * lib/getcwd.c: Likewise.
37291         * lib/glob.c: Likewise.
37292
37293         Move the dirfd() declaration to <dirent.h>.
37294         * lib/dirfd.h: Remove file.
37295         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37296         (dirfd): New declaration.
37297         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37299         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37300         HAVE_DECL_DIRFD.
37301         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37302         HAVE_DECL_DIRFD.
37303         * modules/dirfd (Files): Remove lib/dirfd.h.
37304         (Depends-on): Add dirent, extensions.
37305         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37306         (Include): Specify <dirent.h> instead of dirfd.h.
37307         * modules/dirent (Depends-on): Add link-warning.
37308         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37309         definition of GL_LINK_WARNING.
37310         * NEWS: Mention the change.
37311
37312 2008-10-18  Bruno Haible  <bruno@clisp.org>
37313
37314         Move the euidaccess() declaration to <unistd.h>.
37315         * lib/euidaccess.h: Remove file.
37316         * lib/unistd.in.h (euidaccess): New declaration.
37317         * lib/euidaccess.c: Don't include euidaccess.h.
37318         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37319         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37321         and HAVE_EUIDACCESS.
37322         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37323         (Depends-on): Add unistd.
37324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37325         (Include): Specify <unistd.h> instead of euidaccess.h.
37326         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37327         HAVE_EUIDACCESS.
37328         * NEWS: Mention the change.
37329
37330 2008-10-18  Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37333
37334         Move the getdomainname() declaration to <unistd.h>.
37335         * lib/getdomainname.h: Remove file.
37336         * lib/unistd.in.h (getdomainname): New declaration.
37337         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37338         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37339         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37340         HAVE_GETDOMAINNAME.
37341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37342         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37343         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37344         (Depends-on): Add unistd, extensions.
37345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37346         (Includes): Specify <unistd.h> instead of getdomainname.h.
37347         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37348         HAVE_GETDOMAINNAME.
37349         * NEWS: Mention the change.
37350
37351 2008-10-18  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/dirent: New file.
37354         * m4/dirent_h.m4: New file.
37355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37356         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37357         * modules/fchdir (Files): Remove lib/dirent.in.h.
37358         (Depends-on): Add dirent.
37359         (Makefile.am): Move rules to modules/dirent.
37360         * doc/posix-headers/dirent.texi: Mention the new module.
37361
37362 2008-10-18  Bruno Haible  <bruno@clisp.org>
37363
37364         Avoid -Wunused-parameter warnings in public gnulib header files.
37365         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37366         macro.
37367         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37368
37369 2008-10-18  Bruno Haible  <bruno@clisp.org>
37370
37371         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37372         * doc/glibc-functions/error.texi: Mention the module 'error'.
37373         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37374         * doc/glibc-functions/getdomainname.texi: Mention the module
37375         'getdomainname'.
37376         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37377         * doc/glibc-functions/getpagesize.texi: Mention the module
37378         'getpagesize'.
37379         * doc/glibc-functions/getusershell.texi: Mention the module
37380         'getusershell'.
37381         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37382         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37383         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37384         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37385         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37386         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37387         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37388         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37389         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37390         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37391         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37392         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37393         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37394         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37395
37396 2008-10-17  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37399         HP-UX and IRIX, use -0.0L.
37400         * tests/test-ceill.c (minus_zero): Likewise.
37401         * tests/test-floorl.c (minus_zero): Likewise.
37402         * tests/test-frexpl.c (minus_zero): Likewise.
37403         * tests/test-isnan.c (minus_zerol): Likewise.
37404         * tests/test-isnanl.h (minus_zero): Likewise.
37405         * tests/test-ldexpl.c (minus_zero): Likewise.
37406         * tests/test-roundl.c (minus_zero): Likewise.
37407         * tests/test-signbit.c (minus_zerol): Likewise.
37408         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37409         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37410         * tests/test-truncl.c (minus_zero): Likewise.
37411         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37412         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37413         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37414         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37415
37416 2008-10-17  Bruno Haible  <bruno@clisp.org>
37417
37418         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37419         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37420         that it gets activated only for gcc >= 3.0.
37421         * lib/dirent.in.h: Likewise.
37422         * lib/errno.in.h: Likewise.
37423         * lib/fcntl.in.h: Likewise.
37424         * lib/float.in.h: Likewise.
37425         * lib/iconv.in.h: Likewise.
37426         * lib/inttypes.in.h: Likewise.
37427         * lib/locale.in.h: Likewise.
37428         * lib/math.in.h: Likewise.
37429         * lib/netdb.in.h: Likewise.
37430         * lib/netinet_in.in.h: Likewise.
37431         * lib/search.in.h: Likewise.
37432         * lib/signal.in.h: Likewise.
37433         * lib/spawn.in.h: Likewise.
37434         * lib/stdarg.in.h: Likewise.
37435         * lib/stdint.in.h: Likewise.
37436         * lib/stdio.in.h: Likewise.
37437         * lib/stdlib.in.h: Likewise.
37438         * lib/string.in.h: Likewise.
37439         * lib/strings.in.h: Likewise.
37440         * lib/sys_file.in.h: Likewise.
37441         * lib/sys_ioctl.in.h: Likewise.
37442         * lib/sys_select.in.h: Likewise.
37443         * lib/sys_socket.in.h: Likewise.
37444         * lib/sys_stat.in.h: Likewise.
37445         * lib/sys_time.in.h: Likewise.
37446         * lib/sysexits.in.h: Likewise.
37447         * lib/time.in.h: Likewise.
37448         * lib/unistd.in.h: Likewise.
37449         * lib/wchar.in.h: Likewise.
37450         * lib/wctype.in.h: Likewise.
37451         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37452
37453 2008-10-17  Jim Meyering  <meyering@redhat.com>
37454
37455         ignore-value: don't depend on inline module
37456         * modules/ignore-value (Depends-on): Remove 'inline'.
37457         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37458         Suggestion from Bruno Haible.
37459
37460 2008-10-17  Bruno Haible  <bruno@clisp.org>
37461
37462         New implementation of condition variables for Win32.
37463         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37464         (gl_linked_waitqueue_t): New type.
37465         (gl_cond_t): Use it.
37466         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37467         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37468         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37469         (glthread_cond_init_func, glthread_cond_wait_func,
37470         glthread_cond_timedwait_func, glthread_cond_signal_func,
37471         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37472         Reimplemented on the basis of gl_linked_waitqueue_t.
37473         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37474         gl_waitqueue_t.
37475         (gl_rwlock_t): Update.
37476         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37477
37478 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37479
37480         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37481         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37482
37483 2008-10-17  Jim Meyering  <meyering@redhat.com>
37484
37485         ignore-value: new module
37486         * modules/ignore-value: New file.
37487         * lib/ignore-value.h: New file.
37488         * MODULES.html.sh (Compiler warning management): New section,
37489         just for this module.  More to come.
37490
37491 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37492
37493         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37494         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37495         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37496
37497 2008-10-16  Jim Meyering  <meyering@redhat.com>
37498
37499         openat-die.c: avoid 'no previous prototype' warning
37500         * lib/openat-die.c: Include "openat.h".
37501         Reported by Reuben Thomas <rrt@sc3d.org>.
37502
37503 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37504
37505         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37506         * lib/netdb.in.h: Fix typo.
37507         Reported by Bruno Haible  <bruno@clisp.org>
37508
37509         * lib/netdb.in.h: Include sys/socket.h for platforms without
37510         netdb.h, to get structures like hostent on MinGW.
37511         * modules/netdb (Depends-on): Add sys_socket.
37512
37513 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37514
37515         * modules/netdb, modules/netdb-tests: New file.
37516         * m4/netdb_h.m4: New file.
37517         * lib/netdb.in.h: Add, currently just an empty file pending
37518         definitions.
37519         * tests/test-netdb.c: New file.
37520         * doc/posix-headers/netdb.texi: Mention that we replace it if
37521         needed.
37522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37523         netdb.
37524
37525 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37526
37527         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37528         with code.
37529
37530 2008-10-13  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/glthread/cond.c (glthread_cond_wait_func,
37533         glthread_cond_timedwait_func): Add a comment.
37534
37535 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37536
37537         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37538         * tests/test-select.c: Likewise,
37539
37540 2008-10-13  Bruno Haible  <bruno@clisp.org>
37541
37542         * lib/glthread/cond.c (glthread_cond_wait_func,
37543         glthread_cond_timedwait_func): Fix variable name.
37544         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37545
37546 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37547
37548         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37550         struct sockaddr.sa_len.
37551         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37552
37553 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37554
37555         * build-aux/pmccabe2html: Add css and css_url parameters.
37556
37557 2008-10-12  Bruno Haible  <bruno@clisp.org>
37558
37559         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37560         calling aclx_get.
37561         Reported by Rainer Tammer <tammer@tammer.net>.
37562
37563 2008-10-12  Bruno Haible  <bruno@clisp.org>
37564
37565         Use msvcrt aware primitives for creation/termination of Win32 threads.
37566         * lib/glthread/thread.c: Include <process.h>.
37567         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37568         (wrapper_func): Update signature.
37569         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37570
37571 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37572             Bruno Haible  <bruno@clisp.org>
37573
37574         Provide a Win32 implementation of the 'cond' module.
37575         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37576         * lib/glthread/cond.c (glthread_cond_init_func,
37577         glthread_cond_wait_func, glthread_cond_timedwait_func,
37578         glthread_cond_signal_func, glthread_cond_broadcast_func,
37579         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37580         * modules/cond (Dependencies): Add gettimeofday.
37581
37582 2008-10-11  Bruno Haible  <bruno@clisp.org>
37583
37584         Make sleep work on older versions of mingw.
37585         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37586         only whether it exists.
37587         * doc/posix-functions/sleep.texi: Mention the problem with older
37588         versions of mingw.
37589
37590 2008-10-11  Bruno Haible  <bruno@clisp.org>
37591
37592         New module 'shutdown'.
37593         * modules/shutdown: New file.
37594         * lib/sys_socket.in.h (shutdown): New declaration.
37595         * lib/winsock.c (shutdown): New function.
37596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37597         GNULIB_SHUTDOWN.
37598         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37599         * doc/posix-functions/shutdown.texi: Document the new module.
37600
37601 2008-10-11  Jim Meyering  <meyering@redhat.com>
37602
37603         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37604
37605 2008-10-11  Bruno Haible  <bruno@clisp.org>
37606
37607         New module 'fclose'.
37608         * modules/fclose: New file.
37609         * lib/stdio.in.h (fclose): New declaration.
37610         * lib/fclose.c: New file.
37611         * m4/fclose.m4: New file.
37612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37613         REPLACE_FCLOSE.
37614         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37615         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37616         REPLACE_FCLOSE.
37617         * modules/close (Depends-on): fclose.
37618         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37619
37620 2008-10-11  Bruno Haible  <bruno@clisp.org>
37621
37622         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37623         set errno and don't call _close.
37624
37625 2008-10-10  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37628         ACL, not afterwards. Fixes test failure on Cygwin.
37629
37630 2008-10-09  Ben Pfaff  <blp@gnu.org>
37631
37632         * build-aux/announce-gen: Fix gnulib version related part of usage
37633         message.  Die with a useful error message if no tarballs are
37634         found.
37635
37636 2008-10-10  Jim Meyering  <meyering@redhat.com>
37637
37638         bootstrap: use git's --depth=N option only if it's supported
37639         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37640         recognize the --depth option.  Reported by Pádraig Brady.
37641
37642 2008-10-09  Bruno Haible  <bruno@clisp.org>
37643
37644         New module 'ioctl'.
37645         * modules/ioctl: New file.
37646         * lib/sys_socket.in.h (ioctl): Remove declaration.
37647         * lib/winsock.c: Include <sys/ioctl.h>.
37648         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37649         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37650         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37651         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37652         * doc/posix-functions/ioctl.texi: Mention the new module.
37653
37654 2008-10-09  Bruno Haible  <bruno@clisp.org>
37655
37656         New module 'sys_ioctl'.
37657         * lib/sys_ioctl.in.h: New file.
37658         * m4/sys_ioctl_h.m4: New file.
37659         * modules/sys_ioctl: New file.
37660         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37661
37662 2008-10-09  Bruno Haible  <bruno@clisp.org>
37663
37664         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37665         * lib/winsock.c: Include <stdarg.h>.
37666         (rpl_ioctl): Change to second argument 'int' and then varargs.
37667
37668 2008-10-09  Bruno Haible  <bruno@clisp.org>
37669
37670         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37671         when the sys_socket module is present and the system has <winsock2.h>.
37672
37673 2008-10-09  Bruno Haible  <bruno@clisp.org>
37674
37675         * doc/posix-functions/close.texi: Mention module 'close' instead of
37676         module 'sys_socket'.
37677
37678 2008-10-09  Bruno Haible  <bruno@clisp.org>
37679
37680         * doc/glibc-headers/sys_ioctl.texi: New file.
37681         * doc/gnulib.texi: Include it.
37682
37683 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37684             Bruno Haible  <bruno@clisp.org>
37685
37686         Combine the two replacements of 'close'.
37687         * lib/sys_socket.in.h (close): Define to a reminder to include
37688         <unistd.h>.
37689         (_gl_close_fd_maybe_socket): New declaration.
37690         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37691         * lib/winsock.c (close): Remove undefinition.
37692         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37693         needed for the gnulib module 'close'.
37694         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37695         define to an error symbol or to a warning, if suitable.
37696         * lib/close.c: Include <sys/socket.h>.
37697         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37698         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37699         UNISTD_H_HAVE_WINSOCK2_H.
37700         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37702         UNISTD_H_HAVE_WINSOCK2_H.
37703         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37704         (configure.ac): Set a module indicator.
37705         (Makefile.am): Substitute GNULIB_CLOSE.
37706         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37707         * modules/poll-tests (Depends-on): Add close.
37708         * modules/select-tests (Depends-on): Likewise.
37709
37710 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37711             Bruno Haible  <bruno@clisp.org>
37712
37713         New module 'close'.
37714         * modules/close: New file.
37715         * lib/unistd.in.h (close): Move declaration out of the
37716         FCHDIR_REPLACEMENT scope.
37717         (_gl_unregister_fd): New declaration.
37718         * lib/close.c: New file.
37719         * lib/fchdir.c (rpl_close): Remove function.
37720         * m4/close.m4: New file.
37721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37722         close.
37723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37724         REPLACE_CLOSE.
37725         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37726         REPLACE_CLOSE.
37727         * modules/fchdir (Depends-on): Add close.
37728
37729 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37730             Bruno Haible  <bruno@clisp.org>
37731
37732         * lib/fcntl.in.h (open): Simplify conditionals.
37733         (_gl_register_fd): New declaration.
37734         * lib/fchdir.c (rpl_open): Remove function.
37735         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37736         also.
37737         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37739         open.
37740
37741 2008-10-09  Jim Meyering  <meyering@redhat.com>
37742
37743         GNUmakefile: use the more name-space-friendly "_version"
37744         * top/GNUmakefile (_dummy): Update.
37745         (_version): Rename from "version".
37746
37747 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37748             Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37751         rpl_close.
37752         (_gl_register_fd): New function, extracted from rpl_open.
37753         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37754         (rpl_open, rpl_opendir): Use _gl_register_fd.
37755
37756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37757
37758         Fix organization of 'open' replacement.
37759         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37760         (gl_FUNC_OPEN): Use it.
37761         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37762
37763 2008-10-08  Bruno Haible  <bruno@clisp.org>
37764
37765         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37766
37767 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37768
37769         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37770         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37771         listen).
37772
37773 2008-10-08  Eric Blake  <ebb9@byu.net>
37774
37775         GNUmakefile: add 'make version' target
37776         * top/GNUmakefile (_curr-ver): Split version update rules...
37777         (version): ...into a target.
37778
37779 2008-10-07  Bruno Haible  <bruno@clisp.org>
37780
37781         Use a more portable replacement expression for -0.0L.
37782         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37783         instead of -0.0L. Fix m4 quotation.
37784
37785         * tests/test-signbit.c: Include <float.h>.
37786         (minus_zero): New variable.
37787         (test_signbitl): Use minus_zero instead of -zero.
37788         * modules/signbit-tests (Depends-on): Add float.
37789
37790         * tests/test-ceill.c: Include <float.h>.
37791         (zero): Remove variable.
37792         (minus_zero): New variable.
37793         (main): Use minus_zero instead of -zero.
37794         * modules/ceill-tests (Depends-on): Add float.
37795
37796         * tests/test-floorl.c: Include <float.h>.
37797         (zero): Remove variable.
37798         (minus_zero): New variable.
37799         (main): Use minus_zero instead of -zero.
37800         * modules/floorl-tests (Depends-on): Add float.
37801
37802         * tests/test-roundl.c: Include <float.h>.
37803         (zero): Remove variable.
37804         (minus_zero): New variable.
37805         (main): Use minus_zero instead of -zero.
37806         * modules/roundl-tests (Depends-on): Add float.
37807
37808         * tests/test-truncl.c: Include <float.h>.
37809         (zero): Remove variable.
37810         (minus_zero): New variable.
37811         (main): Use minus_zero instead of -zero.
37812         * modules/truncl-tests (Depends-on): Add float.
37813
37814         * tests/test-frexpl.c (zero): Remove variable.
37815         (minus_zero): New variable.
37816         (main): Use minus_zero instead of -zero.
37817         * modules/frexpl-tests (Depends-on): Add float.
37818
37819         * tests/test-isnan.c (zerol): Remove variable.
37820         (minus_zerol): New variable.
37821         (test_long_double): Use minus_zerol instead of -zerol.
37822         * modules/isnan-tests (Depends-on): Add float.
37823
37824         * tests/test-isnanl.h (zero): Remove variable.
37825         (minus_zero): New variable.
37826         (main): Use minus_zero instead of -zero.
37827         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37828         * modules/isnanl-tests (Depends-on): Add float.
37829
37830         * tests/test-ldexpl.c (zero): Remove variable.
37831         (minus_zero): New variable.
37832         (main): Use minus_zero instead of -zero.
37833         * modules/ldexpl-tests (Depends-on): Add float.
37834
37835         * tests/test-snprintf-posix.h (zerol): Remove variable.
37836         (minus_zerol): New variable.
37837         (test_function): Use minus_zerol instead of -zerol.
37838         * modules/snprintf-posix-tests (Depends-on): Add float.
37839         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37840
37841         * tests/test-sprintf-posix.h (zerol): Remove variable.
37842         (minus_zerol): New variable.
37843         (test_function): Use minus_zerol instead of -zerol.
37844         * modules/sprintf-posix-tests (Depends-on): Add float.
37845         * modules/vsprintf-posix-tests (Depends-on): Add float.
37846
37847         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37848         (minus_zerol): New variable.
37849         (test_function): Use minus_zerol instead of -zerol.
37850         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37851
37852         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37853         (minus_zerol): New variable.
37854         (test_function): Use minus_zerol instead of -zerol.
37855         * modules/vasprintf-posix-tests (Depends-on): Add float.
37856
37857 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37858
37859         * MODULES.html.sh (Support for building documentation): Mention
37860         pmccabe2html.  Sort entries.
37861
37862         Add pmccabe2html module, from gnupdf.
37863         * build-aux/pmccabe.css: New file.
37864         * build-aux/pmccabe2html: New file.
37865         * m4/pmccabe2html.m4: New file.
37866         * modules/pmccabe2html: New file.
37867
37868 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37869
37870         flock: new module
37871         * MODULES.html.sh: Add to list of modules.
37872         * lib/flock.c: flock implementation for Windows and Unix systems
37873         which have fcntl.
37874         * doc/glibc-functions/flock.texi: Update documentation.
37875         * lib/sys_file.in.h: <sys/file.h> header file.
37876         * m4/flock.m4: M4 macros.
37877         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37878         * modules/flock: flock module.
37879         * modules/flock-tests: flock tests module.
37880         * modules/sys_file: sys/file.h module.
37881         * tests/test-flock.c: test suite for flock.
37882
37883 2008-10-06  Jim Meyering  <meyering@redhat.com>
37884
37885         bootstrap: check for LT_INIT more portably still ;-)
37886         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37887         Spotted by Bruno Haible.
37888
37889 2008-10-06  Eric Blake  <ebb9@byu.net>
37890
37891         test-signbit: avoid tripping Irix cc bug on -0.0L
37892         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37893         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37894         entire testsuite consistent and avoids an Irix 6.2 bug.
37895
37896 2008-10-05  Bruno Haible  <bruno@clisp.org>
37897             Jim Meyering  <jim@meyering.net>
37898
37899         Add an option for ignoring EPIPE during close_stdout.
37900         * lib/closeout.h: Include <stdbool.h>.
37901         (close_stdout_set_ignore_EPIPE): New declaration.
37902         * lib/closeout.c: Include <stdbool.h>.
37903         (ignore_EPIPE): New variable.
37904         (close_stdout_set_ignore_EPIPE): New function.
37905         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37906         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37907         failure.
37908         * modules/closeout (Depends-on): Add stdbool.
37909
37910 2008-10-05  Bruno Haible  <bruno@clisp.org>
37911
37912         * modules/accept: New file.
37913         * modules/bind: New file.
37914         * modules/connect: New file.
37915         * modules/getpeername: New file.
37916         * modules/getsockname: New file.
37917         * modules/getsockopt: New file.
37918         * modules/listen: New file.
37919         * modules/recv: New file.
37920         * modules/recvfrom: New file.
37921         * modules/send: New file.
37922         * modules/sendto: New file.
37923         * modules/setsockopt: New file.
37924         * modules/socket: New file.
37925         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37926         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37927         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37928         the particular module is requested. Add a link warning when the
37929         particular module is not requested.
37930         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37931         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37932         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37933         the particular module is requested.
37934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37935         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37936         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37937         * modules/sys_socket (Depends-on): Add link-warning.
37938         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37939         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37940         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37941         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37942         GL_LINK_WARNING.
37943         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37944         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37945         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37946         * doc/posix-functions/getpeername.texi: Mention the new module
37947         'getpeername'.
37948         * doc/posix-functions/getsockname.texi: Mention the new module
37949         'getsockname'.
37950         * doc/posix-functions/getsockopt.texi: Mention the new module
37951         'getsockopt'.
37952         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37953         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37954         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37955         * doc/posix-functions/send.texi: Mention the new module 'send'.
37956         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37957         * doc/posix-functions/setsockopt.texi: Mention the new module
37958         'setsockopt'.
37959         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37960         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37961         listen, connect, accept.
37962         * modules/select-tests (Depends-on): Likewise.
37963
37964 2008-10-05  Bruno Haible  <bruno@clisp.org>
37965
37966         * lib/winsock.c (strerror): Remove unused #undef.
37967         (rpl_close): Remove unused local variable.
37968
37969         * modules/sys_socket (Depends-on); Add errno.
37970
37971 2008-10-05  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37974         (select): Add a link warning when the 'select' module is not used.
37975         * modules/sys_select (Depends-on): Add link-warning.
37976         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37977         Suggested by Paolo Bonzini.
37978
37979 2008-10-05  Jim Meyering  <meyering@redhat.com>
37980
37981         bootstrap: check for LT_INIT more portably
37982         * build-aux/bootstrap: Avoid using grep -E, since it's not
37983         portable enough.  Suggestion from Bruno Haible.
37984
37985 2008-10-05  Bruno Haible  <bruno@clisp.org>
37986
37987         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37988         as being fixed by gnulib.
37989
37990 2008-10-05  Bruno Haible  <bruno@clisp.org>
37991
37992         * modules/select-tests: New file, mostly copied from
37993         modules/sys_select-tests.
37994         * tests/test-select.c: New file, mostly copied from
37995         tests/test-sys_select.c.
37996         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37997         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37998         (Makefile.am): Remove test_sys_select_LDADD.
37999
38000         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38001         to an undefined symbol, for an error message.
38002         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38003         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38004         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38005         winsock-select.c here.
38006         * modules/sys_select (Files): Remove lib/winsock-select.c.
38007         (Depends-on): Remove alloca.
38008         (Makefile.am): Substitute GNULIB_SELECT.
38009         * modules/select: New file.
38010         * doc/posix-functions/select.texi: Update.
38011
38012 2008-10-05  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38015         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38016         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38017         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38018         getdtablesize.
38019         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38020         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38021
38022 2008-10-05  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/getdtablesize-tests: New file.
38025         * tests/test-getdtablesize.c: New file.
38026
38027         New module 'getdtablesize'.
38028         * lib/unistd.in.h (getdtablesize): New declaration.
38029         * lib/getdtablesize.c: New file.
38030         * m4/getdtablesize.m4: New file.
38031         * modules/getdtablesize: New file.
38032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38033         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38034         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38035         HAVE_GETDTABLESIZE.
38036         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38037
38038 2008-10-05  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/sched (Makefile.am): Fix typo.
38041         Reported by Simon Josefsson.
38042
38043 2008-10-05  Jim Meyering  <meyering@redhat.com>
38044
38045         bootstrap: check for LT_INIT, too
38046         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38047         are deprecated.  Suggestion from Ralf Wildenhues.
38048
38049 2008-10-05  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38052         overriding them by ours.
38053         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38054
38055 2008-10-05  Jim Meyering  <meyering@redhat.com>
38056
38057         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38058         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38059         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38060
38061 2008-10-04  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/dup2 (License): Change to LGPLv2+.
38064         * modules/sleep (License): Likewise.
38065         * modules/perror (License): Likewise.
38066         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38067         Blake.
38068         * modules/signal (License): Likewise.
38069         * modules/sigprocmask (License): Likewise.
38070         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38071         Meyering.
38072
38073 2008-10-04  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38076         Reported by Rainer Tammer <tammer@tammer.net>.
38077
38078 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38079             Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38082         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38083         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38084
38085 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38086
38087         filevercmp: new module
38088         * lib/filevercmp.h: New function filevercmp comparing version strings.
38089         * lib/filevercmp.c: Implementation of filevercmp function.
38090         * modules/filevercmp: Module metadata.
38091         * tests/test-filevercmp.c: Unit test for new module.
38092         * modules/filevercmp-tests: Unit test metadata.
38093         * MODULES.html.sh: Add filevercmp module.
38094
38095 2008-10-03  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/c-ctype.h: Add comment.
38098         Reported by Jim Meyering.
38099
38100 2008-10-02  Bruno Haible  <bruno@clisp.org>
38101
38102         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38103
38104 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38105
38106         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38107         name of bootstrap.conf accordingly.
38108
38109 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38110
38111         * build-aux/bootstrap: Install git-merge-changelog configuration
38112         items into .gitconfig if needed.
38113
38114 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38115
38116         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38117         git repository, and initialize/update it accordingly.
38118
38119 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38120
38121         * modules/fsync-tests: New file.
38122         * tests/test-fsync.c: New file.
38123
38124         New module 'fsync'.
38125         * lib/fsync.c: New file.
38126         * m4/fsync.m4: New file.
38127         * modules/fsync: New file.
38128         * lib/unistd.in.h (fsync): New declaration.
38129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38130         GNULIB_FSYNC and HAVE_FSYNC.
38131         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38132         * MODULES.html.sh (posix_functions): Add fsync.
38133         * doc/posix-functions/fsync.texi: Mention the new module.
38134
38135 2008-10-02  Jim Meyering  <meyering@redhat.com>
38136
38137         fts.c: sync with similar code from coreutils' remove.c
38138         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38139         Guard also with "#if defined __linux__", since for now at least,
38140         this code is Linux-kernel-specific.
38141
38142 2008-10-02  Jim Meyering  <meyering@redhat.com>
38143
38144         fts: bug fixes
38145         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38146         Include <sys/vfs.h>, not <sys/statfs.h>.
38147
38148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38149         Include <sys/vfs.h>, not <sys/statfs.h>.
38150
38151 2008-10-01  Bruno Haible  <bruno@clisp.org>
38152
38153         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38155         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38156         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38157         * doc/posix-functions/posix_spawnp.texi: Likewise.
38158         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38159         whether posix_spawn actually works.
38160         * m4/pipe.m4 (gl_PIPE): Likewise.
38161         * modules/execute (Files): Add m4/posix_spawn.m4.
38162         * modules/pipe (Files): Add m4/posix_spawn.m4.
38163         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38164
38165 2008-10-01  Jim Meyering  <meyering@redhat.com>
38166
38167         remove trailing spaces
38168         * NEWS: Likewise.
38169         * lib/poll.c (poll): Likewise.
38170         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38171         * lib/winsock.c (rpl_close): Likewise.
38172         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38173         * modules/yield: Likewise.
38174         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38175         * tests/test-sys_select.c (connect_to_socket): Likewise.
38176
38177         fts.c: adjust a new interface to be more generally useful
38178         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38179         (fts_build): Adjust caller.
38180
38181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38182
38183         * modules/cond-tests: New file.
38184         * tests/test-cond.c: New file.
38185
38186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38187             Bruno Haible  <bruno@clisp.org>
38188
38189         * modules/cond (Dependencies): Add errno, time.
38190         * lib/glthread/cond.h: Include <time.h>.
38191         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38192         across platforms.
38193
38194 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38195             Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38198
38199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38200             Bruno Haible  <bruno@clisp.org>
38201
38202         * modules/tls-tests (Depends-on): Add thread, yield.
38203         (configure.ac): Remove all checks.
38204         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38205         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38206         gl_thread_self): Remove definitions. Include glthread/thread.h and
38207         glthread/yield.h instead.
38208         (test_tls): Pass an additional NULL argument to gl_thread_join.
38209
38210 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38211             Bruno Haible  <bruno@clisp.org>
38212
38213         * modules/lock-tests (Depends-on): Add thread, yield.
38214         (configure.ac): Remove all checks.
38215         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38216         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38217         gl_thread_self): Remove definitions. Include glthread/thread.h and
38218         glthread/yield.h instead.
38219         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38220         additional NULL argument to gl_thread_join.
38221
38222 2008-09-30  Bruno Haible  <bruno@clisp.org>
38223
38224         Fix the Win32 implementation of the 'thread' module.
38225         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38226         pointer type.
38227         (gl_thread_self): Invoke gl_thread_self_func.
38228         (gl_thread_self_func): New declaration.
38229         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38230         (do_init_self_key, init_self_key): New functions.
38231         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38232         Remove some fields.
38233         (running_threads, running_lock): Remove variables.
38234         (get_current_thread_handle): New function.
38235         (gl_thread_self_func, wrapper_func, glthread_create_func,
38236         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38237         simplified.
38238
38239 2008-09-30  Bruno Haible  <bruno@clisp.org>
38240
38241         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38242         files.
38243
38244 2008-09-30  Jim Meyering  <meyering@redhat.com>
38245
38246         fts.m4: correct the test for statfs.f_type
38247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38248         when checking for statfs.f_type.
38249
38250 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38251
38252         tests: avoid some compiler warnings
38253         * tests/test-memchr.c (main): Pass NULL indirectly.
38254         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38255
38256 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38257
38258         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38259         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38260         exactly specified dayshifts.
38261         (dayshift): New rule.
38262         (rel): Add dayshift.
38263         (relative_time_table) [tomorrow, yesterday, today, now]:
38264         Use tDAY_SHIFT in place of tDAY_UNIT.
38265         * tests/test-getdate.c: Add tests for now-disallowed countable
38266         dayshifts, e.g., "4 yesterday ago".
38267
38268 2008-09-29  Bruno Haible  <bruno@clisp.org>
38269
38270         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38271         * tests/test-posix_spawn1.in.sh: Renamed from
38272         tests/test-posix_spawn.in.sh.
38273         * tests/test-posix_spawn2.c: New file.
38274         * tests/test-posix_spawn2.in.sh: New file.
38275         * modules/posix_spawnp-tests (Files): Update.
38276         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38277
38278 2008-09-29  Bruno Haible  <bruno@clisp.org>
38279
38280         Propagate effects of putenv/setenv/unsetenv to child processes.
38281         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38282         * lib/pipe.c (create_pipe): Likewise.
38283
38284 2008-09-29  Bruno Haible  <bruno@clisp.org>
38285
38286         Enable use of shell scripts as executables in mingw.
38287         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38288         run the program as a shell script.
38289         * lib/pipe.c (create_pipe): Likewise.
38290         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38291         resulting array.
38292
38293 2008-09-29  Eric Blake  <ebb9@byu.net>
38294
38295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38296
38297 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38298
38299         * doc/posix-functions/accept.texi: Update mingw problems.
38300         * doc/posix-functions/bind.texi: Update mingw problems.
38301         * doc/posix-functions/close.texi: Update mingw problems.
38302         * doc/posix-functions/connect.texi: Update mingw problems.
38303         * doc/posix-functions/getpeername.texi: Update mingw problems.
38304         * doc/posix-functions/getsockname.texi: Update mingw problems.
38305         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38306         * doc/posix-functions/ioctl.texi: Update mingw problems.
38307         * doc/posix-functions/listen.texi: Update mingw problems.
38308         * doc/posix-functions/recv.texi: Update mingw problems.
38309         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38310         * doc/posix-functions/select.texi: Update mingw problems.
38311         * doc/posix-functions/send.texi: Update mingw problems.
38312         * doc/posix-functions/sendto.texi: Update mingw problems.
38313         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38314         * doc/posix-functions/socket.texi: Update mingw problems.
38315
38316 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38317             Bruno Haible  <bruno@clisp.org>
38318
38319         * lib/sys_select.in.h: Include sys/time.h.
38320         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38321         * modules/sys_select: Depend on sys_time.
38322         * tests/test-sys_select.c: Test that sys/select.h defines struct
38323         timeval fully.
38324
38325 2008-09-29  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38328         * lib/sys_select.in.h: Likewise.
38329
38330 2008-09-29  Bruno Haible  <bruno@clisp.org>
38331
38332         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38333
38334 2008-09-29  Bruno Haible  <bruno@clisp.org>
38335
38336         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38337         Set LIBSOCKET instead of augmenting LIBS.
38338         * modules/sockets (Link): New section.
38339         * modules/sockets-tests (test_sockets_LDADD): New variable.
38340         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38341         * modules/poll-tests (test_poll_LDADD): New variable.
38342         * NEWS: Document the change.
38343
38344 2008-09-29  Bruno Haible  <bruno@clisp.org>
38345
38346         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38347         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38348         ARPA_INET_H directly.
38349         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38350
38351 2008-09-28  Bruno Haible  <bruno@clisp.org>
38352
38353         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38354         from gl_HEADER_SYS_SOCKET.
38355         (gl_HEADER_SYS_SOCKET): Invoke it.
38356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38357
38358 2008-09-28  Bruno Haible  <bruno@clisp.org>
38359
38360         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38361         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38362         Needed on OSF/1 4.0.
38363
38364 2008-09-28  Bruno Haible  <bruno@clisp.org>
38365
38366         Override open more carefully.
38367         * lib/open.c (orig_open): New function.
38368         (rpl_open): Use orig_open instead of open.
38369         * lib/fcntl.in.h: Add special invocation convention.
38370         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38371         (gl_FUNC_OPEN): Invoke it.
38372
38373         Override freopen more carefully.
38374         * lib/freopen.c (orig_freopen): New function.
38375         (rpl_freopen): Use orig_freopen instead of freopen.
38376         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38377         (gl_FUNC_FREOPEN): Invoke it.
38378
38379         Override fopen more carefully.
38380         * lib/fopen.c (orig_fopen): New function.
38381         (rpl_fopen): Use orig_fopen instead of fopen.
38382         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38383         (gl_FUNC_FOPEN): Invoke it.
38384         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38385
38386 2008-09-28  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38389         SIGPIPE.
38390
38391 2008-09-28  Bruno Haible  <bruno@clisp.org>
38392
38393         * tests/test-sigaction.c (handler, main): Disable the check whether
38394         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38395         glibc systems with LinuxThreads.
38396
38397 2008-09-28  Bruno Haible  <bruno@clisp.org>
38398
38399         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38400
38401         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38402         with AIX xlc.
38403         * lib/fcntl.in.h (open): Likewise.
38404         Reported by Rainer Tammer <tammer@tammer.net>.
38405
38406 2008-09-28  Bruno Haible  <bruno@clisp.org>
38407
38408         * modules/posix_spawnp-tests: New file.
38409         * tests/test-posix_spawn.c: New file.
38410         * tests/test-posix_spawn.in.sh: New file.
38411
38412         New module 'posix_spawnp'.
38413         * modules/posix_spawnp: New file.
38414         * lib/spawnp.c: New file, from GNU libc with modifications.
38415         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38416
38417         New module 'posix_spawn'.
38418         * modules/posix_spawn: New file.
38419         * lib/spawn.c: New file, from GNU libc with modifications.
38420         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38421
38422         New module 'posix_spawnattr_destroy'.
38423         * modules/posix_spawnattr_destroy: New file.
38424         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38425         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38426         module.
38427
38428         New module 'posix_spawnattr_setsigmask'.
38429         * modules/posix_spawnattr_setsigmask: New file.
38430         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38431         modifications.
38432         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38433         new module.
38434
38435         New module 'posix_spawnattr_getsigmask'.
38436         * modules/posix_spawnattr_getsigmask: New file.
38437         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38438         modifications.
38439         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38440         new module.
38441
38442         New module 'posix_spawnattr_setsigdefault'.
38443         * modules/posix_spawnattr_setsigdefault: New file.
38444         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38445         modifications.
38446         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38447         new module.
38448
38449         New module 'posix_spawnattr_getsigdefault'.
38450         * modules/posix_spawnattr_getsigdefault: New file.
38451         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38452         modifications.
38453         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38454         new module.
38455
38456         New module 'posix_spawnattr_setschedpolicy'.
38457         * modules/posix_spawnattr_setschedpolicy: New file.
38458         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38459         modifications.
38460         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38461         new module.
38462
38463         New module 'posix_spawnattr_getschedpolicy'.
38464         * modules/posix_spawnattr_getschedpolicy: New file.
38465         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38466         modifications.
38467         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38468         new module.
38469
38470         New module 'posix_spawnattr_setschedparam'.
38471         * modules/posix_spawnattr_setschedparam: New file.
38472         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38473         modifications.
38474         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38475         new module.
38476
38477         New module 'posix_spawnattr_getschedparam'.
38478         * modules/posix_spawnattr_getschedparam: New file.
38479         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38480         modifications.
38481         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38482         new module.
38483
38484         New module 'posix_spawnattr_setpgroup'.
38485         * modules/posix_spawnattr_setpgroup: New file.
38486         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38487         modifications.
38488         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38489         module.
38490
38491         New module 'posix_spawnattr_getpgroup'.
38492         * modules/posix_spawnattr_getpgroup: New file.
38493         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38494         modifications.
38495         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38496         module.
38497
38498         New module 'posix_spawnattr_setflags'.
38499         * modules/posix_spawnattr_setflags: New file.
38500         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38501         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38502         module.
38503
38504         New module 'posix_spawnattr_getflags'.
38505         * modules/posix_spawnattr_getflags: New file.
38506         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38507         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38508         module.
38509
38510         New module 'posix_spawnattr_init'.
38511         * modules/posix_spawnattr_init: New file.
38512         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38513         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38514         module.
38515
38516         New module 'posix_spawn_file_actions_destroy'.
38517         * modules/posix_spawn_file_actions_destroy: New file.
38518         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38519         modifications.
38520         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38521         the new module.
38522
38523         New module 'posix_spawn_file_actions_addopen'.
38524         * modules/posix_spawn_file_actions_addopen: New file.
38525         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38526         modifications.
38527         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38528         the new module.
38529
38530         New module 'posix_spawn_file_actions_adddup2'.
38531         * modules/posix_spawn_file_actions_adddup2: New file.
38532         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38533         modifications.
38534         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38535         the new module.
38536
38537         New module 'posix_spawn_file_actions_addclose'.
38538         * modules/posix_spawn_file_actions_addclose: New file.
38539         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38540         modifications.
38541         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38542         the new module.
38543
38544         New module 'posix_spawn_file_actions_init'.
38545         * modules/posix_spawn_file_actions_init: New file.
38546         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38547         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38548         new module.
38549
38550         New module 'posix_spawn-internal'.
38551         * modules/posix_spawn-internal: New file.
38552         * lib/spawn_int.h: New file, from GNU libc with modifications.
38553         * lib/spawni.c: New file, from GNU libc with modifications.
38554         * m4/posix_spawn.m4: New file.
38555
38556         New module 'spawn'.
38557         * modules/spawn: New file.
38558         * lib/spawn.in.h: New file, from GNU libc with modifications.
38559         * m4/spawn_h.m4: New file.
38560         * doc/posix-headers/spawn.texi: Mention the new module.
38561
38562 2008-09-28  Bruno Haible  <bruno@clisp.org>
38563
38564         * modules/sched-tests: New file.
38565         * tests/test-sched.c: New file.
38566
38567         New module 'sched'.
38568         * modules/sched: New file.
38569         * lib/sched.in.h: New file.
38570         * m4/sched_h.m4: New file.
38571         * doc/posix-headers/sched.texi: Mention the new module.
38572
38573 2008-09-27  Eric Blake  <ebb9@byu.net>
38574
38575         Fix previous patch, and tweak references to $0.
38576         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38577         (func_version, func_gnulib_dir): Don't call this program
38578         gnulib-tool.
38579         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38580         with using $0 in function.
38581         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38582         (func_fatal_error): Reuse the name the user invoked us with.
38583
38584 2008-09-27  Bruno Haible  <bruno@clisp.org>
38585
38586         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38587         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38588         (gl_ICONV_H): Not here.
38589         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38590         instead of assigning ICONV_H directly.
38591
38592         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38594         WCHAR_H directly.
38595
38596 2008-09-27  Bruno Haible  <bruno@clisp.org>
38597
38598         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38599         * modules/arpa_inet (Depends-on): Add link-warning.
38600         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38601         * modules/unistd (Makefile.am): Likewise.
38602
38603 2008-09-26  Bruno Haible  <bruno@clisp.org>
38604
38605         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38606         variables.
38607         (func_version): Essentially copied from gnulib-tool.
38608         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38609         func_readlink): Copied from gnulib-tool.
38610
38611 2008-09-26  Bruno Haible  <bruno@clisp.org>
38612
38613         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38614         invoking git-version-gen.
38615
38616 2008-09-26  Bruno Haible  <bruno@clisp.org>
38617
38618         * posix-modules: Update to directory names changed on 2008-01-19.
38619         Remove commas in output before splitting into words. No more need to
38620         avoid 'ftruncate' since 2007-02-19.
38621
38622 2008-09-26  Bruno Haible  <bruno@clisp.org>
38623
38624         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38625
38626 2008-09-26  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38629         * modules/fwriteerror (Depends-on): Add errno.
38630
38631 2008-09-26  Bruno Haible  <bruno@clisp.org>
38632
38633         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38634         * tests/test-vc-list-files-cvs.sh: Likewise.
38635
38636 2008-09-26  Bruno Haible  <bruno@clisp.org>
38637
38638         * doc/posix-headers/sys_resource.texi: Reorder items.
38639
38640 2008-09-26  Jim Meyering  <meyering@redhat.com>
38641
38642         fts: tweak inode comparison function
38643         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38644         inode numbers, as documented.
38645
38646         fts: sort dirent entries on inode number before traversing
38647         This avoids a quadratic, seek-related performance penalty when
38648         operating on a directory containing many entries (measurable at 10k;
38649         3.5 hours at 2 million entries with a cold cache) on certain types
38650         of file systems, including ext3 and ext4, but not tmpfs.
38651         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38652         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38653         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38654         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38655         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38656         (fts_build): Set the stat.st_ino member from D_INO.
38657         If it is likely to be useful, sort dirent entries on inode number.
38658
38659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38660         and the struct statfs.f_type member.
38661         * modules/fts (Depends-on): Add d-ino.
38662
38663 2008-09-26  Bruno Haible  <bruno@clisp.org>
38664
38665         * modules/sigpipe-die (Depends-on): Add sigpipe.
38666
38667         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38668         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38669         and GNULIB_STDIO_H_SIGPIPE are set.
38670         * lib/stdio-write.c: New file.
38671         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38672         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38673         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38674         REPLACE_STDIO_WRITE_FUNCS.
38675         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38676         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38677         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38678         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38679         * modules/stdio (Files): Add lib/stdio-write.c.
38680         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38681         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38682         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38683         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38684         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38685         REPLACE_FPRINTF_POSIX.
38686         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38687         REPLACE_PRINTF_POSIX.
38688         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38689         REPLACE_VFPRINTF_POSIX.
38690         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38691         REPLACE_VPRINTF_POSIX.
38692         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38693         SIGPIPE issue.
38694         * doc/posix-functions/fputc.texi: Likewise.
38695         * doc/posix-functions/fputs.texi: Likewise.
38696         * doc/posix-functions/fwrite.texi: Likewise.
38697         * doc/posix-functions/printf.texi: Likewise.
38698         * doc/posix-functions/putc.texi: Likewise.
38699         * doc/posix-functions/putchar.texi: Likewise.
38700         * doc/posix-functions/puts.texi: Likewise.
38701         * doc/posix-functions/vfprintf.texi: Likewise.
38702         * doc/posix-functions/vprintf.texi: Likewise.
38703
38704         * modules/safe-write (Depends-on): Add write.
38705
38706         * modules/sigpipe-tests: New file.
38707         * tests/test-sigpipe.c: New file.
38708         * tests/test-sigpipe.sh: New file.
38709
38710         * modules/write: New file.
38711         * lib/unistd.in.h: Include <sys/types.h>.
38712         (write): New declaration.
38713         * lib/write.c: New file.
38714         * m4/write.m4: New file.
38715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38716         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38717         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38718         GNULIB_WRITE, REPLACE_WRITE.
38719         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38720         and the SIGPIPE issue.
38721
38722         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38723         (raise): New declaration.
38724         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38725         (ext_signal): New function.
38726         (rpl_raise): New function.
38727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38728         GNULIB_SIGNAL_H_SIGPIPE.
38729         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38730         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38731
38732         * modules/sigpipe: New file.
38733         * m4/sigpipe.m4: New file.
38734
38735 2008-09-25  Derek Price  <derek@ximbiot.com>
38736             Bruno Haible  <bruno@clisp.org>
38737
38738         * gnulib-tool (func_import): Report all license incompatibilities, not
38739         just the first one.
38740
38741 2008-09-25  Bruno Haible  <bruno@clisp.org>
38742
38743         * gnulib-tool (func_import): When computing the edits, consider not
38744         only the Makefile.ams that exist but also those that will be generated.
38745
38746 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38747
38748         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38749         fixes gnulib-tool --test warning about duplicate dependency.
38750
38751 2008-09-25  Bruno Haible  <bruno@clisp.org>
38752
38753         * gnulib-tool: Don't ask the user to perform edits in the generated
38754         Makefile.ams.
38755         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38756         apply to the Makefile.am being generated.
38757         (func_emit_tests_Makefile_am): Execute edits that apply to the
38758         Makefile.am being generated.
38759         (func_import): Setup list of Makefile.am edits before emitting the
38760         Makefile.ams, not at the end.
38761         (func_create_testdir): Update.
38762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38763
38764 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38765
38766         * gnulib-tool (func_import): Store the --tests-base option in the
38767         comment in gnulib-cache.m4.
38768
38769 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38770
38771         * NEWS: Document increased portability that sys_select now provides.
38772
38773         * lib/sys_select.in.h: Install select wrapper.
38774         * lib/sys_socket.in.h: Use more descriptive name when there is no
38775         select wrapper.
38776         * lib/winsock-select.c: New.
38777         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38778         Require gl_HEADER_SYS_SOCKET.
38779         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38780         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38781         * tests/test-sys_select.c: Add functional tests.
38782
38783 2008-09-24  Eric Blake  <ebb9@byu.net>
38784
38785         open, fopen: close fd leak in last patch
38786         * lib/open.c (rpl_open): Close fd before returning error.
38787         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38788         * doc/posix-functions/open.texi (open): Document that Irix also
38789         has the bug.
38790         * doc/posix-functions/fopen.texi (fopen): Likewise.
38791         Reported by Paolo Bonzini.
38792
38793 2008-09-24  Bruno Haible  <bruno@clisp.org>
38794
38795         Ensure that a filename ending in a slash cannot be used to access a
38796         non-directory.
38797         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38798         to check whether it's really a directory.
38799         * lib/fopen.c: Include fcntl.h, unistd.h.
38800         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38801         and fdopen().
38802         * modules/fopen (Depends-on): Add unistd.
38803         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38804         * tests/test-fopen.c (main): Likewise.
38805         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38806         * doc/posix-functions/fopen.texi: Likewise.
38807         Reported by Eric Blake.
38808
38809 2008-09-23  Eric Blake  <ebb9@byu.net>
38810
38811         c-stack: avoid compiler optimizations when provoking overflow
38812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38813         recursion harder to optimize, to ensure a stack overflow occurs.
38814         * tests/test-c-stack.c (recurse): Likewise.
38815         Borrowed from libsigsegv.
38816
38817         c-stack: work around Irix sigaltstack bug
38818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38819         whether sigaltstack uses wrong end of stack_t (copied in part from
38820         libsigsegv).
38821         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38822         Irix bug, without requiring an over-allocation.
38823         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38824         bug.
38825
38826         fopen: document mingw bug on directories
38827         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38828         not allowing a stream visiting a directory, even though reading
38829         from such a stream is not portable.
38830
38831 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38832
38833         * lib/poll.c: Rewrite.
38834         * modules/poll: Depend on alloca.
38835
38836 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38837
38838         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38839         instead define prototypes for a full set of wrappers.  Ensure
38840         that Cygwin does not use the compatibility code, which is only
38841         for MinGW.
38842         * lib/winsock.c: New.
38843         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38844         * modules/sys_socket: Add lib/winsock.c.
38845
38846         * modules/poll-tests: Add errno and perror.
38847         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38848
38849 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38850
38851         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38852
38853 2008-09-23  Bruno Haible  <bruno@clisp.org>
38854
38855         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38856         * doc/glibc-functions/*: Likewise.
38857
38858 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38859
38860         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38861         success.
38862
38863 2008-09-22  Eric Blake  <ebb9@byu.net>
38864             Bruno Haible  <bruno@clisp.org>
38865
38866         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38867         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38868         supply %A but mishandle pseudo-NaN.
38869         Reported by Simon Josefsson.
38870
38871 2008-09-21  Bruno Haible  <bruno@clisp.org>
38872
38873         * tests/test-lock.c (main): Tweak skip message.
38874         * tests/test-tls.c (main): Likewise.
38875
38876 2008-09-21  Bruno Haible  <bruno@clisp.org>
38877
38878         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38879         whether 'struct sigaction' has sa_sigaction here...
38880         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38881         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38882
38883 2008-09-21  Bruno Haible  <bruno@clisp.org>
38884
38885         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38886         section.
38887         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38888         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38889         the new section.
38890         (Support for obsolete systems lacking POSIX:2001): New section.
38891         (String handling <string.h>): Move strdup to the new section.
38892         Suggested by Simon Josefsson and Paolo Bonzini.
38893
38894 2008-09-21  Bruno Haible  <bruno@clisp.org>
38895
38896         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38897         exponents in %e and %g results on 'long double'. Needed for mingw's
38898         improved *printf functions.
38899         * tests/test-vasprintf-posix.c (test_function): Likewise.
38900         * tests/test-snprintf-posix.h (test_function): Likewise.
38901         * tests/test-sprintf-posix.h (test_function): Likewise.
38902         Reported by Eric Blake.
38903
38904 2008-09-21  Bruno Haible  <bruno@clisp.org>
38905
38906         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38907         * tests/test-sprintf-posix.h (test_function): Likewise.
38908
38909 2008-09-21  Bruno Haible  <bruno@clisp.org>
38910
38911         * modules/getpass (Depends-on): Add strdup-posix.
38912
38913         New module 'strdup-posix'.
38914         * modules/strdup-posix: New file.
38915         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38916         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38918         REPLACE_STRDUP.
38919         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38920         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38922         strdup-posix.
38923
38924         * modules/strdup (Depends-on): Remove malloc-posix.
38925
38926 2008-09-20  Bruno Haible  <bruno@clisp.org>
38927
38928         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38929         Wildenhues.
38930
38931 2008-09-20  Bruno Haible  <bruno@clisp.org>
38932
38933         Ensure that wint_t gets defined on IRIX 5.3.
38934         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38935         * lib/wctype.in.h (wint_t): Likewise.
38936         (__wctype_wint_t): Remove type.
38937         (isw*): Use wint_t instead of __wctype_wint_t.
38938         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38939         * modules/wchar (Files): Add m4/wint_t.m4.
38940         (Makefile.am): Substitute HAVE_WINT_T.
38941         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38942         * tests/test-wctype.c: Check that wint_t is defined.
38943         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38944         * doc/posix-headers/wctype.texi: Likewise.
38945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38946
38947 2008-09-18  Bruno Haible  <bruno@clisp.org>
38948
38949         * gnulib-tool (func_exit): Update comment.
38950
38951 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38952
38953         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38954         assumes strdup exists and does not depend on strdup to return
38955         ENOMEM on out of memory conditions.
38956
38957 2008-09-18  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38960         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38961         digits for the exponent.
38962
38963 2008-09-18  Jim Meyering  <meyering@redhat.com>
38964             Bruno Haible  <bruno@clisp.org>
38965
38966         * lib/vasnprintf.c (decimal_point_char): Define also if
38967         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38968
38969 2008-09-16  Bruno Haible  <bruno@clisp.org>
38970         and Eric Blake  <ebb9@byu.net>
38971
38972         vasnprintf: support Irix 5.3
38973         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38974         that mishandle long double infinity.
38975         Reported by Tom G. Christensen.
38976
38977 2008-09-16  Bruno Haible  <bruno@clisp.org>
38978
38979         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38980         Solaris 9.
38981         * doc/glibc-functions/alphasort.texi: Likewise.
38982         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38983
38984 2008-09-16  Jim Meyering  <meyering@redhat.com>
38985
38986         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38987         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38988         a umask modification leak out of a subshell.  Otherwise, the
38989         opensolaris /bin/sh would be accepted and thus cause unwarranted
38990         failures in the coreutils test suite.
38991
38992 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38993
38994         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38995         to succeed.
38996
38997 2008-09-16  Jim Meyering  <meyering@redhat.com>
38998
38999         avoid spurious test failure when library is built without ACL support
39000         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39001         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39002         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39003         * tests/test-copy-acl.sh: Likewise.
39004
39005 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39006
39007         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39008         based on character occurrence counts.
39009
39010 2008-09-15  Eric Blake  <ebb9@byu.net>
39011
39012         tests: avoid some compiler warnings
39013         * tests/test-memchr.c (main): Pass NULL indirectly.
39014         * tests/test-closein.c (main): Avoid unused variable.
39015
39016 2008-09-15  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39019         are missing on OpenBSD 4.0 individually.
39020         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39021
39022 2008-09-15  Bruno Haible  <bruno@clisp.org>
39023
39024         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39025         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39026         * doc/posix-functions/perror.texi: Likewise.
39027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39028         is missing.
39029         Reported by Eric Blake.
39030
39031         * lib/errno.in.h: Use replacement values >= 2000.
39032         Reported by Eric Blake.
39033
39034 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39035
39036         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39037         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39038         limit.
39039         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39040         compareseq was aborted.
39041
39042 2008-09-14  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39045         yvec_edit_count.
39046         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39047         (fstrcmp_bounded): Simplify result computation accordingly.
39048
39049 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39050
39051         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39052         (fstrcmp): Define in terms of fstrcmp_bounded.
39053         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39054         lower_bound argument.
39055         Return quickly if the result is certainly < lower_bound.
39056         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39057
39058 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39059
39060         * lib/diffseq.h (EARLY_ABORT): New macro.
39061         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39062         evaluates to true.
39063
39064 2008-09-14  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/perror-tests: New file.
39067         * tests/test-perror.sh: New file.
39068         * tests/test-perror.c: New file.
39069
39070         New module 'perror'.
39071         * lib/stdio.in.h (perror): New declaration.
39072         * lib/perror.c: New file.
39073         * m4/perror.m4: New file.
39074         * modules/perror: New file.
39075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39076         * doc/posix-functions/perror.texi: Mention the perror module.
39077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39078         REPLACE_PERROR.
39079         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39080         REPLACE_PERROR.
39081
39082 2008-09-14  Bruno Haible  <bruno@clisp.org>
39083
39084         * modules/stdio (Makefile.am): Reorder to match the order in
39085         lib/stdio.in.h.
39086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39087
39088 2008-09-13  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39091
39092 2008-09-13  Bruno Haible  <bruno@clisp.org>
39093
39094         Extend strerror to cover the added errno values.
39095         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39096         (rpl_strerror): Provide error messages for the added errno values and
39097         for the WSA* values.
39098         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39099         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39100         strerror.
39101         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39102         * modules/strerror (Depends-on): Add errno.
39103         * doc/posix-functions/strerror.texi: Document the change.
39104         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39105         and EOVERFLOW.
39106
39107 2008-09-13  Bruno Haible  <bruno@clisp.org>
39108
39109         * modules/EOVERFLOW: Remove file.
39110         * m4/eoverflow.m4: Remove file.
39111         * modules/EOVERFLOW-tests: Remove file.
39112         * tests/test-EOVERFLOW.c: Remove file.
39113         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39114         * modules/ftell (Depends-on): Likewise.
39115         * modules/getdelim (Depends-on): Likewise.
39116         * modules/getugroups (Depends-on): Likewise.
39117         * modules/poll (Depends-on): Likewise.
39118         * modules/snprintf (Depends-on): Likewise.
39119         * modules/sprintf-posix (Depends-on): Likewise.
39120         * modules/vasnprintf (Depends-on): Likewise.
39121         * modules/vasprintf (Depends-on): Likewise.
39122         * modules/vfprintf-posix (Depends-on): Likewise.
39123         * modules/vsnprintf (Depends-on): Likewise.
39124         * modules/vsprintf-posix (Depends-on): Likewise.
39125         * modules/xvasprintf (Depends-on): Likewise.
39126         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39127         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39128         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39129         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39130         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39131         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39132         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39133         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39134         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39135         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39136         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39137         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39139         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39140         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39141         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39142         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39143         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39144         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39145         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39146         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39147         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39148         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39149         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39150         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39151         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39152         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39153         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39154         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39155         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39156         * MODULES.html.sh: Remove EOVERFLOW.
39157         * NEWS: Mention the change.
39158
39159 2008-09-13  Bruno Haible  <bruno@clisp.org>
39160
39161         * modules/errno-tests: New file.
39162         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39163
39164         * lib/errno.in.h: New file.
39165         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39166         * modules/errno: New file.
39167         * doc/posix-headers/errno.texi: Update documentation.
39168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39169
39170 2008-09-13  Bruno Haible  <bruno@clisp.org>
39171
39172         * tests/test-poll.c: Use #if for native Windows, rather than testing
39173         __MSVCRT__.
39174
39175 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39176             Bruno Haible  <bruno@clisp.org>
39177
39178         * lib/glob.c: Don't include <pwd.h> on native Windows.
39179         (WINDOWS32): New macro.
39180         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39181
39182 2008-09-13  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39185         (ETIMEDOUT): Remove macro.
39186         (glthread_cond_timedwait_multithreaded): New declaration.
39187         (glthread_cond_timedwait): Use it.
39188         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39189         (glthread_cond_timedwait_multithreaded): New function.
39190
39191 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39192
39193         * modules/poll-tests: Do not check for io.h.
39194         * tests/test-poll.c: Check for __MSVCRT__ instead.
39195
39196 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39197
39198         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39199         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39200         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39201
39202 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39203
39204         * modules/poll-tests: New.
39205         * tests/test-poll.c: New.
39206
39207 2008-09-12  Eric Blake  <ebb9@byu.net>
39208
39209         frexp: test for NetBSD failure on -0.0
39210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39211         not all, bugs from NetBSD 3.0 have been fixed.
39212         * doc/posix-functions/frexp.texi (frexp): Document bug.
39213         Reported by Thomas Klausner.
39214
39215         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39217         literal -0.0.
39218         Reported by Jonathan C. Patschke <jp@centtech.com>.
39219
39220 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39221
39222         * lib/glthread/cond.h: Use dummy implementation also if
39223         USE_WIN32_THREADS.
39224
39225 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39226
39227         * modules/fnmatch-posix (License): Change to LGPLv2+.
39228         * modules/fnmatch-gnu (License): Likewise.
39229
39230 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39231
39232         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39233
39234 2008-09-11  Jim Meyering  <meyering@redhat.com>
39235
39236         * users.txt: Add gtk-vnc.
39237
39238 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39239
39240         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39241         rotate amounts.
39242
39243         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39244         required for 16-bit and 8-bit rotates.
39245         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39246         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39247         UINT8_MAX instead of hard-coded constants.
39248         Suggested by Paul Eggert.
39249
39250 2008-09-07  Bruno Haible  <bruno@clisp.org>
39251
39252         * tests/test-striconveh.c (main): Check behaviour when converting from
39253         UTF-7.
39254
39255         Make striconveh work better with stateful encodings.
39256         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39257         that iconv does not increment the inptr when returning -1/EINVAL.
39258
39259 2008-09-07  Bruno Haible  <bruno@clisp.org>
39260
39261         * build-aux/config.rpath: Update according to libtool-2.2.6.
39262         * build-aux/config.libpath: Likewise.
39263
39264 2008-09-06  Bruno Haible  <bruno@clisp.org>
39265
39266         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39267         * lib/freadptr.c (freadptr): Likewise.
39268         * lib/freadseek.c (freadptrinc): Likewise.
39269         Reported by Simon Josefsson.
39270
39271 2008-09-06  Bruno Haible  <bruno@clisp.org>
39272
39273         * modules/freadptr (License): Change to LGPLv2+.
39274         * modules/freadseek (License): Likewise.
39275         Suggested by Eric Blake.
39276
39277         * modules/memchr2 (License): Change to LGPLv2+.
39278         Approved by Eric Blake.
39279
39280 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39281             Bruno Haible  <bruno@clisp.org>
39282
39283         Make gnulib-tool work with native 'sed' on AIX.
39284         * gnulib-tool (sed_noop): New variable.
39285         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39286         func_add_or_update, func_create_testdir): Use it to initialize sed
39287         script variables.
39288         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39289
39290 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39291             Bruno Haible  <bruno@clisp.org>
39292
39293         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39294         also works after #include directives.
39295
39296 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39297
39298         getdate.y: reject an out-of-range timezone value
39299         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39300         the range [-24...+24].  When specified with only one or two digits,
39301         * tests/test-getdate.c: Tests for the fix.
39302         * doc/getdate.texi: Document this change.
39303
39304 2008-09-03  Bruno Haible  <bruno@clisp.org>
39305
39306         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39307
39308 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39309
39310         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39311         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39312         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39313         Blake <ebb9@byu.net>.
39314
39315         * tests/test-bitrotate.c: Add more test vectors.
39316
39317 2008-09-02  Eric Blake  <ebb9@byu.net>
39318
39319         vasnprintf-posix: handle large precision via %.*d
39320         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39321         when handling it ourselves.
39322         * tests/test-vasnprintf-posix.c (test_function): Add test.
39323         * tests/test-snprintf-posix.h (test_function): Likewise.
39324         * tests/test-sprintf-posix.h (test_function): Likewise.
39325         * tests/test-vasprintf-posix.c (test_function): Likewise.
39326         Reported by Alain Guibert.
39327
39328 2008-09-01  Eric Blake  <ebb9@byu.net>
39329
39330         c-stack: make configure-time check more robust
39331         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39332         successful sigaction call.
39333         Reported by Tom G. Christensen.
39334
39335 2008-09-01  Bruno Haible  <bruno@clisp.org>
39336
39337         New module 'findprog-lgpl'.
39338         * modules/findprog-lgpl: New file.
39339         * lib/findprog-lgpl.c: New file.
39340         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39341         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39342         to decide whether to use strdup or xstrdup, concatenated_filename or
39343         xconcatenated_filename.
39344
39345 2008-09-01  Bruno Haible  <bruno@clisp.org>
39346
39347         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39348         'xconcat-filename' (GPL).
39349         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39350         (License): Change to LGPLv2+.
39351         * modules/xconcat-filename: New file.
39352         * lib/concat-filename.h (concatenated_filename): Change specification.
39353         (xconcatenated_filename): New declaration.
39354         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39355         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39356         memory situations.
39357         * lib/xconcat-filename.c: New file.
39358         * NEWS: Mention the change.
39359         * lib/findprog.c: Include concat-filename.h, not filename.h.
39360         (find_in_path): Use xconcatenated_filename instead of
39361         concatenated_filename.
39362         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39363         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39364         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39365         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39366         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39367         instead of concatenated_filename.
39368         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39369         (execute_java_class): Use xconcatenated_filename instead of
39370         concatenated_filename.
39371         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39372         * modules/javacomp (Depends-on): Likewise.
39373         * modules/javaexec (Depends-on): Likewise.
39374
39375 2008-09-01  Bruno Haible  <bruno@clisp.org>
39376
39377         Split module 'filename' into 'filename' and 'concat-filename'.
39378         * modules/filename: Keep only lib/filename.h.
39379         (License): Change to LGPLv2+.
39380         * modules/concat-filename: New file, extracted from modules/filename.
39381         * lib/filename.h (concatenated_filename): Remove declaration.
39382         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39383         * lib/concat-filename.c: Include concat-filename.h.
39384         * NEWS: Mention the change.
39385
39386 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39387
39388         * lib/bitrotate.h (rotl8, rotr8): Add.
39389
39390         * modules/bitrotate (configure.ac): Need
39391         AC_REQUIRE([AC_C_INLINE]).
39392         (Description): Mention stdint.h.  Reported by Bruno Haible
39393         <bruno@clisp.org>.
39394
39395         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39396         Paolo Bonzini <bonzini@gnu.org>.
39397
39398 2008-08-31  Bruno Haible  <bruno@clisp.org>
39399
39400         Assume Solaris specific bi-arch conventions on Solaris systems.
39401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39402         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39404         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39405         like acl_libdirstem.
39406         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39407         acl_libdirstem.
39408         * NEWS: Mention the change.
39409         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39410
39411 2008-08-31  Jim Meyering  <meyering@redhat.com>
39412
39413         * lib/strftime.h: Add comments describing the two added arguments.
39414
39415         remove duplicate #include directives
39416         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39417         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39418
39419 2008-08-31  Bruno Haible  <bruno@clisp.org>
39420
39421         New module 'sigpipe-die'.
39422         * modules/sigpipe-die: New file.
39423         * lib/sigpipe-die.h: New file.
39424         * lib/sigpipe-die.c: New file.
39425         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39426
39427 2008-08-31  Bruno Haible  <bruno@clisp.org>
39428
39429         Don't override previously installed signal handlers.
39430         * lib/fatal-signal.c (saved_sigactions): New variable.
39431         (uninstall_handlers): Reset the signal to the saved handler, not
39432         to SIG_DFL (except when ignored).
39433         (install_handlers): Save the previous handlers.
39434
39435 2008-08-30  Bruno Haible  <bruno@clisp.org>
39436
39437         * gnulib-tool (func_reset_sigpipe): New function.
39438         (func_get_automake_snippet, func_modules_transitive_closure,
39439         func_import): Invoke it before a join command that reads from stdin,
39440         to avoid "echo: write error: Broken pipe" error messages on stderr.
39441         Reported by Sam Steingold <sds@gnu.org>.
39442
39443 2008-08-30  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39446         Code copied from m4/open.m4.
39447         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39448         access and the filename ends in a slash. Code copied from lib/open.c.
39449         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39450         * tests/test-fopen.c (main): Check against bug with trailing slash.
39451
39452 2008-08-29  Bruno Haible  <bruno@clisp.org>
39453
39454         Avoid some "gcc -pedantic" warnings.
39455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39456         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39457         * lib/dirent.in.h: Likewise.
39458         * lib/fcntl.in.h: Likewise.
39459         * lib/float.in.h: Likewise.
39460         * lib/iconv.in.h: Likewise.
39461         * lib/inttypes.in.h: Likewise.
39462         * lib/locale.in.h: Likewise.
39463         * lib/math.in.h: Likewise.
39464         * lib/netinet_in.in.h: Likewise.
39465         * lib/search.in.h: Likewise.
39466         * lib/signal.in.h: Likewise.
39467         * lib/stdarg.in.h: Likewise.
39468         * lib/stdint.in.h: Likewise.
39469         * lib/stdio.in.h: Likewise.
39470         * lib/stdlib.in.h: Likewise.
39471         * lib/string.in.h: Likewise.
39472         * lib/strings.in.h: Likewise.
39473         * lib/sys_select.in.h: Likewise.
39474         * lib/sys_socket.in.h: Likewise.
39475         * lib/sys_stat.in.h: Likewise.
39476         * lib/sys_time.in.h: Likewise.
39477         * lib/sysexits.in.h: Likewise.
39478         * lib/time.in.h: Likewise.
39479         * lib/unistd.in.h: Likewise.
39480         * lib/wchar.in.h: Likewise.
39481         * lib/wctype.in.h: Likewise.
39482         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39483         * modules/fchdir (Makefile.am): Likewise.
39484         * modules/fcntl (Makefile.am): Likewise.
39485         * modules/float (Makefile.am): Likewise.
39486         * modules/iconv_open (Makefile.am): Likewise.
39487         * modules/inttypes (Makefile.am): Likewise.
39488         * modules/locale (Makefile.am): Likewise.
39489         * modules/math (Makefile.am): Likewise.
39490         * modules/netinet_in (Makefile.am): Likewise.
39491         * modules/search (Makefile.am): Likewise.
39492         * modules/signal (Makefile.am): Likewise.
39493         * modules/stdarg (Makefile.am): Likewise.
39494         * modules/stdint (Makefile.am): Likewise.
39495         * modules/stdio (Makefile.am): Likewise.
39496         * modules/stdlib (Makefile.am): Likewise.
39497         * modules/string (Makefile.am): Likewise.
39498         * modules/strings (Makefile.am): Likewise.
39499         * modules/sys_select (Makefile.am): Likewise.
39500         * modules/sys_socket (Makefile.am): Likewise.
39501         * modules/sys_stat (Makefile.am): Likewise.
39502         * modules/sys_time (Makefile.am): Likewise.
39503         * modules/sysexits (Makefile.am): Likewise.
39504         * modules/time (Makefile.am): Likewise.
39505         * modules/unistd (Makefile.am): Likewise.
39506         * modules/wchar (Makefile.am): Likewise.
39507         * modules/wctype (Makefile.am): Likewise.
39508         Reported by Reuben Thomas <rrt@sc3d.org>.
39509
39510 2008-08-29  Bruno Haible  <bruno@clisp.org>
39511
39512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39513         any more.
39514
39515 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39516
39517         * MODULES.html.sh (Misc): Add bitrotate.
39518
39519         * modules/bitrotate: New file.
39520
39521         * lib/bitrotate.h: New file.
39522
39523         * modules/bitrotate-tests: New file.
39524
39525         * tests/test-bitrotate.c: New file.
39526
39527         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39528         on the bitrotate module.
39529
39530         * lib/arctwo.c: Use new bitrotate module.
39531
39532 2008-08-29  Jim Meyering  <meyering@redhat.com>
39533
39534         bootstrap: merge changes from coreutils
39535         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39536         of copied files.  Remove a kludge, now that this is fixed.
39537         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39538         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39539         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39540
39541 2008-08-29  Bruno Haible  <bruno@clisp.org>
39542
39543         * MODULES.html.sh: Remove --cvs-urls option.
39544
39545 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39546
39547         maint.mk: adjust to file name change
39548         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39549
39550 2008-08-28  Jim Meyering  <meyering@redhat.com>
39551
39552         * modules/getndelim2 (License): Relicense to LGPLv2+.
39553         Approved by Richard Stallman for the version of 1995, and by
39554         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39555
39556 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39557
39558         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39559         dummy if one is not available.  Do not touch them if
39560         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39561         (getc_maybe_unlocked): New.
39562         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39563
39564 2008-08-26  Eric Blake  <ebb9@byu.net>
39565
39566         doc/INSTALL: resync from autoconf
39567         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39568         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39569         moving...
39570         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39571         * INSTALL: Regenerate.
39572         * INSTALL.ISO: New file.
39573         * INSTALL.UTF-8: Likewise.
39574
39575 2008-08-26  Jim Meyering  <meyering@redhat.com>
39576
39577         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39578         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39579         these definitions conditional, so that they may be overridden, too.
39580
39581 2008-08-26  Bruno Haible  <bruno@clisp.org>
39582
39583         Generate INSTALL file variants with prettier quotes.
39584         * doc/Makefile (INSTALL_PRELUDE): New macro.
39585         (INSTALL): Use it.
39586         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39587
39588 2008-08-26  Bruno Haible  <bruno@clisp.org>
39589
39590         Run makeinfo in an English locale.
39591         * doc/Makefile (MAKEINFO): New variable.
39592
39593 2008-08-26  Bruno Haible  <bruno@clisp.org>
39594
39595         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39596         Suggested by Eric Blake.
39597
39598 2008-08-25  Bruno Haible  <bruno@clisp.org>
39599
39600         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39601
39602 2008-08-25  Eric Blake  <ebb9@byu.net>
39603
39604         c-stack: test that stack overflow can be caught
39605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39606         that platform allows handling stack overflow; at least OS/2 EMX
39607         has sigaltstack, but crashes before transferring control to
39608         handler on stack overflow.
39609         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39610         check for HAVE_STACK_OVERFLOW_HANDLING.
39611         Reported by Elbert Pol.
39612
39613 2008-08-25  Bruno Haible  <bruno@clisp.org>
39614
39615         * doc/posix-functions/strftime.texi: Fix description of strftime
39616         module.
39617
39618 2008-08-24  Bruno Haible  <bruno@clisp.org>
39619
39620         * tests/uniwidth/test-uc_width2.c: New file.
39621         * tests/uniwidth/test-uc_width2.sh: New file.
39622         * modules/uniwidth/width-tests (Files): Add the new files.
39623         (TESTS): Add uniwidth/test-uc_width2.sh.
39624         (TESTS_ENVIRONMENT): New variable.
39625         (check_PROGRAMS): Add test-uc_width2.
39626         (test_uc_width2_SOURCES): New variable.
39627
39628         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39629         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39630         not 0x00AB.
39631         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39632
39633 2008-08-22  Eric Blake  <ebb9@byu.net>
39634
39635         test-lock, test-tls: mention why a test is skipped
39636         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39637         skipped.
39638         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39639
39640         count-one-bits: relax license
39641         * modules/count-one-bits (License): Relicense to LGPLv2+.
39642         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39643
39644 2008-08-22  Andreas Schwab  <schwab@suse.de>
39645
39646         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39647         Remove spurious space in assignment.
39648
39649 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39650
39651         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39652         Paul Eggert <eggert@CS.UCLA.EDU>.
39653
39654 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39655
39656         * modules/gettext: Add m4/threadlib.m4.
39657
39658 2008-08-19  Eric Blake  <ebb9@byu.net>
39659
39660         test-c-stack: fix compilation failure on FreeBSD 5.0
39661         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39662         headers before <sys/resource.h>.
39663         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39664         the bug.
39665         Reported by Nelson H. F. Beebe.
39666
39667         strverscmp: migrate from "strverscmp.h" to <string.h>
39668         * modules/string (Makefile.am): Add new hooks.
39669         * modules/strverscmp (Files): Remove strverscmp.h.
39670         (Depends-on): Add string.
39671         (configure.ac): Add indicator.
39672         (Include): Mention new header.
39673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39674         defaults.
39675         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39676         results.
39677         * lib/strverscmp.h: Delete.
39678         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39679         * tests/test-strverscmp.c (includes): Adjust client.
39680         * lib/check-version.c (includes): Likewise.
39681         * NEWS: Document the change.
39682
39683         strverscmp: add unit test
39684         * modules/strverscmp-tests: New file.
39685         * tests/test-strverscmp.c: Likewise.
39686
39687 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39688
39689         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39690         regarding Windows crypto stuff, from Mono.
39691
39692 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39693
39694         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39695         if present, for intel RND.  Return error on failures.
39696
39697 2008-08-18  Ben Pfaff  <blp@gnu.org>
39698
39699         gitlog-to-changelog: give better diagnostic for failed pipe-open
39700         * build-aux/gitlog-to-changelog: Improve error message: suggest
39701         that the version of Git may be too old.
39702
39703 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39704
39705         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39706         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39707
39708 2008-08-18  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39711         pthread_in_use().
39712
39713 2008-08-18  Bruno Haible  <bruno@clisp.org>
39714
39715         * lib/glthread/threadlib.c: Include <pthread.h>.
39716
39717 2008-08-18  Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39720         glthread_recursive_lock_* macros.
39721         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39722         Fix syntax error.
39723
39724 2008-08-18  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/glthread/thread.c: Avoid forcing a context switch right after
39727         thread creation.
39728
39729 2008-08-17  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39732         * lib/glthread/thread.h: Provide Win32 specific implementation.
39733         * modules/thread (Files): Add lib/glthread/thread.c.
39734         (Depends-on): Add lock.
39735         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39736
39737 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39738
39739         New module 'yield'.
39740         * modules/yield: New file.
39741         * lib/glthread/yield.h: New file.
39742         * m4/yield.m4: New file.
39743         * MODULES.html.sh (Multithreading): Add yield.
39744
39745 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39746
39747         New module 'thread'.
39748         * modules/thread: New file.
39749         * lib/glthread/thread.h: New file.
39750         * m4/thread.m4: New file.
39751         * MODULES.html.sh (Multithreading): Add thread.
39752
39753 2008-08-17  Bruno Haible  <bruno@clisp.org>
39754
39755         * lib/glthread/lock.h: Include <stdlib.h> always.
39756         * lib/glthread/tls.h: Likewise.
39757         * lib/glthread/cond.h: Likewise.
39758
39759 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39760
39761         New module 'cond'.
39762         * modules/cond: New file.
39763         * lib/glthread/cond.h: New file.
39764         * lib/glthread/cond.c: New file.
39765         * m4/cond.m4: New file.
39766         * MODULES.html.sh (Multithreading): Add cond.
39767
39768 2008-08-16  Eric Blake  <ebb9@byu.net>
39769
39770         c-stack: fix regression on Irix 5.3 from 2008-06-21
39771         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39772         sa_sigaction...
39773         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39774         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39775         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39776         * modules/signal (Makefile.am): Use the value.
39777         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39778         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39779         * doc/posix-headers/signal.texi (signal.h): Document this
39780         portability issue.
39781         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39782         Reported by Tom G. Christensen.
39783
39784 2008-08-17  Bruno Haible  <bruno@clisp.org>
39785
39786         New module 'threadlib'.
39787         * modules/threadlib: New file.
39788         * lib/glthread/threadlib.c: New file, extracted from
39789         lib/glthread/lock.c.
39790         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39791         functions.
39792         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39793         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39794         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39795         macros.
39796         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39797         (gl_DISABLE_THREADS): Remove macro.
39798         * modules/lock (Files): Remove build-aux/config.rpath.
39799         (Depends-on): Remove havelib. Add threadlib.
39800         (configure.ac-early): Remove section.
39801         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39802         * modules/tls (Depends-on): Remove lock. Add threadlib.
39803         (Link): New section, copied from threadlib.
39804         * MODULES.html.sh (Multithreading): Add threadlib.
39805
39806 2008-08-14  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39809         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39810         glthread_rwlock_unlock, glthread_rwlock_destroy,
39811         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39812         glthread_recursive_lock_destroy): Define as macros always.
39813         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39814         glthread_lock_lock.
39815         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39816         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39817         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39818         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39819         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39820         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39821         (glthread_recursive_lock_lock_func): Renamed from
39822         glthread_recursive_lock_lock.
39823         (glthread_recursive_lock_unlock_func): Renamed from
39824         glthread_recursive_lock_unlock.
39825         (glthread_recursive_lock_destroy_func): Renamed from
39826         glthread_recursive_lock_destroy.
39827
39828 2008-08-14  Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/glthread/lock.h: Renamed from lib/lock.h.
39831         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39832         * lib/glthread/tls.h: Renamed from lib/tls.h.
39833         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39834         * lib/fstrcmp.c: Update includes.
39835         * lib/strsignal.c: Update includes.
39836         * modules/lock (Files, Makefile.am): Update.
39837         (Include): Change to "glthread/lock.h".
39838         * modules/tls (Files, Makefile.am): Update.
39839         (Include): Change to "glthread/tls.h".
39840         * tests/test-lock.c: Update includes.
39841         * tests/test-tls.c: Update includes.
39842         * NEWS: Mention the renamed header files.
39843
39844 2008-08-11  Jim Meyering  <meyering@redhat.com>
39845
39846         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39847
39848 2008-08-11  Eric Blake  <ebb9@byu.net>
39849
39850         test-c-stack: avoid C99-ism
39851         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39852         before statement.
39853         Reported by Alain Guibert.
39854
39855 2008-08-10  Jim Meyering  <meyering@redhat.com>
39856
39857         ensure that return value of uinttostr et al are not ignored
39858         * lib/inttostr.h (__GNUC_PREREQ): Define.
39859         (__attribute_warn_unused_result__): Define.
39860         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39861
39862 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39863
39864         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39865         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39866
39867 2008-08-07  Jim Meyering  <meyering@redhat.com>
39868
39869         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39870
39871         * modules/mkstemp (License): Relicense under LGPLv2+.
39872         * modules/tempname (License): Likewise.
39873
39874 2008-08-06  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/poll.c (poll): Further micro-optimization.
39877
39878 2008-08-06  Jim Meyering  <meyering@redhat.com>
39879
39880         inet_pton.c: use locale-independent tolower
39881         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39882         (inet_pton6): Use c_tolower rather than tolower.
39883         * modules/inet_pton (Depends-on): Add c-ctype.
39884
39885 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39886
39887         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39888         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39889
39890 2008-08-06  Jim Meyering  <meyering@redhat.com>
39891
39892         * modules/inet_pton (License): Relicense under LGPLv2+.
39893
39894 2008-08-03  Bruno Haible  <bruno@clisp.org>
39895
39896         Additional non-aborting API for lock and tls.
39897         * lib/lock.h: Include <errno.h>.
39898         (glthread_lock_init): New macro/function.
39899         (gl_lock_init): Define as wrapper around glthread_lock_init.
39900         (glthread_lock_lock): New macro/function.
39901         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39902         (glthread_lock_unlock): New macro/function.
39903         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39904         (glthread_lock_destroy): New macro/function.
39905         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39906         (glthread_rwlock_init): New macro/function.
39907         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39908         (glthread_rwlock_rdlock): New macro/function.
39909         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39910         (glthread_rwlock_wrlock): New macro/function.
39911         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39912         (glthread_rwlock_unlock): New macro/function.
39913         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39914         (glthread_rwlock_destroy): New macro/function.
39915         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39916         (glthread_recursive_lock_init): New macro/function.
39917         (gl_recursive_lock_init): Define as wrapper around
39918         glthread_recursive_lock_init.
39919         (glthread_recursive_lock_lock): New macro/function.
39920         (gl_recursive_lock_lock): Define as wrapper around
39921         glthread_recursive_lock_lock.
39922         (glthread_recursive_lock_unlock): New macro/function.
39923         (gl_recursive_lock_unlock): Define as wrapper around
39924         glthread_recursive_lock_unlock.
39925         (glthread_recursive_lock_destroy): New macro/function.
39926         (gl_recursive_lock_destroy): Define as wrapper around
39927         glthread_recursive_lock_destroy.
39928         (glthread_once): New macro/function.
39929         (gl_once): Define as wrapper around glthread_once.
39930         Update function declarations.
39931         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39932         glthread_rwlock_init. Return error code.
39933         (glthread_rwlock_rdlock_multithreaded): Renamed from
39934         glthread_rwlock_rdlock. Return error code.
39935         (glthread_rwlock_wrlock_multithreaded): Renamed from
39936         glthread_rwlock_wrlock. Return error code.
39937         (glthread_rwlock_unlock_multithreaded): Renamed from
39938         glthread_rwlock_unlock. Return error code.
39939         (glthread_rwlock_destroy_multithreaded): Renamed from
39940         glthread_rwlock_destroy. Return error code.
39941         (glthread_recursive_lock_init_multithreaded): Renamed from
39942         glthread_recursive_lock_init. Return error code.
39943         (glthread_recursive_lock_lock_multithreaded): Renamed from
39944         glthread_recursive_lock_lock. Return error code.
39945         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39946         glthread_recursive_lock_unlock. Return error code.
39947         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39948         glthread_recursive_lock_destroy. Return error code.
39949         (glthread_once_call): Make static.
39950         (glthread_once_multithreaded): Renamed from glthread_once.
39951         * lib/tls.h: Include <errno.h>.
39952         (glthread_tls_key_init): New macro/function.
39953         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39954         (glthread_tls_set): New macro/function.
39955         (gl_tls_set): Define as wrapper around glthread_tls_set.
39956         (glthread_tls_key_destroy): New macro/function.
39957         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39958         Update function declarations.
39959         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39960         glthread_tls_get.
39961         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39962
39963 2008-08-04  Eric Blake  <ebb9@byu.net>
39964
39965         gnumakefile: use space, not TAB, outside of targets
39966         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39967
39968 2008-08-02  Jim Meyering  <meyering@redhat.com>
39969
39970         getdate.y: avoid locale-dependent date parsing failure
39971         In Turkish locales, getdate would fail to recognize keywords
39972         containing a lowercase "i".  The solution is not to rely on
39973         locale-sensitive case-conversion.
39974         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39975         (lookup_word): Use c_toupper in place of toupper.
39976         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39977         Reported by Vefa Bicakci <bicave@superonline.com> in
39978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39979         * modules/getdate (Depends-on): Add c-ctype.
39980
39981 2008-08-02  Bruno Haible  <bruno@clisp.org>
39982
39983         * gnulib-tool (func_import): When updating or creating a .gitignore
39984         file, prepend each added line with a slash, and ignore leading slashes
39985         from the existing lines.
39986         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39987
39988 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39989
39990         Portability fix for GNU make 3.79.1.
39991         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39992         versions do not understand.
39993
39994 2008-08-01  Bruno Haible  <bruno@clisp.org>
39995
39996         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39997         * tests/test-isnanf.h (zero): New variable.
39998         (main): Avoid literal -0.0f.
39999         * tests/test-isnand.h (zero): New variable.
40000         (main): Avoid literal -0.0.
40001         * tests/test-isnanl.h (zero): New variable.
40002         (main): Avoid literal -0.0L.
40003         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40004         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40005         -0.0, -0.0L.
40006         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40007         (test_signbitd): Avoid literal -0.0.
40008         (test_signbitl): Avoid literal -0.0L.
40009         * tests/test-ceilf1.c (zero): New variable.
40010         (main): Avoid literal -0.0f.
40011         * tests/test-ceill.c (zero): New variable.
40012         (main): Avoid literal -0.0L.
40013         * tests/test-floorf1.c (zero): New variable.
40014         (main): Avoid literal -0.0f.
40015         * tests/test-floorl.c (zero): New variable.
40016         (main): Avoid literal -0.0L.
40017         * tests/test-roundf1.c (zero): New variable.
40018         (main): Avoid literal -0.0f.
40019         * tests/test-round1.c (zero): New variable.
40020         (main): Avoid literal -0.0.
40021         * tests/test-roundl.c (zero): New variable.
40022         (main): Avoid literal -0.0L.
40023         * tests/test-truncf1.c (zero): New variable.
40024         (main): Avoid literal -0.0f.
40025         * tests/test-trunc1.c (zero): New variable.
40026         (main): Avoid literal -0.0.
40027         * tests/test-truncl.c (zero): New variable.
40028         (main): Avoid literal -0.0L.
40029         * tests/test-frexp.c (zero): New variable.
40030         (main): Avoid literal -0.0.
40031         * tests/test-frexpl.c (zero): New variable.
40032         (main): Avoid literal -0.0L.
40033         * tests/test-ldexpl.c (zero): New variable.
40034         (main): Avoid literal -0.0L.
40035         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40036         (zerod, zerol): New variables.
40037         (test_function): Avoid literals -0.0, -0.0L.
40038         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40039         (zerod, zerol): New variables.
40040         (test_function): Avoid literals -0.0, -0.0L.
40041         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40042         (zerod, zerol): New variables.
40043         (test_function): Avoid literals -0.0, -0.0L.
40044         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40045         (zerod, zerol): New variables.
40046         (test_function): Avoid literals -0.0, -0.0L.
40047         * tests/test-strtod.c (zero): New variable.
40048         (main): Avoid literal -0.0.
40049         Reported by Jonathan C. Patschke <jp@centtech.com>.
40050
40051 2008-07-31  Jim Meyering  <meyering@redhat.com>
40052
40053         sha256.h: correct definition of SHA224_DIGEST_SIZE
40054         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40055         Reported by Paulie Pena IV <paulie4@gmail.com>.
40056         Define as 224 / 8, rather than as a literal.
40057         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40058         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40059         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40060
40061 2008-07-31  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40064         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40065         Reported by Jonathan Patschke <jp@centtech.com>.
40066
40067 2008-07-31  Bruno Haible  <bruno@clisp.org>
40068
40069         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40070         Reported by Paolo Bonzini <bonzini@gnu.org>.
40071
40072 2008-07-30  Eric Blake  <ebb9@byu.net>
40073
40074         test-strtod: allow compilation without -lm
40075         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40076         Reported by Dennis Clarke <blastwave@gmail.com>.
40077
40078 2008-07-28  Jim Meyering  <meyering@redhat.com>
40079
40080         bootstrap: work also when there are no .po files in po/
40081         * build-aux/bootstrap (update_po_files): Complete the change
40082         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40083
40084 2008-07-27  Jim Meyering  <meyering@redhat.com>
40085
40086         * users.txt: Add zile.
40087
40088 2008-07-26  Ben Pfaff  <blp@gnu.org>
40089
40090         Add missing dependencies on new m4/exponent[fdl].m4 files.
40091         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40092         * modules/isnand-nolibm: Add m4/exponentd.m4.
40093         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40094         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40095         m4/isnan[fdl].m4, because the macros actually used moved.
40096         Reported by Jim Meyering.
40097
40098 2008-07-14  Ben Pfaff  <blp@gnu.org>
40099
40100         Add isinf module.
40101         * lib/isinf.c: New file.
40102         * lib/math.in.h: Define isinf macro if we have decided to replace
40103         it.
40104         * m4/isinf.m4: New file.
40105         * m4/math_h.m4: Initialize and substitute variables for isinf
40106         module.
40107         * modules/isinf: New file.
40108         * modules/isinf-tests: New file.
40109         * modules/math: Add substitutions for new module.
40110         * tests/test-isinf.c: New file.
40111         * doc/posix-functions/isinf.texi: Mention new module.
40112         * MODULES.html.sh: Mention new module.
40113
40114 2008-07-14  Ben Pfaff  <blp@gnu.org>
40115
40116         Factor out some macros for use by additional modules.
40117         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40118         exponentf.m4.
40119         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40120         exponentd.m4.
40121         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40122         file exponentl.m4.
40123         * m4/exponentf.m4: New file.
40124         * m4/exponentd.m4: New file.
40125         * m4/exponentl.m4: New file.
40126         * modules/isnanf: Use new file m4/exponentf.m4.
40127         * modules/isnand: Use new file m4/exponentd.m4.
40128         * modules/isnanl: Use new file m4/exponentl.m4.
40129
40130 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40131
40132         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40133         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40134         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40135         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40136
40137         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40138         readlink on platforms without PATH_MAX.
40139
40140 2008-07-21  Eric Blake  <ebb9@byu.net>
40141
40142         Warn, not fail, on stale version.
40143         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40144
40145         Don't allow installation with stale devel version number.
40146         * top/GNUmakefile (_is-install-target): New macro.
40147         (_curr-ver): Forbid installation with stale version number.
40148
40149 2008-07-20  Bruno Haible  <bruno@clisp.org>
40150
40151         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40152         TESTS_ENVIRONMENT.
40153         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40154
40155 2008-07-20  Bruno Haible  <bruno@clisp.org>
40156
40157         * lib/c-stack.h (c_stack_action): Add documentation.
40158         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40159
40160 2008-07-20  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40163         * modules/readlink (License): Likewise.
40164
40165 2008-07-17  Eric Blake  <ebb9@byu.net>
40166
40167         * modules/c-stack (Link): Fix typo.
40168
40169         Make c-stack use libsigsegv, when available.
40170         * modules/c-stack (Depends-on): Add libsigsegv.
40171         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40172         needed.
40173         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40174         (segv_handler, overflow_handler, c_stack_action)
40175         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40176         implementation when libsigsegv is available, but only when using
40177         the library is necessary.
40178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40179         comment, explaining why XSI check fails on Linux.
40180         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40181         * tests/test-c-stack2.sh: Tweak skip message.
40182         * NEWS: Document new link-time requirements.
40183
40184 2008-07-16  Eric Blake  <ebb9@byu.net>
40185
40186         c-stack: Expose false positives when not using libsigsegv.
40187         * modules/c-stack-tests (Files): Expand test.
40188         * tests/test-c-stack.c (main): Add means to conditionally trigger
40189         non-overflow SIGSEGV.
40190         * tests/test-c-stack2.sh: New file.
40191
40192 2008-07-14  Bruno Haible  <bruno@clisp.org>
40193
40194         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40195         Reported by Eric Blake.
40196
40197 2008-07-14  Sam Steingold  <sds@gnu.org>
40198             Bruno Haible  <bruno@clisp.org>
40199
40200         New module libsigsegv.
40201         * modules/libsigsegv: New file.
40202         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40203         modifications.
40204         * MODULES.html.sh (Signal handling): New section.
40205
40206 2008-07-14  Bruno Haible  <bruno@clisp.org>
40207
40208         * modules/unictype/ctype-* (Description): Add the word "function".
40209         Improves the resulting doc in MODULES.html.
40210
40211 2008-07-12  Ben Pfaff  <blp@gnu.org>
40212
40213         Add longlong module.
40214         * modules/longlong: New file.
40215
40216 2008-07-12  Bruno Haible  <bruno@clisp.org>
40217
40218         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40219         to empty.
40220
40221 2008-07-10  Ben Pfaff  <blp@gnu.org>
40222
40223         Add isnan module.
40224         * doc/posix-functions/isnan.texi: Mention new module.
40225         * lib/math.in.h: Define isnan macro if we have decided to replace
40226         it.
40227         * m4/isnan.m4: New file.
40228         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40229         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40230         also.
40231         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40232         redundancy.
40233         * m4/math_h.m4: Initialize and substitute variables for isnan
40234         module.
40235         * modules/isnan: New file.
40236         * modules/isnan-tests: New file.
40237         * modules/math: Add substitutions for new module.
40238         * tests/test-isnan.c: New file.
40239         * MODULES.html.sh: Mention new module.
40240
40241 2008-07-10  Ben Pfaff  <blp@gnu.org>
40242
40243         Add isnanf module.
40244         * lib/isnanf.m4: New file.
40245         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40246         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40247         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40248         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40249         * modules/isnanf: New file.
40250         * modules/isnanf-tests: New file.
40251         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40252         files.
40253         * tests/test-isnanf-nolibm.c: factored most of its contents into
40254         new file tests/test-isnanf.h.
40255         * tests/test-isnanf.h: New file.
40256         * tests/test-isnanf.c: New file.
40257         * MODULES.html.sh: Mention new module.
40258         * doc/glibc-functions/isnanf.texi: Mention new module.
40259
40260 2008-07-10  Ben Pfaff  <blp@gnu.org>
40261
40262         Add isnand module.
40263         * lib/isnand.h: New file.
40264         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40265         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40266         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40267         functionality also.
40268         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40269         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40270         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40271         * modules/isnand: New file.
40272         * modules/isnand-tests: New file.
40273         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40274         files.
40275         * tests/test-isnand-nolibm.c: factored most of its contents into
40276         new file tests/test-isnand.h.
40277         * tests/test-isnand.h: New file.
40278         * tests/test-isnand.c: New file.
40279         * MODULES.html.sh: Mention new module.
40280
40281 2008-07-10  Ben Pfaff  <blp@gnu.org>
40282
40283         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40284         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40285         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40286         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40287         * modules/isnanf-nolibm: Update references to renamed files.
40288         * modules/isnand-nolibm: Likewise.
40289         * modules/isnanf-nolibm-tests: Likewise.
40290         * modules/isnand-nolibm-tests: Likewise.
40291         * lib/frexp.c: Likewise.
40292         * lib/isfinite.c: Likewise.
40293         * lib/signbitd.c: Likewise.
40294         * lib/signbitf.c: Likewise.
40295         * lib/vasnprintf.c: Likewise.
40296         * tests/test-ceilf1.c: Likewise.
40297         * tests/test-ceilf2.c: Likewise.
40298         * tests/test-floorf1.c: Likewise.
40299         * tests/test-floorf2.c: Likewise.
40300         * tests/test-frexp.c: Likewise.
40301         * tests/test-round1.c: Likewise.
40302         * tests/test-round2.c: Likewise.
40303         * tests/test-roundf1.c: Likewise.
40304         * tests/test-strtod.c: Likewise.
40305         * tests/test-trunc1.c: Likewise.
40306         * tests/test-trunc2.c: Likewise.
40307         * tests/test-truncf1.c: Likewise.
40308         * tests/test-truncf2.c: Likewise.
40309         * NEWS: Mention the renamed header files.
40310
40311 2008-07-11  Jim Meyering  <meyering@redhat.com>
40312
40313         vc-list-files: make the last-resort awk code more portable
40314         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40315         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40316         does not support it.
40317
40318 2008-07-10  Eric Blake  <ebb9@byu.net>
40319
40320         Work with tar's bootstrap.
40321         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40322         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40323         an m4 comment.
40324
40325 2008-07-09  Jim Meyering  <meyering@redhat.com>
40326
40327         posix-shell.m4: fix typo that made this test malfunction
40328         * m4/posix-shell.m4: Remove capitalization in variable name.
40329
40330 2008-07-08  Bruno Haible  <bruno@clisp.org>
40331
40332         * m4/onceonly.m4: Update comments.
40333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40334
40335 2008-07-04  Jim Meyering  <meyering@redhat.com>
40336
40337         * users.txt: Add vc-dwim.
40338         (bison, coreutils): Use the gitweb URL.
40339
40340 2008-07-03  Jim Meyering  <meyering@redhat.com>
40341
40342         * users.txt: Add libffcall.  From Sam Steingold.
40343
40344 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40345
40346         getdate.y: do not ignore TZ with relative day, month or year offset
40347         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40348         relative-date-handling, since otherwise, the latter would clobber the
40349         sole output (an updated Start value) of the tz-handling block.
40350         * tests/test-getdate.c: Tests for the fix
40351
40352 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40353
40354         Recognize 'foo_LIBRARIES += libgnu.a'.
40355         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40356         makefile snippet has already specified an installation location,
40357         also using '+='.
40358
40359 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40360
40361         getdate.y: factor out common actions
40362         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40363         Use them in place of open-coded actions.
40364
40365 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40366
40367         Add self-test for getdate module.
40368         * modules/getdate-tests: New file.
40369         * tests/test-getdate.c: New file.
40370
40371 2008-06-29  Bruno Haible  <bruno@clisp.org>
40372
40373         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40374         .gitignore.
40375         Reported by Sylvain Beucler <beuc@beuc.net>.
40376
40377 2008-06-29  Bruno Haible  <bruno@clisp.org>
40378
40379         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40380         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40381
40382 2008-06-29  Bruno Haible  <bruno@clisp.org>
40383
40384         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40385         EXTRA_DIST.
40386         Reported by Sylvain Beucler <beuc@beuc.net>.
40387
40388 2008-06-26  Jim Meyering  <meyering@redhat.com>
40389
40390         make several modules depend on the "open" module
40391         This provides slightly increased consistency when opening-for-write
40392         the name of a non-directory spelled with a trailing slash.
40393         * modules/chdir-safer: Likewise.
40394         * modules/chown: Likewise.
40395         * modules/clean-temp: Likewise.
40396         * modules/copy-file: Likewise.
40397         * modules/fchdir: Likewise.
40398         * modules/fcntl-safer: Likewise.
40399         * modules/pipe: Likewise.
40400         * modules/utime: Likewise.
40401         Prompted by Eric Blake and Bruno Haible.
40402
40403 2008-06-24  Andreas Schwab  <schwab@suse.de>
40404
40405         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40406         literals can be used as initializers for global variables.
40407
40408 2008-06-23  Eric Blake  <ebb9@byu.net>
40409
40410         Make gnulib-cache.m4 easier to diff.
40411         * gnulib-tool (func_import): Allow newlines when reading cached
40412         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40413
40414 2008-06-23  Bruno Haible  <bruno@clisp.org>
40415
40416         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40417         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40418         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40419         m4/signalblocking.m4.
40420         (gl_PREREQ_SIGACTION): Don't invoke it.
40421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40422         gl_PREREQ_SIG_HANDLER_H.
40423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40424         Don't check for sigaction here.
40425
40426 2008-06-23  Bruno Haible  <bruno@clisp.org>
40427
40428         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40429         (install_handlers): Don't set the SA_RESETHAND flag.
40430
40431 2008-06-23  Bruno Haible  <bruno@clisp.org>
40432
40433         * m4/sigaction.m4: Comment fixes.
40434         * lib/signal.in.h: Likewise.
40435
40436 2008-06-23  Eric Blake  <ebb9@byu.net>
40437
40438         Fix typo.
40439         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40440
40441         Avoid SA_ namespace.
40442         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40443         Reported by Ralf Wildenhues.
40444
40445         Avoid test failure due to SA_RESTORER.
40446         * tests/test-sigaction.c (SA_MASK): New macro.
40447         (main): Avoid failing due to extension flags being set.
40448         Reported by Jim Meyering.
40449
40450         Revert use of sig-handler.h in sigprocmask.c.
40451         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40452         it requires the existence of struct sigaction.
40453         * lib/sigprocmask.c (handler_t): Restore typedef.
40454         (rpl_signal, old_handlers): Use local type.
40455
40456 2008-06-22  Bruno Haible  <bruno@clisp.org>
40457
40458         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40459         conditionally.
40460         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40461
40462 2008-06-22  Bruno Haible  <bruno@clisp.org>
40463
40464         * doc/posix-functions/siginterrupt.texi: Move note.
40465
40466         * lib/signal.in.h (SA_RESTART): New macro.
40467         * lib/sigaction.c: Update comment.
40468
40469         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40470
40471         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40472         (gl_PREREQ_SIGPROCMASK): Invoke it.
40473         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40474
40475         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40476
40477         * lib/sigprocmask.c: Update a comment.
40478
40479 2008-06-21  Eric Blake  <ebb9@byu.net>
40480
40481         Use sigaction module rather than signal().
40482         * modules/c-stack (Depends-on): Add sigaction.
40483         * modules/fatal-signal (Depends-on): Likewise.
40484         * modules/nanosleep (Depends-on): Likewise.
40485         * modules/sigprocmask (Files): Add sig-handler.h.
40486         * modules/sigaction (Files): Likewise.
40487         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40488         Eggert.
40489         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40490         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40491         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40492         (init_fatal_signals): Likewise.
40493         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40494         (siginterrupt): Delete fallback.
40495         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40496         instead.
40497         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40498         siginterrupt.
40499
40500         New module sigaction, for mingw.
40501         * modules/sigaction: New module...
40502         * modules/sigaction-tests: ...and its test.
40503         * m4/sigaction.m4: New file.
40504         * lib/sigaction.c: Likewise.
40505         * tests/test-sigaction.c: Likewise.
40506         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40507         * modules/signal (Makefile.am): Likewise.
40508         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40509         needed.
40510         * doc/posix-headers/signal.texi (signal.h): Mention provided
40511         types.
40512         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40513         that sigaction is preferable.
40514         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40515         module.
40516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40517         sigaction.
40518
40519         Improve robustness of sigprocmask by overriding signal.
40520         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40521         is in use.
40522         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40523         (SIGKILL, SIGSTOP): Provide fallbacks.
40524         (rpl_signal): Implement.
40525         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40526         signal can be called inside handlers.
40527
40528         Fix nanosleep module on mingw.
40529         * modules/nanosleep (Depends-on): Add sys_select.
40530         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40531
40532         Fix licensing of sigprocmask.
40533         * modules/raise (License): Relicense as LGPL.
40534
40535 2008-06-21  Bruno Haible  <bruno@clisp.org>
40536
40537         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40538         result if it contains question marks.
40539         Reported by Michael Geng <linux@michaelgeng.de>.
40540
40541 2008-06-19  Bruno Haible  <bruno@clisp.org>
40542
40543         Fix CVS-ism.
40544         * doc/gnulib.texi: Include updated-stamp.texi.
40545         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40546         (updated-stamp.texi): New rule.
40547         (gnulib.info): Depend on it.
40548         * doc/.gitignore: Add updated-stamp.texi.
40549         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40550
40551 2008-06-19  Bruno Haible  <bruno@clisp.org>
40552
40553         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40554         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40555
40556 2008-06-19  Eric Blake  <ebb9@byu.net>
40557
40558         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40559         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40560         Reported by Stepan Kasal.
40561
40562 2008-06-18  Bruno Haible  <bruno@clisp.org>
40563
40564         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40565         Reported by Eric Blake.
40566
40567 2008-06-18  Eric Blake  <ebb9@byu.net>
40568
40569         Work around cygwin 1.5.25 strsignal bug.
40570         * tests/test-strsignal.c: Allow for const char *.
40571         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40572
40573 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40574
40575         * users.txt: Update URL to article and add author/date
40576         information.
40577
40578 2008-06-17  Bruno Haible  <bruno@clisp.org>
40579
40580         New macro gl_DISABLE_THREADS.
40581         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40582         if the user did not pass --enable-threads or --disable-threads option.
40583         (gl_DISABLE_THREADS): New macro.
40584         Reported by Eric Blake <ebb9@byu.net>.
40585
40586 2008-06-17  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40589         when the macro ignores it.
40590         Based on a patch by Eric Blake <ebb9@byu.net>.
40591
40592 2008-06-17  Bruno Haible  <bruno@clisp.org>
40593
40594         * modules/tls (License): Change to LGPLv2+.
40595         Reported by Eric Blake.
40596
40597 2008-06-17  Eric Blake  <ebb9@byu.net>
40598
40599         Simplify c-stack prerequisites.
40600         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40602         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40603         check.
40604         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40605         <sys/resource.h>.
40606
40607         Move c-stack test into testsuite.
40608         * modules/c-stack-tests: New file.
40609         * lib/c-stack.c [DEBUG]: Move test program...
40610         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40611         fail test if sigaltstack is lacking.
40612         * tests/test-c-stack.sh: New driver file.
40613
40614 2008-06-16  Eric Blake  <ebb9@byu.net>
40615
40616         Use raise module consistently.
40617         * modules/fatal-signal (Depends-on): Add raise.
40618         * modules/sigprocmask (Depends-on): Likewise.
40619         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40620         * lib/sigprocmask.c (sigprocmask): Likewise.
40621         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40622         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40623
40624         Fix compliance bug in sigpending.
40625         * lib/sigprocmask.c (sigpending): Return pending array via
40626         parameter, not return value.
40627
40628 2008-06-14  Eric Blake  <ebb9@byu.net>
40629
40630         Improve obstack-printf test code.
40631         * tests/test-obstack-printf.c (test_function): Fix comment, and
40632         simplify usage of obstack_* in macros.  Add a test for coverage.
40633         Reported by Bruno Haible.
40634
40635 2008-06-14  Bruno Haible  <bruno@clisp.org>
40636
40637         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40638         array size as a constant, not as a const variable.
40639         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40640         AC_USE_SYSTEM_EXTENSIONS.
40641         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40642         Test whether the obstack_printf function actually exists.
40643         * modules/obstack-printf (Depends-on): Add extensions.
40644         (Include): Remove obstack.h.
40645         * modules/obstack-printf-posix (Depends-on): Add extensions.
40646         (Include): Remove obstack.h.
40647
40648 2008-06-13  Eric Blake  <ebb9@byu.net>
40649
40650         Add obstack-printf and obstack-printf-posix modules.
40651         * modules/obstack-printf: New file.
40652         * modules/obstack-printf-posix: Likewise.
40653         * MODULES.html.sh (Misc): Mention them.
40654         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40655         Likewise.
40656         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40657         Likewise.
40658         * modules/stdio (Makefile.am): Accomodate new modules.
40659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40660         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40661         Declare.
40662         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40663         functions.
40664         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40665         (gl_REPLACE_OBSTACK_PRINTF): New macros
40666         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40667         * tests/test-obstack-printf.c: New file.
40668         * modules/obstack-printf-tests: Likewise.
40669         * modules/obstack-printf-posix-tests: Likewise.
40670
40671 2008-06-11  Bruno Haible  <bruno@clisp.org>
40672
40673         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40674         * lib/open.c: Include errno.h.
40675         (open): Fail when attempting to write to a file that has a trailing
40676         slash.
40677         * tests/test-open.c (main): Test against trailing slash bug.
40678         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40679
40680 2008-06-10  Bruno Haible  <bruno@clisp.org>
40681
40682         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40683         for $? to work inside the trap command, with various /bin/sh-s.
40684         * tests/test-vc-list-files-cvs.sh: Likewise.
40685
40686 2008-06-10  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/acl-internal.h: Don't include gettext.h here.
40689         * lib/set-mode-acl.c: Include gettext.h here.
40690         * lib/copy-acl.c: Likewise.
40691
40692 2008-06-10  Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40695         * lib/wait-process.c (wait_subprocess): Likewise.
40696         * lib/execute.h (execute): Add termsigp argument.
40697         * lib/execute.c (execute): Likewise.
40698         * lib/csharpcomp.c (compile_csharp_using_pnet,
40699         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40700         * lib/csharpexec.c (execute_csharp_using_pnet,
40701         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40702         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40703         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40704         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40705         is_jikes_present): Update.
40706         * lib/javaexec.c (execute_java_class): Update.
40707         * lib/javaversion.c (execute_and_read_line): Update.
40708         * NEWS: Document the changes.
40709         Reported by Eric Blake.
40710
40711 2008-06-10  Eric Blake  <ebb9@byu.net>
40712
40713         Add missing include.
40714         * tests/test-strstr.c (includes): Add <signal.h>.
40715         * tests/test-strcasestr.c (includes): Likewise.
40716         * tests/test-memmem.c (includes): Likewise.
40717
40718 2008-06-10  Bruno Haible  <bruno@clisp.org>
40719
40720         * lib/wait-process.c (wait_subprocess): Add an assertion.
40721
40722 2008-06-10  Bruno Haible  <bruno@clisp.org>
40723
40724         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40725
40726 2008-06-10  Bruno Haible  <bruno@clisp.org>
40727
40728         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40729         using alarm().
40730         * tests/test-strcasestr.c (main): Likewise.
40731         * tests/test-strstr.c (main): Likewise.
40732
40733 2008-06-09  Bruno Haible  <bruno@clisp.org>
40734
40735         Work around the Solaris 10 ACE ACLs ABI change.
40736         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40737         declare if ACL_NO_TRIVIAL is present.
40738         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40739         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40740         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40741         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40742         define if ACL_NO_TRIVIAL is present.
40743         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40744         and use the current ABI.
40745         (file_has_acl): Use same #if condition as elsewhere.
40746         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40747         in use, and use the current ABI.
40748         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40749         Reported by Jim Meyering.
40750
40751 2008-06-09  Eric Blake  <ebb9@byu.net>
40752
40753         Work around environments that (stupidly) ignore SIGALRM.
40754         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40755         before using alarm().
40756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40758         Reported by Ian Beckwith <ianb@erislabs.net>.
40759
40760         Produce autobuild blurb earlier in log.
40761         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40762
40763 2008-06-09  Jim Meyering  <meyering@redhat.com>
40764         and OndÅ™ej Vašík  <ovasik@redhat.com>
40765
40766         utimens.c: correct kernel bug work-around
40767         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40768         failure, not success, and the kernel bug we're trying to work
40769         around affects not just the utimensat call, but also the fallback
40770         futimens call.
40771         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40772         not success.
40773         [HAVE_FUTIMENS]: Use the same work-around, here.
40774
40775 2008-06-09  Jim Meyering  <meyering@redhat.com>
40776
40777         add more guards around definition of ACE_-related code
40778         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40779         ALLOW and ACE_OWNER are also defined.
40780
40781 2008-06-08  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/acl-internal.h: Add me as co-author.
40784         * lib/file-has-acl.c: Likewise.
40785         * lib/set-mode-acl.c: Likewise.
40786         * lib/copy-acl.c: Likewise.
40787
40788 2008-06-08  Bruno Haible  <bruno@clisp.org>
40789
40790         Add support for AIX ACLs.
40791         * lib/acl-internal.h (acl_nontrivial): New declaration.
40792         * lib/file-has-acl.c (acl_nontrivial): New function.
40793         (file_has_acl): Add implementation using AIX 4 ACL API.
40794         * lib/set-mode-acl.c (qset_acl): Likewise.
40795         * lib/copy-acl.c (qcopy_acl): Likewise.
40796
40797 2008-06-08  Bruno Haible  <bruno@clisp.org>
40798
40799         Add support for HP-UX ACLs.
40800         * lib/acl-internal.h (acl_nontrivial): New declaration.
40801         * lib/file-has-acl.c (acl_nontrivial): New function.
40802         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40803         * lib/set-mode-acl.c (qset_acl): Likewise.
40804         * lib/copy-acl.c (qcopy_acl): Likewise.
40805
40806 2008-06-08  Bruno Haible  <bruno@clisp.org>
40807
40808         Add support for Cygwin ACLs.
40809         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40810         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40811         the chmod_or_fchmod call.
40812         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40813
40814 2008-06-08  Bruno Haible  <bruno@clisp.org>
40815
40816         Fix bug with setuid modes in Solaris 10+ code.
40817         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40818         succeeded, when the mode contains some special bits.
40819
40820 2008-06-08  Bruno Haible  <bruno@clisp.org>
40821
40822         Add support for Solaris 7..10 ACLs.
40823         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40824         declarations.
40825         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40826         functions.
40827         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40828         * lib/set-mode-acl.c (qset_acl): Likewise.
40829         * lib/copy-acl.c (qcopy_acl): Likewise.
40830
40831 2008-06-08  Bruno Haible  <bruno@clisp.org>
40832
40833         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40834         declaration.
40835         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40836         (acl_access_nontrivial): Remove MacOS X case.
40837         (file_has_acl): Use acl_extended_nontrivial.
40838         * lib/copy-acl.c (qcopy_acl): Likewise.
40839
40840 2008-06-08  Bruno Haible  <bruno@clisp.org>
40841
40842         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40843
40844 2008-06-08  Jim Meyering  <meyering@redhat.com>
40845
40846         * modules/acl (Maintainer): Add Bruno Haible.
40847
40848 2008-06-07  Bruno Haible  <bruno@clisp.org>
40849
40850         Improve support for Tru64 ACLs.
40851         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40852         ACL on OSF/1.
40853
40854 2008-06-07  Bruno Haible  <bruno@clisp.org>
40855
40856         Add support for MacOS X ACLs.
40857         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40858         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40859         * lib/set-mode-acl.c (qset_acl): Likewise.
40860         * lib/copy-acl.c (qcopy_acl): Likewise.
40861
40862 2008-06-07  Bruno Haible  <bruno@clisp.org>
40863
40864         Fix memory leak introduced on 2008-05-22.
40865         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40866         use.
40867
40868 2008-06-07  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40871         to construct an empty ACL.
40872
40873 2008-06-07  Bruno Haible  <bruno@clisp.org>
40874
40875         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40876         precisely.
40877         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40878
40879 2008-06-07  Bruno Haible  <bruno@clisp.org>
40880
40881         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40882         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40883
40884 2008-06-07  Bruno Haible  <bruno@clisp.org>
40885
40886         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40887         regardless of POSIX.
40888         * doc/posix-functions/_longjmp.texi: Likewise.
40889         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40890         SystemV platform in this case.
40891
40892 2008-06-06  Eric Blake  <ebb9@byu.net>
40893
40894         Document abort() bugs.
40895         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40896
40897         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40898         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40899         sigsetjmp.
40900         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40901         siglongjmp, but only as a macro.
40902         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40903         is obsolete.
40904         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40905
40906         Tweak documentation to cover cygwin argz bugs.
40907         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40908         argz bug fix; no code change needed since no cygwin releases
40909         occurred between the last fix and the bug being tested.
40910         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40911         module and recently fixed cygwin bugs.
40912         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40913         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40914         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40915         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40916         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40917         Likewise.
40918         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40919         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40920         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40921         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40922         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40923         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40924         Likewise.
40925
40926         Avoid gcc warning on cygwin.
40927         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40928         !ACL_NO_TRIVIAL]: Avoid unused variable.
40929
40930 2008-06-05  Eric Blake  <ebb9@byu.net>
40931
40932         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40933         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40934         git-version-gen fails to come up with a version.
40935         Reported by Simon Josefsson.
40936
40937 2008-06-05  Jim Meyering  <meyering@redhat.com>
40938             Paul Eggert  <eggert@cs.ucla.edu>
40939
40940         utimens.c: work around a probable Linux kernel bug
40941         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40942         appears to be a kernel bug that causes utimensat to return 280
40943         instead of 0, indicating success.
40944
40945 2008-06-04  Bruno Haible  <bruno@clisp.org>
40946
40947         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40948         2008-06-01 commit.
40949
40950 2008-06-04  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40953         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40954         (file_has_acl): Use it. Save errno afterwards.
40955         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40956
40957 2008-06-03  Bruno Haible  <bruno@clisp.org>
40958
40959         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40960         draft code. Simplify #ifs.
40961         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40962         Put Solaris code after POSIX-draft code. Fix comments regarding
40963         Solaris 10, HP-UX. Mention Cygwin.
40964         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40965
40966 2008-06-03  Eric Blake  <ebb9@byu.net>
40967
40968         Provide fallback for older kernels.
40969         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40970         Provide runtime fallback if kernel lacks support.
40971         Reported by Mike Frysinger.
40972
40973 2008-06-02  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40976         it exists.
40977
40978 2008-06-02  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40981         * lib/copy-acl.c (qcopy_acl): Update comment.
40982
40983 2008-06-02  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40986         like ACL APIs.
40987
40988 2008-06-02  Bruno Haible  <bruno@clisp.org>
40989
40990         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40991         * tests/test-set-mode-acl.sh: Likewise.
40992         * tests/test-copy-acl.sh: Likewise.
40993         * tests/test-copy-file.sh: Likewise.
40994
40995 2008-06-02  Bruno Haible  <bruno@clisp.org>
40996
40997         * tests/test-file-has-acl.sh: Remove unused code.
40998
40999 2008-06-01  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41002         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41003         messages.
41004         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41005
41006 2008-06-01  Bruno Haible  <bruno@clisp.org>
41007
41008         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41009         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41010         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41011         APIs.
41012         * modules/acl-tests (configure.ac): Remove tests now contained in
41013         m4/acl.m4.
41014
41015 2008-06-02  Jim Meyering  <meyering@redhat.com>
41016
41017         announce-gen: use a better key-server host name
41018         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41019         it may be more consistently reliable.  Suggested by Werner Koch
41020         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41021
41022 2008-06-01  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41025         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41026
41027 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41028
41029         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41030
41031 2008-06-01  Bruno Haible  <bruno@clisp.org>
41032
41033         New ACL tests.
41034         * tests/test-file-has-acl.sh: New file.
41035         * tests/test-file-has-acl.c: New file.
41036         * tests/test-set-mode-acl.sh: New file.
41037         * tests/test-set-mode-acl.c: New file.
41038         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41039         * tests/test-copy-acl.c: New file.
41040         * modules/acl-tests: New file, based on modules/copy-file-tests.
41041         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41042         (Depends-on): Add acl-tests.
41043         (configure.ac): Remove checks.
41044         (Makefile.am): Don't create test-sameacls program here any more.
41045
41046 2008-06-01  Bruno Haible  <bruno@clisp.org>
41047
41048         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41049         * tests/test-sameacls.c: Include progname.h.
41050         (main): Invoke set_program_name. Portability fixes for MacOS X,
41051         Solaris, HP-UX.
41052
41053 2008-06-01  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41056         function.
41057         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41058
41059 2008-06-01  Bruno Haible  <bruno@clisp.org>
41060
41061         * modules/rpmatch (Depends-on): Add strdup.
41062
41063 2008-06-01  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/pipe.c: Include unistd-safer.h.
41066         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41067         * modules/pipe (Depends-on): Add unistd-safer.
41068
41069 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41070
41071         * modules/autobuild (configure.ac): Call AB_INIT.
41072
41073 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41074
41075         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41076         Suggested by Bruno Haible <bruno@clisp.org>.
41077
41078 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41079
41080         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41081         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41082         <bruno@clisp.org>.
41083
41084 2008-05-29  Eric Blake  <ebb9@byu.net>
41085
41086         Prefer new POSIX 200x interfaces over futimesat.
41087         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41088         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41089         when available.
41090         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41091
41092 2008-05-28  Bruno Haible  <bruno@clisp.org>
41093
41094         * modules/stpcpy (License): Change to LGPLv2+.
41095         Requested by David Lutterkort <dlutter@redhat.com>.
41096
41097 2008-05-27  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41100         current mingw.
41101         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41102
41103 2008-05-27  Bruno Haible  <bruno@clisp.org>
41104
41105         * modules/iconv_open (Link): New section, from module 'iconv'.
41106         * modules/striconv (Link): Likewise.
41107         * modules/striconveh (Link): Likewise.
41108         * modules/xstriconv (Link): Likewise.
41109         * modules/unicodeio (Link): Likewise.
41110         * modules/propername (Link): Likewise.
41111         Reported by Jim Meyering.
41112
41113 2008-05-26  Jim Meyering  <meyering@redhat.com>
41114
41115         sha256: do not artificially restrict buffer length to be < 2^32
41116         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41117         uint32_t to size_t.
41118         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41119         to match.
41120
41121         avoid unaligned access errors, e.g., on sparc
41122         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41123         direct access through a possibly-unaligned uint64* pointer.
41124         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41125         direct access through a possibly-unaligned uint32* pointer.
41126         Prompted by this patch from Tom "spot" Callaway:
41127         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41128
41129         sha512.c: fix typo in comment
41130         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41131
41132 2008-05-25  Bruno Haible  <bruno@clisp.org>
41133
41134         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41135         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41136         (Makefile.am): Update lib_SOURCES.
41137
41138 2008-05-25  Bruno Haible  <bruno@clisp.org>
41139
41140         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41141
41142 2008-05-25  Jim Meyering  <meyering@redhat.com>
41143
41144         useless-if-before-free: freed expr may have white-space differences
41145         * build-aux/useless-if-before-free: Recognize cases in which the
41146         freed expression differs from the tested one in embedded white
41147         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41148         $1 was used, so we can't make any regexp shy.  Improved tests now
41149         detect this.
41150
41151         useless-if-before-free: accept white space in the expression.
41152         * build-aux/useless-if-before-free: For now, any white space
41153         in the expression must be identical in the free argument.
41154
41155         useless-if-before-free: efficiency tweak
41156         * build-aux/useless-if-before-free: Make the expression-matching
41157         regexp "shy".
41158         Make the *outer* regexp shy, not the expr-matching one.
41159
41160         update code-in-comment to accept cast of free arg
41161         * build-aux/useless-if-before-free: Update regexp.
41162
41163 2008-05-25  Bruno Haible  <bruno@clisp.org>
41164
41165         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41166         * modules/copy-file-tests (Files, Makefile.am): Update.
41167         * tests/test-copy-file.c (func_test_copy): Update.
41168
41169 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41170
41171         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41172
41173 2008-05-23  Bruno Haible  <bruno@clisp.org>
41174
41175         Improve support for ACLs on OSF/1.
41176         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41177         Remove fallback for unknown flavors of ACLs.
41178
41179 2008-05-22  Bruno Haible  <bruno@clisp.org>
41180
41181         Add support for ACLs on OSF/1.
41182         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41183         replacements.
41184         (acl_free_text): New macro fallback.
41185         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41186         acl_free.
41187         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41188         acl_free_text function. Require AC_C_INLINE.
41189
41190 2008-05-22  Bruno Haible  <bruno@clisp.org>
41191
41192         Make copy_acl work on MacOS X 10.5.
41193         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41194         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41195         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41196         If MODE_INSIDE_ACL, don't assume that every system has the same text
41197         representation for ACLs as FreeBSD.
41198         * lib/copy-acl.c (copy_acl): Add support for platforms with
41199         !MODE_INSIDE_ACL.
41200         * lib/file-has-acl.c (file_has_acl): Likewise.
41201         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41202         FreeBSD, MacOS X, or IRIX, respectively.
41203
41204 2008-05-22  Bruno Haible  <bruno@clisp.org>
41205
41206         * lib/acl.h: Don't include <sys/acl.h>.
41207         (GETACLCNT): Move fallback to lib/acl-internal.h.
41208         * lib/acl-internal.h: Include <sys/acl.h> here.
41209         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41210
41211 2008-05-22  Bruno Haible  <bruno@clisp.org>
41212
41213         Split off copy_acl function to separate file.
41214         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41215         * lib/acl.c (copy_acl): Moved function to separate file.
41216         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41217         * modules/acl (Files): Add lib/copy-acl.c.
41218         (Makefiles.am): Augment lib_SOURCES.
41219
41220 2008-05-22  Bruno Haible  <bruno@clisp.org>
41221
41222         * modules/copy-file-tests: New file.
41223         * tests/test-copy-file.sh: New file.
41224         * tests/test-copy-file.c: New file.
41225         * tests/test-copy-file-sameacls.c: New file.
41226
41227 2008-05-22  Eric Blake  <ebb9@byu.net>
41228
41229         Avoid gcc warning.
41230         * tests/test-memcmp.c (main): Pass NULL indirectly.
41231
41232 2008-05-21  Bruno Haible  <bruno@clisp.org>
41233
41234         Add reference doc about ACLs.
41235         * doc/acl-resources.txt: New file.
41236         * doc/acl-cygwin.txt: New file.
41237
41238 2008-05-21  Bruno Haible  <bruno@clisp.org>
41239
41240         Avoid one more warning from gcc.
41241         * lib/vasnprintf.c (IF_LINT): Update comments.
41242         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41243
41244 2008-05-21  Jim Meyering  <meyering@redhat.com>
41245
41246         avoid a warning from gcc
41247         * lib/vasnprintf.c (IF_LINT): Define.
41248         (scale10_round_decimal_long_double):
41249         Use it to avoid a "may be used uninitialized" warning.
41250         (scale10_round_decimal_double): Likewise.
41251
41252 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41253
41254         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41255         declared.
41256
41257 2008-05-20  Bruno Haible  <bruno@clisp.org>
41258
41259         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41260         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41261
41262 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41263
41264         * modules/memcmp-tests: New file.
41265         * tests/test-memcmp.c: New file.
41266
41267 2008-05-19  Bruno Haible  <bruno@clisp.org>
41268
41269         * modules/propername (Notice, configure.ac): Put quoted "..." into
41270         --keyword option.
41271         * lib/propername.h: Update comments accordingly.
41272         Reported by Eric Blake.
41273
41274 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41275
41276         * modules/getpass-gnu (Depends-on): Add fseeko.
41277
41278 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41279
41280         * modules/base64-tests: New file.
41281
41282 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41283
41284         * lib/base64.c (base64_decode_ctx): If a decode context structure
41285         was passed in use it to ignore newlines.  If a context structure
41286         was _not_ passed in, continue to treat newlines as garbage (this
41287         is the historical behavior).  Formerly base64_decode.
41288         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41289         takes a decode context structure.
41290         * lib/base64.h (base64_decode): Macro for four-argument calls.
41291         (base64_decode_alloc): Likewise.
41292         * lib/base64.c (base64_decode_ctx): If a decode context structure
41293         was passed in use it to ignore newlines.  If a context structure
41294         was _not_ passed in, continue to treat newlines as garbage (this
41295         is the historical behavior).  Formerly base64_decode.
41296         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41297         takes a decode context structure.
41298         * lib/base64.h (base64_decode): Macro for four-argument calls.
41299         (base64_decode_alloc): Likewise.
41300
41301 2008-05-19  Jim Meyering  <meyering@redhat.com>
41302
41303         avoid a warning from gcc
41304         * lib/trim.c (IF_LINT): Define.
41305         (trim2): Use it to avoid a "may be used uninitialized" warning.
41306
41307         Fix doc typo.
41308         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41309
41310 2008-05-19  Bruno Haible  <bruno@clisp.org>
41311
41312         * doc/glibc-functions/getpass.texi: Document limits of other
41313         implementations.
41314
41315 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41316             Bruno Haible <bruno@clisp.org>
41317
41318         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41319
41320 2008-05-18  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/propername: New file, from GNU gettext.
41323         * lib/propername.h: New file, from GNU gettext.
41324         * lib/propername.c: New file, from GNU gettext.
41325         * MODULES.html.sh (Internationalization functions): Add propername.
41326
41327 2008-05-16  Jim Meyering  <meyering@redhat.com>
41328             Bruno Haible  <bruno@clisp.org>
41329
41330         Avoid some warnings from "gcc -Wshadow".
41331         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41332
41333 2008-05-15  Eric Blake  <ebb9@byu.net>
41334
41335         Extend previous patch to cygwin 1.7.0.
41336         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41337         fast implementation in cygwin >= 1.7.0.
41338         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41340
41341 2008-05-15  Bruno Haible  <bruno@clisp.org>
41342
41343         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41344         implementation in glibc >= 2.9.
41345         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41347
41348 2008-05-15  Bruno Haible  <bruno@clisp.org>
41349
41350         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41351         (Unicode string functions): Add unilbrk/*.
41352         Reported by Karl Berry.
41353
41354 2008-05-15  Eric Blake  <ebb9@byu.net>
41355
41356         Fix violation of <stdbool.h> replacement in regex.
41357         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41358         * lib/regexec.c (re_search_internal): Likewise.
41359         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41360
41361 2008-05-15  Jim Meyering  <meyering@redhat.com>
41362
41363         avoid distracting test output when git or cvs is not found
41364         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41365         * tests/test-vc-list-files-git.sh: Likewise.
41366
41367 2008-05-15  Eric Blake  <ebb9@byu.net>
41368
41369         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41370         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41371         glibc version.
41372         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41373         * doc/posix-functions/strstr.texi (strstr): Likewise.
41374         * lib/str-two-way.h (MAX): Sychronize with glibc.
41375
41376 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41377
41378         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41379         opr.ctx_type.
41380         (calc_first): Initialize constraint field.
41381         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41382         Fix grammar.
41383         (duplicate_node): Merge constraint field for all node types.
41384         (calc_eclosure_iter): Look at constraint field for all node types.
41385         * lib/regex_internal.c (create_cd_newstate): Don't look at
41386         opr.ctx_type.
41387
41388 2008-05-14  Bruno Haible  <bruno@clisp.org>
41389
41390         Help GCC to do better code generation.
41391         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41392         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41393         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41394         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41395         Declare with attribute 'malloc' if supported.
41396
41397 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41398
41399         use "echo STR|wc -c" rather than unportable "expr length STR"
41400         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41401         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41402
41403 2008-05-14  Jim Meyering  <meyering@redhat.com>
41404
41405         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41406         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41407         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41408         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41409         via Collin Lasse.
41410
41411 2008-05-14  Eric Blake  <ebb9@byu.net>
41412
41413         Avoid quadratic growth in gl_LIBSOURCES.
41414         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41415         Suggested by Bruno Haible.
41416
41417         Test xmemdup0.
41418         * modules/xmemdup0-tests: New file.
41419         * tests/test-xmemdup0.c: Likewise.
41420
41421 2008-05-13  Eric Blake  <ebb9@byu.net>
41422
41423         Split xmemdup0 into its own module.
41424         * modules/xmemdup0: New file.
41425         * lib/xmemdup0.h: Likewise.
41426         * lib/xmemdup0.c: Likewise.
41427         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41428         * lib/xalloc.h (xmemdup0): Remove.
41429         * lib/xmalloc.c (xmemdup0): Likewise.
41430
41431 2008-05-13  Eric Blake  <ebb9@byu.net>
41432             Bruno Haible  <bruno@clisp.org>
41433
41434         Reduce number of forks required during autoconf.
41435         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41436         and gl_LIBSOURCES_DIR.
41437         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41438         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41439         m4_syscmd per file.
41440         <m4_foreach_w>: Move...
41441         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41442
41443 2008-05-13  Eric Blake  <ebb9@byu.net>
41444
41445         * gnulib-tool: Fix various comment typos.
41446
41447 2008-05-12  Bruno Haible  <bruno@clisp.org>
41448
41449         Tailor the linebreaking algorithm.
41450         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41451
41452 2008-05-12  Bruno Haible  <bruno@clisp.org>
41453
41454         Update to Unicode 5.0.0.
41455         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41456         LBP_JV, LBP_JT. Redistribute values.
41457         (unilbrk_table): Change size.
41458         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41459         Unicode TR#14 rev. 22.
41460         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41461         LBP_JV, LBP_JT. Redistribute values.
41462         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41463         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41464         Update.
41465         * lib/unilbrk/lbrkprop1.h: Regenerated.
41466         * lib/unilbrk/lbrkprop2.h: Regenerated.
41467         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41468         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41469         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41470         Likewise.
41471         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41472         Likewise.
41473         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41474         result.
41475         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41476         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41477         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41478         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41479         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41480         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41481
41482 2008-05-11  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41485
41486 2008-05-11  Bruno Haible  <bruno@clisp.org>
41487
41488         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41489         * modules/unilbrk/gen-lbrk: New file.
41490
41491 2008-05-11  Bruno Haible  <bruno@clisp.org>
41492
41493         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41494         * m4/sha512.m4 (gl_SHA512): Likewise.
41495
41496 2008-05-11  Jim Meyering  <meyering@redhat.com>
41497
41498         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41499         * modules/crypto/sha256: New file.
41500         * modules/crypto/sha512: Likewise.
41501         * lib/sha256.c: Likewise.
41502         * lib/sha256.h: Likewise.
41503         * lib/sha512.c: Likewise.
41504         * lib/sha512.h: Likewise.
41505         * lib/u64.h: Likewise.
41506         * m4/sha256.m4: Likewise.
41507         * m4/sha512.m4: Likewise.
41508         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41509
41510 2008-05-10  Bruno Haible  <bruno@clisp.org>
41511
41512         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41513         (Input/Output <stdio.h>): Add xprintf.
41514         (Signal handling <signal.h>): Add strsignal.
41515         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41516         (Core language properties): Add func.
41517         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41518         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41519         strings.
41520         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41521         (Input/output): New section.
41522         (File system functions): Add openat-die, stat-macros.
41523         (Networking functions): Add sockets.
41524         (Unicode string functions): Add unictype/*.
41525         (Support for building libraries and executables): Add gperf.
41526         (Support for building documentation): Add agpl-3.0.
41527         (Misc): Add nocrash.
41528
41529 2008-05-10  Bruno Haible  <bruno@clisp.org>
41530
41531         * modules/unictype/gen-ctype: New file.
41532
41533 2008-05-10  Jim Meyering  <meyering@redhat.com>
41534
41535         Make chdir-safer.c more efficient on a system with no symlinks.
41536         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41537         also if ELOOP is zero.  Suggested by Bruno Haible.
41538
41539         Make chdir-safer.c slightly safer.
41540         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41541         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41542
41543         Avoid compile failure on systems without ELOOP (like mingw).
41544         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41545         Reported by Bruno Haible.
41546
41547 2008-05-10  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41550         (is_utf8_encoding): Use a case-insensitive comparison.
41551         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41552         streq.
41553
41554 2008-05-10  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41557         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41558         * lib/unilbrk/ulc-common.h (iconv_string_length,
41559         iconv_string_keeping_offsets): Remove declarations.
41560         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41561         Don't include <iconv.h>, streq.h, xsize.h.
41562         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41563         conversion.
41564         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41565         <iconv.h>, streq.h, xsize.h.
41566         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41567         conversion.
41568         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41569         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41570         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41571         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41572
41573 2008-05-10  Bruno Haible  <bruno@clisp.org>
41574
41575         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41576         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41577
41578         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41579         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41580
41581         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41582         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41583
41584         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41585         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41586
41587         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41588         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41589
41590         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41591         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41592
41593         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41594         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41595
41596         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41597         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41598
41599 2008-05-10  Bruno Haible  <bruno@clisp.org>
41600
41601         Split up 'linebreak' module.
41602         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41603         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41604         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41605         modifications.
41606         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41607         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41608         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41609         lib/linebreak.c.
41610         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41611         lib/linebreak.c.
41612         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41613         lib/linebreak.c.
41614         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41615         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41616         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41617         lib/linebreak.c.
41618         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41619         lib/linebreak.c.
41620         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41621         lib/linebreak.c.
41622         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41623         lib/linebreak.c.
41624         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41625         lib/linebreak.c.
41626         * modules/unilbrk/base: New file.
41627         * modules/unilbrk/tables: New file.
41628         * modules/unilbrk/u8-possible-linebreaks: New file.
41629         * modules/unilbrk/u16-possible-linebreaks: New file.
41630         * modules/unilbrk/u32-possible-linebreaks: New file.
41631         * modules/unilbrk/ulc-common: New file.
41632         * modules/unilbrk/ulc-possible-linebreaks: New file.
41633         * modules/unilbrk/u8-width-linebreaks: New file.
41634         * modules/unilbrk/u16-width-linebreaks: New file.
41635         * modules/unilbrk/u32-width-linebreaks: New file.
41636         * modules/unilbrk/ulc-width-linebreaks: New file.
41637         * lib/linebreak.h: Remove file.
41638         * lib/linebreak.c: Remove file.
41639         * m4/linebreak.m4: Remove file.
41640         * modules/linebreak: Remove file.
41641         * NEWS: Mention the changes.
41642
41643 2008-05-09  Eric Blake  <ebb9@byu.net>
41644
41645         Add xmemdup0.
41646         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41647         implementation.
41648         * lib/xmalloc.c (xmemdup0): New C implementation.
41649
41650 2008-05-08  Bruno Haible  <bruno@clisp.org>
41651
41652         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41653
41654 2008-05-07  Eric Blake  <ebb9@byu.net>
41655
41656         Support cross-compilation of <wctype.h>.
41657         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41658         AC_CACHE_CHECK.
41659
41660 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41661
41662         * build-aux/vc-list-files: Add support for bzr.
41663
41664 2008-05-03  Jim Meyering  <meyering@redhat.com>
41665
41666         avoid failed assertion with tight malloc
41667         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41668
41669 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41670
41671         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41672         are needed from arpa/inet.h.
41673         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41674         Reported by Bruno Haible.
41675
41676 2008-05-02  Jim Meyering  <meyering@redhat.com>
41677
41678         avoid compilation error on FreeBSD 6
41679         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41680
41681 2008-05-01  Jim Meyering  <meyering@redhat.com>
41682
41683         useless-if-before-free: correct --help's exit status description
41684         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41685         for one or more matches, etc.  Reported by Bruno Haible.
41686
41687         vc-list-files: make the stand-alone gnulib test work
41688         * modules/vc-list-files-tests (configure.ac):
41689         Define and AC_SUBST abs_aux_dir.
41690         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41691         $(abs_top_srcdir) to each script and having each of them
41692         duplicate the work of setting PATH, set PATH here, using
41693         the new variable, abs_aux_dir instead.
41694         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41695         * tests/test-vc-list-files-git.sh: Likewise.
41696         Reported by Bruno Haible.
41697
41698 2008-05-01  Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41701         reallocation. Rename 'done' to 'found_delimiter'.
41702
41703 2008-05-01  Jim Meyering  <meyering@redhat.com>
41704
41705         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41706         * build-aux/vc-list-files: Use `...`, not $(...).
41707
41708 2008-04-30  Jim Meyering  <meyering@redhat.com>
41709
41710         add tests for vc-list-files
41711         * modules/vc-list-files-tests: New module.
41712         * tests/test-vc-list-files-cvs.sh: New file.
41713         * tests/test-vc-list-files-git.sh: New file.
41714
41715         avoid a warning from gcc
41716         * lib/getndelim2.c (IF_LINT): Define.
41717         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41718
41719         vc-list-files: work properly with build-aux/cvsu, too
41720         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41721         to all cvs-based clauses.
41722
41723         vc-list-files: work properly in the CVS+awk case, too
41724         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41725
41726         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41727         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41728         take more than one file argument, so .  Add quotes, just in case $dir
41729         ever contains a shell meta-character.  Prompted by Soren Hansen in
41730         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41731
41732 2008-04-29  Eric Blake  <ebb9@byu.net>
41733
41734         Optimize getndelim2 to use block operations when possible.
41735         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41736         freadseek, and memchr2.
41737         * lib/getndelim2.c (getndelim2): Use them for block reads.
41738
41739 2008-04-29  Bruno Haible  <bruno@clisp.org>
41740
41741         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41742         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41743         * modules/inet_ntop (Depends-on): Add extensions.
41744         * modules/inet_pton (Depends-on): Likewise.
41745         Reported by Simon Josefsson.
41746
41747 2008-04-29  Jim Meyering  <meyering@redhat.com>
41748
41749         When the is more than one match in a block, match all of them.
41750         * build-aux/useless-if-before-free: Iterate through each block
41751         until there are no more matches.
41752
41753         Fix broken useless-if-before-free script.
41754         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41755         the expression to match cast of argument to free-like function.
41756
41757 2008-04-29  Eric Blake  <ebb9@byu.net>
41758
41759         Use new header.
41760         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41761
41762 2008-04-29  Jim Meyering  <meyering@redhat.com>
41763
41764         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41765         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41766         by gnulib to exist and to declare e.g., inet_ntop.
41767         Don't include "inet_ntop.h", now removed.
41768
41769         * m4/arpa_inet_h.m4: Remove trailing blanks.
41770
41771 2008-04-29  Eric Blake  <ebb9@byu.net>
41772
41773         Silence valgrind on safe reads beyond potential array bounds.
41774         * lib/rawmemchr.valgrind: New file.
41775         * lib/strchrnul.valgrind: Likewise.
41776         * modules/rawmemchr (Files): Distribute new file.
41777         * modules/strchrnul (Files): Likewise.
41778         Suggested by Bruno Haible.
41779
41780 2008-04-29  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41783         (inet_ntop, inet_pton): Change portability warning's wording.
41784         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41785         Invoke gl_CHECK_NEXT_HEADERS.
41786         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41787         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41788         set ARPA_INET_H.
41789         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41790         * modules/arpa_inet (Description): No longer only for systems that
41791         lack it.
41792         (Depends-on): Add include_next.
41793         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41794         HAVE_ARPA_INET_H.
41795
41796 2008-04-29  Jim Meyering  <meyering@redhat.com>
41797
41798         * modules/mkdir (License): Re-license as LGPLv2+.
41799
41800 2008-04-29  Bruno Haible  <bruno@clisp.org>
41801
41802         * modules/rawmemchr (Maintainer): Set to Eric.
41803         * modules/strchrnul (Maintainer): Likewise.
41804
41805 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41806
41807         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41808         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41809
41810         * modules/arpa_inet (arpa/inet.h): Use them.
41811
41812 2008-04-28  Eric Blake  <ebb9@byu.net>
41813
41814         Test getndelim2.
41815         * modules/getndelim2-tests: New file.
41816         * tests/test-getndelim2.c: Likewise.
41817         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41818         stream.
41819         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41820
41821         * MODULES.html.sh: Document new module.
41822
41823 2008-04-20  Bruno Haible  <bruno@clisp.org>
41824
41825         * lib/c-stack.c (die): Use raise.
41826         * modules/c-stack (Depends-on): Add raise.
41827
41828 2008-04-28  Bruno Haible  <bruno@clisp.org>
41829
41830         Expect rpmatch to be declared.
41831         * lib/yesno.c (rpmatch): Remove declaration.
41832
41833         Declare rpmatch.
41834         * lib/stdlib.in.h (rpmatch): New declaration.
41835         * lib/rpmatch.c: Include <stdlib.h> first.
41836         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41837         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41839         HAVE_RPMATCH.
41840         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41841         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41842         (Include): Set to <stdlib.h>.
41843         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41844         HAVE_RPMATCH.
41845         * NEWS: Document the change.
41846
41847 2008-04-28  Bruno Haible  <bruno@clisp.org>
41848
41849         Change rpmatch to use nl_langinfo when appropriate.
41850         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41851         (N_): New macro.
41852         (localized_pattern): New function/macro.
41853         (try): Remove match, nomatch arguments. Copy the pattern into safe
41854         memory before caching it.
41855         (rpmatch): Use localized_pattern. Add translator comments.
41856         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41857         Suggested by Eric Blake.
41858         * modules/rpmatch (Depends-on): Add stdbool.
41859
41860 2008-04-28  Eric Blake  <ebb9@byu.net>
41861
41862         Add rawmemchr module, matching glibc.
41863         * modules/string (Makefile.am): New indicator.
41864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41865         * lib/string.in.h (rawmemchr): Declare when appropriate.
41866         * modules/rawmemchr: New file.
41867         * m4/rawmemchr.m4: Likewise.
41868         * lib/rawmemchr.c: Likewise.
41869         * modules/rawmemchr-tests: Likewise.
41870         * tests/test-rawmemchr.c: Likewise.
41871         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41872         module.
41873         * modules/strchrnul (Depends-on): Add rawmemchr.
41874         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41875
41876         Whitespace cleanup.
41877         * tests/test-strchrnul.c: Reindent.
41878         * lib/strchrnul.c: Likewise.
41879
41880         Optimize and test strchrnul.
41881         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41882         * modules/strchrnul-tests: New file.
41883         * tests/test-strchrnul.c: Likewise.
41884
41885         Remove intprops dependency.
41886         * modules/memchr (Depends-on): Remove intprops.
41887         * modules/memrchr (Depends-on): Likewise.
41888         * modules/memchr2 (Depends-on): Likewise.
41889         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41890         * lib/memrchr.c (__memrchr): Likewise.
41891         * lib/memrchr2.c (memchr2): Likewise.
41892         Reported by Simon Josefsson.
41893
41894 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41895
41896         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41897         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41898
41899 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41900
41901         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41902
41903         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41904
41905         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41906
41907         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41908         declarations.
41909         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41910
41911         * m4/inet_pton.m4: Don't check for header files.
41912
41913         * m4/inet_ntop.m4: Don't check for header files.
41914
41915 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41916
41917         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41918         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41919         trigger for cygwin).
41920         Reported by Bruno Haible  <bruno@clisp.org>.
41921
41922 2008-04-28  Bruno Haible  <bruno@clisp.org>
41923
41924         * doc/posix-functions/strdup.texi: Mention mingw problem.
41925
41926 2008-04-27  Bruno Haible  <bruno@clisp.org>
41927
41928         * modules/stat-time-tests (Depends-on): Add sleep.
41929         * tests/test-stat-time.c (force_unlink): New function.
41930         (cleanup): Use it.
41931         (test_mtime): Remove the ctime related tests.
41932         (test_ctime): New function, containing the ctime related tests.
41933         (main): Call test_ctime, except on native Windows platforms.
41934
41935 2008-04-27  Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/rpmatch.c (rpmatch): Add some comments.
41938         Reported by James Youngman <jay@gnu.org>.
41939
41940 2008-04-27  Bruno Haible  <bruno@clisp.org>
41941
41942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41943         quiet NaNs.
41944
41945 2008-04-27  Bruno Haible  <bruno@clisp.org>
41946
41947         Make test-yesno.sh work on mingw.
41948         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41949         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41950         (main): Set stdin to binary mode.
41951         * modules/yesno-tests (Depends-on): Add binary-io.
41952
41953 2008-04-27  Bruno Haible  <bruno@clisp.org>
41954
41955         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41956         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41957         argument that lie outside the IEEE 854 domain.
41958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41959         (gl_ISFINITE): Use it.
41960         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41961
41962 2008-04-27  Bruno Haible  <bruno@clisp.org>
41963
41964         Allow local renaming in config.h.
41965         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41966
41967 2008-04-27  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/memchr.c (__memchr): Change type of 'i'.
41970         * lib/memchr2.c (memchr2): Likewise.
41971
41972 2008-04-26  Eric Blake  <ebb9@byu.net>
41973         and Bruno Haible  <bruno@clisp.org>
41974
41975         Optimize and test memrchr.
41976         * modules/memrchr (Depends-on): Add intprops.
41977         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41978         * modules/memrchr-tests: New file.
41979         * tests/test-memrchr.c: New file.
41980
41981 2008-04-26  Bruno Haible  <bruno@clisp.org>
41982
41983         Add tentative support for DragonFly BSD.
41984         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41985         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41986         fp.
41987         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41988         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41989         * lib/fpurge.c (fpurge): Likewise.
41990         * lib/freadable.c (freaadable): Likewise.
41991         * lib/freadahead.c (freadahead): Likewise.
41992         * lib/freading.c (freading): Likewise.
41993         * lib/freadptr.c (freadptr): Likewise.
41994         * lib/freadseek.c (freadptrinc): Likewise.
41995         * lib/fseeko.c (fseeko): Likewise.
41996         * lib/fseterr.c (fseterr): Likewise.
41997         * lib/fwritable.c (fwritable): Likewise.
41998         * lib/fwriting.c (fwriting): Likewise.
41999
42000 2008-04-26  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/stdio-impl.h: New file.
42003         * lib/fbufmode.c: Include stdio-impl.h.
42004         (fbufmode): Use fp_, remove redundant #defines.
42005         * lib/fflush.c: Include stdio-impl.h.
42006         (clear_ungetc_buffer): Remove redundant #defines.
42007         * lib/fpurge.c: Include stdio-impl.h.
42008         (fpurge): Remove redundant #defines.
42009         * lib/freadable.c: Include stdio-impl.h.
42010         (freadable): Remove redundant #defines.
42011         * lib/freadahead.c: Include stdio-impl.h.
42012         (freadahead): Remove redundant #defines.
42013         * lib/freading.c: Include stdio-impl.h.
42014         (freading): Remove redundant #defines.
42015         * lib/freadptr.c: Include stdio-impl.h.
42016         (freadptr): Remove redundant #defines.
42017         * lib/freadseek.c: Include stdio-impl.h.
42018         (freadptrinc): Remove redundant #defines.
42019         * lib/fseeko.c: Include stdio-impl.h.
42020         (rpl_fseeko): Remove redundant #defines.
42021         * lib/fseterr.c: Include stdio-impl.h.
42022         (fseterr): Remove redundant #defines.
42023         * lib/fwritable.c: Include stdio-impl.h.
42024         (fwritable: Remove redundant #defines.
42025         * lib/fwriting.c: Include stdio-impl.h.
42026         (fwriting): Remove redundant #defines.
42027         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42028         * modules/fflush (Files): Likewise.
42029         * modules/fpurge (Files): Likewise.
42030         * modules/freadable (Files): Likewise.
42031         * modules/freadahead (Files): Likewise.
42032         * modules/freading (Files): Likewise.
42033         * modules/freadptr (Files): Likewise.
42034         * modules/freadseek (Files): Likewise.
42035         * modules/fseeko (Files): Likewise.
42036         * modules/fseterr (Files): Likewise.
42037         * modules/fwritable (Files): Likewise.
42038         * modules/fwriting (Files): Likewise.
42039
42040 2008-04-26  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42043         restore_seek_optimization, update_fpos_cache): New functions, extracted
42044         from rpl_fflush.
42045         (rpl_fflush): Use them.
42046         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42047         (gl_REPLACE_FFLUSH): Use it.
42048
42049 2008-04-26  Bruno Haible  <bruno@clisp.org>
42050
42051         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42052         on Solaris.
42053         * tests/test-xstrtoimax.sh: Likewise.
42054         * tests/test-xstrtoumax.sh: Likewise.
42055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42056
42057 2008-04-26  Bruno Haible  <bruno@clisp.org>
42058
42059         * modules/memchr-tests: New file.
42060         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42061
42062 2008-04-26  Eric Blake  <ebb9@byu.net>
42063             Bruno Haible  <bruno@clisp.org>
42064
42065         * lib/memchr.c: Include intprops.h.
42066         (__memchr): Optimize parallel detection of matching bytes. Rename local
42067         variables. Add explanatory comments.
42068
42069 2008-04-26  Bruno Haible  <bruno@clisp.org>
42070
42071         Fix module 'memchr', broken since 2000-10-28.
42072         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42073
42074 2008-04-26  Bruno Haible  <bruno@clisp.org>
42075
42076         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42077         comments.
42078
42079 2008-04-25  Eric Blake  <ebb9@byu.net>
42080
42081         Use native fstatat on cygwin 1.7.0.
42082         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42083         first.
42084
42085 2008-04-23  Eric Blake  <ebb9@byu.net>
42086
42087         Improve memchr2 performance.
42088         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42089         NUL bytes.
42090         * modules/memchr2 (Depends-on): Use intprops.h.
42091
42092 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42093
42094         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42095         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42096         <blp@cs.stanford.edu>.
42097
42098 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42099
42100         * lib/arpa_inet.in.h: New file.
42101
42102         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42103         (Makefile.am): Sed in substitute header file.
42104
42105         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42106         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42107
42108         * modules/inet_ntop (configure.ac): Use
42109         gl_ARPA_INET_MODULE_INDICATOR.
42110
42111         * modules/inet_pton (configure.ac): Use
42112         gl_ARPA_INET_MODULE_INDICATOR.
42113
42114 2008-04-22  Jim Meyering  <meyering@redhat.com>
42115
42116         * modules/verify (License): Re-license as LGPLv2+.
42117
42118 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42119
42120         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42121         parameter to void* as per POSIX standard (MinGW uses char*).
42122
42123 2008-04-21  Bruno Haible  <bruno@clisp.org>
42124
42125         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42126         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42127         Define to replacements if REPLACE_ISWCNTRL is 1.
42128         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42129         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42130         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42131         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42132         what it fixes.
42133         * doc/posix-functions/iswalpha.texi: Likewise.
42134         * doc/posix-functions/iswblank.texi: Likewise.
42135         * doc/posix-functions/iswcntrl.texi: Likewise.
42136         * doc/posix-functions/iswdigit.texi: Likewise.
42137         * doc/posix-functions/iswgraph.texi: Likewise.
42138         * doc/posix-functions/iswlower.texi: Likewise.
42139         * doc/posix-functions/iswprint.texi: Likewise.
42140         * doc/posix-functions/iswpunct.texi: Likewise.
42141         * doc/posix-functions/iswspace.texi: Likewise.
42142         * doc/posix-functions/iswupper.texi: Likewise.
42143         * doc/posix-functions/iswxdigit.texi: Likewise.
42144         Reported by Alain Guibert.
42145
42146 2008-04-21  Bruno Haible  <bruno@clisp.org>
42147
42148         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42149         Patch by Alain Guibert.
42150
42151 2008-04-21  Bruno Haible  <bruno@clisp.org>
42152
42153         Fix test failures on mingw.
42154         * tests/test-xstrtol.c (print_no_progname): New function.
42155         (main): Install it in error_print_progname hook.
42156         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42157         * tests/test-xstrtoimax.sh: Likewise.
42158         * tests/test-xstrtoumax.sh: Likewise.
42159
42160 2008-04-21  Bruno Haible  <bruno@clisp.org>
42161
42162         Fix test failure on mingw.
42163         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42164
42165 2008-04-21  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42168         Actually assign a value.
42169
42170 2008-04-20  Bruno Haible  <bruno@clisp.org>
42171
42172         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42173         take 2.
42174         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42175         'canonicalize-lgpl' module is also used.
42176         * lib/canonicalize-lgpl.c: Undo last change.
42177         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42178
42179 2008-04-20  Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42182         config.h. Provide _mkdir based fallback for mingw.
42183         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42184         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42186         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42187         rather than defining mkdir in config.h.
42188         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42189         (gl_SYS_STAT_H_DEFAULTS): New macro.
42190         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42191         HAVE_IO_H any more.
42192         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42193         HAVE_DECL_MKDIR and HAVE_IO_H.
42194
42195 2008-04-20  Bruno Haible  <bruno@clisp.org>
42196
42197         * lib/isapipe.c: Port to native Windows platforms.
42198
42199 2008-04-20  Bruno Haible  <bruno@clisp.org>
42200
42201         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42202
42203 2008-04-21  Eric Blake  <ebb9@byu.net>
42204
42205         Work around preprocessors that don't handle UINTMAX_MAX.
42206         * lib/memchr2.c (memchr2): Avoid embedded #if.
42207         Reported by Alain Guibert, fix suggested by Bruno Haible.
42208
42209 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42210
42211         * doc/posix-functions/strftime.texi (strftime): Explain better
42212         Windows incompatibility.  Suggested by Micah Cowan
42213         <micah@cowan.name>.
42214
42215 2008-04-20  Bruno Haible  <bruno@clisp.org>
42216
42217         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42218         unistr/u8-mblen.
42219
42220 2008-04-20  Bruno Haible  <bruno@clisp.org>
42221
42222         Fix test failure on platforms with non-GNU iconv.
42223         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42224         (U_TO_U8): Use it, rather than u16_to_u8.
42225         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42226         units at the end of the input string.
42227         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42228
42229 2008-04-20  Bruno Haible  <bruno@clisp.org>
42230
42231         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42232         when the resulting length is 0.
42233         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42234
42235 2008-04-20  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42238         works.
42239         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42240
42241 2008-04-20  Bruno Haible  <bruno@clisp.org>
42242
42243         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42244         * modules/tsearch-tests (configure.ac): Test for initstate function.
42245
42246 2008-04-20  Bruno Haible  <bruno@clisp.org>
42247
42248         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42249         for nlink_t if missing.
42250         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42251
42252 2008-04-19  Bruno Haible  <bruno@clisp.org>
42253
42254         Work around snprintf bug on Linux libc5.
42255         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42257         gl_SNPRINTF_SIZE1.
42258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42259         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42260         that test failed.
42261         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42262         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42263         * modules/snprintf (Files): Add m4/printf.m4.
42264         * modules/vsnprintf (Files): Likewise.
42265         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42266         * doc/posix-functions/vsnprintf.texi: Likewise.
42267
42268 2008-04-19  Bruno Haible  <bruno@clisp.org>
42269
42270         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42271         from 0.0058 to less than 10^-7.
42272
42273 2008-04-19  Bruno Haible  <bruno@clisp.org>
42274
42275         Fix rounding when a precision is given.
42276         * lib/vasnprintf.c (is_borderline): New function.
42277         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42278         9...9x.
42279         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42280         %e, %g.
42281         * tests/test-vasprintf-posix.c (test_function): Likewise.
42282         * tests/test-snprintf-posix.h (test_function): Likewise.
42283         * tests/test-sprintf-posix.h (test_function): Likewise.
42284         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42285         * tests/test-printf-posix.h (test_function): Likewise.
42286         * tests/test-printf-posix.output: Update.
42287         Reported by John Darrington <john@darrington.wattle.id.au> via
42288         Ben Pfaff <blp@cs.stanford.edu>.
42289
42290 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42291
42292         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42293         Suggested by Bruno Haible <bruno@clisp.org>.
42294
42295 2008-04-17  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42298         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42299         implementation.
42300         Patch by Bruce Merry <bmerry@gmail.com>.
42301
42302 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42303
42304         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42305         doesn't work under Windows.
42306
42307 2008-04-16  Bruno Haible  <bruno@clisp.org>
42308
42309         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42310         New macros.
42311         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42312         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42313         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42314         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42315         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42316         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42317         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42318         macros.
42319         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42320         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42321         Northern Sotho, Uighur.
42322
42323 2008-04-16  Bruno Haible  <bruno@clisp.org>
42324
42325         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42326         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42327         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42328         Reported by Daniel Bergström <daniel@octocode.com>.
42329
42330 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42331             Bruno Haible  <bruno@clisp.org>
42332
42333         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42334         function.
42335         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42336         New functions, mostly extracted from gl_locale_name_default.
42337         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42338
42339 2008-04-16  Eric Blake  <ebb9@byu.net>
42340
42341         Adjust strtod detection to catch glibc 2.7 bug.
42342         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42343         Reported by John Gatewood Ham.
42344
42345 2008-04-16  Bruno Haible  <bruno@clisp.org>
42346
42347         Add tentative support for Linux libc5.
42348         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42349         * lib/fpurge.c (fpurge): Likewise.
42350         * lib/freadable.c (freadable): Likewise.
42351         * lib/freadahead.c (freadahead): Likewise.
42352         * lib/freading.c (freading): Likewise.
42353         * lib/freadptr.c (freadptr): Likewise.
42354         * lib/freadseek.c (freadptrinc): Likewise.
42355         * lib/fseeko.c (rpl_fseeko): Likewise.
42356         * lib/fseterr.c (fseterr): Likewise.
42357         * lib/fwritable.c (fwritable): Likewise.
42358         * lib/fwriting.c (fwriting): Likewise.
42359         Reported by Alain Guibert <alguibert+bts@free.fr>.
42360
42361 2008-04-15  Bruno Haible  <bruno@clisp.org>
42362
42363         * modules/mathl (configure.ac): Define module indicator.
42364
42365 2008-04-15  Bruno Haible  <bruno@clisp.org>
42366
42367         * lib/logl.c (logl): Remove unused variables.
42368
42369 2008-04-15  Bruno Haible  <bruno@clisp.org>
42370
42371         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42372         fails.
42373
42374 2008-04-15  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/trim.c (trim2): Fix argument of isspace() macro.
42377
42378 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42379
42380         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42381         to 0.
42382         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42383
42384 2008-04-14  Bruno Haible  <bruno@clisp.org>
42385
42386         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42387         AC_LANG_PROGRAM argument.
42388         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42389         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42391         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42392         * m4/math_h.m4 (gl_MATH_H): Likewise.
42393         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42396         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42397         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42398         * m4/regex.m4 (gl_REGEX): Likewise.
42399         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42400         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42404         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42407
42408 2008-04-14  Jim Meyering  <meyering@redhat.com>
42409
42410         test-strtod: fix typos: s/abs/fabs/
42411         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42412
42413 2008-04-13  Bruno Haible  <bruno@clisp.org>
42414
42415         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42416         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42417         module is also used and while not building the reloc-wrapper.
42418
42419 2008-04-13  Bruno Haible  <bruno@clisp.org>
42420
42421         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42422
42423 2008-04-13  Bruno Haible  <bruno@clisp.org>
42424
42425         Fix AIX compilation failure introduced on 2008-04-02.
42426         * tests/test-frexp.c (exp): Undefine before redefining.
42427         * tests/test-frexpl.c (exp): Likewise.
42428
42429 2008-04-13  Bruno Haible  <bruno@clisp.org>
42430
42431         Work around a HP-UX stdio bug.
42432         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42433         * tests/test-ftello.c (main): Likewise.
42434         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42435         * doc/posix-functions/ftello.texi: Likewise.
42436
42437 2008-04-13  Bruno Haible  <bruno@clisp.org>
42438
42439         Make test-signbit pass on HP-UX/hppa.
42440         * tests/test-signbit.c (minus_zerol): New variable.
42441         (test_signbitl): Use it.
42442
42443 2008-04-13  Bruno Haible  <bruno@clisp.org>
42444
42445         Make truncl work on OSF/1 4.0.
42446         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42447         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42448         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42450         HAVE_DECL_TRUNCL.
42451         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42452         HAVE_DECL_TRUNCL.
42453         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42454
42455 2008-04-13  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42458
42459 2008-04-13  Bruno Haible  <bruno@clisp.org>
42460
42461         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42462         expression, so as to avoid HP-UX 11 cc compiler bug.
42463
42464 2008-04-13  Bruno Haible  <bruno@clisp.org>
42465
42466         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42467
42468 2008-04-13  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/git-merge-changelog.c: Remove empty declaration outside of
42471         functions.
42472
42473 2008-04-13  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42476
42477 2008-04-13  Bruno Haible  <bruno@clisp.org>
42478
42479         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42480         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42482         also if it exists but lacks definitions of the SHUT_* macros.
42483         * modules/sys_socket (Description): Update.
42484         Reported by Elbert Pol <e.pol@chello.nl>.
42485
42486 2008-04-13  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/localcharset.c (OS2): Don't redefine if already defined.
42489         Reported by Elbert Pol <e.pol@chello.nl>.
42490
42491 2008-04-13  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/binary-io.h [__EMX__]: Include <io.h>.
42494         Reported by Elbert Pol <e.pol@chello.nl>.
42495
42496 2008-04-12  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/fpucw.h: Enable the definitions also for x86_64.
42499         Needed for NetBSD/x86_64.
42500         Reported by Thomas Klausner <tk@giga.or.at>.
42501
42502 2008-04-12  Bruno Haible  <bruno@clisp.org>
42503
42504         * tests/test-strtod.c: Include isnand.h.
42505         (main): Use isnand instead of isnan.
42506         Reported by Jim Meyering.
42507
42508 2008-04-12  Bruno Haible  <bruno@clisp.org>
42509
42510         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42512
42513 2008-04-12  Jim Meyering  <meyering@redhat.com>
42514
42515         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42516
42517 2008-04-12  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42520         Reported by Elbert Pol <e.pol@chello.nl>.
42521
42522 2008-04-12  Eric Blake  <ebb9@byu.net>
42523
42524         Work around Solaris 10 math.h bug.
42525         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42526         (gl_MATH_H_DEFAULTS): Set up default.
42527         * modules/math (Makefile.am): Replace new indicators.
42528         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42529         * tests/test-math.c (main): Test this.
42530         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42531         * doc/posix-headers/math.texi (math.h): Mention bug.
42532         Reported by Nelson H. F. Beebe and Jim Meyering.
42533
42534 2008-04-11  Bruno Haible  <bruno@clisp.org>
42535
42536         Adapt to future versions of Apple GCC.
42537         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42538         Reported by Peter O'Gorman <peter@pogma.com>.
42539
42540 2008-04-11  Bruno Haible  <bruno@clisp.org>
42541
42542         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42543
42544 2008-04-11  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42547
42548         * modules/getaddrinfo-tests (Makefile.am): Define
42549         test_getaddrinfo_LDADD.
42550
42551 2008-04-11  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42554         (init): Fix syntax error.
42555         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42556         is declared.
42557
42558 2008-04-11  Bruno Haible  <bruno@clisp.org>
42559
42560         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42561         * modules/glob (Depends-on): Add stdbool.
42562
42563 2008-04-11  Bruno Haible  <bruno@clisp.org>
42564
42565         * lib/trim.c: Include <string.h>.
42566
42567 2008-04-11  Eric Blake  <ebb9@byu.net>
42568
42569         Avoid compile failure on OS/2.
42570         * lib/regex_internal.h (internal_function): Disable optimization
42571         on OS/2 (__EMX__), where it caused compiler error.
42572         Reported by Elbert Pol.
42573
42574 2008-04-11  Bruno Haible  <bruno@clisp.org>
42575
42576         Flush the standard error stream before aborting. Needed on mingw.
42577         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42578         * tests/test-array_list.c (ASSERT): Likewise.
42579         * tests/test-array_oset.c (ASSERT): Likewise.
42580         * tests/test-avltree_list.c (ASSERT): Likewise.
42581         * tests/test-avltree_oset.c (ASSERT): Likewise.
42582         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42583         * tests/test-binary-io.c (ASSERT): Likewise.
42584         * tests/test-byteswap.c (ASSERT): Likewise.
42585         * tests/test-c-ctype.c (ASSERT): Likewise.
42586         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42587         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42588         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42589         * tests/test-c-strstr.c (ASSERT): Likewise.
42590         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42591         * tests/test-canonicalize.c (ASSERT): Likewise.
42592         * tests/test-carray_list.c (ASSERT): Likewise.
42593         * tests/test-ceilf1.c (ASSERT): Likewise.
42594         * tests/test-ceilf2.c (ASSERT): Likewise.
42595         * tests/test-ceill.c (ASSERT): Likewise.
42596         * tests/test-count-one-bits.c (ASSERT): Likewise.
42597         * tests/test-fbufmode.c (ASSERT): Likewise.
42598         * tests/test-fflush2.c (ASSERT): Likewise.
42599         * tests/test-floorf1.c (ASSERT): Likewise.
42600         * tests/test-floorf2.c (ASSERT): Likewise.
42601         * tests/test-floorl.c (ASSERT): Likewise.
42602         * tests/test-fopen.c (ASSERT): Likewise.
42603         * tests/test-fpending.c (ASSERT): Likewise.
42604         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42605         * tests/test-fpurge.c (ASSERT): Likewise.
42606         * tests/test-freadable.c (ASSERT): Likewise.
42607         * tests/test-freadahead.c (ASSERT): Likewise.
42608         * tests/test-freading.c (ASSERT): Likewise.
42609         * tests/test-freadptr.c (ASSERT): Likewise.
42610         * tests/test-freadptr2.c (ASSERT): Likewise.
42611         * tests/test-freadseek.c (ASSERT): Likewise.
42612         * tests/test-freopen.c (ASSERT): Likewise.
42613         * tests/test-frexp.c (ASSERT): Likewise.
42614         * tests/test-frexpl.c (ASSERT): Likewise.
42615         * tests/test-fseek.c (ASSERT): Likewise.
42616         * tests/test-fseeko.c (ASSERT): Likewise.
42617         * tests/test-fstrcmp.c (ASSERT): Likewise.
42618         * tests/test-ftell.c (ASSERT): Likewise.
42619         * tests/test-ftello.c (ASSERT): Likewise.
42620         * tests/test-func.c (ASSERT): Likewise.
42621         * tests/test-fwritable.c (ASSERT): Likewise.
42622         * tests/test-fwriting.c (ASSERT): Likewise.
42623         * tests/test-getdelim.c (ASSERT): Likewise.
42624         * tests/test-getline.c (ASSERT): Likewise.
42625         * tests/test-i-ring.c (ASSERT): Likewise.
42626         * tests/test-iconv-utf.c (ASSERT): Likewise.
42627         * tests/test-iconv.c (ASSERT): Likewise.
42628         * tests/test-isfinite.c (ASSERT): Likewise.
42629         * tests/test-isnand.c (ASSERT): Likewise.
42630         * tests/test-isnanf.c (ASSERT): Likewise.
42631         * tests/test-isnanl.h (ASSERT): Likewise.
42632         * tests/test-ldexpl.c (ASSERT): Likewise.
42633         * tests/test-linked_list.c (ASSERT): Likewise.
42634         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42635         * tests/test-localename.c (ASSERT): Likewise.
42636         * tests/test-lseek.c (ASSERT): Likewise.
42637         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42638         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42639         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42640         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42641         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42642         * tests/test-mbschr.c (ASSERT): Likewise.
42643         * tests/test-mbscspn.c (ASSERT): Likewise.
42644         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42645         * tests/test-mbspbrk.c (ASSERT): Likewise.
42646         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42647         * tests/test-mbsrchr.c (ASSERT): Likewise.
42648         * tests/test-mbsspn.c (ASSERT): Likewise.
42649         * tests/test-mbsstr1.c (ASSERT): Likewise.
42650         * tests/test-mbsstr2.c (ASSERT): Likewise.
42651         * tests/test-mbsstr3.c (ASSERT): Likewise.
42652         * tests/test-memchr2.c (ASSERT): Likewise.
42653         * tests/test-memmem.c (ASSERT): Likewise.
42654         * tests/test-open.c (ASSERT): Likewise.
42655         * tests/test-printf-frexp.c (ASSERT): Likewise.
42656         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42657         * tests/test-printf-posix.c (ASSERT): Likewise.
42658         * tests/test-quotearg.c (ASSERT): Likewise.
42659         * tests/test-rbtree_list.c (ASSERT): Likewise.
42660         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42661         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42662         * tests/test-round1.c (ASSERT): Likewise.
42663         * tests/test-roundf1.c (ASSERT): Likewise.
42664         * tests/test-roundl.c (ASSERT): Likewise.
42665         * tests/test-signbit.c (ASSERT): Likewise.
42666         * tests/test-sleep.c (ASSERT): Likewise.
42667         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42668         * tests/test-snprintf.c (ASSERT): Likewise.
42669         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42670         * tests/test-stat-time.c (ASSERT): Likewise.
42671         * tests/test-strcasestr.c (ASSERT): Likewise.
42672         * tests/test-strerror.c (ASSERT): Likewise.
42673         * tests/test-striconv.c (ASSERT): Likewise.
42674         * tests/test-striconveh.c (ASSERT): Likewise.
42675         * tests/test-striconveha.c (ASSERT): Likewise.
42676         * tests/test-strsignal.c (ASSERT): Likewise.
42677         * tests/test-strstr.c (ASSERT): Likewise.
42678         * tests/test-strtod.c (ASSERT): Likewise.
42679         * tests/test-trunc1.c (ASSERT): Likewise.
42680         * tests/test-trunc2.c (ASSERT): Likewise.
42681         * tests/test-truncf1.c (ASSERT): Likewise.
42682         * tests/test-truncf2.c (ASSERT): Likewise.
42683         * tests/test-truncl.c (ASSERT): Likewise.
42684         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42685         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42686         * tests/test-vasnprintf.c (ASSERT): Likewise.
42687         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42688         * tests/test-vasprintf.c (ASSERT): Likewise.
42689         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42690         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42691         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42692         * tests/test-vsnprintf.c (ASSERT): Likewise.
42693         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42694         * tests/test-wcwidth.c (ASSERT): Likewise.
42695         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42696         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42697         * tests/test-xvasprintf.c (ASSERT): Likewise.
42698         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42699         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42700         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42701         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42702         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42703         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42704         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42705         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42706         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42707         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42708         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42709         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42710         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42711         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42712         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42713         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42714         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42715         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42716         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42717         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42718         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42719         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42720         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42721         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42722         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42723         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42724         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42725         * tests/unictype/test-combining.c (ASSERT): Likewise.
42726         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42727         * tests/unictype/test-digit.c (ASSERT): Likewise.
42728         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42729         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42730         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42731         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42732         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42733         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42734         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42735         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42736         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42737         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42738         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42739         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42740         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42741         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42742         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42743         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42744         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42745         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42746         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42747         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42748         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42749         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42750         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42751         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42752         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42753         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42754         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42755         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42756         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42757         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42758         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42759         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42760         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42761         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42762         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42763         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42764         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42765         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42766         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42767         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42768         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42769         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42770         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42771         Reported by Eric Blake.
42772
42773 2008-04-11  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/wchar.in.h: Tweak comment.
42776
42777 2008-04-11  Bruno Haible  <bruno@clisp.org>
42778
42779         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42780         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42781         gl_COMMON.
42782         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42783
42784 2008-04-11  Bruno Haible  <bruno@clisp.org>
42785
42786         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42787
42788 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42789
42790         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42791         of attempting to use non-existing /dev/*random.  Based on patch
42792         from Adam Strzelecki <ono@java.pl> in
42793         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42794
42795 2008-04-08  Bruno Haible  <bruno@clisp.org>
42796
42797         Add tentative support for emx+gcc.
42798         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42799         * lib/fpurge.c (fpurge): Likewise.
42800         * lib/freadable.c (freadable): Likewise.
42801         * lib/freadahead.c (freadahead): Likewise.
42802         * lib/freading.c (freading): Likewise.
42803         * lib/freadptr.c (freadptr): Likewise.
42804         * lib/freadseek.c (freadptrinc): Likewise.
42805         * lib/fseeko.c (rpl_fseeko): Likewise.
42806         * lib/fseterr.c (fseterr): Likewise.
42807         * lib/fwritable.c (fwritable): Likewise.
42808         * lib/fwriting.c (fwriting): Likewise.
42809         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42810
42811 2008-04-09  Eric Blake  <ebb9@byu.net>
42812
42813         Avoid some autoconf warnings.
42814         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42815         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42816         * m4/afs.m4 (gl_AFS): Likewise.
42817         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42818         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42819         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42820         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42821         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42822         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42823         (AC_CHECK_DECLS_ONCE): Likewise.
42824         Rename file...
42825         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42826         gnulib-tool requires autoconf 2.59 or better.
42827         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42828
42829 2008-04-08  Eric Blake  <ebb9@byu.net>
42830
42831         Use 'git describe --match' if present (added in git 1.5.5).
42832         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42833         if possible.
42834
42835 2008-04-08  Bruno Haible  <bruno@clisp.org>
42836
42837         Add tentative support for OpenServer.
42838         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42839         _ptr, _cnt.
42840         * lib/fpurge.c (fpurge): Likewise.
42841         * lib/freadable.c (freadable): Likewise.
42842         * lib/freadahead.c (freadahead): Likewise.
42843         * lib/freading.c (freading): Likewise.
42844         * lib/freadptr.c (freadptr): Likewise.
42845         * lib/freadseek.c (freadptrinc): Likewise.
42846         * lib/fseeko.c (rpl_fseeko): Likewise.
42847         * lib/fseterr.c (fseterr): Likewise.
42848         * lib/fwritable.c (fwritable): Likewise.
42849         * lib/fwriting.c (fwriting): Likewise.
42850         Reported by Roger Cornelius <rac@tenzing.org> and
42851         Brian K. White <brian@aljex.com>.
42852
42853 2008-04-06  Jim Meyering  <meyering@redhat.com>
42854
42855         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42856
42857 2008-04-06  Bruno Haible  <bruno@clisp.org>
42858
42859         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42860         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42861         * tests/test-printf-posix.sh: Likewise.
42862         * tests/test-vfprintf-posix.sh: Likewise.
42863         * tests/test-vprintf-posix.sh: Likewise.
42864         * tests/test-xprintf-posix.sh: Likewise.
42865
42866 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42867
42868         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42869         hide error from 'ls', needed on OS/2.
42870         Report by Elbert Pol <elbert.pol@gmail.com>.
42871
42872 2008-04-04  Eric Blake  <ebb9@byu.net>
42873
42874         Make test-fseeko.c failures meaningful.
42875         * tests/test-fseeko.c: Print line number on failure.
42876         * tests/test-fseek.c: Likewise.
42877         Reported by Nelson H. F. Beebe.
42878
42879         Improve strtod bug detection check.
42880         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42881         required for Solaris 10.
42882         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42883
42884 2008-04-04  Bruno Haible  <bruno@clisp.org>
42885
42886         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42887         by m4/setenv.m4.
42888
42889 2008-04-03  Eric Blake  <ebb9@byu.net>
42890
42891         Ensure sane .version contents.
42892         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42893         version string.
42894         * build-aux/git-version-gen: Improve documentation.
42895
42896         Make GNU make output nicer.
42897         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42898         MAKECMDGOALS to enforce message for all command line targets.  Set
42899         srcdir for use in maint.mk.
42900
42901         Another maintainer tweak.
42902         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42903         a target that regenerates version.
42904
42905 2008-04-03  Jim Meyering  <meyering@redhat.com>
42906
42907         vc-list-files: don't cause coreutils "make po-check" failure
42908         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42909
42910 2008-04-03  Eric Blake  <ebb9@byu.net>
42911
42912         Allow VPATH usage of vc-list-files.
42913         * build-aux/vc-list-files (scriptversion): Add timestamp.
42914         (options): Add --help, --version, -C.
42915         (CVS): Support installed cvsu.
42916
42917 2008-04-02  Bruno Haible  <bruno@clisp.org>
42918
42919         Avoid some "statement with no effect" warnings from gcc.
42920         * tests/test-wctype.c (main): Explicitly ignore unused values.
42921         Reported by Jim Meyering.
42922
42923 2008-04-02  Jim Meyering  <meyering@redhat.com>
42924
42925         Avoid some warnings from "gcc -Wshadow".
42926         * tests/test-frexp.c (exp): Define to a different identifier.
42927         * tests/test-frexpl.c (exp): Likewise.
42928
42929 2008-04-03  Jim Meyering  <meyering@redhat.com>
42930
42931         bootstrap: remove dangling *.[ch] symlinks from lib
42932         * build-aux/bootstrap [dangling symlink removal]: Move find's
42933         -depth option to precede all others, to avoid a warning.
42934         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42935
42936 2008-04-02  Bruno Haible  <bruno@clisp.org>
42937
42938         Avoid some warnings from "gcc -Wshadow".
42939         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42940         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42941         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42942         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42943         Reported by Jim Meyering.
42944
42945 2008-04-01  Bruno Haible  <bruno@clisp.org>
42946
42947         Fix test to work on IRIX 6.5 with cc.
42948         * tests/test-math.c (numeric_equal): New function.
42949         (main): Use it.
42950
42951 2008-04-01  Bruno Haible  <bruno@clisp.org>
42952
42953         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42954
42955 2008-04-01  Bruno Haible  <bruno@clisp.org>
42956
42957         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42958         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42959         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42960         (Depends-on): Remove math.
42961
42962         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42964         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42965         (Depends-on): Remove math.
42966
42967         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42969         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42970         (Depends-on): Remove math.
42971         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42972         (Depends-on): Remove math.
42973
42974         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42975         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42976         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42977         (Depends-on): Remove math.
42978         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42979         (Depends-on): Remove math.
42980
42981         * tests/test-round1.c: Include nan.h.
42982         (main): Use NaNd instead of NAN.
42983         * modules/round-tests (Files): Add tests/nan.h.
42984
42985         * tests/test-trunc1.c: Include nan.h.
42986         (main): Use NaNd instead of NAN.
42987         * modules/trunc-tests (Files): Add tests/nan.h.
42988
42989         * tests/test-roundf1.c: Include nan.h.
42990         (main): Use NaNf instead of NAN.
42991         * modules/roundf-tests (Files): Add tests/nan.h.
42992
42993         * tests/test-truncf1.c: Include nan.h.
42994         (main): Use NaNf instead of NAN.
42995         * modules/truncf-tests (Files): Add tests/nan.h.
42996
42997         * tests/test-ceilf1.c: Include nan.h.
42998         (main): Use NaNf instead of NAN.
42999         * modules/ceilf-tests (Files): Add tests/nan.h.
43000
43001         * tests/test-floorf1.c: Include nan.h.
43002         (main): Use NaNf instead of NAN.
43003         * modules/floorf-tests (Files): Add tests/nan.h.
43004
43005         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43006         (main): Use NaNf instead of NAN.
43007         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43008
43009         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43010         (main): Use NaNd instead of NAN.
43011         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43012
43013         * tests/test-frexp.c: Include nan.h.
43014         (main): Use NaNd instead of NAN.
43015         * modules/frexp-tests (Files): Add tests/nan.h.
43016
43017         * lib/isnan.c: Don't include <math.h>.
43018         (FUNC): Don't use NAN macro.
43019         * modules/isnand-nolibm (Depends-on): Remove math.
43020         * modules/isnanf-nolibm (Depends-on): Remove math.
43021         * modules/isnanl (Depends-on): Remove math.
43022         * modules/isnanl-nolibm (Depends-on): Remove math.
43023
43024         * tests/nan.h: New file.
43025
43026 2008-04-01  Eric Blake  <ebb9@byu.net>
43027
43028         Fix typos.
43029         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43030         values to be the right type.
43031
43032         For now, cater to gnulib strtod inaccuracies.
43033         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43034         fractional results.  While not as nice from a QoI perspective, it
43035         is a quicker patch than correctly implementing decimal to binary
43036         rounding.
43037
43038 2008-03-31  Eric Blake  <ebb9@byu.net>
43039
43040         Guarantee a definition of NAN.
43041         * lib/math.in.h (NAN): Define if missing.
43042         * tests/test-math.c (main): Test it.
43043         * doc/posix-headers/math.texi (math.h): Document this.
43044         * lib/isnan.c (rpl_isnand): Use it.
43045         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43046         * tests/test-floorf1.c (NaN): Likewise.
43047         * tests/test-frexp.c (NaN): Likewise.
43048         * tests/test-isnand.c (NaN): Likewise.
43049         * tests/test-isnanf.c (NaN): Likewise.
43050         * tests/test-round1.c (NaN): Likewise.
43051         * tests/test-roundf1.c (NaN): Likewise.
43052         * tests/test-snprintf-posix.h (NaN): Likewise.
43053         * tests/test-sprintf-posix.h (NaN): Likewise.
43054         * tests/test-trunc1.c (NaN): Likewise.
43055         * tests/test-truncf1.c (NaN): Likewise.
43056         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43057         * tests/test-vasprintf-posix.c (NaN): Likewise.
43058         * modules/isnand-nolibm (Depends-on): Add math.
43059         * modules/isnanf-nolibm (Depends-on): Likewise.
43060         * modules/isnanl (Depends-on): Likewise.
43061         * modules/isnanl-nolibm (Depends-on): Likewise.
43062         * modules/snprintf-posix-tests (Depends-on): Likewise.
43063         * modules/sprintf-posix-tests (Depends-on): Likewise.
43064         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43065         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43066         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43067         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43068
43069 2008-03-31  Bruno Haible  <bruno@clisp.org>
43070
43071         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43072         * doc/posix-functions/strtod.texi: Likewise.
43073
43074 2008-03-31  Bruno Haible  <bruno@clisp.org>
43075
43076         * tests/test-strtod.c (main): Don't use C99 syntax.
43077
43078 2008-03-31  Bruno Haible  <bruno@clisp.org>
43079
43080         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43081         Reported by Eric Blake.
43082
43083 2008-03-31  Jim Meyering  <meyering@redhat.com>
43084
43085         Don't compare actual signbit return values.
43086         * tests/test-strtod.c (main): Rather, compare only their
43087         zero/non-zero nature.
43088
43089 2008-03-31  Eric Blake  <ebb9@byu.net>
43090
43091         More strtod documentation.
43092         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43093         failures as distinct bugs.
43094
43095 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43098         Problem reported by Erik Benada in
43099         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43100
43101 2008-03-30  Bruno Haible  <bruno@clisp.org>
43102
43103         * tests/test-strtod.c: Add comments about which assertion fails on which
43104         platform.
43105         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43106
43107 2008-03-30  Eric Blake  <ebb9@byu.net>
43108
43109         Test signbit behavior on zeros.
43110         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43111         (test_signbitd, test_signbitl): Likewise.
43112
43113         More strtod touchups.
43114         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43115         sign of negative underflow, for now.  Use .5, not .1.
43116         * doc/posix-functions/strtod.texi (strtod): Mention these
43117         limitations.
43118         Reported by Jim Meyering.
43119
43120 2008-03-30  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43123         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43124
43125 2008-03-30  Bruno Haible  <bruno@clisp.org>
43126
43127         Avoid failure when attempting to return empty iconv results on some
43128         platforms.
43129         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43130         allocation, don't report ENOMEM when the resulting string is empty.
43131
43132 2008-03-30  Bruno Haible  <bruno@clisp.org>
43133
43134         Fix buffer overrun.
43135         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43136         Don't consider the width for tmp_length. Check count against tmp_length
43137         before doing the padding. Ensure enough allocation during padding.
43138
43139 2008-03-30  Eric Blake  <ebb9@byu.net>
43140
43141         strtod touchups.
43142         * lib/strtod.c (strtod): Avoid compiler warnings.
43143         Reported by Jim Meyering.
43144
43145 2008-03-30  Bruno Haible  <bruno@clisp.org>
43146
43147         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43148         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43149         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43150         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43151         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43152         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43153         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43154         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43155
43156         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43157         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43158         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43159         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43160         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43161         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43162         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43163         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43164
43165         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43166         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43167         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43168         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43169         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43170         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43171         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43172         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43173
43174         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43175         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43176
43177         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43178         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43179
43180         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43181         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43182
43183         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43185         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43186
43187         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43188         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43189         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43190
43191         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43193         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43194
43195         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43197         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43198
43199         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43200         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43202         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43203         (Depends-on): Add EOVERFLOW.
43204         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43205         (Depends-on): Add EOVERFLOW.
43206         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43207         (Depends-on): Add EOVERFLOW.
43208         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43209         (Depends-on): Add EOVERFLOW.
43210         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43211         (Depends-on): Add EOVERFLOW.
43212         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43213         (Depends-on): Add EOVERFLOW.
43214         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43215         (Depends-on): Add EOVERFLOW.
43216         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43217         (Depends-on): Add EOVERFLOW.
43218
43219         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43221         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43222
43223         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43225         * modules/snprintf (Depends-on): Add EOVERFLOW.
43226
43227         * lib/poll.c (EOVERFLOW): Remove fallback.
43228         * modules/poll (Depends-on): Add EOVERFLOW.
43229
43230         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43231         * modules/getugroups (Depends-on): Add EOVERFLOW.
43232
43233         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43234         * modules/getdelim (Depends-on): Add EOVERFLOW.
43235
43236         * lib/ftell.c (EOVERFLOW): Remove fallback.
43237         * modules/ftell (Depends-on): Add EOVERFLOW.
43238
43239         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43241         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43242
43243         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43244
43245         * modules/EOVERFLOW-tests: New file.
43246         * tests/test-EOVERFLOW.c: New file.
43247
43248         * modules/EOVERFLOW: New file.
43249         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43250
43251 2008-03-30  Bruno Haible  <bruno@clisp.org>
43252
43253         Fix bug introduced on 2007-06-10.
43254         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43255         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43256
43257 2008-03-30  Bruno Haible  <bruno@clisp.org>
43258
43259         Improve freadseek's efficiency after ungetc.
43260         * lib/freadseek.c: Include freadahead.h.
43261         (freadptrinc): New function, extracted from freadseek.
43262         (freadseek): Use it in a loop. Use freadahead to determine the number
43263         of loop iterations.
43264         * modules/freadseek (Depends-on): Add freadahead.
43265         (configure.ac): Require AC_C_INLINE.
43266
43267 2008-03-30  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/freadseek.c (freadseek): Don't ignore the return value of
43270         freadptr.
43271
43272 2008-03-29  Eric Blake  <ebb9@byu.net>
43273
43274         Add hex float support.
43275         * modules/strtod (Depends-on): Add c-ctype.
43276         (Link): Mention POW_LIB.
43277         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43278         whitespace between 'e' and exponent.
43279         * tests/test-strtod.c (main): Enable hex float tests.
43280         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43281         now provides.
43282
43283         Document various strtod bugs, with some fixes.
43284         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43285         "-0x", "inf", "nan", and hex constants.
43286         * doc/posix-functions/atof.texi (atof): Likewise.
43287         * modules/stdlib (Makefile.am): Support strtod.
43288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43289         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43290         detect additional strtod bugs.
43291         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43292         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43293         bool where appropriate.  Parse 'inf' and 'nan'.
43294         * tests/test-strtod.c: New file.
43295         * modules/strtod (Depends-on): Add stdbool, stdlib.
43296         (configure.ac): Turn on module indicator.
43297         * modules/strtod-tests: New module.
43298
43299 2008-03-29  Eric Blake  <ebb9@byu.net>
43300
43301         Fix ftell on mingw.
43302         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43303         * modules/ftell-tests (Depends-on): Add binary-io.
43304         * modules/ftello-tests (Depends-on): Likewise.
43305         * tests/test-ftell.c (main): Enhance test to cover behavior after
43306         ungetc.  Enforce binary mode.
43307         * tests/test-ftello.c (main): Likewise.
43308
43309         Pass test-freadseek on cygwin.
43310         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43311         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43312         ungetc buffer.
43313
43314         * tests/test-fflush2.c (main): Fix typo.
43315
43316 2008-03-29  Bruno Haible  <bruno@clisp.org>
43317
43318         * tests/test-fflush2.c (main): Temporarily disable the contents of
43319         this test.
43320         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43321         Reported by Eric Blake.
43322
43323 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43324
43325         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43326         (GC_SHA224_DIGEST_SIZE): Add.
43327
43328         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43329         (gc_hash_digest_length): Likewise.
43330         (gc_hash_buffer): Likewise.
43331
43332 2008-03-25  Bruno Haible  <bruno@clisp.org>
43333
43334         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43335         detail which gettext release to use.
43336         Reported by Simon Josefsson.
43337
43338 2008-03-26  Jim Meyering  <meyering@redhat.com>
43339
43340         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43341         * modules/gnumakefile (clean-GNUmakefile): Also, use
43342         test ... && ... || : syntax rather than if-then ... fi.
43343
43344         gnumakefile: Don't double-quote-expand $(VPATH) value.
43345         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43346
43347 2008-03-24  Eric Blake  <ebb9@byu.net>
43348
43349         Alter GNUmakefile to install into top directory.
43350         * modules/maintainer-makefile: Split, and add dependency...
43351         * modules/gnumakefile: to this new module.
43352         * build-aux/GNUmakefile: Move...
43353         * top/GNUmakefile: ...here.
43354         * build-aux/maint.mk: Move...
43355         * top/maint.mk: ...here.
43356         * MODULES.html.sh (Support for maintaining...): Document new
43357         module.
43358
43359 2008-03-23  Bruno Haible  <bruno@clisp.org>
43360
43361         * gnulib-tool: New options --vc-files, --no-vc-files.
43362         (func_usage): Document them.
43363         (vc_files): New variable.
43364         (func_import): Consider vc_files.
43365         (func_create_testdir): Set vc_files to empty.
43366         Suggested by Jim Meyering and Karl Berry.
43367
43368 2008-03-23  Bruno Haible  <bruno@clisp.org>
43369
43370         Fix regex compilation error on HP-UX 11.
43371         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43372         * modules/regex (Files): Add m4/mbstate_t.m4.
43373         Reported by Ton Voon <ton.voon@altinity.com>.
43374
43375 2008-03-23  Bruno Haible  <bruno@clisp.org>
43376
43377         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43378
43379 2008-03-23  Eric Blake  <ebb9@byu.net>
43380             Bruno Haible  <bruno@clisp.org>
43381
43382         Install files from top/ in the destination directory.
43383         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43384         augmentation also for the files from top/.
43385         (func_import, func_create_testdir): Rewrite file names:
43386         top/filename -> filename.
43387
43388 2008-03-23  Bruno Haible  <bruno@clisp.org>
43389
43390         Tweak "gnulib --version" output.
43391         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43392
43393 2008-03-23  Bruno Haible  <bruno@clisp.org>
43394
43395         Tweak "gnulib --version" output.
43396         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43397         rather than contents of ChangeLog, when possible.
43398
43399 2008-03-21  Eric Blake  <ebb9@byu.net>
43400
43401         More --version tweaks.
43402         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43403         date of last ChangeLog entry.
43404
43405 2008-03-21  Jim Meyering  <meyering@redhat.com>
43406
43407         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43408
43409 2008-03-20  Eric Blake  <ebb9@byu.net>
43410
43411         VPATH fix.
43412         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43413
43414 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43415
43416         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43417         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43418
43419 2008-03-20  Eric Blake  <ebb9@byu.net>
43420
43421         Sync GNUmakefile with coreutils.
43422         * build-aux/GNUmakefile (have-Makefile): Rename...
43423         (_have-Makefile): ...to this, for namespace consideration.
43424         (GNUmakefile.cfg): Include, if present.
43425         (_autoreconf): Define a default.
43426         (_is-dist-target): New rule for rebuilds to pick up intra-release
43427         version.
43428         (maint-cfg.mk): Rename...
43429         (cfg.mk): ...to this.
43430
43431 2008-03-18  Jim Meyering  <meyering@redhat.com>
43432
43433         New script and module: mktempd
43434         * MODULES.html.sh (maint+release support): Add mktempd.
43435         * build-aux/mktempd: New file.
43436         * modules/mktempd: New file.
43437
43438 2008-03-15  Jim Meyering  <meyering@redhat.com>
43439
43440         Undo last change.
43441         * lib/sha1.c, lib/md5.c: 63 != ~63.
43442         Reported by Andreas Schwab.
43443
43444         sha1.c, md5.c: Hoist a redundant expression.
43445         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43446         "ctx->buflen" only once, before calling *_process_block.
43447         * lib/md5.c (md5_process_bytes): Likewise.
43448
43449 2008-03-14  Eric Blake  <ebb9@byu.net>
43450
43451         Bump copyright year in files generated by gnulib-tool.
43452         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43453         gnulib-tool, rather than hard-coding it.
43454
43455         Fix 'gnulib-tool --version' output to work with git.
43456         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43457         (startup): ...here.
43458         (func_version): Use it to invoke git-version-gen, rather than
43459         relying on CVS keyword expansion.  Modernize wording.
43460         (cvsdatestamp, last_checkin_date, version): Kill unused
43461         variables.
43462
43463 2008-03-12  Jim Meyering  <meyering@redhat.com>
43464
43465         Recognize optional cast of the argument to free.
43466         * build-aux/useless-if-before-free: Update regexps.
43467
43468         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43469
43470 2008-03-11  Bruno Haible  <bruno@clisp.org>
43471
43472         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43473         by a single package.
43474         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43475         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43476         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43477         Reported by Sam Steingold <sds@gnu.org>.
43478
43479 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43480
43481         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43482         repositories.
43483
43484 2008-03-11  Bruno Haible  <bruno@clisp.org>
43485
43486         Avoid conflicts between local macro definitions.
43487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43488         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43489
43490 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43491             Bruno Haible  <bruno@clisp.org>
43492
43493         Make va_copy work with some version of xlc on AIX 5.1.
43494         * lib/stdarg.in.h: New file.
43495         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43496         On AIX, use a <stdarg.h> file substitute.
43497         * modules/stdarg (Files): Add lib/stdarg.in.h.
43498         (Depends-on): Add include_next.
43499         (Makefile.am): Build a stdarg.h substitute if requested.
43500         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43501
43502 2008-03-10  Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43506         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43507
43508 2008-03-10  Bruno Haible  <bruno@clisp.org>
43509
43510         * modules/stdlib (Depends-on): Add include_next, remove
43511         absolute-header.
43512
43513 2008-03-09  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/freadahead.h (freadahead): Document more precisely.
43516         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43517         the sum of both buffer sizes.
43518         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43519         * NEWS: Document the change.
43520
43521 2008-03-09  Bruno Haible  <bruno@clisp.org>
43522
43523         Extend freadptr to return also the buffer size.
43524         * lib/freadptr.h (freadptr): Add sizep argument.
43525         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43526         (freadptr): Add sizep argument. Determine buffer size like freadahead
43527         does.
43528         * tests/test-freadptr.c: Don't include freadahead.h.
43529         (main): Adapt for new calling convention of freadptr.
43530         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43531         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43532         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43533         tests/test-freadptr2.sh.
43534         (Depends): Remove freadahead.
43535         (TESTS): Add test-freadptr2.sh.
43536         (check_PROGRAMS): Add test-freadptr2.
43537
43538 2008-03-09  Bruno Haible  <bruno@clisp.org>
43539
43540         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43541         Report and solution by Simon Josefsson.
43542
43543 2008-03-06  Bruno Haible  <bruno@clisp.org>
43544
43545         Make fflush after ungetc work on BSD platforms.
43546         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43547         * tests/test-fflush2.c: New file.
43548         * tests/test-fflush2.sh: New file.
43549         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43550         tests/test-fflush2.c.
43551         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43552         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43553
43554 2008-03-06  Eric Blake  <ebb9@byu.net>
43555
43556         Likewise for ftello.
43557         * modules/ftello (Dependencies): Add extensions.
43558         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43559
43560 2008-03-06  Bruno Haible  <bruno@clisp.org>
43561
43562         * modules/fseeko (Dependencies): Add extensions.
43563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43564         Needed on glibc systems.
43565
43566 2008-03-06  Bruno Haible  <bruno@clisp.org>
43567
43568         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43569         email address.
43570         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43571
43572 2008-03-06  Bruno Haible  <bruno@clisp.org>
43573
43574         * users.txt: Add libgnupdf.
43575
43576 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43577
43578         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43579         (Header File Substitutes, Function Substitutes,
43580         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43581         (Build robot for gnulib): Fix typo.
43582
43583 2008-03-06  Bruno Haible  <bruno@clisp.org>
43584
43585         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43586         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43587
43588 2008-03-06  Bruno Haible  <bruno@clisp.org>
43589
43590         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43591         * doc/gnulib.texi: Include it.
43592
43593 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43594
43595         * modules/func (License): Change license to unlimited; there was
43596         no LGPL parts in the module anyway.
43597
43598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43599
43600         * modules/__func__: Renamed to modules/func.
43601         * modules/__func__-tests: Renamed to modules/func-tests.
43602         * tests/test-__func__.c: Renamed to tests/test-func.c.
43603         * m4/__func__.m4: Renamed to m4/func.m4.
43604         * doc/gnulib.texi (__func__): Section renamed to func.
43605         Suggested by Eric Blake <ebb9@byu.net>.
43606
43607 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43608
43609         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43610         about __func__.  Make example self-contained.  Suggested by Eric
43611         Blake <ebb9@byu.net>.
43612
43613         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43614         Suggested by Eric Blake <ebb9@byu.net>.
43615
43616 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43617
43618         * modules/__func__: New file.
43619         * modules/__func__-tests: New file.
43620         * tests/test-__func__.c: New file.
43621         * m4/__func__.m4: New file.
43622         * doc/gnulib.texi (__func__): Document __func__ module.
43623
43624 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43625
43626         * modules/byteswap (License): Re-license as LGPLv2+.
43627
43628 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43629
43630         * doc/Makefile: Add pdf target.
43631
43632 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43633
43634         * modules/inline (License): Use 'unlimited', since there are only
43635         *.m4 files in this module.
43636
43637 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43638             Bruno Haible  <bruno@clisp.org>
43639
43640         Add support for HP C 7.1 on OpenVMS 8.3.
43641         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43642
43643 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43644
43645         Update VMS specifics.
43646         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43647
43648 2008-03-02  Jim Meyering  <meyering@redhat.com>
43649
43650         Remove the last dependency on the "free" module.
43651         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43652         Reported by Bob Proulx.
43653
43654         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43655
43656         Remove useless "if" tests before free.  Deprecate "free" module.
43657         * doc/posix-functions/free.texi: Mention that this
43658         module is no longer useful.
43659         * modules/free (Notice): Say this module is obsolete.
43660         * modules/readutmp (Depends-on): Remove free.
43661         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43662         * lib/putenv.c (putenv): Likewise.
43663         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43664         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43665         * tests/test-c-strcasestr.c (main): Likewise.
43666         * tests/test-c-strstr.c (main): Likewise.
43667         * tests/test-mbscasestr1.c (main): Likewise.
43668         * tests/test-mbscasestr2.c (main): Likewise.
43669         * tests/test-mbsstr1.c (main): Likewise.
43670         * tests/test-mbsstr2.c (main): Likewise.
43671         * tests/test-memmem.c (main): Likewise.
43672         * tests/test-strcasestr.c (main): Likewise.
43673         * tests/test-striconv.c (main): Likewise.
43674         * tests/test-striconveh.c (main): Likewise.
43675         * tests/test-striconveha.c (main): Likewise.
43676         * tests/test-strstr.c (main): Likewise.
43677
43678         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43679
43680         bootstrap: sync from coreutils again
43681         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43682
43683 2008-03-01  Jim Meyering  <meyering@redhat.com>
43684
43685         bootstrap: sync from coreutils
43686         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43687         also when the target doesn't exist.
43688
43689 2008-03-01  Eric Blake  <ebb9@byu.net>
43690
43691         Fix bugs in last patch.
43692         * lib/memchr2.c (memchr2): Fix typo.
43693         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43694         extension.
43695         Reported by Bruce Korb.
43696
43697         New module 'memchr2'.
43698         * modules/memchr2: New file.
43699         * modules/memchr2-tests: Likewise.
43700         * lib/memchr2.h: Likewise.
43701         * lib/memchr2.c: Likewise, based on memchr.c.
43702         * tests/test-memchr2.c: New test.
43703         * MODULES.html.sh (String handling): Add memchr2.
43704
43705 2008-02-29  Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/freadseek-tests: New file.
43708         * tests/test-freadseek.sh: New file.
43709         * tests/test-freadseek.c: New file.
43710
43711         New module 'freadseek'.
43712         * modules/freadseek: New file.
43713         * lib/freadseek.h: New file.
43714         * lib/freadseek.c: New file.
43715         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43716
43717 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43718
43719         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43720         wydawca.
43721
43722         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43723         program_invocation_name and program_invocation_short_name are
43724         present.
43725
43726 2008-02-28  Bruno Haible  <bruno@clisp.org>
43727
43728         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43729         * tests/test-freadptr.sh: Also test non-seekable stdin.
43730
43731 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43732
43733         * build-aux/bootstrap (source_base, m4_base)
43734         (doc_base, tests_base): New variables.
43735         (gnulib_tool_options): Do not hardcode base directories, use
43736         the above variables instead.
43737
43738 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43739
43740         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43741
43742 2008-02-28  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/freadptr-tests: New file.
43745         * tests/test-freadptr.sh: New file.
43746         * tests/test-freadptr.c: New file.
43747
43748         New module 'freadptr'.
43749         * modules/freadptr: New file.
43750         * lib/freadptr.h: New file.
43751         * lib/freadptr.c: New file.
43752         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43753
43754 2008-02-26  Karl Berry  <karl@freefriends.org>
43755
43756         Sync from Libtool:
43757         * libltdl/argz.c (argz_add, argz_count): New functions.
43758         * libltdl/argz.in.h: Declare them.
43759         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43760
43761 2008-02-22  Bruno Haible  <bruno@clisp.org>
43762
43763         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43764         is a pointer type.  Needed for HP-UX 10.
43765         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43766         * doc/posix-functions/gmtime_r.texi: Likewise.
43767         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43768
43769 2008-02-24  Bruno Haible  <bruno@clisp.org>
43770
43771         * modules/environ-tests: New file.
43772         * tests/test-environ.c: New file.
43773
43774         New module 'environ'.
43775         * modules/environ: New file.
43776         * lib/unistd.in.h (environ): New declaration.
43777         * m4/environ.m4: New file.
43778         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43779         after use.
43780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43781         HAVE_DECL_ENVIRON.
43782         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43783         HAVE_DECL_ENVIRON.
43784         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43785         wrong claim that 'environ' is missing on some systems.
43786         * modules/execute (Depends-on): Add environ.
43787         * lib/execute.c (environ): Remove fallback declaration.
43788         * modules/pipe (Depends-on): Add environ.
43789         * lib/pipe.c (environ): Remove fallback declaration.
43790         * modules/setenv (Depends-on): Add environ.
43791         * lib/setenv.c (environ): Remove fallback declaration.
43792         * modules/unsetenv (Depends-on): Add environ.
43793         * lib/unsetenv.c (environ): Remove fallback declaration.
43794         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43795         m4/environ.m4.
43796         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43797         (gl_PREREQ_UNSETENV): Likewise.
43798
43799 2008-02-24  Bruno Haible  <bruno@clisp.org>
43800
43801         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43802
43803 2008-02-20  Bob Proulx  <bob@proulx.com>
43804
43805         Enable use of older two part flavor 'git describe'.
43806         * build-aux/git-version-gen: If using the older two part flavor of
43807         git version then recreate the third part now present in the
43808         newer three part flavor of git describe.
43809
43810 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43811
43812         * lib/fts.c (fts_build): Typo correction to comment.
43813
43814 2008-02-17  Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43817         generating no-op conflicts.
43818
43819 2008-02-17  Bruno Haible  <bruno@clisp.org>
43820
43821         Speed up by 10%.
43822         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43823         result_entries, rather than an index-based loop.
43824
43825 2008-02-17  Bruno Haible  <bruno@clisp.org>
43826
43827         Speed up by 25%.
43828         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43829         'hashcode_cached'.
43830         (entry_create): New function.
43831         (entry_hashcode): Use the cached hashcode if possible.
43832         (read_changelog_file, try_split_merged_entry): Use entry_create.
43833
43834 2008-02-17  Bruno Haible  <bruno@clisp.org>
43835
43836         Speed up from O(n^2) to O(n) for long ChangeLog files.
43837         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43838         (read_changelog_file): Change implementation of entries_reversed list
43839         to rbtreehash.
43840         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43841
43842 2008-02-17  Bruno Haible  <bruno@clisp.org>
43843
43844         New option --split-merged-entry.
43845         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43846         (find_paragraph_end, try_split_merged_entry): New functions.
43847         (long_options): Add option --split-merged-entry.
43848         (usage): Document option --split-merged-entry.
43849         (main): Implement option --split-merged-entry.
43850         Reported by Eric Blake.
43851
43852 2008-02-17  Bruno Haible  <bruno@clisp.org>
43853
43854         * lib/git-merge-changelog.c: Include c-strstr.h.
43855         (main): Support the "git pull --rebase" situation.
43856         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43857         Reported by Eric Blake.
43858
43859 2008-02-16  Eric Blake  <ebb9@byu.net>
43860
43861         Avoid doubling \ in common case of "c-maybe" quoting style.
43862         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43863         eliding outer quotes.
43864         * lib/quotearg.h: Document this.
43865         * tests/test-quotearg.c (result_strings, inputs, results_g)
43866         (flag_results, locale_results): Test it by adding a new string to
43867         each test group.
43868         (compare_strings): Test new string.
43869
43870 2008-02-13  Eric Blake  <ebb9@byu.net>
43871
43872         Avoid trigraph quoting in default output.
43873         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43874         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43875         unless explicitly requested.
43876         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43877
43878 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43879
43880         Don't rely on signed integer overflowing to negative value.
43881         * lib/getugroups.c (getugroups): Include <limits.h>.
43882         Instead, compare against INT_MAX, and increment only if the test passes.
43883
43884 2008-02-13  Jim Meyering  <meyering@redhat.com>
43885         and Eric Blake  <ebb9@byu.net>
43886
43887         Avoid shadowing warning and compile errors on Linux.
43888         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43889         forwarding macros on Linux.
43890         (dcgettext): Define a stub, for Linux.
43891         (results_g, main): Avoid warnings.
43892
43893 2008-02-12  Eric Blake  <ebb9@byu.net>
43894
43895         Silence warning in last patch.
43896         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43897
43898         Quotearg part 4: add tests, fix c-maybe colon quoting.
43899         * lib/quotearg.h: Improve documentation.
43900         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43901         escapes when adding outer quotes.  When quoting trigraphs, use
43902         valid C notation.  When quoting NUL, omit extra characters if next
43903         character is not digit.  Alter prototype.
43904         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43905         callers.
43906         * modules/quotearg-tests: New module.
43907         * tests/test-quotearg.c: New test.
43908
43909 2008-02-07  Eric Blake  <ebb9@byu.net>
43910
43911         Quotearg part 3: add flag to control outer quote elision.
43912         * lib/quotearg.h (c_maybe_quoting_style): New style.
43913         (enum quoting_flags): Better documentation of flags.
43914         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43915         c-maybe style.
43916         (quotearg_buffer_restyled): Handle new flag to elide outer
43917         quotes.
43918
43919         Quotearg part 2: add flag that can control NUL elision.
43920         * lib/quotearg.h (set_quoting_flags): New prototype.
43921         * lib/quotearg.c (struct quoting_options): Add flag field.
43922         (set_quoting_flags): New function.
43923         (quotearg_buffer_restyled): Add flags parameter.
43924         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43925         (quotearg_n_options): Set the flag, since length cannot be
43926         returned.
43927         (quoting_options_from_style): Default flags correctly.
43928
43929         Quotearg part 1: more wrappers, restore quotearg_char state.
43930         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43931         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43932         (quotearg_colon_mem): New wrappers.
43933         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43934         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43935         functions.
43936         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43937         (quotearg_colon_mem): New functions.
43938
43939 2008-02-11  Bruno Haible  <bruno@clisp.org>
43940
43941         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43942         library in the current directory: it does not work with parallel make.
43943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43944
43945 2008-02-11  Bruno Haible  <bruno@clisp.org>
43946
43947         * .gitattributes: New file.
43948
43949 2008-02-11  Jim Meyering  <meyering@redhat.com>
43950
43951         useless-if-before-free: Fix reversed exit values.
43952         * build-aux/useless-if-before-free: Use correct values
43953         for EXIT_MATCH and EXIT_NO_MATCH.
43954
43955         * build-aux/useless-if-before-free: Close stdout carefully.
43956
43957 2008-02-10  Bruno Haible  <bruno@clisp.org>
43958
43959         New module 'git-merge-changelog'.
43960         * modules/git-merge-changelog: New file.
43961         * lib/git-merge-changelog.c: New file.
43962
43963 2008-02-10  Jim Meyering  <meyering@redhat.com>
43964
43965         useless-if-before-free: New option: --list (-l).
43966
43967         useless-if-before-free: Don't exit immediately upon open failure.
43968         * build-aux/useless-if-before-free: Exit 2 for errors.
43969         Upon failure to open a file, don't exit immediately.
43970         Rather, just warn and continue with any remaining files.
43971
43972 2008-02-10  Bruno Haible  <bruno@clisp.org>
43973
43974         New abstract list operation 'node_set_value'.
43975         * lib/gl_list.h (gl_list_node_set_value): New function.
43976         (struct gl_list_implementation): New field node_set_value.
43977         * lib/gl_list.c (gl_list_node_set_value): New function.
43978         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43979         (gl_array_list_implementation): Update.
43980         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43981         (gl_carray_list_implementation): Update.
43982         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43983         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43984         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43985         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43986         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43987         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43988         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43989         Update.
43990         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43991         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43992         (gl_sublist_list_implementation): Update.
43993
43994 2008-02-10  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43997         Needed when ELEMENT is #defined to 'some_type *'.
43998
43999 2008-02-10  Jim Meyering  <meyering@redhat.com>
44000
44001         New script and module: useless-if-before-free
44002         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44003         * build-aux/useless-if-before-free: New file.
44004         * modules/useless-if-before-free: New file.
44005
44006         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44007
44008         xstrtol_error: Fix typo.
44009         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44010         s/exit_failure/exit_status/.
44011
44012 2008-02-09  Jim Meyering  <meyering@redhat.com>
44013
44014         New script and module: gitlog-to-changelog
44015         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44016         * modules/gitlog-to-changelog: New file.
44017         * build-aux/gitlog-to-changelog: New file.
44018
44019 2008-02-08  Jim Meyering  <meyering@redhat.com>
44020
44021         Avoid two "parameter unused" warnings.
44022         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44023         Mark "st" as used.
44024
44025         Use "git COMMAND", not "git-COMMAND".
44026         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44027         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44028         * build-aux/git-version-gen: Use "git status", not "git-status".
44029
44030 2008-02-07  Bruno Haible  <bruno@clisp.org>
44031
44032         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44033         Avoids a crash on Windows Vista.
44034         Reported by Adam Strzelecki <ono@java.pl> via
44035         Simon Josefsson <simon@josefsson.org>.
44036
44037 2008-02-06  Bruno Haible  <bruno@clisp.org>
44038
44039         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44040         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44041         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44043         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44044         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44045         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44046         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44053         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44054         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44055         left-adjust flag.
44056         * tests/test-snprintf-posix.h (test_function): Likewise.
44057         * tests/test-sprintf-posix.h (test_function): Likewise.
44058         * tests/test-vasprintf-posix.c (test_function): Likewise.
44059         * doc/posix-functions/fprintf.texi: Update.
44060         * doc/posix-functions/printf.texi: Update.
44061         * doc/posix-functions/snprintf.texi: Update.
44062         * doc/posix-functions/sprintf.texi: Update.
44063         * doc/posix-functions/vfprintf.texi: Update.
44064         * doc/posix-functions/vprintf.texi: Update.
44065         * doc/posix-functions/vsnprintf.texi: Update.
44066         * doc/posix-functions/vsprintf.texi: Update.
44067         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44068
44069 2008-02-06  Bruno Haible  <bruno@clisp.org>
44070
44071         Fix bug introduced on 2008-01-26.
44072         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44073
44074 2008-02-06  Bruno Haible  <bruno@clisp.org>
44075
44076         Fix bug introduced on 2007-06-10.
44077         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44078         !NEED_PRINTF_FLAG_ZERO.
44079
44080 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44081
44082         getloadavg: use libperfstat on AIX5
44083         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44084
44085 2008-02-03  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/diffseq.h: Add comments about required #includes.
44088         Reported by Michael Biggs <gnulib@doubleplum.net>.
44089
44090 2008-02-01  Bruno Haible  <bruno@clisp.org>
44091
44092         * users.txt: Add gnuit.
44093
44094 2008-01-31  Bruno Haible  <bruno@clisp.org>
44095
44096         * lib/md4.c (set_uint32): Mark as inline.
44097         * lib/md5.c (set_uint32): Likewise.
44098         * lib/sha1.c (set_uint32): Likewise.
44099         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44100         * m4/md5.m4 (gl_MD5): Likewise.
44101         * m4/sha1.m4 (gl_SHA1): Likewise.
44102
44103 2008-01-31  Jim Meyering  <meyering@redhat.com>
44104
44105         Use "sizeof VAR", rather than a literal "4".
44106         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44107         * lib/md4.c (md4_read_ctx): Likewise.
44108         * lib/sha1.c (sha1_read_ctx): Likewise.
44109
44110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44111
44112         * tests/test-sha1.c: New file, based on test-md5.c.
44113
44114         * modules/crypto/sha1-tests: New file.
44115
44116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44117
44118         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44119
44120 2008-01-31  Jim Meyering  <meyering@redhat.com>
44121
44122         Prefer "sizeof v" over the equivalent "4".
44123         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44124         * lib/md5.c (set_uint32): Likewise.
44125         * lib/sha1.c (set_uint32): Likewise.
44126
44127 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44128
44129         * lib/sha1.c (set_uint32): Mark function as static.
44130
44131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44132
44133         md2: clarify comments to say that alignment is not required.
44134         * lib/md2.h: Remove warning about alignment in comment.
44135         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44136         never been required.
44137
44138 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44139
44140         md4: adapt alignment constraint fix from sha1.
44141         * lib/md4.c (set_uint32): New function, from sha1.c
44142         (md4_read_ctx): Use it.
44143         (md4_finish_ctx): Doc fix.
44144         * lib/md4.h: Doc fix.
44145
44146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44147
44148         md5: adapt alignment constraint fix from sha1.
44149         * lib/md5.c (set_uint32): New function, from sha1.c
44150         (md5_read_ctx): Use it.
44151         (md5_finish_ctx): Doc fix.
44152         * lib/md5.h: Doc fix.
44153
44154 2008-01-30  Peter Palfrader  <weasel@debian.org>
44155
44156         sha1: remove the result buffer alignment constraint
44157         * lib/sha1.c (set_uint32): New function.
44158         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44159         constraint.
44160         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44161         * lib/sha1.h: Likewise.
44162
44163 2008-01-30  Andreas Schwab  <schwab@suse.de>
44164             Bruno Haible  <bruno@clisp.org>
44165
44166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44167         correct definition of LDBL_MIN_EXP.
44168
44169 2008-01-30  Karl Berry  <karl@gnu.org>
44170
44171         * config/srclist-update: try to preserve x bit on updates.
44172         * config/srclistvars.sh: update for karl.
44173
44174 2008-01-29  Jim Meyering  <meyering@redhat.com>
44175
44176         vasnprintf.c: Avoid warning about unused label
44177         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44178         "overflow" label definition and associated code with the
44179         same cpp condition that guards the sole use of that label.
44180
44181 2008-01-26  Bruno Haible  <bruno@clisp.org>
44182
44183         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44184         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44185         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44186         * lib/isnanl-nolibm.h (isnanl): Likewise.
44187         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44188
44189 2008-01-26  Bruno Haible  <bruno@clisp.org>
44190
44191         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44192         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44193
44194 2008-01-26  Bruno Haible  <bruno@clisp.org>
44195
44196         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44197         GCC >= 4.0 built-in.
44198         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44199
44200 2008-01-26  Bruno Haible  <bruno@clisp.org>
44201
44202         Rename isnan, applicable to 'double' only, to isnand.
44203         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44204         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44205         (configure.ac): Update.
44206         (Include): Replace "isnan.h" with "isnand.h".
44207         * m4/isnand.m4: Renamed from m4/isnan.m4.
44208         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44209         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44210         instead of isnan.c.
44211         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44212         instead of HAVE_ISNAN_IN_LIBC.
44213         (isnand): Renamed from isnan.
44214         * lib/isnand.c: New file.
44215         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44216         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44217         (Makefile.am): Update.
44218         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44219         Include isnand.h instead of isnan.h.
44220         (main): Test isnand instead of isnan.
44221         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44222         isnan-nolibm.
44223         * modules/frexp (Depends-on): Likewise.
44224         * modules/frexp-tests (Depends-on): Likewise.
44225         * modules/frexp-nolibm (Depends-on): Likewise.
44226         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44227         * modules/isfinite (Depends-on): Likewise.
44228         * modules/round-tests (Depends-on): Likewise.
44229         * modules/signbit (Depends-on): Likewise.
44230         * modules/signbit-tests (Depends-on): Likewise.
44231         * modules/snprintf-posix (Depends-on): Likewise.
44232         * modules/sprintf-posix (Depends-on): Likewise.
44233         * modules/trunc-tests (Depends-on): Likewise.
44234         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44235         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44236         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44238         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44239         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44240         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44241         * modules/vasnprintf-posix (Depends-on): Likewise.
44242         * modules/vasprintf-posix (Depends-on): Likewise.
44243         * modules/vfprintf-posix (Depends-on): Likewise.
44244         * modules/vsnprintf-posix (Depends-on): Likewise.
44245         * modules/vsprintf-posix (Depends-on): Likewise.
44246         * lib/frexp.c: Include isnand.h instead of isnan.h.
44247         (ISNAN): Set to isnand instead of isnan.
44248         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44249         (gl_isfinited): Use isnand instead of isnan.
44250         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44251         (gl_signbitd): Use isnand instead of isnan.
44252         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44253         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44254         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44255         (main): Use isnand instead of isnan.
44256         * tests/test-round1.c: Include isnand.h.
44257         (main): Use isnand instead of isnan.
44258         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44259         (ISNAN): Set to isnand instead of isnan.
44260         * tests/test-trunc1.c: Include isnand.h.
44261         (main): Use isnand instead of isnan.
44262         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44263         (equal): Use isnand instead of isnan.
44264         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44265         isnand-nolibm.
44266         * NEWS: Mention the change.
44267
44268 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44269             Bruno Haible  <bruno@clisp.org>
44270
44271         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44272         the GCC builtins for signbits are present and set
44273         REPLACE_SIGNBIT_USING_GCC if so.
44274         * lib/math.in.h (signbit): Define using GCC builtins if
44275         REPLACE_SIGNBIT_USING_GCC is set.
44276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44277         REPLACE_SIGNBIT_USING_GCC.
44278         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44279
44280 2008-01-25  Jim Meyering  <meyering@redhat.com>
44281
44282         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44283         * lib/poll.c: Include <config.h>, not "config.h".
44284         * tests/test-getaddrinfo.c: Likewise.
44285
44286 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44287
44288         * modules/sockets-tests: New file.
44289
44290 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44291
44292         * modules/sockets: New module, can be used to call WSA_Startup and
44293         WSA_Cleanup when needed.
44294
44295         * lib/sockets.h, lib/sockets.c: New files.
44296
44297         * m4/sockets.m4: New file.
44298
44299         * tests/test-sockets.c: New file.
44300
44301 2008-01-19  Bruno Haible  <bruno@clisp.org>
44302
44303         * doc/posix-headers: Renamed from doc/headers.
44304         * doc/posix-functions: Renamed from doc/functions.
44305         * doc/gnulib.texi: Update.
44306
44307 2008-01-19  Bruno Haible  <bruno@clisp.org>
44308
44309         * doc/glibc-functions/strcasestr.texi: Include contents of
44310         doc/functions/strcasestr.texi, fixing the list of platforms.
44311         * doc/functions/strcasestr.texi: Remove file.
44312
44313 2008-01-19  Bruno Haible  <bruno@clisp.org>
44314
44315         * doc/glibc-functions/memmem.texi: Include contents of
44316         doc/functions/memmem.texi.
44317         * doc/functions/memmem.texi: Remove file.
44318
44319 2008-01-18  Bruno Haible  <bruno@clisp.org>
44320
44321         * doc/glibc-functions/*.texi: New files.
44322         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44323         to use the new files.
44324
44325 2008-01-17  Bruno Haible  <bruno@clisp.org>
44326
44327         * tests/test-gethostname.c (main): Fix printf statement.
44328
44329 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44330
44331         * modules/gethostname-tests: New file.
44332
44333         * tests/test-gethostname.c: New file.
44334
44335 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44336
44337         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44338         used by the UNAME case.  Reported by Bruno Haible
44339         <bruno@clisp.org>.
44340
44341 2008-01-17  Eric Blake  <ebb9@byu.net>
44342
44343         Convert c-strcasestr to be more efficient.
44344         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44345         (Depends-on): Add c-strcase, remove malloca, strnlen.
44346         * tests/test-c-strcasestr.c (main): Enhance test.
44347         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44348
44349 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44350
44351         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44352         Use it in creating po/Makevars.
44353
44354 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44355
44356         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44357         Applications that requires it should initialize libgcrypt
44358         manually.
44359
44360 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44361
44362         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44363
44364 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44365
44366         Fix problem with getdate on mingw32 reported by Simon Josefsson
44367         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44368         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44369         tzname", when deciding whether to declare tzname.
44370         * lib/strftime.c (tzname): Likewise.
44371
44372 2008-01-15  Bruno Haible  <bruno@clisp.org>
44373
44374         Work around a MacOS X 10.5 bug in frexpl().
44375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44376         * doc/functions/frexpl.texi: Document the bug.
44377         Reported by Elias Pipping <pipping@gentoo.org>.
44378
44379 2008-01-14  Eric Blake  <ebb9@byu.net>
44380
44381         Touch up previous patch.
44382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44383         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44384
44385         Convert strcasestr module to use Two-Way algorithm.
44386         * modules/strcasestr-simple: New module, based on the old
44387         strcasestr, but with Two-Way rather than KMP.
44388         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44389         * lib/string.in.h (rpl_strcasestr): Declare.
44390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44391         performance.
44392         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44393         * modules/string (Makefile.am): Support strcasestr.
44394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44395         * modules/strcasestr-tests (Depends-on): Check for alarm.
44396         * tests/test-strcasestr.c: Augment test.
44397         * lib/str-two-way.h: Clean up stray macro.
44398         * NEWS: Document new module.
44399         * MODULES.html.sh (string handling): Likewise.
44400         * doc/functions/strcasestr.texi: New file.
44401         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44402         here, since it is not a POSIX function.
44403
44404 2008-01-14  Colin Watson  <cjwatson@debian.org>
44405             Bruno Haible  <bruno@clisp.org>
44406
44407         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44408         works fine; if not, set REPLACE_STRSIGNAL.
44409         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44411         REPLACE_STRSIGNAL.
44412         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44413         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44414         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44415
44416 2008-01-14  Bruno Haible  <bruno@clisp.org>
44417
44418         * modules/strsignal (Include): Change to <string.h>.
44419
44420 2008-01-14  Colin Watson  <cjwatson@debian.org>
44421
44422         * modules/argp (Notice): Add a notice recommending to change
44423         XGETTEXT_OPTIONS.
44424         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44425
44426 2008-01-13  Colin Watson  <cjwatson@debian.org>
44427
44428         * modules/strsignal-tests: New file.
44429         * tests/test-strsignal.c: New file.
44430
44431         * lib/strsignal.c: New file, from glibc with modifications.
44432         * lib/siglist.h: New file, from glibc with modifications.
44433         * lib/string.in.h (strsignal): New declaration.
44434         * m4/strsignal.m4: New file.
44435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44436         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44437         * modules/strsignal: New file.
44438         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44439         HAVE_DECL_STRSIGNAL.
44440
44441 2008-01-13  Bruno Haible  <bruno@clisp.org>
44442
44443         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44444         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44445         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44446         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44447
44448 2008-01-13  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44451         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44452         * lib/argp.h (__attribute__): Likewise.
44453         * lib/c-stack.c (__attribute__): Likewise.
44454         * lib/error.h (__attribute__): Likewise.
44455         * lib/fts.c (__attribute__): Likewise.
44456         * lib/openat.h (__attribute__): Likewise.
44457         * lib/stdio.in.h (__attribute__): Likewise.
44458         * lib/string.in.h (__attribute__): Likewise.
44459         * lib/utimens.c (__attribute__): Likewise.
44460         * lib/vasnprintf.h (__attribute__): Likewise.
44461         * lib/xalloc.h (__attribute__): Likewise.
44462         * lib/xprintf.h (__attribute__): Likewise.
44463         * lib/xstrtol.h (__attribute__): Likewise.
44464         * lib/xvasprintf.h (__attribute__): Likewise.
44465
44466 2008-01-12  Bruno Haible  <bruno@clisp.org>
44467
44468         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44469         * doc/glibc-headers/a.out.texi: New file.
44470         * doc/glibc-headers/aliases.texi: New file.
44471         * doc/glibc-headers/alloca.texi: New file.
44472         * doc/glibc-headers/ar.texi: New file.
44473         * doc/glibc-headers/argp.texi: New file.
44474         * doc/glibc-headers/argz.texi: New file.
44475         * doc/glibc-headers/byteswap.texi: New file.
44476         * doc/glibc-headers/crypt.texi: New file.
44477         * doc/glibc-headers/endian.texi: New file.
44478         * doc/glibc-headers/envz.texi: New file.
44479         * doc/glibc-headers/err.texi: New file.
44480         * doc/glibc-headers/error.texi: New file.
44481         * doc/glibc-headers/execinfo.texi: New file.
44482         * doc/glibc-headers/fpu_control.texi: New file.
44483         * doc/glibc-headers/fstab.texi: New file.
44484         * doc/glibc-headers/fts.texi: New file.
44485         * doc/glibc-headers/getopt.texi: New file.
44486         * doc/glibc-headers/ieee754.texi: New file.
44487         * doc/glibc-headers/ifaddrs.texi: New file.
44488         * doc/glibc-headers/libintl.texi: New file.
44489         * doc/glibc-headers/mcheck.texi: New file.
44490         * doc/glibc-headers/mntent.texi: New file.
44491         * doc/glibc-headers/obstack.texi: New file.
44492         * doc/glibc-headers/paths.texi: New file.
44493         * doc/glibc-headers/printf.texi: New file.
44494         * doc/glibc-headers/pty.texi: New file.
44495         * doc/glibc-headers/resolv.texi: New file.
44496         * doc/glibc-headers/shadow.texi: New file.
44497         * doc/glibc-headers/sysexits.texi: New file.
44498         * doc/glibc-headers/ttyent.texi: New file.
44499
44500 2008-01-12  Jim Meyering  <meyering@redhat.com>
44501
44502         announce-gen: emit Gnulib's git-based version string.
44503         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44504         New option --gnulib-version=V, where V is expected to be
44505         the output of running git describe in the gnulib directory.
44506         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44507         not useful, and plan to stop publishing an xdelta file with each
44508         coreutils release.
44509
44510         * build-aux/announce-gen: Also check for lzma-compressed files.
44511
44512 2008-01-11  Bruno Haible  <bruno@clisp.org>
44513
44514         * tests/test-memmem.c (main): Increase maximum allowed time.
44515         * tests/test-strstr.c (main): Likewise.
44516
44517 2008-01-11  Bruno Haible  <bruno@clisp.org>
44518
44519         * doc/functions/memmem.texi: Add more precisions about platforms.
44520         * doc/functions/strstr.texi: Likewise.
44521
44522 2008-01-10  Eric Blake  <ebb9@byu.net>
44523
44524         * m4/strstr.m4: Delete cruft from copy-n-paste.
44525         Reported by Bruno Haible.
44526
44527 2008-01-10  Bruno Haible  <bruno@clisp.org>
44528
44529         Make c-strstr rely on strstr.
44530         * lib/c-strstr.c: Don't include str-kmp.h.
44531         (c_strstr): Define in terms of strstr.
44532         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44533         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44534
44535 2008-01-10  Bruno Haible  <bruno@clisp.org>
44536
44537         * doc/gnulib.texi (String Functions in C Locale): New section.
44538         * doc/c-ctype.texi: New file.
44539         * doc/c-strcase.texi: New file.
44540         * doc/c-strcaseeq.texi: New file.
44541         * doc/c-strcasestr.texi: New file.
44542         * doc/c-strstr.texi: New file.
44543         * doc/c-strtod.texi: New file.
44544         * doc/c-strtold.texi: New file.
44545
44546 2008-01-10  Eric Blake  <ebb9@byu.net>
44547
44548         * lib/relocatable.h: Fix a comment.
44549
44550 2008-01-10  Eric Blake  <ebb9@byu.net>
44551
44552         Share two-way algorithm.
44553         * lib/str-two-way.h: New file, merged from...
44554         * lib/memmem.c: ...here...
44555         * lib/strstr.c: ...and here.
44556         * modules/memmem (Files): Use it.
44557         * modules/strstr (Files): Likewise.
44558
44559         Avoid quadratic strstr implementations.
44560         * lib/strstr.c: New file.
44561         * m4/strstr.m4: Likewise.
44562         * modules/strstr: Likewise.
44563         * modules/strstr-tests: Likewise.
44564         * tests/test-strstr.c: Likewise.
44565         * lib/string.in.h (rpl_strstr): Declare.
44566         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44568         * modules/string (Makefile.am): Likewise.
44569         * MODULES.html.sh (string handling): Mention new module.
44570         * doc/functions/strstr.texi (strstr): Document the bug.
44571
44572 2008-01-10  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/relocatable.h (relocate): State whether result is freshly
44575         allocated or not.
44576         * lib/relocatable.c (relocate): Return a freshly allocated string
44577         instead of a pointer to a privately held string.
44578         Reported by Sylvain Beucler <beuc@gnu.org>.
44579
44580 2008-01-10  Colin Watson  <cjwatson@debian.org>
44581
44582         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44583         s/S_ISNLK/S_ISLNK/.
44584
44585 2008-01-09  Bruno Haible  <bruno@clisp.org>
44586
44587         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44588         and other files.
44589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44590         if it's only a guess.
44591         * modules/memmem: Simplify by depending on memmem-simple.
44592
44593 2008-01-09  Bruno Haible  <bruno@clisp.org>
44594
44595         Work around OpenBSD 4.0 tdelete() bug.
44596         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44597         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44598         macros and don't redefine the enum values.
44599         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44600         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44601         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44602
44603 2008-01-09  Bruno Haible  <bruno@clisp.org>
44604
44605         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44606         (main): Don't perform the tests if setlocale did not install a UTF-8
44607         locale. Needed on OpenBSD 4.0.
44608         * modules/wcwidth-tests (Depends-on): Add localcharset.
44609
44610 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44613         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44614         * NEWS: announce this.
44615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44616
44617 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44618         and Eric Blake  <ebb9@byu.net>
44619
44620         Add memmem-simple module.
44621         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44622         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44623         * modules/memmem-simple: New file.
44624         * modules/memmem (Description): Tweak.
44625         * MODULES.html.sh (string handling): Mention new module.
44626         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44627         addressed by memmem-simple.
44628         * NEWS: Document the difference.
44629
44630 2008-01-09  Eric Blake  <ebb9@byu.net>
44631
44632         Give gcc some memmem optimization hints.
44633         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44634         (strcasestr): Declare as pure.
44635         * modules/memmem (Maintainer): Claim my implementation.
44636
44637 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44638
44639         Support AIX 6.1 and higher.
44640         * build-aux/config.libpath: Likewise.
44641         * build-aux/config.rpath: Likewise.
44642
44643 2008-01-08  Jim Meyering  <meyering@redhat.com>
44644             Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44647         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44648         Reported by Peter Fales in
44649         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44650
44651 2008-01-08  Bruno Haible  <bruno@clisp.org>
44652
44653         * modules/unictype/category-of (Depends-on): Add
44654         unictype/category-none.
44655         * modules/unictype/category-and-tests (Depends-on): Add
44656         unictype/category-{L,N,Lu,Nd}.
44657         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44658         * modules/unictype/category-or-tests (Depends-on): Add
44659         unictype/category-{L,N}.
44660         * modules/unictype/category-name-tests (Depends-on): Add
44661         unictype/category-{Z,Nl}.
44662         Reported by Simon Josefsson.
44663
44664 2008-01-08  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44667         convention better.
44668         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44669         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44670         Reported by Peter Miller <millerp@canb.auug.org.au>.
44671
44672 2008-01-08  Eric Blake  <ebb9@byu.net>
44673
44674         Rewrite memmem to guarantee linear complexity without malloc.
44675         * lib/memmem.c (memmem): Use Two-Way rather than
44676         Knuth-Morris-Pratt, to allow O(1) space usage.
44677         (critical_factorization, two_way_short_needle)
44678         (two_way_long_needle): New functions.
44679         (knuth_morris_pratt): Delete.
44680         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44681         Add stdint.
44682         * tests/test-memmem.c (main): Add tests for periodic needle and
44683         sublinear performance.
44684         * doc/functions/memmem.texi (memmem): Document other deficiencies
44685         in cygwin and older glibc.
44686
44687 2008-01-08  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44690         augmentation.
44691
44692 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44693
44694         Add a configure time option: --disable-acl.
44695         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44696         AC_ARG_ENABLE(acl).
44697
44698 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44699
44700         * tests/test-localename.c: Don't include obsolete "setenv.h".
44701
44702         * modules/localename-tests (Depends-on): Need unsetenv.
44703
44704 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44705
44706         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44707
44708 2008-01-06  Colin Watson  <cjwatson@debian.org>
44709
44710         * users.txt: Add man-db.
44711
44712 2008-01-07  Bruno Haible  <bruno@clisp.org>
44713
44714         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44715         previous section name.
44716
44717 2008-01-07  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/progname.c (set_program_name): Don't strip off a leading
44720         "lt-" prefix outside a .libs directory.
44721         Suggested by Paul Eggert.
44722
44723 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44724             Bruno Haible  <bruno@clisp.org>
44725
44726         Improve memory cleanup in 'relocatable' module.
44727         * lib/relocatable.h (compute_curr_prefix): Change return type to
44728         'char *'.
44729         * lib/relocatable.c (compute_curr_prefix): Change return type to
44730         'char *'. Free curr_installdir after use.
44731         (relocate): Free curr_prefix_better after use.
44732         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44733
44734 2008-01-01  Bruno Haible  <bruno@clisp.org>
44735
44736         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44737         failure on older glibc systems.
44738         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44739
44740 2008-01-05  Eric Blake  <ebb9@byu.net>
44741
44742         Avoid quadratic system memmem.
44743         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44744         Reported by Ralf Wildenhues.
44745
44746         Fix memmem test for mingw.
44747         * modules/memmem-tests (configure.ac): Check for alarm.
44748         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44749         it.
44750         * doc/functions/memmem.texi: New file.
44751         * doc/gnulib.texi (Function Substitutes): Add memmem.
44752         Reported by Bruno Haible.
44753
44754 2008-01-04  Bruno Haible  <bruno@clisp.org>
44755
44756         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44757         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44758         gl_HEADER_STRING_H_DEFAULTS.
44759
44760 2008-01-04  Eric Blake  <ebb9@byu.net>
44761
44762         Shorten duration of memmem test.
44763         * tests/test-memmem.c (main): Use alarm to declare failure if test
44764         is taking too long.
44765         Reported by Ralf Wildenhues.
44766
44767 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44768
44769         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44770         string, needed by strerror.
44771
44772 2008-01-03  Colin Watson  <cjwatson@debian.org>
44773             Bruno Haible  <bruno@clisp.org>
44774
44775         * doc/gnulib-tool.texi (Localization): New section.
44776
44777 2008-01-02  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44780         variables to 'unsigned char *' type.
44781         Reported by Paul Eggert.
44782
44783 2008-01-02  Jim Meyering  <jim@meyering.net>
44784
44785         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44786
44787 2007-12-31  Jim Meyering  <jim@meyering.net>
44788
44789         Avoid use of private FTS type name.
44790         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44791
44792 2007-12-30  Karl Berry  <karl@gnu.org>
44793
44794         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44795         work around defect in Texinfo and/or the standalone Info browser.
44796
44797 2007-12-30  Bruno Haible  <bruno@clisp.org>
44798
44799         Unify 5 copies of the KMP code.
44800         * lib/str-kmp.h: New file.
44801         * lib/c-strcasestr.c: Include str-kmp.h.
44802         (knuth_morris_pratt): Remove function.
44803         (c_strcasestr): Update.
44804         * lib/c-strstr.c: Include str-kmp.h.
44805         (knuth_morris_pratt): Remove function.
44806         (c_strcasestr): Update.
44807         * lib/mbscasestr.c: Include str-kmp.h.
44808         (knuth_morris_pratt_unibyte): Remove function.
44809         * lib/mbsstr.c: Include str-kmp.h.
44810         (knuth_morris_pratt_unibyte): Remove function.
44811         * lib/strcasestr.c: Include str-kmp.h.
44812         (knuth_morris_pratt): Remove function.
44813         (strcasestr): Update.
44814         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44815         * modules/c-strstr (Files): Likewise.
44816         * modules/mbscasestr (Files): Likewise.
44817         * modules/mbsstr (Files): Likewise.
44818         * modules/strcasestr (Files): Likewise.
44819         Suggested by Paul Eggert.
44820
44821 2007-12-30  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44824         defined.
44825
44826 2007-12-30  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/xmalloca.h: Include xalloc.h.
44829         (xnmalloca): New macro.
44830
44831 2007-12-30  Bruno Haible  <bruno@clisp.org>
44832
44833         * lib/malloca.h (nmalloca): New macro.
44834         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44835         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44836         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44837         knuth_morris_pratt_multibyte): Likewise.
44838         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44839         knuth_morris_pratt_multibyte): Likewise.
44840         * lib/memmem.c (knuth_morris_pratt): Likewise.
44841         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44842
44843 2007-12-25  Bruno Haible  <bruno@clisp.org>
44844
44845         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44846         * lib/glob.c: Don't include openat.h.
44847         (link_exists2_p): Add back the code that deals with the
44848         !GLOB_ALTDIRFUNC case.
44849         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44850         let it do the filename concatenation.
44851         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44852         * modules/glob (Depends-on): Remove openat.
44853
44854 2007-12-31  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/dirfd (License): Change to LGPLv2+.
44857         Approved by Jim Meyering.
44858
44859 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44862         when multiplying M by sizeof (size_t).
44863
44864 2007-12-10  Martin Lambers  <marlam@marlam.de>
44865
44866         Override getpagesize on mingw.
44867         * lib/getpagesize.c: New file.
44868         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44869         * modules/getpagesize (Files): Add lib/getpagesize.c.
44870         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44872         REPLACE_GETPAGESIZE.
44873         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44874
44875 2007-12-25  Bruno Haible  <bruno@clisp.org>
44876
44877         * modules/localcharset (Notice): New field.
44878         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44879         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44880
44881 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44882             Bruno Haible  <bruno@clisp.org>
44883
44884         Avoid using the syntax symbol() in formatted documentation.
44885         * MODULES.html.sh (func_module): When replacing symbol() with a
44886         hyperlink, remove the parentheses. Show an error if some remain.
44887         Recognize and render the '...' syntax.
44888         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44889         Rework. Add paragraph about GCC's inlining.
44890         * doc/alloca.texi: Likewise.
44891         * doc/error.texi: Remove parentheses from symbol reference.
44892         * doc/gnulib-intro.texi: Likewise.
44893         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44894         * modules/fnmatch (Description): Reword to say "the ... function".
44895         * modules/full-read (Description): Likewise.
44896         * modules/full-write (Description): Likewise.
44897         * modules/safe-read (Description): Likewise.
44898         * modules/safe-write (Description): Likewise.
44899         * modules/strchrnul (Description): Likewise.
44900         * modules/trim (Description): Likewise.
44901         * modules/error (Description): Remove parentheses from symbol
44902         references.
44903         * modules/verror (Description): Likewise.
44904         Reported by Karl Berry.
44905
44906 2007-12-25  Bruno Haible  <bruno@clisp.org>
44907
44908         Fixup after 2007-10-16 commit.
44909         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44910
44911 2007-12-24  Bruno Haible  <bruno@clisp.org>
44912
44913         Make --enable-relocatable work with DESTDIR.
44914         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44915         to compute installdir from destprog.
44916         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44917         also set the RELOC_DESTDIR variable.
44918         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44919
44920 2007-12-24  Bruno Haible  <bruno@clisp.org>
44921
44922         Fix link error due to xalloc_die().
44923         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44924         of xreadlink.
44925         * lib/relocwrapper.c: Update comments.
44926         * build-aux/install-reloc: Remove xreadlink.c from file list.
44927         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44928         xreadlink.c.
44929         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44930
44931 2007-12-24  Bruno Haible  <bruno@clisp.org>
44932
44933         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44934         * lib/setenv.h: Remove file.
44935         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44936         lib/setenv.h.
44937         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44938         (Depends-on): Add stdlib.
44939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44940         gl_FUNC_UNSETENV.
44941         (Include): Replace setenv.h with <stdlib.h>.
44942         * modules/unsetenv: New file.
44943         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44944         * lib/unsetenv.c: Include <stdlib.h> first.
44945         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44946         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44947         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44948         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44949         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44950         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44952         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44953         * doc/functions/unsetenv.texi: Update.
44954         * modules/xsetenv (Depends-on): Add unsetenv.
44955         * modules/getdate (Depends-on): Likewise.
44956         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44957         * lib/xsetenv.c: Don't include setenv.h.
44958         * lib/getdate.y: Likewise.
44959         * lib/relocwrapper.c: Likewise.
44960         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44961         (Depends-on): Add stdlib.
44962         * NEWS: Mention the changes.
44963         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44964
44965 2007-12-23  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44968         indentation.
44969
44970 2007-12-23  Bruno Haible  <bruno@clisp.org>
44971
44972         * lib/c-strcasestr.c: Add more comments.
44973         * lib/c-strstr.c: Likewise.
44974         * lib/mbscasestr.c: Likewise.
44975         * lib/mbsstr.c: Likewise.
44976         * lib/strcasestr.c: Likewise.
44977         * lib/memmem.c: Likewise.
44978
44979 2007-12-23  Bruno Haible  <bruno@clisp.org>
44980
44981         * tests/test-memmem.c: Include <string.h> first.
44982
44983 2007-12-22  Bruno Haible  <bruno@clisp.org>
44984
44985         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44986         the contents of $testsbase.
44987         Reported by Ralf Wildenhues.
44988
44989 2007-12-22  Bruno Haible  <bruno@clisp.org>
44990
44991         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44992         two variables local_ldadd_before, local_ldadd_last.
44993
44994 2007-12-20  Eric Blake  <ebb9@byu.net>
44995
44996         Work around circular library issue when cross-compiling.
44997         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44998         that progname.o does not need to pull in rpl_memcmp.
44999
45000 2007-12-19  Eric Blake  <ebb9@byu.net>
45001
45002         Fix memmem to avoid O(n^2) worst-case complexity.
45003         * lib/memmem.c (knuth_morris_pratt): New function.
45004         (memmem): Use it if first few naive iterations fail.
45005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45006         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45007         * modules/memchr (License): Likewise.
45008         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45009         malloca.
45010         * tests/test-memmem.c: Rewrite, borrowing ideas from
45011         test-mbsstr1.c; the old version wouldn't even compile!
45012         * modules/memmem-tests: New file.
45013         * lib/string.in.h (rpl_memmem): Add declaration.
45014         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45016         REPLACE_MEMMEM.
45017
45018 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45019
45020         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45021         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45022         before any system include files, and undef after them all.  This
45023         should fix a problem on VMS reported by John E. Malmberg in
45024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45025
45026 2007-12-17  Eric Blake  <ebb9@byu.net>
45027
45028         Revert addition of verify, for BSD/OS.
45029         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45030         can't handle large files, for the sake of obsolete platforms.
45031         * modules/fseeko (Depends-on): Remove verify.
45032         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45033         * doc/functions/ftello.texi (ftello): Likewise.
45034         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45035         Reported by Larry Jones.
45036
45037 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45038
45039         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45040         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45041
45042 2007-12-17  Jim Meyering  <meyering@redhat.com>
45043
45044         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45045         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45046         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45047         * modules/getcwd (Depends-on): Add openat.
45048         Reported by Petr Salinger.
45049
45050 2007-12-17  Bruno Haible  <bruno@clisp.org>
45051
45052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45053         avoid a segmentation fault of the configure test on x86_64 systems.
45054
45055 2007-12-15  Jim Meyering  <meyering@redhat.com>
45056
45057         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45058
45059 2007-12-13  Eric Blake  <ebb9@byu.net>
45060
45061         Another fseek test.
45062         * tests/test-fseek.c (main): Also test ungetc handling.
45063         * tests/test-fseeko.c (main): Likewise.
45064         * modules/fseeko (Depends-on): Add verify.
45065         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45066         large.
45067         Reported by Larry Jones.
45068
45069         Fix fseeko on mingw.
45070         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45071         seek.
45072
45073         Beef up fseek tests.
45074         * tests/test-fseek.c (main): Also test eof handling.
45075         * tests/test-fseeko.c (main): Likewise.
45076         Reported by Larry Jones.
45077
45078 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45079
45080         Fix fseeko on BSD-based platforms.
45081         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45082         successful seek.
45083
45084 2007-12-12  Eric Blake  <ebb9@byu.net>
45085
45086         Allow circular dependency of separate libtests.a
45087         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45088         when use_libtests.
45089
45090 2007-12-11  Eric Blake  <ebb9@byu.net>
45091
45092         Fix bug with -0.0L in previous patch.
45093         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45094         * tests/test-isnan.c (main): Also test on zeroes.
45095         * tests/test-isnanf.c (main): Likewise.
45096         * tests/test-isnanl.h (main): Likewise.
45097
45098         Detect pseudo-denormals on x86 even when cross-compiling.
45099         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45100         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45101         invalid bit patterns that happen to satisfy ==.
45102
45103         Avoid link failures with separate libtests.a.
45104         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45105         last, to satisfy circular dependencies.
45106
45107 2007-12-11  Eric Blake  <ebb9@byu.net>
45108         and Bruno Haible  <bruno@clisp.org>
45109
45110         Fix OpenBSD 4.0 <float.h> handling of long double.
45111         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45112         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45113         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45114
45115 2007-12-11  Jim Meyering  <meyering@redhat.com>
45116
45117         * users.txt: Add libvirt.
45118
45119         Support versions of autoconf prior to 2.59c.
45120         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45121         if it is not already defined.
45122
45123 2007-12-09  Bruno Haible  <bruno@clisp.org>
45124
45125         Let 'gnulib-tool --import' collect sources needed for the tests in
45126         tests/ rather than in lib/.
45127         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45128         argument. If true, add rules to generate libtests.a, and put libtests.a
45129         into $(LDADD). Consider source files in subdirectories and set
45130         uses_subdirs.
45131         (func_emit_initmacro_start, func_emit_initmacro_end,
45132         func_emit_initmacro_done): Pass all arguments explicitly.
45133         (func_import): Determine two module lists main_modules,
45134         testsrelated_modules. Determine use_libtests. Determine two variables
45135         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45136         instead of just sed_transform_lib_file. Determine two variables
45137         main_files and testsrelated_files. Compute 'files' as the union of
45138         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45139         func_add_or_update. In the generated gnulib-comp.m4, collect the
45140         object files for tests/ in different variables than those for lib/.
45141         Substitute LIBTESTS_LIBDEPS.
45142         (func_create_testdir): Combine the uses_subdirs results from
45143         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45144
45145 2007-12-09  Bruno Haible  <bruno@clisp.org>
45146
45147         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45148         the build-aux directory.
45149
45150 2007-12-09  Bruno Haible  <bruno@clisp.org>
45151
45152         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45153         introduced on 2006-09-09.
45154
45155 2007-12-07  Jim Meyering  <meyering@redhat.com>
45156
45157         Let these macros work also with autoconf-2.59.
45158         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45159         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45161
45162 2007-12-06  Jim Meyering  <meyering@redhat.com>
45163
45164         Avoid a configure-time syntax error in gl_FUNC_ACL.
45165         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45166         function in each branch, before testing the cache variable.
45167
45168 2007-12-04  Eric Blake  <ebb9@byu.net>
45169
45170         Make scripts executable.
45171         * build-aux/config.guess: Add execute permissions.
45172         * build-aux/config.sub: Likewise.
45173         * build-aux/gendocs.sh: Likewise.
45174
45175         Fix frexp on mingw.
45176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45177         cross-compiling.
45178         * doc/functions/frexp.texi (frexp): Document the bug.
45179
45180         Make cygwin fseeko check more reliable.
45181         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45182         version numbers, rather than unrelated feature check.
45183         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45184         * doc/functions/ftello.texi (ftello): Likewise.
45185         Reported by Bruno Haible.
45186
45187         * m4/strerror.m4: Bump version number.
45188
45189 2007-12-03  Bruno Haible  <bruno@clisp.org>
45190
45191         * doc/functions/mprotect.texi: Mention the mingw problem.
45192
45193 2007-12-03  Eric Blake  <ebb9@byu.net>
45194
45195         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45196         REPLACE_STRERROR is initialized before this macro.
45197
45198 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45199
45200         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45201         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45202         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45203         put -lsec in even for programs other than 'ls'.  This fixes a problem
45204         for gettext reported by Bruno Haible in
45205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45206         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45207         Add support for Solaris 10.  This isn't efficient, but should get the
45208         job done for now.
45209
45210 2007-12-03  James Youngman  <jay@gnu.org>
45211
45212         * doc/regexprops-generic.texi: change "an close-group" to "a
45213         close-group" and "illegal" to "not allowed".
45214
45215 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45216
45217         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45218         pr_byname.h. Needed for the rare case when the maintainer has done
45219         "make maintainer-clean" in the source directory and then attempts a
45220         build outside the source directory.
45221         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45222         scripts_byname.h.
45223
45224 2007-12-02  Martin Lambers <marlam@marlam.de>
45225             Bruno Haible  <bruno@clisp.org>
45226
45227         * lib/getpagesize.h: Remove file.
45228         * lib/unistd.in.h: Include declaration of getpagesize here.
45229         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45230         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45231         HAVE_SYS_PARAM_H.
45232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45233         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45234         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45235         (Depends-on): Add unistd.
45236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45237         (Include): Use <unistd.h> instead of getpagesize.h.
45238         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45239         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45240         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45241         gl_GETPAGESIZE invocation, already handled by module dependency.
45242         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45243
45244 2007-12-02  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/strings-tests: New file.
45247         * tests/test-strings.c: New file.
45248
45249         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45250         * lib/strings.in.h: New file.
45251         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45252         * m4/strings_h.m4: New file.
45253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45254         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45255         * modules/strings: New file.
45256         * modules/string (Makefile.am): Update.
45257         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45258         Reported by Karl Berry.
45259
45260 2007-12-01  Eric Blake  <ebb9@byu.net>
45261
45262         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45263         accomodate fix in cygwin 1.5.25.
45264
45265 2007-12-01  Jim Meyering  <meyering@redhat.com>
45266
45267         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45268         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45269         that would inhibit utf8-optimization of a regexp containing line-
45270         or buffer-anchors, e.g., `^', `$'.
45271
45272 2007-11-30  Bruno Haible  <bruno@clisp.org>
45273
45274         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45275         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45276         glthread_recursive_lock_init.
45277         * lib/lock.c (glthread_recursive_lock_init)
45278         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45279         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45280
45281 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         New function qset_acl, like set_acl but with syscall semantics.
45284         * lib/acl.h (qset_acl): New decl.
45285         * lib/acl.c (qset_acl): New function.
45286         (set_acl): Use new function.  Use more-consistent diagnostics.
45287
45288 2007-11-28  Jim Meyering  <meyering@redhat.com>
45289
45290         * modules/physmem (License): Change from GPL to LGPLv2+.
45291
45292 2007-11-26  Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45295         'long double' type has excess precision.
45296         Reported by Jim Meyering in
45297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45298
45299 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45300
45301         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45302         Sync from <http://gnu.org/licenses>.
45303         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45304         with license text from same location.
45305         * doc/maintain.texi, doc/standards.texi:  Sync from
45306         <http://savannah.gnu.org/projects/gnustandards>.
45307
45308 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45309         and Jim Meyering  <meyering@redhat.com>
45310
45311         Adjust getdate' grammar to accept a slightly more regular language.
45312         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45313         Before, the former was rejected.
45314         * lib/getdate.y (digits_to_date_time): New function, factored
45315         out of ...
45316         (number): ...here.  Just call digits_to_date_time.
45317         (hybrid): New non-terminal to handle an <unsigned number,
45318         signed relative offset> sequence consistently.
45319
45320 2007-11-18  Jim Meyering  <meyering@redhat.com>
45321
45322         Pull my changes from coreutils:
45323         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45324         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45325         use of $gnulib_tool_option_extras, so that it's separated from the
45326         preceding argument.
45327
45328         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45329         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45330         parent destination directories before copying a file into place.
45331
45332 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45333
45334         bootstrap: work also with 4-argument variant of AC_INIT
45335         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45336
45337 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45338
45339         Port test-getaddrinfo to Solaris.
45340         Problem reported by Bruno Haible in
45341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45342         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45343         explanation of setting 'hints'.
45344         Don't reject an implementation merely because it returns EAI_SERVICE.
45345         (EAI_SERVICE): Define to 0 if not defined.
45346
45347 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         The license of gnu-make and posix-shell is now "GPLed build tool".
45350         * modules/gnu-make (License): Likewise.
45351         * modules/posix-shell (License): Likewise.
45352
45353         New module posix-shell, for determining a POSIX shell
45354         or perhaps something that is close enough to a POSIX shell.
45355         * m4/posix-shell.m4: New file.
45356         * modules/posix-shell: New file.
45357
45358         * MODULES.html.sh: Mention new module.
45359
45360         New module gnu-make, for determining whether we're using GNU Make.
45361         * m4/gnu-make.m4: New file.
45362         * modules/gnu-make: New file.
45363         * MODULES.html.sh: Mention new module.
45364
45365 2007-11-14  Jim Meyering  <meyering@redhat.com>
45366
45367         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45368         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45369         use this macro to create a function _definition_.
45370         Remove useless "#undef ARGMATCH_DIE".
45371
45372 2007-11-14  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/config.charset: Update for OpenBSD 4.1.
45375         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45376
45377 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45378
45379         Document 64-bit #if problems in stdint.texi.
45380         * doc/headers/stdint.texi (stdint.h): Mention problems with
45381         64-bit-#if, and how to work around them.
45382
45383         Don't insist on 'long long int' support in the preprocessor.  It
45384         breaks too many things.  For example, PRIdMAX still uses a 'long
45385         long int' format with the latest Sun compiler, even though
45386         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45387         preprocessor problem.  This causes the latest coreutils to dump
45388         core on Solaris 10 sparc with the Sun C compiler.
45389         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45390         the troublesome expressions at configure-time, not at #if-time.
45391         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45392         preprocessor.
45393         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45394         compile-time C checks, done at 'configure'-time.
45395         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45396         * modules/inttypes (Makefile): Substitute the new symbols that
45397         gl_INTTYPES_H now generates.
45398         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45399
45400 2007-11-12  Bruno Haible  <bruno@clisp.org>
45401
45402         Tests for Unicode character classification functions.
45403
45404         * modules/unictype/bidicategory-byname-tests: New file.
45405         * modules/unictype/bidicategory-name-tests: New file.
45406         * modules/unictype/bidicategory-of-tests: New file.
45407         * modules/unictype/bidicategory-test-tests: New file.
45408         * modules/unictype/block-list-tests: New file.
45409         * modules/unictype/block-of-tests: New file.
45410         * modules/unictype/block-test-tests: New file.
45411         * modules/unictype/category-C-tests: New file.
45412         * modules/unictype/category-Cc-tests: New file.
45413         * modules/unictype/category-Cf-tests: New file.
45414         * modules/unictype/category-Cn-tests: New file.
45415         * modules/unictype/category-Co-tests: New file.
45416         * modules/unictype/category-Cs-tests: New file.
45417         * modules/unictype/category-L-tests: New file.
45418         * modules/unictype/category-Ll-tests: New file.
45419         * modules/unictype/category-Lm-tests: New file.
45420         * modules/unictype/category-Lo-tests: New file.
45421         * modules/unictype/category-Lt-tests: New file.
45422         * modules/unictype/category-Lu-tests: New file.
45423         * modules/unictype/category-M-tests: New file.
45424         * modules/unictype/category-Mc-tests: New file.
45425         * modules/unictype/category-Me-tests: New file.
45426         * modules/unictype/category-Mn-tests: New file.
45427         * modules/unictype/category-N-tests: New file.
45428         * modules/unictype/category-Nd-tests: New file.
45429         * modules/unictype/category-Nl-tests: New file.
45430         * modules/unictype/category-No-tests: New file.
45431         * modules/unictype/category-P-tests: New file.
45432         * modules/unictype/category-Pc-tests: New file.
45433         * modules/unictype/category-Pd-tests: New file.
45434         * modules/unictype/category-Pe-tests: New file.
45435         * modules/unictype/category-Pf-tests: New file.
45436         * modules/unictype/category-Pi-tests: New file.
45437         * modules/unictype/category-Po-tests: New file.
45438         * modules/unictype/category-Ps-tests: New file.
45439         * modules/unictype/category-S-tests: New file.
45440         * modules/unictype/category-Sc-tests: New file.
45441         * modules/unictype/category-Sk-tests: New file.
45442         * modules/unictype/category-Sm-tests: New file.
45443         * modules/unictype/category-So-tests: New file.
45444         * modules/unictype/category-Z-tests: New file.
45445         * modules/unictype/category-Zl-tests: New file.
45446         * modules/unictype/category-Zp-tests: New file.
45447         * modules/unictype/category-Zs-tests: New file.
45448         * modules/unictype/category-and-not-tests: New file.
45449         * modules/unictype/category-and-tests: New file.
45450         * modules/unictype/category-byname-tests: New file.
45451         * modules/unictype/category-name-tests: New file.
45452         * modules/unictype/category-none-tests: New file.
45453         * modules/unictype/category-of-tests: New file.
45454         * modules/unictype/category-or-tests: New file.
45455         * modules/unictype/category-test-withtable-tests: New file.
45456         * modules/unictype/combining-class-tests: New file.
45457         * modules/unictype/ctype-alnum-tests: New file.
45458         * modules/unictype/ctype-alpha-tests: New file.
45459         * modules/unictype/ctype-blank-tests: New file.
45460         * modules/unictype/ctype-cntrl-tests: New file.
45461         * modules/unictype/ctype-digit-tests: New file.
45462         * modules/unictype/ctype-graph-tests: New file.
45463         * modules/unictype/ctype-lower-tests: New file.
45464         * modules/unictype/ctype-print-tests: New file.
45465         * modules/unictype/ctype-punct-tests: New file.
45466         * modules/unictype/ctype-space-tests: New file.
45467         * modules/unictype/ctype-upper-tests: New file.
45468         * modules/unictype/ctype-xdigit-tests: New file.
45469         * modules/unictype/decimal-digit-tests: New file.
45470         * modules/unictype/digit-tests: New file.
45471         * modules/unictype/mirror-tests: New file.
45472         * modules/unictype/numeric-tests: New file.
45473         * modules/unictype/property-alphabetic-tests: New file.
45474         * modules/unictype/property-ascii-hex-digit-tests: New file.
45475         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45476         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45477         * modules/unictype/property-bidi-block-separator-tests: New file.
45478         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45479         * modules/unictype/property-bidi-common-separator-tests: New file.
45480         * modules/unictype/property-bidi-control-tests: New file.
45481         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45482         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45483         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45484         * modules/unictype/property-bidi-european-digit-tests: New file.
45485         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45486         * modules/unictype/property-bidi-left-to-right-tests: New file.
45487         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45488         * modules/unictype/property-bidi-other-neutral-tests: New file.
45489         * modules/unictype/property-bidi-pdf-tests: New file.
45490         * modules/unictype/property-bidi-segment-separator-tests: New file.
45491         * modules/unictype/property-bidi-whitespace-tests: New file.
45492         * modules/unictype/property-byname-tests: New file.
45493         * modules/unictype/property-combining-tests: New file.
45494         * modules/unictype/property-composite-tests: New file.
45495         * modules/unictype/property-currency-symbol-tests: New file.
45496         * modules/unictype/property-dash-tests: New file.
45497         * modules/unictype/property-decimal-digit-tests: New file.
45498         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45499         * modules/unictype/property-deprecated-tests: New file.
45500         * modules/unictype/property-diacritic-tests: New file.
45501         * modules/unictype/property-extender-tests: New file.
45502         * modules/unictype/property-format-control-tests: New file.
45503         * modules/unictype/property-grapheme-base-tests: New file.
45504         * modules/unictype/property-grapheme-extend-tests: New file.
45505         * modules/unictype/property-grapheme-link-tests: New file.
45506         * modules/unictype/property-hex-digit-tests: New file.
45507         * modules/unictype/property-hyphen-tests: New file.
45508         * modules/unictype/property-id-continue-tests: New file.
45509         * modules/unictype/property-id-start-tests: New file.
45510         * modules/unictype/property-ideographic-tests: New file.
45511         * modules/unictype/property-ids-binary-operator-tests: New file.
45512         * modules/unictype/property-ids-trinary-operator-tests: New file.
45513         * modules/unictype/property-ignorable-control-tests: New file.
45514         * modules/unictype/property-iso-control-tests: New file.
45515         * modules/unictype/property-join-control-tests: New file.
45516         * modules/unictype/property-left-of-pair-tests: New file.
45517         * modules/unictype/property-line-separator-tests: New file.
45518         * modules/unictype/property-logical-order-exception-tests: New file.
45519         * modules/unictype/property-lowercase-tests: New file.
45520         * modules/unictype/property-math-tests: New file.
45521         * modules/unictype/property-non-break-tests: New file.
45522         * modules/unictype/property-not-a-character-tests: New file.
45523         * modules/unictype/property-numeric-tests: New file.
45524         * modules/unictype/property-other-alphabetic-tests: New file.
45525         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45526         * modules/unictype/property-other-grapheme-extend-tests: New file.
45527         * modules/unictype/property-other-id-continue-tests: New file.
45528         * modules/unictype/property-other-id-start-tests: New file.
45529         * modules/unictype/property-other-lowercase-tests: New file.
45530         * modules/unictype/property-other-math-tests: New file.
45531         * modules/unictype/property-other-uppercase-tests: New file.
45532         * modules/unictype/property-paired-punctuation-tests: New file.
45533         * modules/unictype/property-paragraph-separator-tests: New file.
45534         * modules/unictype/property-pattern-syntax-tests: New file.
45535         * modules/unictype/property-pattern-white-space-tests: New file.
45536         * modules/unictype/property-private-use-tests: New file.
45537         * modules/unictype/property-punctuation-tests: New file.
45538         * modules/unictype/property-quotation-mark-tests: New file.
45539         * modules/unictype/property-radical-tests: New file.
45540         * modules/unictype/property-sentence-terminal-tests: New file.
45541         * modules/unictype/property-soft-dotted-tests: New file.
45542         * modules/unictype/property-space-tests: New file.
45543         * modules/unictype/property-terminal-punctuation-tests: New file.
45544         * modules/unictype/property-test-tests: New file.
45545         * modules/unictype/property-titlecase-tests: New file.
45546         * modules/unictype/property-unassigned-code-value-tests: New file.
45547         * modules/unictype/property-unified-ideograph-tests: New file.
45548         * modules/unictype/property-uppercase-tests: New file.
45549         * modules/unictype/property-variation-selector-tests: New file.
45550         * modules/unictype/property-white-space-tests: New file.
45551         * modules/unictype/property-xid-continue-tests: New file.
45552         * modules/unictype/property-xid-start-tests: New file.
45553         * modules/unictype/property-zero-width-tests: New file.
45554         * modules/unictype/scripts-tests: New file.
45555         * modules/unictype/syntax-c-ident-tests: New file.
45556         * modules/unictype/syntax-c-whitespace-tests: New file.
45557         * modules/unictype/syntax-java-ident-tests: New file.
45558         * modules/unictype/syntax-java-whitespace-tests: New file.
45559         * tests/unictype/test-bidi_byname.c: New file.
45560         * tests/unictype/test-bidi_name.c: New file.
45561         * tests/unictype/test-bidi_of.c: New file.
45562         * tests/unictype/test-bidi_test.c: New file.
45563         * tests/unictype/test-block_list.c: New file.
45564         * tests/unictype/test-block_of.c: New file.
45565         * tests/unictype/test-block_test.c: New file.
45566         * tests/unictype/test-categ_and.c: New file.
45567         * tests/unictype/test-categ_and_not.c: New file.
45568         * tests/unictype/test-categ_byname.c: New file.
45569         * tests/unictype/test-categ_name.c: New file.
45570         * tests/unictype/test-categ_none.c: New file.
45571         * tests/unictype/test-categ_of.c: New file.
45572         * tests/unictype/test-categ_or.c: New file.
45573         * tests/unictype/test-categ_test_withtable.c: New file.
45574         * tests/unictype/test-combining.c: New file.
45575         * tests/unictype/test-decdigit.c: New file.
45576         * tests/unictype/test-digit.c: New file.
45577         * tests/unictype/test-mirror.c: New file.
45578         * tests/unictype/test-numeric.c: New file.
45579         * tests/unictype/test-pr_byname.c: New file.
45580         * tests/unictype/test-pr_test.c: New file.
45581         * tests/unictype/test-predicate-part1.h: New file.
45582         * tests/unictype/test-predicate-part2.h: New file.
45583         * tests/unictype/test-scripts.c: New file.
45584         * tests/unictype/test-sy_c_ident.c: New file.
45585         * tests/unictype/test-sy_java_ident.c: New file.
45586
45587         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45588         for Unicode 5.0.0.
45589         * tests/unictype/test-categ_Cc.c: Likewise.
45590         * tests/unictype/test-categ_Cf.c: Likewise.
45591         * tests/unictype/test-categ_Cn.c: Likewise.
45592         * tests/unictype/test-categ_Co.c: Likewise.
45593         * tests/unictype/test-categ_Cs.c: Likewise.
45594         * tests/unictype/test-categ_L.c: Likewise.
45595         * tests/unictype/test-categ_Ll.c: Likewise.
45596         * tests/unictype/test-categ_Lm.c: Likewise.
45597         * tests/unictype/test-categ_Lo.c: Likewise.
45598         * tests/unictype/test-categ_Lt.c: Likewise.
45599         * tests/unictype/test-categ_Lu.c: Likewise.
45600         * tests/unictype/test-categ_M.c: Likewise.
45601         * tests/unictype/test-categ_Mc.c: Likewise.
45602         * tests/unictype/test-categ_Me.c: Likewise.
45603         * tests/unictype/test-categ_Mn.c: Likewise.
45604         * tests/unictype/test-categ_N.c: Likewise.
45605         * tests/unictype/test-categ_Nd.c: Likewise.
45606         * tests/unictype/test-categ_Nl.c: Likewise.
45607         * tests/unictype/test-categ_No.c: Likewise.
45608         * tests/unictype/test-categ_P.c: Likewise.
45609         * tests/unictype/test-categ_Pc.c: Likewise.
45610         * tests/unictype/test-categ_Pd.c: Likewise.
45611         * tests/unictype/test-categ_Pe.c: Likewise.
45612         * tests/unictype/test-categ_Pf.c: Likewise.
45613         * tests/unictype/test-categ_Pi.c: Likewise.
45614         * tests/unictype/test-categ_Po.c: Likewise.
45615         * tests/unictype/test-categ_Ps.c: Likewise.
45616         * tests/unictype/test-categ_S.c: Likewise.
45617         * tests/unictype/test-categ_Sc.c: Likewise.
45618         * tests/unictype/test-categ_Sk.c: Likewise.
45619         * tests/unictype/test-categ_Sm.c: Likewise.
45620         * tests/unictype/test-categ_So.c: Likewise.
45621         * tests/unictype/test-categ_Z.c: Likewise.
45622         * tests/unictype/test-categ_Zl.c: Likewise.
45623         * tests/unictype/test-categ_Zp.c: Likewise.
45624         * tests/unictype/test-categ_Zs.c: Likewise.
45625         * tests/unictype/test-ctype_alnum.c: Likewise.
45626         * tests/unictype/test-ctype_alpha.c: Likewise.
45627         * tests/unictype/test-ctype_blank.c: Likewise.
45628         * tests/unictype/test-ctype_cntrl.c: Likewise.
45629         * tests/unictype/test-ctype_digit.c: Likewise.
45630         * tests/unictype/test-ctype_graph.c: Likewise.
45631         * tests/unictype/test-ctype_lower.c: Likewise.
45632         * tests/unictype/test-ctype_print.c: Likewise.
45633         * tests/unictype/test-ctype_punct.c: Likewise.
45634         * tests/unictype/test-ctype_space.c: Likewise.
45635         * tests/unictype/test-ctype_upper.c: Likewise.
45636         * tests/unictype/test-ctype_xdigit.c: Likewise.
45637         * tests/unictype/test-decdigit.h: Likewise.
45638         * tests/unictype/test-digit.h: Likewise.
45639         * tests/unictype/test-numeric.h: Likewise.
45640         * tests/unictype/test-pr_alphabetic.c: Likewise.
45641         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45642         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45643         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45644         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45645         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45646         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45647         * tests/unictype/test-pr_bidi_control.c: Likewise.
45648         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45649         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45650         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45651         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45652         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45653         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45654         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45655         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45656         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45657         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45658         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45659         * tests/unictype/test-pr_combining.c: Likewise.
45660         * tests/unictype/test-pr_composite.c: Likewise.
45661         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45662         * tests/unictype/test-pr_dash.c: Likewise.
45663         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45664         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45665         * tests/unictype/test-pr_deprecated.c: Likewise.
45666         * tests/unictype/test-pr_diacritic.c: Likewise.
45667         * tests/unictype/test-pr_extender.c: Likewise.
45668         * tests/unictype/test-pr_format_control.c: Likewise.
45669         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45670         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45671         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45672         * tests/unictype/test-pr_hex_digit.c: Likewise.
45673         * tests/unictype/test-pr_hyphen.c: Likewise.
45674         * tests/unictype/test-pr_id_continue.c: Likewise.
45675         * tests/unictype/test-pr_id_start.c: Likewise.
45676         * tests/unictype/test-pr_ideographic.c: Likewise.
45677         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45678         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45679         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45680         * tests/unictype/test-pr_iso_control.c: Likewise.
45681         * tests/unictype/test-pr_join_control.c: Likewise.
45682         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45683         * tests/unictype/test-pr_line_separator.c: Likewise.
45684         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45685         * tests/unictype/test-pr_lowercase.c: Likewise.
45686         * tests/unictype/test-pr_math.c: Likewise.
45687         * tests/unictype/test-pr_non_break.c: Likewise.
45688         * tests/unictype/test-pr_not_a_character.c: Likewise.
45689         * tests/unictype/test-pr_numeric.c: Likewise.
45690         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45691         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45692         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45693         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45694         * tests/unictype/test-pr_other_id_start.c: Likewise.
45695         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45696         * tests/unictype/test-pr_other_math.c: Likewise.
45697         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45698         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45699         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45700         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45701         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45702         * tests/unictype/test-pr_private_use.c: Likewise.
45703         * tests/unictype/test-pr_punctuation.c: Likewise.
45704         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45705         * tests/unictype/test-pr_radical.c: Likewise.
45706         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45707         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45708         * tests/unictype/test-pr_space.c: Likewise.
45709         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45710         * tests/unictype/test-pr_titlecase.c: Likewise.
45711         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45712         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45713         * tests/unictype/test-pr_uppercase.c: Likewise.
45714         * tests/unictype/test-pr_variation_selector.c: Likewise.
45715         * tests/unictype/test-pr_white_space.c: Likewise.
45716         * tests/unictype/test-pr_xid_continue.c: Likewise.
45717         * tests/unictype/test-pr_xid_start.c: Likewise.
45718         * tests/unictype/test-pr_zero_width.c: Likewise.
45719         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45720         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45721
45722 2007-11-12  Bruno Haible  <bruno@clisp.org>
45723
45724         Unicode character classification functions.
45725         * lib/unictype.h: New file.
45726         * modules/unictype/base: New file.
45727         * modules/unictype/category-L: New file.
45728         * modules/unictype/category-Lu: New file.
45729         * modules/unictype/category-Ll: New file.
45730         * modules/unictype/category-Lt: New file.
45731         * modules/unictype/category-Lm: New file.
45732         * modules/unictype/category-Lo: New file.
45733         * modules/unictype/category-M: New file.
45734         * modules/unictype/category-Mn: New file.
45735         * modules/unictype/category-Mc: New file.
45736         * modules/unictype/category-Me: New file.
45737         * modules/unictype/category-N: New file.
45738         * modules/unictype/category-Nd: New file.
45739         * modules/unictype/category-Nl: New file.
45740         * modules/unictype/category-No: New file.
45741         * modules/unictype/category-P: New file.
45742         * modules/unictype/category-Pc: New file.
45743         * modules/unictype/category-Pd: New file.
45744         * modules/unictype/category-Ps: New file.
45745         * modules/unictype/category-Pe: New file.
45746         * modules/unictype/category-Pi: New file.
45747         * modules/unictype/category-Pf: New file.
45748         * modules/unictype/category-Po: New file.
45749         * modules/unictype/category-S: New file.
45750         * modules/unictype/category-Sm: New file.
45751         * modules/unictype/category-Sc: New file.
45752         * modules/unictype/category-Sk: New file.
45753         * modules/unictype/category-So: New file.
45754         * modules/unictype/category-Z: New file.
45755         * modules/unictype/category-Zs: New file.
45756         * modules/unictype/category-Zl: New file.
45757         * modules/unictype/category-Zp: New file.
45758         * modules/unictype/category-C: New file.
45759         * modules/unictype/category-Cc: New file.
45760         * modules/unictype/category-Cf: New file.
45761         * modules/unictype/category-Cs: New file.
45762         * modules/unictype/category-Co: New file.
45763         * modules/unictype/category-Cn: New file.
45764         * modules/unictype/category-or: New file.
45765         * modules/unictype/category-of: New file.
45766         * modules/unictype/category-test: New file.
45767         * modules/unictype/category-test-withtable: New file.
45768         * modules/unictype/category-byname: New file.
45769         * modules/unictype/category-none: New file.
45770         * modules/unictype/category-and: New file.
45771         * modules/unictype/category-and-not: New file.
45772         * modules/unictype/category-name: New file.
45773         * modules/unictype/combining-class: New file.
45774         * modules/unictype/category-all: New file.
45775         * modules/unictype/bidicategory-all: New file.
45776         * modules/unictype/bidicategory-byname: New file.
45777         * modules/unictype/bidicategory-name: New file.
45778         * modules/unictype/bidicategory-of: New file.
45779         * modules/unictype/bidicategory-test: New file.
45780         * modules/unictype/decimal-digit: New file.
45781         * modules/unictype/digit: New file.
45782         * modules/unictype/numeric: New file.
45783         * modules/unictype/mirror: New file.
45784         * modules/unictype/property-white-space: New file.
45785         * modules/unictype/property-alphabetic: New file.
45786         * modules/unictype/property-other-alphabetic: New file.
45787         * modules/unictype/property-not-a-character: New file.
45788         * modules/unictype/property-default-ignorable-code-point: New file.
45789         * modules/unictype/property-other-default-ignorable-code-point: New
45790         file.
45791         * modules/unictype/property-deprecated: New file.
45792         * modules/unictype/property-logical-order-exception: New file.
45793         * modules/unictype/property-variation-selector: New file.
45794         * modules/unictype/property-private-use: New file.
45795         * modules/unictype/property-unassigned-code-value: New file.
45796         * modules/unictype/property-uppercase: New file.
45797         * modules/unictype/property-other-uppercase: New file.
45798         * modules/unictype/property-lowercase: New file.
45799         * modules/unictype/property-other-lowercase: New file.
45800         * modules/unictype/property-titlecase: New file.
45801         * modules/unictype/property-soft-dotted: New file.
45802         * modules/unictype/property-id-start: New file.
45803         * modules/unictype/property-other-id-start: New file.
45804         * modules/unictype/property-id-continue: New file.
45805         * modules/unictype/property-other-id-continue: New file.
45806         * modules/unictype/property-xid-start: New file.
45807         * modules/unictype/property-xid-continue: New file.
45808         * modules/unictype/property-pattern-white-space: New file.
45809         * modules/unictype/property-pattern-syntax: New file.
45810         * modules/unictype/property-join-control: New file.
45811         * modules/unictype/property-grapheme-base: New file.
45812         * modules/unictype/property-grapheme-extend: New file.
45813         * modules/unictype/property-other-grapheme-extend: New file.
45814         * modules/unictype/property-grapheme-link: New file.
45815         * modules/unictype/property-bidi-control: New file.
45816         * modules/unictype/property-bidi-left-to-right: New file.
45817         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45818         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45819         * modules/unictype/property-bidi-european-digit: New file.
45820         * modules/unictype/property-bidi-eur-num-separator: New file.
45821         * modules/unictype/property-bidi-eur-num-terminator: New file.
45822         * modules/unictype/property-bidi-arabic-digit: New file.
45823         * modules/unictype/property-bidi-common-separator: New file.
45824         * modules/unictype/property-bidi-block-separator: New file.
45825         * modules/unictype/property-bidi-segment-separator: New file.
45826         * modules/unictype/property-bidi-whitespace: New file.
45827         * modules/unictype/property-bidi-non-spacing-mark: New file.
45828         * modules/unictype/property-bidi-boundary-neutral: New file.
45829         * modules/unictype/property-bidi-pdf: New file.
45830         * modules/unictype/property-bidi-embedding-or-override: New file.
45831         * modules/unictype/property-bidi-other-neutral: New file.
45832         * modules/unictype/property-hex-digit: New file.
45833         * modules/unictype/property-ascii-hex-digit: New file.
45834         * modules/unictype/property-ideographic: New file.
45835         * modules/unictype/property-unified-ideograph: New file.
45836         * modules/unictype/property-radical: New file.
45837         * modules/unictype/property-ids-binary-operator: New file.
45838         * modules/unictype/property-ids-trinary-operator: New file.
45839         * modules/unictype/property-zero-width: New file.
45840         * modules/unictype/property-space: New file.
45841         * modules/unictype/property-non-break: New file.
45842         * modules/unictype/property-iso-control: New file.
45843         * modules/unictype/property-format-control: New file.
45844         * modules/unictype/property-dash: New file.
45845         * modules/unictype/property-hyphen: New file.
45846         * modules/unictype/property-punctuation: New file.
45847         * modules/unictype/property-line-separator: New file.
45848         * modules/unictype/property-paragraph-separator: New file.
45849         * modules/unictype/property-quotation-mark: New file.
45850         * modules/unictype/property-sentence-terminal: New file.
45851         * modules/unictype/property-terminal-punctuation: New file.
45852         * modules/unictype/property-currency-symbol: New file.
45853         * modules/unictype/property-math: New file.
45854         * modules/unictype/property-other-math: New file.
45855         * modules/unictype/property-paired-punctuation: New file.
45856         * modules/unictype/property-left-of-pair: New file.
45857         * modules/unictype/property-combining: New file.
45858         * modules/unictype/property-composite: New file.
45859         * modules/unictype/property-decimal-digit: New file.
45860         * modules/unictype/property-numeric: New file.
45861         * modules/unictype/property-diacritic: New file.
45862         * modules/unictype/property-extender: New file.
45863         * modules/unictype/property-ignorable-control: New file.
45864         * modules/unictype/property-test: New file.
45865         * modules/unictype/property-byname: New file.
45866         * modules/unictype/property-all: New file.
45867         * modules/unictype/scripts: New file.
45868         * modules/unictype/scripts-all: New file.
45869         * modules/unictype/block-of: New file.
45870         * modules/unictype/block-test: New file.
45871         * modules/unictype/block-list: New file.
45872         * modules/unictype/block-all: New file.
45873         * modules/unictype/syntax-c-whitespace: New file.
45874         * modules/unictype/syntax-java-whitespace: New file.
45875         * modules/unictype/syntax-c-ident: New file.
45876         * modules/unictype/syntax-java-ident: New file.
45877         * modules/unictype/ctype-alnum: New file.
45878         * modules/unictype/ctype-alpha: New file.
45879         * modules/unictype/ctype-cntrl: New file.
45880         * modules/unictype/ctype-digit: New file.
45881         * modules/unictype/ctype-graph: New file.
45882         * modules/unictype/ctype-lower: New file.
45883         * modules/unictype/ctype-print: New file.
45884         * modules/unictype/ctype-punct: New file.
45885         * modules/unictype/ctype-space: New file.
45886         * modules/unictype/ctype-upper: New file.
45887         * modules/unictype/ctype-xdigit: New file.
45888         * modules/unictype/ctype-blank: New file.
45889         * lib/unictype/bidi_byname.c: New file.
45890         * lib/unictype/bidi_name.c: New file.
45891         * lib/unictype/bidi_of.c: New file.
45892         * lib/unictype/bidi_test.c: New file.
45893         * lib/unictype/bitmap.h: New file.
45894         * lib/unictype/block_test.c: New file.
45895         * lib/unictype/blocks.c: New file.
45896         * lib/unictype/categ_C.c: New file.
45897         * lib/unictype/categ_Cc.c: New file.
45898         * lib/unictype/categ_Cf.c: New file.
45899         * lib/unictype/categ_Cn.c: New file.
45900         * lib/unictype/categ_Co.c: New file.
45901         * lib/unictype/categ_Cs.c: New file.
45902         * lib/unictype/categ_L.c: New file.
45903         * lib/unictype/categ_Ll.c: New file.
45904         * lib/unictype/categ_Lm.c: New file.
45905         * lib/unictype/categ_Lo.c: New file.
45906         * lib/unictype/categ_Lt.c: New file.
45907         * lib/unictype/categ_Lu.c: New file.
45908         * lib/unictype/categ_M.c: New file.
45909         * lib/unictype/categ_Mc.c: New file.
45910         * lib/unictype/categ_Me.c: New file.
45911         * lib/unictype/categ_Mn.c: New file.
45912         * lib/unictype/categ_N.c: New file.
45913         * lib/unictype/categ_Nd.c: New file.
45914         * lib/unictype/categ_Nl.c: New file.
45915         * lib/unictype/categ_No.c: New file.
45916         * lib/unictype/categ_P.c: New file.
45917         * lib/unictype/categ_Pc.c: New file.
45918         * lib/unictype/categ_Pd.c: New file.
45919         * lib/unictype/categ_Pe.c: New file.
45920         * lib/unictype/categ_Pf.c: New file.
45921         * lib/unictype/categ_Pi.c: New file.
45922         * lib/unictype/categ_Po.c: New file.
45923         * lib/unictype/categ_Ps.c: New file.
45924         * lib/unictype/categ_S.c: New file.
45925         * lib/unictype/categ_Sc.c: New file.
45926         * lib/unictype/categ_Sk.c: New file.
45927         * lib/unictype/categ_Sm.c: New file.
45928         * lib/unictype/categ_So.c: New file.
45929         * lib/unictype/categ_Z.c: New file.
45930         * lib/unictype/categ_Zl.c: New file.
45931         * lib/unictype/categ_Zp.c: New file.
45932         * lib/unictype/categ_Zs.c: New file.
45933         * lib/unictype/categ_and.c: New file.
45934         * lib/unictype/categ_and_not.c: New file.
45935         * lib/unictype/categ_byname.c: New file.
45936         * lib/unictype/categ_name.c: New file.
45937         * lib/unictype/categ_none.c: New file.
45938         * lib/unictype/categ_of.c: New file.
45939         * lib/unictype/categ_or.c: New file.
45940         * lib/unictype/categ_test.c: New file.
45941         * lib/unictype/combining.c: New file.
45942         * lib/unictype/ctype_alnum.c: New file.
45943         * lib/unictype/ctype_alpha.c: New file.
45944         * lib/unictype/ctype_blank.c: New file.
45945         * lib/unictype/ctype_cntrl.c: New file.
45946         * lib/unictype/ctype_digit.c: New file.
45947         * lib/unictype/ctype_graph.c: New file.
45948         * lib/unictype/ctype_lower.c: New file.
45949         * lib/unictype/ctype_print.c: New file.
45950         * lib/unictype/ctype_punct.c: New file.
45951         * lib/unictype/ctype_space.c: New file.
45952         * lib/unictype/ctype_upper.c: New file.
45953         * lib/unictype/ctype_xdigit.c: New file.
45954         * lib/unictype/decdigit.c: New file.
45955         * lib/unictype/digit.c: New file.
45956         * lib/unictype/identsyntaxmap.h: New file.
45957         * lib/unictype/mirror.c: New file.
45958         * lib/unictype/numeric.c: New file.
45959         * lib/unictype/pr_alphabetic.c: New file.
45960         * lib/unictype/pr_ascii_hex_digit.c: New file.
45961         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45962         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45963         * lib/unictype/pr_bidi_block_separator.c: New file.
45964         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45965         * lib/unictype/pr_bidi_common_separator.c: New file.
45966         * lib/unictype/pr_bidi_control.c: New file.
45967         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45968         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45969         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45970         * lib/unictype/pr_bidi_european_digit.c: New file.
45971         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45972         * lib/unictype/pr_bidi_left_to_right.c: New file.
45973         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45974         * lib/unictype/pr_bidi_other_neutral.c: New file.
45975         * lib/unictype/pr_bidi_pdf.c: New file.
45976         * lib/unictype/pr_bidi_segment_separator.c: New file.
45977         * lib/unictype/pr_bidi_whitespace.c: New file.
45978         * lib/unictype/pr_byname.c: New file.
45979         * lib/unictype/pr_byname.gperf: New file.
45980         * lib/unictype/pr_combining.c: New file.
45981         * lib/unictype/pr_composite.c: New file.
45982         * lib/unictype/pr_currency_symbol.c: New file.
45983         * lib/unictype/pr_dash.c: New file.
45984         * lib/unictype/pr_decimal_digit.c: New file.
45985         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45986         * lib/unictype/pr_deprecated.c: New file.
45987         * lib/unictype/pr_diacritic.c: New file.
45988         * lib/unictype/pr_extender.c: New file.
45989         * lib/unictype/pr_format_control.c: New file.
45990         * lib/unictype/pr_grapheme_base.c: New file.
45991         * lib/unictype/pr_grapheme_extend.c: New file.
45992         * lib/unictype/pr_grapheme_link.c: New file.
45993         * lib/unictype/pr_hex_digit.c: New file.
45994         * lib/unictype/pr_hyphen.c: New file.
45995         * lib/unictype/pr_id_continue.c: New file.
45996         * lib/unictype/pr_id_start.c: New file.
45997         * lib/unictype/pr_ideographic.c: New file.
45998         * lib/unictype/pr_ids_binary_operator.c: New file.
45999         * lib/unictype/pr_ids_trinary_operator.c: New file.
46000         * lib/unictype/pr_ignorable_control.c: New file.
46001         * lib/unictype/pr_iso_control.c: New file.
46002         * lib/unictype/pr_join_control.c: New file.
46003         * lib/unictype/pr_left_of_pair.c: New file.
46004         * lib/unictype/pr_line_separator.c: New file.
46005         * lib/unictype/pr_logical_order_exception.c: New file.
46006         * lib/unictype/pr_lowercase.c: New file.
46007         * lib/unictype/pr_math.c: New file.
46008         * lib/unictype/pr_non_break.c: New file.
46009         * lib/unictype/pr_not_a_character.c: New file.
46010         * lib/unictype/pr_numeric.c: New file.
46011         * lib/unictype/pr_other_alphabetic.c: New file.
46012         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46013         * lib/unictype/pr_other_grapheme_extend.c: New file.
46014         * lib/unictype/pr_other_id_continue.c: New file.
46015         * lib/unictype/pr_other_id_start.c: New file.
46016         * lib/unictype/pr_other_lowercase.c: New file.
46017         * lib/unictype/pr_other_math.c: New file.
46018         * lib/unictype/pr_other_uppercase.c: New file.
46019         * lib/unictype/pr_paired_punctuation.c: New file.
46020         * lib/unictype/pr_paragraph_separator.c: New file.
46021         * lib/unictype/pr_pattern_syntax.c: New file.
46022         * lib/unictype/pr_pattern_white_space.c: New file.
46023         * lib/unictype/pr_private_use.c: New file.
46024         * lib/unictype/pr_punctuation.c: New file.
46025         * lib/unictype/pr_quotation_mark.c: New file.
46026         * lib/unictype/pr_radical.c: New file.
46027         * lib/unictype/pr_sentence_terminal.c: New file.
46028         * lib/unictype/pr_soft_dotted.c: New file.
46029         * lib/unictype/pr_space.c: New file.
46030         * lib/unictype/pr_terminal_punctuation.c: New file.
46031         * lib/unictype/pr_test.c: New file.
46032         * lib/unictype/pr_titlecase.c: New file.
46033         * lib/unictype/pr_unassigned_code_value.c: New file.
46034         * lib/unictype/pr_unified_ideograph.c: New file.
46035         * lib/unictype/pr_uppercase.c: New file.
46036         * lib/unictype/pr_variation_selector.c: New file.
46037         * lib/unictype/pr_white_space.c: New file.
46038         * lib/unictype/pr_xid_continue.c: New file.
46039         * lib/unictype/pr_xid_start.c: New file.
46040         * lib/unictype/pr_zero_width.c: New file.
46041         * lib/unictype/scripts.c: New file.
46042         * lib/unictype/sy_c_ident.c: New file.
46043         * lib/unictype/sy_c_whitespace.c: New file.
46044         * lib/unictype/sy_java_ident.c: New file.
46045         * lib/unictype/sy_java_whitespace.c: New file.
46046
46047         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46048         Unicode 5.0.0.
46049         * lib/unictype/blocks.h: Likewise.
46050         * lib/unictype/categ_C.h: Likewise.
46051         * lib/unictype/categ_Cc.h: Likewise.
46052         * lib/unictype/categ_Cf.h: Likewise.
46053         * lib/unictype/categ_Cn.h: Likewise.
46054         * lib/unictype/categ_Co.h: Likewise.
46055         * lib/unictype/categ_Cs.h: Likewise.
46056         * lib/unictype/categ_L.h: Likewise.
46057         * lib/unictype/categ_Ll.h: Likewise.
46058         * lib/unictype/categ_Lm.h: Likewise.
46059         * lib/unictype/categ_Lo.h: Likewise.
46060         * lib/unictype/categ_Lt.h: Likewise.
46061         * lib/unictype/categ_Lu.h: Likewise.
46062         * lib/unictype/categ_M.h: Likewise.
46063         * lib/unictype/categ_Mc.h: Likewise.
46064         * lib/unictype/categ_Me.h: Likewise.
46065         * lib/unictype/categ_Mn.h: Likewise.
46066         * lib/unictype/categ_N.h: Likewise.
46067         * lib/unictype/categ_Nd.h: Likewise.
46068         * lib/unictype/categ_Nl.h: Likewise.
46069         * lib/unictype/categ_No.h: Likewise.
46070         * lib/unictype/categ_P.h: Likewise.
46071         * lib/unictype/categ_Pc.h: Likewise.
46072         * lib/unictype/categ_Pd.h: Likewise.
46073         * lib/unictype/categ_Pe.h: Likewise.
46074         * lib/unictype/categ_Pf.h: Likewise.
46075         * lib/unictype/categ_Pi.h: Likewise.
46076         * lib/unictype/categ_Po.h: Likewise.
46077         * lib/unictype/categ_Ps.h: Likewise.
46078         * lib/unictype/categ_S.h: Likewise.
46079         * lib/unictype/categ_Sc.h: Likewise.
46080         * lib/unictype/categ_Sk.h: Likewise.
46081         * lib/unictype/categ_Sm.h: Likewise.
46082         * lib/unictype/categ_So.h: Likewise.
46083         * lib/unictype/categ_Z.h: Likewise.
46084         * lib/unictype/categ_Zl.h: Likewise.
46085         * lib/unictype/categ_Zp.h: Likewise.
46086         * lib/unictype/categ_Zs.h: Likewise.
46087         * lib/unictype/categ_of.h: Likewise.
46088         * lib/unictype/combining.h: Likewise.
46089         * lib/unictype/ctype_alnum.h: Likewise.
46090         * lib/unictype/ctype_alpha.h: Likewise.
46091         * lib/unictype/ctype_blank.h: Likewise.
46092         * lib/unictype/ctype_cntrl.h: Likewise.
46093         * lib/unictype/ctype_digit.h: Likewise.
46094         * lib/unictype/ctype_graph.h: Likewise.
46095         * lib/unictype/ctype_lower.h: Likewise.
46096         * lib/unictype/ctype_print.h: Likewise.
46097         * lib/unictype/ctype_punct.h: Likewise.
46098         * lib/unictype/ctype_space.h: Likewise.
46099         * lib/unictype/ctype_upper.h: Likewise.
46100         * lib/unictype/ctype_xdigit.h: Likewise.
46101         * lib/unictype/decdigit.h: Likewise.
46102         * lib/unictype/digit.h: Likewise.
46103         * lib/unictype/mirror.h: Likewise.
46104         * lib/unictype/numeric.h: Likewise.
46105         * lib/unictype/pr_alphabetic.h: Likewise.
46106         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46107         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46108         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46109         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46110         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46111         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46112         * lib/unictype/pr_bidi_control.h: Likewise.
46113         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46114         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46115         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46116         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46117         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46118         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46119         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46120         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46121         * lib/unictype/pr_bidi_pdf.h: Likewise.
46122         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46123         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46124         * lib/unictype/pr_combining.h: Likewise.
46125         * lib/unictype/pr_composite.h: Likewise.
46126         * lib/unictype/pr_currency_symbol.h: Likewise.
46127         * lib/unictype/pr_dash.h: Likewise.
46128         * lib/unictype/pr_decimal_digit.h: Likewise.
46129         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46130         * lib/unictype/pr_deprecated.h: Likewise.
46131         * lib/unictype/pr_diacritic.h: Likewise.
46132         * lib/unictype/pr_extender.h: Likewise.
46133         * lib/unictype/pr_format_control.h: Likewise.
46134         * lib/unictype/pr_grapheme_base.h: Likewise.
46135         * lib/unictype/pr_grapheme_extend.h: Likewise.
46136         * lib/unictype/pr_grapheme_link.h: Likewise.
46137         * lib/unictype/pr_hex_digit.h: Likewise.
46138         * lib/unictype/pr_hyphen.h: Likewise.
46139         * lib/unictype/pr_id_continue.h: Likewise.
46140         * lib/unictype/pr_id_start.h: Likewise.
46141         * lib/unictype/pr_ideographic.h: Likewise.
46142         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46143         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46144         * lib/unictype/pr_ignorable_control.h: Likewise.
46145         * lib/unictype/pr_iso_control.h: Likewise.
46146         * lib/unictype/pr_join_control.h: Likewise.
46147         * lib/unictype/pr_left_of_pair.h: Likewise.
46148         * lib/unictype/pr_line_separator.h: Likewise.
46149         * lib/unictype/pr_logical_order_exception.h: Likewise.
46150         * lib/unictype/pr_lowercase.h: Likewise.
46151         * lib/unictype/pr_math.h: Likewise.
46152         * lib/unictype/pr_non_break.h: Likewise.
46153         * lib/unictype/pr_not_a_character.h: Likewise.
46154         * lib/unictype/pr_numeric.h: Likewise.
46155         * lib/unictype/pr_other_alphabetic.h: Likewise.
46156         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46157         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46158         * lib/unictype/pr_other_id_continue.h: Likewise.
46159         * lib/unictype/pr_other_id_start.h: Likewise.
46160         * lib/unictype/pr_other_lowercase.h: Likewise.
46161         * lib/unictype/pr_other_math.h: Likewise.
46162         * lib/unictype/pr_other_uppercase.h: Likewise.
46163         * lib/unictype/pr_paired_punctuation.h: Likewise.
46164         * lib/unictype/pr_paragraph_separator.h: Likewise.
46165         * lib/unictype/pr_pattern_syntax.h: Likewise.
46166         * lib/unictype/pr_pattern_white_space.h: Likewise.
46167         * lib/unictype/pr_private_use.h: Likewise.
46168         * lib/unictype/pr_punctuation.h: Likewise.
46169         * lib/unictype/pr_quotation_mark.h: Likewise.
46170         * lib/unictype/pr_radical.h: Likewise.
46171         * lib/unictype/pr_sentence_terminal.h: Likewise.
46172         * lib/unictype/pr_soft_dotted.h: Likewise.
46173         * lib/unictype/pr_space.h: Likewise.
46174         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46175         * lib/unictype/pr_titlecase.h: Likewise.
46176         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46177         * lib/unictype/pr_unified_ideograph.h: Likewise.
46178         * lib/unictype/pr_uppercase.h: Likewise.
46179         * lib/unictype/pr_variation_selector.h: Likewise.
46180         * lib/unictype/pr_white_space.h: Likewise.
46181         * lib/unictype/pr_xid_continue.h: Likewise.
46182         * lib/unictype/pr_xid_start.h: Likewise.
46183         * lib/unictype/pr_zero_width.h: Likewise.
46184         * lib/unictype/scripts.h: Likewise.
46185         * lib/unictype/scripts_byname.gperf: Likewise.
46186         * lib/unictype/sy_c_ident.h: Likewise.
46187         * lib/unictype/sy_c_whitespace.h: Likewise.
46188         * lib/unictype/sy_java_ident.h: Likewise.
46189         * lib/unictype/sy_java_whitespace.h: Likewise.
46190
46191         * lib/unictype/Makefile: New file.
46192         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46193         glibc.
46194         * lib/unictype/3level.h: New file, copied from glibc.
46195         * lib/unictype/3levelbit.h: New file.
46196
46197 2007-11-11  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/gperf: New file.
46200         * modules/iconv_open (Depends-on): Add it.
46201         (Makefile.am): Remove the GPERF definition.
46202
46203 2007-11-11  Bruno Haible  <bruno@clisp.org>
46204
46205         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46206         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46207
46208 2007-11-11  Bruno Haible  <bruno@clisp.org>
46209
46210         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46211         (usage): Remove function.
46212
46213 2007-11-11  Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46216         gl_FUNC_CEILF_LIBS.
46217         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46218         gl_FUNC_CEIL_LIBS.
46219         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46220         gl_FUNC_CEILL_LIBS.
46221         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46222         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46223         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46224
46225 2007-11-11  Bruno Haible  <bruno@clisp.org>
46226
46227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46228         roundf were declared but do not exist on functions.
46229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46230         roundl were declared but do not exist on functions.
46231         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46232         HAVE_FLOORL_AND_CEILL, respectively.
46233         Needed for Sun C on Solaris 10.
46234
46235 2007-11-11  Bruno Haible  <bruno@clisp.org>
46236
46237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46238         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46239         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46240         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46241         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46242         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46243         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46244         HAVE_DECL_ROUNDF.
46245         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46246         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46248         of HAVE_DECL_ROUND*.
46249         * modules/math (Makefile.am): Update.
46250
46251 2007-11-10  Bruno Haible  <bruno@clisp.org>
46252
46253         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46254         ptrdiff_t as m4/intl.m4.
46255
46256 2007-11-10  Jim Meyering  <meyering@redhat.com>
46257
46258         Avoid link failure for the argmatch test.
46259         * tests/test-argmatch.c (usage): Define function to avoid a link
46260         failure: argmatch_die requires a usage function.
46261
46262 2007-11-09  Bruno Haible  <bruno@clisp.org>
46263
46264         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46265         * doc/functions/vsnprintf.texi: Likewise.
46266         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46267         with a size argument < 2.
46268
46269 2007-11-09  Bruno Haible  <bruno@clisp.org>
46270
46271         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46272         buffer. Fixes an inefficiency introduced on 2007-11-03.
46273
46274 2007-11-09  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46277         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46278
46279 2007-11-08  Jim Meyering  <meyering@redhat.com>
46280
46281         Change cache variable name prefix "jm_" to "gl_" everywhere.
46282         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46283         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46284         * m4/uptime.m4: s/gl_/jm_/
46285
46286 2007-11-07  Bruno Haible  <bruno@clisp.org>
46287
46288         Update to GNU gettext 0.17.
46289         * m4/intl.m4: Update to GNU gettext 0.17.
46290         * m4/po.m4: Likewise.
46291         * modules/gettext (Files): Remove m4/ulonglong.m4.
46292         (configure.ac): Require gettext infrastructure from version 0.17.
46293
46294 2007-11-06  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46297         symbolic values are not defined in a public header.
46298         * lib/freadable.c (freadable) [QNX]: Likewise.
46299         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46300         * lib/freading.c (freading) [QNX]: Likewise.
46301         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46302         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46303         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46304         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46305         Reported by Alain Magloire.
46306
46307         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46308
46309 2007-11-05  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46312         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46313         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46314         Reported by Eric Blake.
46315
46316 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46317             Bruno Haible  <bruno@clisp.org>
46318
46319         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46320         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46321         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46322         (malloc): Undefine also before including <stdlib.h>.
46323         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46324         Needed on OSF/1 4.0.
46325
46326 2007-11-05  Jim Meyering  <meyering@redhat.com>
46327
46328         git-version-gen: sync from coreutils.
46329         * build-aux/git-version-gen: Add comments.
46330         Change the first '-' to '.' in the snapshot version string,
46331         e.g., 6.9-377-08144 -> 6.9.377-08144
46332         Remove first parameter.
46333         Don't declare a version "-dirty" merely because a time
46334         stamp has changed.
46335
46336 2007-11-04  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/lock.h: Protect all macro definitions containing an 'if'
46339         statement through a "do { ... } while (0)".
46340         * lib/tls.h: Likewise.
46341
46342 2007-11-04  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46345
46346 2007-11-04  Bruno Haible  <bruno@clisp.org>
46347
46348         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46349         * modules/fprintf-posix (Depends-on): Add nocrash.
46350         * modules/snprintf-posix (Depends-on): Likewise.
46351         * modules/sprintf-posix (Depends-on): Likewise.
46352         * modules/vasnprintf-posix (Depends-on): Likewise.
46353         * modules/vasprintf-posix (Depends-on): Likewise.
46354         * modules/vfprintf-posix (Depends-on): Likewise.
46355         * modules/vsnprintf-posix (Depends-on): Likewise.
46356         * modules/vsprintf-posix (Depends-on): Likewise.
46357         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46358         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46359         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46360         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46361         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46362         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46363         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46364
46365 2007-11-04  Bruno Haible  <bruno@clisp.org>
46366
46367         * modules/nocrash: New file.
46368         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46369         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46370
46371 2007-11-04  Bruno Haible  <bruno@clisp.org>
46372
46373         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46374         precision handling.
46375         * tests/test-vasprintf-posix.c (test_function): Likewise.
46376         * tests/test-snprintf-posix.h (test_function): Likewise.
46377         * tests/test-sprintf-posix.h (test_function): Likewise.
46378
46379         Fix *printf behaviour for large precisions on mingw and BeOS.
46380         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46381         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46383         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46385         gl_PRINTF_PRECISION and test its result. Invoke
46386         gl_PREREQ_VASNPRINTF_PRECISION.
46387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46394         * doc/functions/fprintf.texi: Update.
46395         * doc/functions/printf.texi: Update.
46396         * doc/functions/snprintf.texi: Update.
46397         * doc/functions/sprintf.texi: Update.
46398         * doc/functions/vfprintf.texi: Update.
46399         * doc/functions/vprintf.texi: Update.
46400         * doc/functions/vsnprintf.texi: Update.
46401         * doc/functions/vsprintf.texi: Update.
46402
46403 2007-11-04  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46406
46407 2007-11-04  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46410         Reported by Sylvain Beucler <beuc@gnu.org>.
46411
46412 2007-11-03  Bruno Haible  <bruno@clisp.org>
46413
46414         * tests/test-fprintf-posix2.sh: New file.
46415         * tests/test-fprintf-posix2.c: New file.
46416         * modules/fprintf-posix-tests (Files): Add them.
46417         (TESTS): Add test-fprintf-posix2.sh.
46418         (configure.ac): Check for getrlimit and setrlimit.
46419         (check_PROGRAMS): Add test-fprintf-posix2.
46420
46421         * tests/test-printf-posix2.sh: New file.
46422         * tests/test-printf-posix2.c: New file.
46423         * modules/printf-posix-tests (Files): Add them.
46424         (TESTS): Add test-printf-posix2.sh.
46425         (configure.ac): Check for getrlimit and setrlimit.
46426         (check_PROGRAMS): Add test-printf-posix2.
46427
46428         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46429         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46430         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46431         (decode_double): New function, copied from decode_long_double.
46432         (scale10_round_decimal_decoded): New function, extracted from
46433         scale10_round_decimal_long_double.
46434         (scale10_round_decimal_long_double): Use it.
46435         (scale10_round_decimal_double): New function.
46436         (floorlog10): New function.
46437         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46439         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46441         gl_PRINTF_ENOMEM and test its result. Invoke
46442         gl_PREREQ_VASNPRINTF_ENOMEM.
46443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46450         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46451         * modules/snprintf-posix (Depends-on): Likewise.
46452         * modules/sprintf-posix (Depends-on): Likewise.
46453         * modules/vasnprintf-posix (Depends-on): Likewise.
46454         * modules/vasprintf-posix (Depends-on): Likewise.
46455         * modules/vfprintf-posix (Depends-on): Likewise.
46456         * modules/vsnprintf-posix (Depends-on): Likewise.
46457         * modules/vsprintf-posix (Depends-on): Likewise.
46458         * doc/functions/fprintf.texi: Update.
46459         * doc/functions/printf.texi: Update.
46460         * doc/functions/snprintf.texi: Update.
46461         * doc/functions/sprintf.texi: Update.
46462         * doc/functions/vfprintf.texi: Update.
46463         * doc/functions/vprintf.texi: Update.
46464         * doc/functions/vsnprintf.texi: Update.
46465         * doc/functions/vsprintf.texi: Update.
46466
46467 2007-11-03  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/frexp-nolibm-tests: New file.
46470
46471         * modules/frexp-nolibm: New file.
46472         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46473
46474 2007-11-03  Bruno Haible  <bruno@clisp.org>
46475
46476         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46477         value is C99 compliant.
46478         Needed for OSF/1 5.1.
46479
46480 2007-11-03  Bruno Haible  <bruno@clisp.org>
46481
46482         Fix out-of-memory handling of vasnprintf.
46483         * lib/printf-parse.c: Include <errno.h>.
46484         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46485         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46486         is already set.
46487
46488 2007-11-02  Eric Blake  <ebb9@byu.net>
46489
46490         Fix tests on cygwin.
46491         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46492
46493 2007-11-01  Bruno Haible  <bruno@clisp.org>
46494
46495         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46496         warning.
46497         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46498         needed for POSIX compatibility.
46499
46500 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46501
46502         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46503         for compatibility with GNU.
46504
46505 2007-11-01  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46508         (putenv): Renamed from rpl_putenv. Change argument type from
46509         'const char *' to 'char *'.
46510         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46511         of defining putenv in config.h, just set REPLACE_PUTENV.
46512         * modules/putenv (Depends-on): Add stdlib.
46513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46514         (Include): Use <stdlib.h>.
46515         * lib/stdlib.in.h (putenv): New declaration.
46516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46517         REPLACE_PUTENV.
46518         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46519         REPLACE_PUTENV.
46520         Needed for MacOS X 10.5.0.
46521         Reported by Peter O'Gorman <peter@pogma.com>.
46522
46523 2007-11-01  Jim Meyering  <meyering@redhat.com>
46524
46525         Treat an empty date string exactly like "0".
46526         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46527         if the remaining date string (to be parsed) is empty, use "0".
46528         Reported by Mischa Molhoek and discussed in this thread:
46529         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46530
46531 2007-10-31  Bruno Haible  <bruno@clisp.org>
46532
46533         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46534         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46535         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46536         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46537         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46538         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46539
46540 2007-10-31  Bruno Haible  <bruno@clisp.org>
46541
46542         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46543         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46544         (AC_TYPE_LONG_LONG_INT): Use it.
46545         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46546         it as well.
46547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46548         to m4/longlong.m4.
46549         * modules/stdint (Files): Remove m4/ulonglong.m4.
46550         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46551         m4/ulonglong.m4.
46552         * modules/strtoumax (Files): Likewise.
46553
46554 2007-10-30  Bruno Haible  <bruno@clisp.org>
46555
46556         * modules/xvasprintf-posix: New file.
46557         Suggested by Eric Blake.
46558
46559 2007-10-30  Bruno Haible  <bruno@clisp.org>
46560
46561         * modules/xprintf-posix-tests: New file.
46562         * tests/test-xprintf-posix.sh: New file.
46563         * tests/test-xprintf-posix.c: New file.
46564         * tests/test-xfprintf-posix.c: New file.
46565
46566         * modules/xprintf-posix: New file.
46567
46568 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46569
46570         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46571         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46572         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46573
46574 2007-10-29  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46577         contain the special marker '_cv_'.
46578         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46579         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46580         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46581         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46582         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46583         Reported by Ralf Wildenhues.
46584
46585 2007-10-29  Bruno Haible  <bruno@clisp.org>
46586
46587         * gnulib-tool (func_import): When --lgpl is not specified, set
46588         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46589         GPLv3.
46590         Reported by Simon Josefsson.
46591
46592 2007-10-28  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46595         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46596         HAVE_DECL_ISFINITE.
46597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46598         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46599         HAVE_DECL_ISFINITE.
46600
46601 2007-10-28  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46604         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46605
46606 2007-10-28  Bruno Haible  <bruno@clisp.org>
46607
46608         Fix link errors with Sun C 5.0 on Solaris 10.
46609         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46610         function is declared but not present in the compiler's libm.
46611         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46612         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46613         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46614         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46615         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46616         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46617         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46619         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46620         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46621         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46622         HAVE_DECL_FLOORL.
46623
46624 2007-10-28  Bruno Haible  <bruno@clisp.org>
46625
46626         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46627         gl_FUNC_FLOORL. Cache the result.
46628         (gl_FUNC_FLOORL): Use it.
46629         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46630         gl_FUNC_CEILL. Cache the result.
46631         (gl_FUNC_CEILL): Use it.
46632
46633         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46634         gl_FUNC_FLOOR. Cache the result.
46635         (gl_FUNC_FLOOR): Use it.
46636         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46637         gl_FUNC_CEIL. Cache the result.
46638         (gl_FUNC_CEIL): Use it.
46639
46640         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46641         gl_FUNC_FLOORF. Cache the result.
46642         (gl_FUNC_FLOORF): Use it.
46643         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46644         gl_FUNC_CEILF. Cache the result.
46645         (gl_FUNC_CEILF): Use it.
46646
46647 2007-10-28  Bruno Haible  <bruno@clisp.org>
46648
46649         * gnulib-tool: Allow specifying the LGPL version number through
46650         --lgpl=2 or --lgpl=3.
46651         (func_usage): Document --lgpl with argument.
46652         Handle --lgpl=... arguments.
46653         (func_import): Recognize also gl_LGPL calls with an argument. When
46654         --lgpl=2 is used and the module's license is just LGPL, report an
46655         error. Set sed_transform_lib_file according to the lgpl variable. In
46656         the generated files, use --lgpl or gl_LGPL invocations with argument,
46657         if necessary.
46658         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46659         an LGPv2+ license.
46660         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46661         gl_LGPL macro.
46662
46663 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46664             Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46667         (u16_uctomb_aux): Likewise.
46668         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46669         !HAVE_INLINE.
46670         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46671
46672 2007-10-28  Bruno Haible  <bruno@clisp.org>
46673
46674         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46675         Invoke AM_GETTEXT_OPTION if it exists.
46676         * modules/vasprintf: Likewise.
46677         * modules/verror: Likewise.
46678         * modules/xprintf: Likewise.
46679         * modules/xvasprintf: Likewise.
46680
46681 2007-10-27  Ben Pfaff  <blp@gnu.org>
46682
46683         * lib/math.in.h: Define isfinite macro and prototypes for
46684         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46685         implementations.
46686         * m4/math_h.m4: New substitutions for isfinite module.
46687         * lib/isfinite.c: New file.
46688         * m4/isfinite.m4: New file.
46689         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46690         * modules/isfinite: New file.
46691         * modules/isfinite-tests: New file.
46692         * tests/tests-isfinite.c: New file.
46693         * doc/functions/isfinite.texi: Mention isfinite module.
46694         * MODULES.html.sh: Mention new module.
46695
46696 2007-10-27  Ben Pfaff  <blp@gnu.org>
46697
46698         Ralf Wildenhues reported that Tru64 4.0D declares the round
46699         functions but does not have definitions.
46700         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46701         cannot be found in any library, set the output variable to
46702         "missing" instead of "".
46703         * m4/round.m4: Also use our substitute if we cannot find round in
46704         any library, even if it is declared.
46705         * m4/roundf.m4: Likewise for roundf.
46706         * m4/roundl.m4: Likewise for roundl.
46707         * lib/math.in.h: Undefine roundf, round, roundl before defining
46708         their replacements, to allow for hypothetical systems where these
46709         may be defined as macros but not available in libraries.
46710
46711 2007-10-27  Bruno Haible  <bruno@clisp.org>
46712
46713         * doc/gnulib.texi: Invoke @firstparagraphindent.
46714         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46715         changes in gnulib.
46716         (Source changes): New section.
46717
46718 2007-10-26  Bruno Haible  <bruno@clisp.org>
46719
46720         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46721         borrowed from autoconf.
46722
46723 2007-10-26  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46726         strerror returned the empty string. Needed on HP-UX 11.00.
46727
46728 2007-10-24  Micah Cowan  <micah@cowan.name>
46729
46730         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46731         * build-aux/bootstrap: Remove support for now-unnecessary option,
46732         --cvs-user, and envvars CVS_USER, CVS_RSH.
46733
46734 2007-10-24  Jim Meyering  <meyering@redhat.com>
46735
46736         Avoid diagnostics from sha1sum when there is no cached checksum.
46737         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46738         if the po.s1 file hasn't been created yet.
46739
46740         * build-aux/bootstrap: Sync from coreutils:
46741         2007-10-24  Jim Meyering  <meyering@redhat.com>
46742         Get gnulib from the git repository, not from an obsolete cvs one.
46743         * build-aux/bootstrap: Suggestion from Micah Cowan.
46744         2007-10-04  Jim Meyering  <jim@meyering.net>
46745         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46746         (update_po_files): Work also when there are no .po files in po/.
46747
46748 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46749
46750         * README: Append ".git" to git and cg examples.
46751         Problem reported by Benoit Sigoure.
46752
46753 2007-10-23  Micah Cowan  <micah@cowan.name>
46754
46755         * users.txt: Add wget.
46756
46757 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46758
46759         Fix linking of some unistdio tests on FreeBSD.
46760         * modules/unistdio/u16-vsnprintf-tests
46761         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46762         * modules/unistdio/u16-vsprintf-tests
46763         (test_u16_vsnprintf1_LDADD): Likewise.
46764         * modules/unistdio/u32-vsnprintf-tests
46765         (test_u32_vsnprintf1_LDADD): Likewise.
46766         * modules/unistdio/u32-vsprintf-tests
46767         (test_u32_vsprintf1_LDADD): Likewise.
46768         * modules/unistdio/u8-vsnprintf-tests
46769         (test_u8_vsnprintf1_LDADD): Likewise.
46770         * modules/unistdio/u8-vsprintf-tests
46771         (test_u8_vsprintf1_LDADD): Likewise.
46772         * modules/unistdio/ulc-vsnprintf-tests
46773         (test_ulc_vsnprintf1_LDADD): Likewise.
46774         * modules/unistdio/ulc-vsprintf-tests
46775         (test_ulc_vsprintf1_LDADD): Likewise.
46776
46777         Fix linking of some uniconv tests on FreeBSD.
46778         * modules/uniconv/u16-conv-from-enc-tests
46779         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46780         * modules/uniconv/u16-conv-to-enc-tests
46781         (test_u16_conv_to_enc_LDADD): Likewise.
46782         * modules/uniconv/u16-strconv-from-enc-tests
46783         (test_u16_strconv_from_enc_LDADD): Likewise.
46784         * modules/uniconv/u16-strconv-to-enc-tests
46785         (test_u16_strconv_to_enc_LDADD): Likewise.
46786         * modules/uniconv/u32-conv-from-enc-tests
46787         (test_u32_conv_from_enc_LDADD): Likewise.
46788         * modules/uniconv/u32-conv-to-enc-tests
46789         (test_u32_conv_to_enc_LDADD): Likewise.
46790         * modules/uniconv/u32-strconv-from-enc-tests
46791         (test_u32_strconv_from_enc_LDADD): Likewise.
46792         * modules/uniconv/u32-strconv-to-enc-tests
46793         (test_u32_strconv_to_enc_LDADD): Likewise.
46794         * modules/uniconv/u8-conv-from-enc-tests
46795         (test_u8_conv_from_enc_LDADD): Likewise.
46796         * modules/uniconv/u8-conv-to-enc-tests
46797         (test_u8_conv_to_enc_LDADD): Likewise.
46798         * modules/uniconv/u8-strconv-from-enc-tests
46799         (test_u8_strconv_from_enc_LDADD): Likewise.
46800         * modules/uniconv/u8-strconv-to-enc-tests
46801         (test_u8_strconv_to_enc_LDADD): Likewise.
46802
46803 2007-10-22  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46806         size.
46807
46808 2007-10-22  Eric Blake  <ebb9@byu.net>
46809
46810         Tweak x*printf documentation.
46811         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46812         variable name and comments.
46813         Suggested by Bruno Haible.
46814
46815 2007-10-22  Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/acl.c (copy_acl): Fix file name in comment.
46818
46819 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46820
46821         Fix Tru64 problem with stdbool.h.
46822         * lib/stdbool.in.h (false, true):
46823         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46824         Don't declare as an enum in this situation; it runs afoul of Tru64.
46825         Problem reported by Steven M. Schweda in
46826         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46827
46828 2007-10-22  Eric Blake  <ebb9@byu.net>
46829
46830         Also wrap vf?printf.
46831         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46832         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46833         (xvprintf, xvfprintf): New functions.
46834
46835 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46836
46837         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46838         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46839
46840         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46841         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46842
46843 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46846         by Bruno Haible.
46847
46848 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46849
46850         * lib/getloadavg.c
46851         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46852         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46853
46854         * tests/test-i-ring.c: Work for C89.
46855
46856 2007-10-22  Bruno Haible  <bruno@clisp.org>
46857
46858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46859         -1u, in preprocessor expression, so that we don't test for the bug
46860         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46862
46863 2007-10-22  Eric Blake  <ebb9@byu.net>
46864
46865         * tests/test-yesno.sh: Silence stderr during test.
46866
46867 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46868
46869         * modules/crypto/gc-camellia: New file.
46870
46871         * m4/gc-camellia.m4: New file.
46872
46873         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46874
46875         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46876
46877 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46878
46879         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46880         --help to stdout.  Reported by sms@antinode.org (Steven
46881         M. Schweda).
46882
46883 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46884
46885         * users.txt: Fix link to libksba.
46886
46887 2007-10-21  Ben Pfaff  <blp@gnu.org>
46888
46889         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46890         round.c roundf implementation that depends on floorf and ceilf to
46891         be tested unconditionally.
46892
46893 2007-10-21  Ben Pfaff  <blp@gnu.org>
46894
46895         * m4/check-libm-func.m4: Removed.
46896         * m4/check-math-lib.m4: New file.
46897         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46898         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46899         definition and lack of AC_LIBOBJ([roundf]).
46900         * m4/roundl.m4: Ditto, and similarly for roundl.
46901         * modules/round: Reference new m4 file.
46902         * modules/roundf: Ditto.
46903         * modules/roundl: Ditto.
46904         * tests/test-round2.c (main): Use ROUND instead of round.
46905         Bug report from Bruno Haible.
46906
46907 2007-10-21  Bruno Haible  <bruno@clisp.org>
46908
46909         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46910         context.
46911
46912 2007-10-21  Bruno Haible  <bruno@clisp.org>
46913
46914         * tests/test-wcwidth.c (main): Allow negative result for some control
46915         characters.
46916
46917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46918         Needed on OSF/1 5.1.
46919
46920 2007-10-21  Bruno Haible  <bruno@clisp.org>
46921
46922         * tests/test-floorf1.c: Include isnanf.h.
46923         (main): Use isnanf() instead of isnan().
46924         * tests/test-ceilf1.c: Include isnanf.h.
46925         (main): Use isnanf() instead of isnan().
46926         * tests/test-truncf1.c: Include isnanf.h.
46927         (main): Use isnanf() instead of isnan().
46928         * tests/test-roundf1.c: Include isnanf.h.
46929         (main): Use isnanf() instead of isnan().
46930
46931 2007-10-21  Eric Blake  <ebb9@byu.net>
46932
46933         * users.txt: Update URL for m4.
46934
46935 2007-10-21  Bruno Haible  <bruno@clisp.org>
46936
46937         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46938
46939 2007-10-21  Bruno Haible  <bruno@clisp.org>
46940
46941         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46942         Git's management files if the CVS files are not present.
46943
46944 2007-10-20  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46947         gcc-3.4.x.
46948
46949 2007-10-20  Ben Pfaff  <blp@gnu.org>
46950
46951         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46952         implementations.
46953         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46954         * lib/round.c: New file.
46955         * lib/roundf.c: New file.
46956         * lib/roundl.c: New file.
46957         * m4/round.m4: New file.
46958         * m4/roundf.m4: New file.
46959         * m4/roundl.m4: New file.
46960         * m4/check-libm-func-m4: New file.
46961         * modules/math: Replace round, roundf, roundl related @VARS@ in
46962         math.in.h.
46963         * modules/round: New file.
46964         * modules/round-tests: New file.
46965         * modules/roundf: New file.
46966         * modules/roundf-tests: New file.
46967         * modules/roundl: New file.
46968         * modules/roundl-tests: New file.
46969         * tests/test-round1.c: New file.
46970         * tests/test-round2.c: New file.
46971         * tests/test-roundf1.c: New file.
46972         * tests/test-roundf2.c: New file.
46973         * tests/test-roundl.c: New file.
46974         * doc/functions/round.texi: Mention round module.
46975         * doc/functions/roundf.texi: Mention roundf module.
46976         * doc/functions/roundl.texi: Mention roundl module.
46977         * MODULES.html.sh: Mention new modules.
46978         Thanks to Bruno Haible for suggestions.
46979
46980 2007-10-20  Jim Meyering  <meyering@redhat.com>
46981
46982         * lib/xprintf.c: Include <config.h> unconditionally.
46983
46984         Change xprintf's license to GPL.
46985         * modules/xprintf (License): s/LGPL/GPL/, since this module
46986         depends on modules (exit and exitfail) which are GPL.
46987         Suggestion from Bruno Haible.
46988
46989         xprintf fixes.
46990         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46991         Use a clearer diagnostic.
46992         Patch from Bruno Haible.
46993
46994 2007-10-20  Bruno Haible  <bruno@clisp.org>
46995
46996         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46997         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46999
47000 2007-10-20  Bruno Haible  <bruno@clisp.org>
47001
47002         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47003         precision in the comparison result > x - 1 or similar.
47004         * tests/test-ceilf2.c (correct_result_p): Likewise.
47005         * tests/test-truncf2.c (correct_result_p): Likewise.
47006         * tests/test-trunc2.c (correct_result_p): Likewise.
47007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47008
47009 2007-10-20  Bruno Haible  <bruno@clisp.org>
47010
47011         * modules/ceil: New file.
47012         * m4/ceil.m4: New file.
47013         * doc/functions/ceil.texi: Mention the 'ceil' module.
47014
47015 2007-10-20  Bruno Haible  <bruno@clisp.org>
47016
47017         * modules/floor: New file.
47018         * m4/floor.m4: New file.
47019         * doc/functions/floor.texi: Mention the 'floor' module.
47020
47021 2007-10-20  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47024         of %a.
47025         * modules/floorf-tests (Depends-on): Likewise.
47026         * modules/truncf-tests (Depends-on): Likewise.
47027         * modules/trunc-tests (Depends-on): Likewise.
47028         Reported by Ben Pfaff.
47029
47030 2007-10-19  Jim Meyering  <meyering@redhat.com>
47031
47032         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47033         Don't bother testing specific errno values.  Just test ferror.
47034
47035         New module: xprintf
47036         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47037
47038 2007-10-19  Bruno Haible  <bruno@clisp.org>
47039
47040         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47041         syntax.
47042         * modules/javaexec (Makefile.am): Likewise.
47043         * modules/relocatable-prog (Makefile.am): Likewise.
47044         Suggested by Jim Meyering.
47045
47046 2007-10-18  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47049         Reported by Jim Meyering.
47050
47051 2007-10-18  Eric Blake  <ebb9@byu.net>
47052
47053         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47054
47055 2007-10-18  Bruno Haible  <bruno@clisp.org>
47056
47057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47058         the format string into writable memory. Needed in Fortify conditions.
47059
47060 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47061             Bruno Haible  <bruno@clisp.org>
47062
47063         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47064         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47065         * modules/trim (Depends-on): Add mbchar.
47066         (configure.ac): Add gl_FUNC_MBRTOWC.
47067         (Makefile.am): Augment lib_SOURCES.
47068
47069 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47070
47071         Modify glob.c to use fstatat and dirfd, to simplify it.
47072         Suggested by Eric Blake.
47073         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47074         Don't include <stdbool.h>; not used.
47075         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47076         (link_exists_p): Simplify implementation, since we can now assume
47077         dirfd and fstatat.
47078         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47079
47080 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47081
47082         * gnulib-tool (func_get_dependencies): Fix sed script to
47083         match only tests.
47084
47085 2007-10-17  Bruno Haible  <bruno@clisp.org>
47086
47087         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47088         allow locale names without encoding suffix.
47089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47091
47092 2007-10-16  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47095         * lib/getgroups.c (getgroups): Likewise.
47096         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47097
47098 2007-10-16  Bruno Haible  <bruno@clisp.org>
47099
47100         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47101         * modules/malloc-posix (License): Likewise.
47102         * modules/realloc-posix (License): Likewise.
47103         * modules/calloc-posix (License): Likewise.
47104         * modules/intprops (License): Change from GPL to LGPL, with
47105         Paul Eggert's approval.
47106
47107 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47108
47109         Merge glibc changes into lib/glob.c.
47110
47111         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47112         2007-10-15 04:59:03 UTC.  Here are the changes:
47113
47114         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47115
47116         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47117
47118         * lib/glob.c: Add some branch prediction throughout.
47119
47120         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47121
47122         [BZ #5103]
47123         * lib/glob.c (glob): Recognize patterns starting \/.
47124
47125         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47126
47127         [BZ #3996]
47128         * lib/glob.c (attribute_hidden): Define if not defined.
47129         (glob): Unescape dirname, filename or username when needed and not
47130         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47131         is NULL.  Handle unescaped [ in pattern without closing ].
47132         Don't pass GLOB_CHECK down to recursive glob for directories.
47133         (__glob_pattern_type): New function.
47134         (__glob_pattern_p): Implement using __glob_pattern_type.
47135         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47136         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47137         Remove unreachable code.
47138
47139         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47140
47141         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47142         explain why there are no leaks.
47143
47144         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47145
47146         [BZ #3253]
47147         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47148         time, rather allocate increasingly bigger arrays of pointers, if
47149         possible with alloca, if too large with malloc.
47150
47151 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47152
47153         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47154         Problem reported by H.Merijn Brand in
47155         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47157         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47158
47159 2007-10-15  Bruno Haible  <bruno@clisp.org>
47160
47161         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47162         with explicit rpl_ prefix.
47163         * lib/fopen.c (fopen): Likewise.
47164         * lib/freopen.c (freopen): Likewise.
47165         * lib/iconv.c (iconv): Likewise.
47166         * lib/iconv_close.c (iconv_close): Likewise.
47167
47168 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47169
47170         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47171
47172 2007-10-15  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47175         <stddef.h> instead of <stdlib.h> since we only need NULL.
47176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47177
47178 2007-10-15  Bruno Haible  <bruno@clisp.org>
47179
47180         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47181         Replace paragraph talking about LIBOBJS.
47182         Reported by Colin Watson <cjwatson@debian.org>.
47183
47184 2007-10-15  Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47187         <stdlib.h> before using NULL.
47188
47189 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47190
47191         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47192         Reported by Albert Chin <china@thewrittenword.com>.
47193
47194 2007-10-14  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/iconv_open-utf-tests: New file.
47197         * tests/test-iconv-utf.c: New file.
47198
47199         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47200         * modules/iconv_open-utf: New file.
47201         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47202         (iconv, iconv_close): New declarations.
47203         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47204         be defined.
47205         (iconv_open): Add special handling of conversion between UTF-8 and
47206         UTF-{16,32}{BE,LE}.
47207         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47208         * lib/iconv_close.c: New file.
47209         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47210         gl_FUNC_ICONV_OPEN.
47211         (gl_FUNC_ICONV_OPEN): Use it.
47212         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47213         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47214         and REPLACE_ICONV_UTF.
47215         * modules/iconv_open (Depends-on): Add c-strcase.
47216         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47217         ICONV_CONST.
47218         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47219
47220 2007-10-13  Albert Chin  <china@thewrittenword.com>
47221             Bruno Haible  <bruno@clisp.org>
47222
47223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47224         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47225
47226 2007-10-13  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47229         defined, use the ISO C99 inline semantics.
47230         * lib/argp.h (ARGP_EI): Likewise.
47231
47232 2007-10-13  Bruno Haible  <bruno@clisp.org>
47233
47234         Handle 'inline' change in gcc 4.3.0.
47235         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47236         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47237         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47238         argp_fmtstream_point): Disable 'extern' declaration if the function
47239         definition is going to be provided inline.
47240         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47241         semantics, not the ISO C99 inline semantics.
47242         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47243         'extern' declaration if the function definition is going to be provided
47244         inline.
47245         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47246         the GNU C inline semantics, not the ISO C99 inline semantics. With
47247         GCC 4.2, avoid a warning.
47248
47249 2007-10-13  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/freading.h (freading): Enable the use of __freading for
47252         glibc >= 2.7.
47253         * lib/freading.c (freading): Likewise.
47254
47255 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47258         "warning: C99 inline functions are not supported; using GNU89".
47259
47260 2007-10-12  Bruno Haible  <bruno@clisp.org>
47261
47262         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47263         of 2.
47264         * tests/test-ceilf2.c: New file.
47265         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47266
47267         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47268         * modules/ceilf-tests: Update.
47269
47270 2007-10-12  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47273         of 2.
47274         * tests/test-floorf2.c: New file.
47275         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47276
47277         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47278         * modules/floorf-tests: Update.
47279
47280 2007-10-12  Bruno Haible  <bruno@clisp.org>
47281
47282         * tests/test-trunc2.c: New file.
47283         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47284
47285         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47286         * modules/trunc-tests: Update.
47287
47288 2007-10-12  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47291         of 2.
47292         * tests/test-truncf2.c: New file.
47293         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47294
47295         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47296         * modules/truncf-tests: Update.
47297
47298 2007-10-11  Eric Blake  <ebb9@byu.net>
47299
47300         Don't claim strerror is broken on Interix.
47301         * doc/functions/strerror.texi (strerror): Known broken systems are
47302         now Solaris 8, and not Interix.
47303         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47304         Interix on cross-compile.
47305         Reported by Martin Koeppe in
47306         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47307
47308 2007-10-11  Bruno Haible  <bruno@clisp.org>
47309
47310         * modules/i-ring-tests: New file.
47311         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47312         instead of assert.
47313
47314 2007-10-11  Bruno Haible  <bruno@clisp.org>
47315
47316         * modules/filenamecat-tests: New file.
47317         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47318         * lib/filenamecat.c: Remove test code.
47319
47320 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47323
47324         * lib/strerror.c: Include <string.h> always, to test interface,
47325         and to remove the need for the dummy.
47326         Include intprops.h to compute width instead of doing it ourselves
47327         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47328         (strerror): Define it to return NULL if there's no system strerror.
47329         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47330         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47331         ancient pre-strerror Unix systems well any more.  Saying "unknown
47332         system error" is enough.
47333         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47334         simpler strerror.c implementation.
47335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47336         Simplify the tests to reflect the simpler strerror implementation.
47337         * modules/strerror (Depends-on): Add intprops.
47338
47339 2007-10-09  Eric Blake  <ebb9@byu.net>
47340
47341         Silence test-fpending.
47342         * modules/fpending-tests (Files): Add wrapper script.
47343         * tests/test-fpending.sh: New file.
47344
47345 2007-10-09  Bruno Haible  <bruno@clisp.org>
47346
47347         * MODULES.html.sh (func_module): Don't create a hyperlink for
47348         function names like 'printf_frexp'.
47349         (Misc): Add crc, memxor.
47350         (Characteristics of floating types): New section.
47351         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47352         isnanf-nolibm, signbit, trunc, truncf, truncl.
47353         (Enhancements for ISO C 99 functions): New subsection Input/output.
47354         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47355         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47356         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47357         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47358         (Enhancements for POSIX:2001 functions): Add chdir-long.
47359         (File system functions): Add areadlink, chdir-safer, read-file.
47360         Remove cycle-check.
47361         (File system as inode set): New section.
47362         (Date and time): Add gethrxtime.
47363         (Multithreading): Add openmp.
47364         (Internationalization functions): Add localename.
47365         (Unicode string functions): Add unistr/u*-mbsnlen.
47366         (Support for maintaining and releasing projects): Add git-version-gen.
47367         (Lone files): Remove directories.
47368
47369 2007-10-08  Ben Pfaff  <blp@gnu.org>
47370
47371         * lib/xmalloca.h: Fix typo in comment.
47372
47373 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47374
47375         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47376         when avoiding problems with integer overflow.  Use a portable test
47377         instead.
47378
47379 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47380
47381         * modules/dummy (License): Change to LGPLv2+.
47382         * modules/float (License): Likewise
47383         * modules/realloc (License): Likewise
47384         * modules/stdlib (License): Likewise
47385
47386 2007-10-07  Bruno Haible  <bruno@clisp.org>
47387
47388         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47389         * floor.c (TWO_MANT_DIG): Likewise.
47390         * ceil.c (TWO_MANT_DIG): Likewise.
47391         Reported by Ben Pfaff.
47392
47393 2007-10-07  Bruno Haible  <bruno@clisp.org>
47394
47395         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47396         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47397         * lib/frexp.c (FUNC): Likewise.
47398         * lib/printf-frexp.h (printf_frexp): Likewise.
47399         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47400         * lib/printf-frexp.c (FUNC): Likewise.
47401         Suggested by Jim Meyering.
47402
47403 2007-10-07  Jim Meyering  <meyering@redhat.com>
47404
47405         Make xnanosleep's integer overflow test more robust.
47406         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47407         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47408
47409 2007-10-07  Bruno Haible  <bruno@clisp.org>
47410
47411         * NEWS: Mention the license change.
47412
47413         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47414         abbreviations in the modules files.
47415
47416         Change copyright notice from GPLv2+ to GPLv3+.
47417         * README: Change copyright notice.
47418         * MODULES.html.sh: Likewise.
47419         * build-aux/bootstrap.conf: Likewise.
47420         * build-aux/config.libpath: Likewise.
47421         * build-aux/csharpcomp.sh.in: Likewise.
47422         * build-aux/csharpexec.sh.in: Likewise.
47423         * build-aux/install-reloc: Likewise.
47424         * build-aux/javacomp.sh.in: Likewise.
47425         * build-aux/javaexec.sh.in: Likewise.
47426         * build-aux/ldd.sh.in: Likewise.
47427         * build-aux/reloc-ldflags: Likewise.
47428         * build-aux/relocatable.sh.in: Likewise.
47429         * build-aux/x-to-1.in: Likewise.
47430         * check-module: Likewise.
47431         * config/srclistvars.sh: Likewise.
47432         * gnulib-tool: Likewise.
47433         * lib/acl-internal.h: Likewise.
47434         * lib/acl.c: Likewise.
47435         * lib/acl.h: Likewise.
47436         * lib/acl_entries.c: Likewise.
47437         * lib/areadlink-with-size.c: Likewise.
47438         * lib/areadlink.c: Likewise.
47439         * lib/areadlink.h: Likewise.
47440         * lib/argmatch.c: Likewise.
47441         * lib/argmatch.h: Likewise.
47442         * lib/argp-ba.c: Likewise.
47443         * lib/argp-eexst.c: Likewise.
47444         * lib/argp-fmtstream.c: Likewise.
47445         * lib/argp-fmtstream.h: Likewise.
47446         * lib/argp-fs-xinl.c: Likewise.
47447         * lib/argp-help.c: Likewise.
47448         * lib/argp-namefrob.h: Likewise.
47449         * lib/argp-parse.c: Likewise.
47450         * lib/argp-pin.c: Likewise.
47451         * lib/argp-pv.c: Likewise.
47452         * lib/argp-pvh.c: Likewise.
47453         * lib/argp-xinl.c: Likewise.
47454         * lib/argp.h: Likewise.
47455         * lib/at-func.c: Likewise.
47456         * lib/atanl.c: Likewise.
47457         * lib/backupfile.c: Likewise.
47458         * lib/backupfile.h: Likewise.
47459         * lib/basename.c: Likewise.
47460         * lib/binary-io.h: Likewise.
47461         * lib/byteswap.in.h: Likewise.
47462         * lib/c-stack.c: Likewise.
47463         * lib/c-stack.h: Likewise.
47464         * lib/c-strcasestr.c: Likewise.
47465         * lib/c-strcasestr.h: Likewise.
47466         * lib/c-strstr.c: Likewise.
47467         * lib/c-strstr.h: Likewise.
47468         * lib/c-strtod.c: Likewise.
47469         * lib/calloc.c: Likewise.
47470         * lib/canon-host.c: Likewise.
47471         * lib/canon-host.h: Likewise.
47472         * lib/canonicalize-lgpl.c: Likewise.
47473         * lib/canonicalize.c: Likewise.
47474         * lib/canonicalize.h: Likewise.
47475         * lib/ceil.c: Likewise.
47476         * lib/ceilf.c: Likewise.
47477         * lib/ceill.c: Likewise.
47478         * lib/chdir-long.c: Likewise.
47479         * lib/chdir-long.h: Likewise.
47480         * lib/chdir-safer.c: Likewise.
47481         * lib/chdir-safer.h: Likewise.
47482         * lib/chown.c: Likewise.
47483         * lib/classpath.c: Likewise.
47484         * lib/classpath.h: Likewise.
47485         * lib/clean-temp.c: Likewise.
47486         * lib/clean-temp.h: Likewise.
47487         * lib/cloexec.c: Likewise.
47488         * lib/close-stream.c: Likewise.
47489         * lib/closein.c: Likewise.
47490         * lib/closein.h: Likewise.
47491         * lib/closeout.c: Likewise.
47492         * lib/closeout.h: Likewise.
47493         * lib/concat-filename.c: Likewise.
47494         * lib/copy-file.c: Likewise.
47495         * lib/copy-file.h: Likewise.
47496         * lib/count-one-bits.h: Likewise.
47497         * lib/crc.c: Likewise.
47498         * lib/crc.h: Likewise.
47499         * lib/creat-safer.c: Likewise.
47500         * lib/csharpcomp.c: Likewise.
47501         * lib/csharpcomp.h: Likewise.
47502         * lib/csharpexec.c: Likewise.
47503         * lib/csharpexec.h: Likewise.
47504         * lib/cycle-check.c: Likewise.
47505         * lib/cycle-check.h: Likewise.
47506         * lib/diacrit.c: Likewise.
47507         * lib/diacrit.h: Likewise.
47508         * lib/diffseq.h: Likewise.
47509         * lib/dirchownmod.c: Likewise.
47510         * lib/dirent.in.h: Likewise.
47511         * lib/dirfd.c: Likewise.
47512         * lib/dirfd.h: Likewise.
47513         * lib/dirname.c: Likewise.
47514         * lib/dirname.h: Likewise.
47515         * lib/dummy.c: Likewise.
47516         * lib/dup-safer.c: Likewise.
47517         * lib/dup2.c: Likewise.
47518         * lib/eealloc.h: Likewise.
47519         * lib/error.c: Likewise.
47520         * lib/error.h: Likewise.
47521         * lib/euidaccess.c: Likewise.
47522         * lib/exclude.c: Likewise.
47523         * lib/exclude.h: Likewise.
47524         * lib/execute.c: Likewise.
47525         * lib/execute.h: Likewise.
47526         * lib/exitfail.c: Likewise.
47527         * lib/exitfail.h: Likewise.
47528         * lib/expl.c: Likewise.
47529         * lib/fatal-signal.c: Likewise.
47530         * lib/fatal-signal.h: Likewise.
47531         * lib/fbufmode.c: Likewise.
47532         * lib/fbufmode.h: Likewise.
47533         * lib/fchdir.c: Likewise.
47534         * lib/fchmodat.c: Likewise.
47535         * lib/fchownat.c: Likewise.
47536         * lib/fcntl--.h: Likewise.
47537         * lib/fcntl-safer.h: Likewise.
47538         * lib/fcntl.in.h: Likewise.
47539         * lib/fd-safer.c: Likewise.
47540         * lib/fflush.c: Likewise.
47541         * lib/file-has-acl.c: Likewise.
47542         * lib/file-set.c: Likewise.
47543         * lib/file-type.c: Likewise.
47544         * lib/file-type.h: Likewise.
47545         * lib/fileblocks.c: Likewise.
47546         * lib/filemode.c: Likewise.
47547         * lib/filemode.h: Likewise.
47548         * lib/filename.h: Likewise.
47549         * lib/filenamecat.c: Likewise.
47550         * lib/filenamecat.h: Likewise.
47551         * lib/findprog.c: Likewise.
47552         * lib/findprog.h: Likewise.
47553         * lib/float.in.h: Likewise.
47554         * lib/floor.c: Likewise.
47555         * lib/floorf.c: Likewise.
47556         * lib/floorl.c: Likewise.
47557         * lib/fopen-safer.c: Likewise.
47558         * lib/fopen.c: Likewise.
47559         * lib/fpending.c: Likewise.
47560         * lib/fpending.h: Likewise.
47561         * lib/fprintf.c: Likewise.
47562         * lib/fprintftime.h: Likewise.
47563         * lib/fpucw.h: Likewise.
47564         * lib/fpurge.c: Likewise.
47565         * lib/fpurge.h: Likewise.
47566         * lib/freadable.c: Likewise.
47567         * lib/freadable.h: Likewise.
47568         * lib/freadahead.c: Likewise.
47569         * lib/freadahead.h: Likewise.
47570         * lib/freading.c: Likewise.
47571         * lib/freading.h: Likewise.
47572         * lib/free.c: Likewise.
47573         * lib/freopen.c: Likewise.
47574         * lib/frexp.c: Likewise.
47575         * lib/frexpl.c: Likewise.
47576         * lib/fseek.c: Likewise.
47577         * lib/fseterr.c: Likewise.
47578         * lib/fseterr.h: Likewise.
47579         * lib/fstatat.c: Likewise.
47580         * lib/fstrcmp.c: Likewise.
47581         * lib/fstrcmp.h: Likewise.
47582         * lib/fsusage.c: Likewise.
47583         * lib/fsusage.h: Likewise.
47584         * lib/ftell.c: Likewise.
47585         * lib/ftello.c: Likewise.
47586         * lib/fts-cycle.c: Likewise.
47587         * lib/fts.c: Likewise.
47588         * lib/fts_.h: Likewise.
47589         * lib/full-read.c: Likewise.
47590         * lib/full-read.h: Likewise.
47591         * lib/full-write.c: Likewise.
47592         * lib/full-write.h: Likewise.
47593         * lib/fwritable.c: Likewise.
47594         * lib/fwritable.h: Likewise.
47595         * lib/fwriteerror.c: Likewise.
47596         * lib/fwriteerror.h: Likewise.
47597         * lib/fwriting.c: Likewise.
47598         * lib/fwriting.h: Likewise.
47599         * lib/gcd.c: Likewise.
47600         * lib/gcd.h: Likewise.
47601         * lib/getcwd.c: Likewise.
47602         * lib/getdate.h: Likewise.
47603         * lib/getdate.y: Likewise.
47604         * lib/getdomainname.c: Likewise.
47605         * lib/getdomainname.h: Likewise.
47606         * lib/getgroups.c: Likewise.
47607         * lib/gethostname.c: Likewise.
47608         * lib/gethrxtime.c: Likewise.
47609         * lib/gethrxtime.h: Likewise.
47610         * lib/getloadavg.c: Likewise.
47611         * lib/getndelim2.c: Likewise.
47612         * lib/getndelim2.h: Likewise.
47613         * lib/getnline.c: Likewise.
47614         * lib/getnline.h: Likewise.
47615         * lib/getopt.c: Likewise.
47616         * lib/getopt.in.h: Likewise.
47617         * lib/getopt1.c: Likewise.
47618         * lib/getopt_int.h: Likewise.
47619         * lib/getpagesize.h: Likewise.
47620         * lib/getsubopt.c: Likewise.
47621         * lib/gettime.c: Likewise.
47622         * lib/getugroups.c: Likewise.
47623         * lib/getugroups.h: Likewise.
47624         * lib/getusershell.c: Likewise.
47625         * lib/gl_anyavltree_list1.h: Likewise.
47626         * lib/gl_anyavltree_list2.h: Likewise.
47627         * lib/gl_anyhash_list1.h: Likewise.
47628         * lib/gl_anyhash_list2.h: Likewise.
47629         * lib/gl_anylinked_list1.h: Likewise.
47630         * lib/gl_anylinked_list2.h: Likewise.
47631         * lib/gl_anyrbtree_list1.h: Likewise.
47632         * lib/gl_anyrbtree_list2.h: Likewise.
47633         * lib/gl_anytree_list1.h: Likewise.
47634         * lib/gl_anytree_list2.h: Likewise.
47635         * lib/gl_anytree_oset.h: Likewise.
47636         * lib/gl_anytreehash_list1.h: Likewise.
47637         * lib/gl_anytreehash_list2.h: Likewise.
47638         * lib/gl_array_list.c: Likewise.
47639         * lib/gl_array_list.h: Likewise.
47640         * lib/gl_array_oset.c: Likewise.
47641         * lib/gl_array_oset.h: Likewise.
47642         * lib/gl_avltree_list.c: Likewise.
47643         * lib/gl_avltree_list.h: Likewise.
47644         * lib/gl_avltree_oset.c: Likewise.
47645         * lib/gl_avltree_oset.h: Likewise.
47646         * lib/gl_avltreehash_list.c: Likewise.
47647         * lib/gl_avltreehash_list.h: Likewise.
47648         * lib/gl_carray_list.c: Likewise.
47649         * lib/gl_carray_list.h: Likewise.
47650         * lib/gl_linked_list.c: Likewise.
47651         * lib/gl_linked_list.h: Likewise.
47652         * lib/gl_linkedhash_list.c: Likewise.
47653         * lib/gl_linkedhash_list.h: Likewise.
47654         * lib/gl_list.c: Likewise.
47655         * lib/gl_list.h: Likewise.
47656         * lib/gl_oset.c: Likewise.
47657         * lib/gl_oset.h: Likewise.
47658         * lib/gl_rbtree_list.c: Likewise.
47659         * lib/gl_rbtree_list.h: Likewise.
47660         * lib/gl_rbtree_oset.c: Likewise.
47661         * lib/gl_rbtree_oset.h: Likewise.
47662         * lib/gl_rbtreehash_list.c: Likewise.
47663         * lib/gl_rbtreehash_list.h: Likewise.
47664         * lib/gl_sublist.c: Likewise.
47665         * lib/gl_sublist.h: Likewise.
47666         * lib/group-member.c: Likewise.
47667         * lib/group-member.h: Likewise.
47668         * lib/hard-locale.c: Likewise.
47669         * lib/hard-locale.h: Likewise.
47670         * lib/hash-pjw.c: Likewise.
47671         * lib/hash-pjw.h: Likewise.
47672         * lib/hash-triple.c: Likewise.
47673         * lib/hash.c: Likewise.
47674         * lib/hash.h: Likewise.
47675         * lib/human.c: Likewise.
47676         * lib/human.h: Likewise.
47677         * lib/i-ring.c: Likewise.
47678         * lib/i-ring.h: Likewise.
47679         * lib/idcache.c: Likewise.
47680         * lib/imaxabs.c: Likewise.
47681         * lib/imaxdiv.c: Likewise.
47682         * lib/inet_pton.c: Likewise.
47683         * lib/inet_pton.h: Likewise.
47684         * lib/intprops.h: Likewise.
47685         * lib/inttostr.c: Likewise.
47686         * lib/inttostr.h: Likewise.
47687         * lib/inttypes.in.h: Likewise.
47688         * lib/isapipe.c: Likewise.
47689         * lib/isdir.c: Likewise.
47690         * lib/isnan.c: Likewise.
47691         * lib/isnan.h: Likewise.
47692         * lib/isnanf.c: Likewise.
47693         * lib/isnanf.h: Likewise.
47694         * lib/isnanl-nolibm.h: Likewise.
47695         * lib/isnanl.c: Likewise.
47696         * lib/isnanl.h: Likewise.
47697         * lib/javacomp.c: Likewise.
47698         * lib/javacomp.h: Likewise.
47699         * lib/javaexec.c: Likewise.
47700         * lib/javaexec.h: Likewise.
47701         * lib/javaversion.c: Likewise.
47702         * lib/javaversion.h: Likewise.
47703         * lib/javaversion.java: Likewise.
47704         * lib/lbrkprop.h: Likewise.
47705         * lib/lchmod.h: Likewise.
47706         * lib/lchown.c: Likewise.
47707         * lib/ldexpl.c: Likewise.
47708         * lib/linebreak.c: Likewise.
47709         * lib/linebreak.h: Likewise.
47710         * lib/linebuffer.c: Likewise.
47711         * lib/linebuffer.h: Likewise.
47712         * lib/locale.in.h: Likewise.
47713         * lib/logl.c: Likewise.
47714         * lib/long-options.c: Likewise.
47715         * lib/long-options.h: Likewise.
47716         * lib/lstat.c: Likewise.
47717         * lib/lstat.h: Likewise.
47718         * lib/math.in.h: Likewise.
47719         * lib/mbchar.c: Likewise.
47720         * lib/mbchar.h: Likewise.
47721         * lib/mbfile.h: Likewise.
47722         * lib/mbiter.h: Likewise.
47723         * lib/mbscasecmp.c: Likewise.
47724         * lib/mbscasestr.c: Likewise.
47725         * lib/mbschr.c: Likewise.
47726         * lib/mbscspn.c: Likewise.
47727         * lib/mbslen.c: Likewise.
47728         * lib/mbsncasecmp.c: Likewise.
47729         * lib/mbsnlen.c: Likewise.
47730         * lib/mbspbrk.c: Likewise.
47731         * lib/mbspcasecmp.c: Likewise.
47732         * lib/mbsrchr.c: Likewise.
47733         * lib/mbssep.c: Likewise.
47734         * lib/mbsspn.c: Likewise.
47735         * lib/mbsstr.c: Likewise.
47736         * lib/mbstok_r.c: Likewise.
47737         * lib/mbswidth.c: Likewise.
47738         * lib/mbswidth.h: Likewise.
47739         * lib/mbuiter.h: Likewise.
47740         * lib/memcasecmp.c: Likewise.
47741         * lib/memcasecmp.h: Likewise.
47742         * lib/memchr.c: Likewise.
47743         * lib/memcmp.c: Likewise.
47744         * lib/memcoll.c: Likewise.
47745         * lib/memcoll.h: Likewise.
47746         * lib/memcpy.c: Likewise.
47747         * lib/memrchr.c: Likewise.
47748         * lib/mkancesdirs.c: Likewise.
47749         * lib/mkdir-p.c: Likewise.
47750         * lib/mkdir-p.h: Likewise.
47751         * lib/mkdir.c: Likewise.
47752         * lib/mkdirat.c: Likewise.
47753         * lib/mkdtemp.c: Likewise.
47754         * lib/mkstemp-safer.c: Likewise.
47755         * lib/mkstemp.c: Likewise.
47756         * lib/modechange.c: Likewise.
47757         * lib/modechange.h: Likewise.
47758         * lib/mountlist.c: Likewise.
47759         * lib/mountlist.h: Likewise.
47760         * lib/mpsort.c: Likewise.
47761         * lib/nanosleep.c: Likewise.
47762         * lib/obstack.c: Likewise.
47763         * lib/obstack.h: Likewise.
47764         * lib/open-safer.c: Likewise.
47765         * lib/open.c: Likewise.
47766         * lib/openat-die.c: Likewise.
47767         * lib/openat-priv.h: Likewise.
47768         * lib/openat-proc.c: Likewise.
47769         * lib/openat.c: Likewise.
47770         * lib/openat.h: Likewise.
47771         * lib/pagealign_alloc.c: Likewise.
47772         * lib/pagealign_alloc.h: Likewise.
47773         * lib/physmem.c: Likewise.
47774         * lib/physmem.h: Likewise.
47775         * lib/pipe-safer.c: Likewise.
47776         * lib/pipe.c: Likewise.
47777         * lib/pipe.h: Likewise.
47778         * lib/posixtm.c: Likewise.
47779         * lib/posixtm.h: Likewise.
47780         * lib/posixver.c: Likewise.
47781         * lib/printf-frexp.c: Likewise.
47782         * lib/printf-frexp.h: Likewise.
47783         * lib/printf-frexpl.c: Likewise.
47784         * lib/printf-frexpl.h: Likewise.
47785         * lib/printf.c: Likewise.
47786         * lib/progname.c: Likewise.
47787         * lib/progname.h: Likewise.
47788         * lib/progreloc.c: Likewise.
47789         * lib/putenv.c: Likewise.
47790         * lib/quote.c: Likewise.
47791         * lib/quote.h: Likewise.
47792         * lib/quotearg.c: Likewise.
47793         * lib/quotearg.h: Likewise.
47794         * lib/raise.c: Likewise.
47795         * lib/readline.c: Likewise.
47796         * lib/readline.h: Likewise.
47797         * lib/readlink.c: Likewise.
47798         * lib/readtokens.c: Likewise.
47799         * lib/readtokens.h: Likewise.
47800         * lib/readtokens0.c: Likewise.
47801         * lib/readtokens0.h: Likewise.
47802         * lib/readutmp.c: Likewise.
47803         * lib/readutmp.h: Likewise.
47804         * lib/realloc.c: Likewise.
47805         * lib/relocwrapper.c: Likewise.
47806         * lib/rename-dest-slash.c: Likewise.
47807         * lib/rename.c: Likewise.
47808         * lib/rmdir.c: Likewise.
47809         * lib/rpmatch.c: Likewise.
47810         * lib/safe-read.c: Likewise.
47811         * lib/safe-read.h: Likewise.
47812         * lib/safe-write.c: Likewise.
47813         * lib/safe-write.h: Likewise.
47814         * lib/same-inode.h: Likewise.
47815         * lib/same.c: Likewise.
47816         * lib/same.h: Likewise.
47817         * lib/save-cwd.c: Likewise.
47818         * lib/save-cwd.h: Likewise.
47819         * lib/savedir.c: Likewise.
47820         * lib/savedir.h: Likewise.
47821         * lib/savewd.c: Likewise.
47822         * lib/savewd.h: Likewise.
47823         * lib/search.in.h: Likewise.
47824         * lib/setenv.c: Likewise.
47825         * lib/setenv.h: Likewise.
47826         * lib/settime.c: Likewise.
47827         * lib/sh-quote.c: Likewise.
47828         * lib/sh-quote.h: Likewise.
47829         * lib/sig2str.c: Likewise.
47830         * lib/sig2str.h: Likewise.
47831         * lib/signal.in.h: Likewise.
47832         * lib/signbitd.c: Likewise.
47833         * lib/signbitf.c: Likewise.
47834         * lib/signbitl.c: Likewise.
47835         * lib/sigprocmask.c: Likewise.
47836         * lib/sincosl.c: Likewise.
47837         * lib/sleep.c: Likewise.
47838         * lib/sprintf.c: Likewise.
47839         * lib/sqrtl.c: Likewise.
47840         * lib/stat-time.h: Likewise.
47841         * lib/stdio--.h: Likewise.
47842         * lib/stdio-safer.h: Likewise.
47843         * lib/stdlib--.h: Likewise.
47844         * lib/stdlib-safer.h: Likewise.
47845         * lib/stdlib.in.h: Likewise.
47846         * lib/stpcpy.c: Likewise.
47847         * lib/stpncpy.c: Likewise.
47848         * lib/strchrnul.c: Likewise.
47849         * lib/strcspn.c: Likewise.
47850         * lib/strerror.c: Likewise.
47851         * lib/strftime.c: Likewise.
47852         * lib/strftime.h: Likewise.
47853         * lib/striconveh.c: Likewise.
47854         * lib/striconveh.h: Likewise.
47855         * lib/striconveha.c: Likewise.
47856         * lib/striconveha.h: Likewise.
47857         * lib/stripslash.c: Likewise.
47858         * lib/strnlen1.c: Likewise.
47859         * lib/strnlen1.h: Likewise.
47860         * lib/strtod.c: Likewise.
47861         * lib/strtoimax.c: Likewise.
47862         * lib/strtok_r.c: Likewise.
47863         * lib/strtol.c: Likewise.
47864         * lib/strtoll.c: Likewise.
47865         * lib/strtoul.c: Likewise.
47866         * lib/strtoull.c: Likewise.
47867         * lib/sysexits.in.h: Likewise.
47868         * lib/tempname.c: Likewise.
47869         * lib/tempname.h: Likewise.
47870         * lib/timespec.h: Likewise.
47871         * lib/tls.c: Likewise.
47872         * lib/tls.h: Likewise.
47873         * lib/tmpdir.c: Likewise.
47874         * lib/tmpdir.h: Likewise.
47875         * lib/tmpfile-safer.c: Likewise.
47876         * lib/tmpfile.c: Likewise.
47877         * lib/trigl.c: Likewise.
47878         * lib/trigl.h: Likewise.
47879         * lib/trim.c: Likewise.
47880         * lib/trim.h: Likewise.
47881         * lib/trunc.c: Likewise.
47882         * lib/truncf.c: Likewise.
47883         * lib/truncl.c: Likewise.
47884         * lib/tsearch.c: Likewise.
47885         * lib/unicodeio.c: Likewise.
47886         * lib/unicodeio.h: Likewise.
47887         * lib/unistd--.h: Likewise.
47888         * lib/unistd-safer.h: Likewise.
47889         * lib/unistdio/ulc-fprintf.c: Likewise.
47890         * lib/unistdio/ulc-vfprintf.c: Likewise.
47891         * lib/unlinkdir.c: Likewise.
47892         * lib/unlinkdir.h: Likewise.
47893         * lib/unlocked-io.h: Likewise.
47894         * lib/unsetenv.c: Likewise.
47895         * lib/userspec.c: Likewise.
47896         * lib/utime.c: Likewise.
47897         * lib/utimecmp.c: Likewise.
47898         * lib/utimecmp.h: Likewise.
47899         * lib/utimens.c: Likewise.
47900         * lib/verify.h: Likewise.
47901         * lib/verror.c: Likewise.
47902         * lib/verror.h: Likewise.
47903         * lib/version-etc-fsf.c: Likewise.
47904         * lib/version-etc.c: Likewise.
47905         * lib/version-etc.h: Likewise.
47906         * lib/vfprintf.c: Likewise.
47907         * lib/vprintf.c: Likewise.
47908         * lib/vsprintf.c: Likewise.
47909         * lib/w32spawn.h: Likewise.
47910         * lib/wait-process.c: Likewise.
47911         * lib/wait-process.h: Likewise.
47912         * lib/wcwidth.c: Likewise.
47913         * lib/write-any-file.c: Likewise.
47914         * lib/xalloc-die.c: Likewise.
47915         * lib/xalloc.h: Likewise.
47916         * lib/xasprintf.c: Likewise.
47917         * lib/xgetcwd.c: Likewise.
47918         * lib/xgetcwd.h: Likewise.
47919         * lib/xgetdomainname.c: Likewise.
47920         * lib/xgetdomainname.h: Likewise.
47921         * lib/xgethostname.c: Likewise.
47922         * lib/xmalloc.c: Likewise.
47923         * lib/xmalloca.c: Likewise.
47924         * lib/xmalloca.h: Likewise.
47925         * lib/xmemcoll.c: Likewise.
47926         * lib/xnanosleep.c: Likewise.
47927         * lib/xreadlink.c: Likewise.
47928         * lib/xreadlink.h: Likewise.
47929         * lib/xsetenv.c: Likewise.
47930         * lib/xsetenv.h: Likewise.
47931         * lib/xstriconv.c: Likewise.
47932         * lib/xstriconv.h: Likewise.
47933         * lib/xstrndup.c: Likewise.
47934         * lib/xstrndup.h: Likewise.
47935         * lib/xstrtod.c: Likewise.
47936         * lib/xstrtod.h: Likewise.
47937         * lib/xstrtol-error.c: Likewise.
47938         * lib/xstrtol.c: Likewise.
47939         * lib/xstrtol.h: Likewise.
47940         * lib/xtime.h: Likewise.
47941         * lib/xvasprintf.c: Likewise.
47942         * lib/xvasprintf.h: Likewise.
47943         * lib/yesno.c: Likewise.
47944         * lib/yesno.h: Likewise.
47945         * posix-modules: Likewise.
47946         * tests/test-alloca-opt.c: Likewise.
47947         * tests/test-arcfour.c: Likewise.
47948         * tests/test-arctwo.c: Likewise.
47949         * tests/test-argmatch.c: Likewise.
47950         * tests/test-argp-2.sh: Likewise.
47951         * tests/test-argp.c: Likewise.
47952         * tests/test-arpa_inet.c: Likewise.
47953         * tests/test-array_list.c: Likewise.
47954         * tests/test-array_oset.c: Likewise.
47955         * tests/test-atexit.c: Likewise.
47956         * tests/test-avltree_list.c: Likewise.
47957         * tests/test-avltree_oset.c: Likewise.
47958         * tests/test-avltreehash_list.c: Likewise.
47959         * tests/test-base64.c: Likewise.
47960         * tests/test-binary-io.c: Likewise.
47961         * tests/test-byteswap.c: Likewise.
47962         * tests/test-c-ctype.c: Likewise.
47963         * tests/test-c-strcasecmp.c: Likewise.
47964         * tests/test-c-strcasestr.c: Likewise.
47965         * tests/test-c-strncasecmp.c: Likewise.
47966         * tests/test-c-strstr.c: Likewise.
47967         * tests/test-canonicalize-lgpl.c: Likewise.
47968         * tests/test-canonicalize.c: Likewise.
47969         * tests/test-carray_list.c: Likewise.
47970         * tests/test-ceilf.c: Likewise.
47971         * tests/test-ceill.c: Likewise.
47972         * tests/test-count-one-bits.c: Likewise.
47973         * tests/test-crc.c: Likewise.
47974         * tests/test-dirname.c: Likewise.
47975         * tests/test-fbufmode.c: Likewise.
47976         * tests/test-fcntl.c: Likewise.
47977         * tests/test-fflush.c: Likewise.
47978         * tests/test-floorf.c: Likewise.
47979         * tests/test-floorl.c: Likewise.
47980         * tests/test-fopen.c: Likewise.
47981         * tests/test-fprintf-posix.c: Likewise.
47982         * tests/test-fprintf-posix.h: Likewise.
47983         * tests/test-fpurge.c: Likewise.
47984         * tests/test-freadable.c: Likewise.
47985         * tests/test-freadahead.c: Likewise.
47986         * tests/test-freading.c: Likewise.
47987         * tests/test-freopen.c: Likewise.
47988         * tests/test-frexp.c: Likewise.
47989         * tests/test-frexpl.c: Likewise.
47990         * tests/test-fseek.c: Likewise.
47991         * tests/test-fseeko.c: Likewise.
47992         * tests/test-fseterr.c: Likewise.
47993         * tests/test-fstrcmp.c: Likewise.
47994         * tests/test-ftell.c: Likewise.
47995         * tests/test-ftello.c: Likewise.
47996         * tests/test-fwritable.c: Likewise.
47997         * tests/test-fwriting.c: Likewise.
47998         * tests/test-getaddrinfo.c: Likewise.
47999         * tests/test-getpass.c: Likewise.
48000         * tests/test-gettimeofday.c: Likewise.
48001         * tests/test-hmac-md5.c: Likewise.
48002         * tests/test-hmac-sha1.c: Likewise.
48003         * tests/test-iconv.c: Likewise.
48004         * tests/test-iconvme.c: Likewise.
48005         * tests/test-inttypes.c: Likewise.
48006         * tests/test-isnan.c: Likewise.
48007         * tests/test-isnanf.c: Likewise.
48008         * tests/test-isnanl-nolibm.c: Likewise.
48009         * tests/test-isnanl.c: Likewise.
48010         * tests/test-isnanl.h: Likewise.
48011         * tests/test-ldexpl.c: Likewise.
48012         * tests/test-linked_list.c: Likewise.
48013         * tests/test-linkedhash_list.c: Likewise.
48014         * tests/test-locale.c: Likewise.
48015         * tests/test-localename.c: Likewise.
48016         * tests/test-lock.c: Likewise.
48017         * tests/test-lseek.c: Likewise.
48018         * tests/test-malloca.c: Likewise.
48019         * tests/test-math.c: Likewise.
48020         * tests/test-mbscasecmp.c: Likewise.
48021         * tests/test-mbscasestr1.c: Likewise.
48022         * tests/test-mbscasestr2.c: Likewise.
48023         * tests/test-mbscasestr3.c: Likewise.
48024         * tests/test-mbscasestr4.c: Likewise.
48025         * tests/test-mbschr.c: Likewise.
48026         * tests/test-mbscspn.c: Likewise.
48027         * tests/test-mbsncasecmp.c: Likewise.
48028         * tests/test-mbspbrk.c: Likewise.
48029         * tests/test-mbspcasecmp.c: Likewise.
48030         * tests/test-mbsrchr.c: Likewise.
48031         * tests/test-mbsspn.c: Likewise.
48032         * tests/test-mbsstr1.c: Likewise.
48033         * tests/test-mbsstr2.c: Likewise.
48034         * tests/test-mbsstr3.c: Likewise.
48035         * tests/test-md5.c: Likewise.
48036         * tests/test-memmem.c: Likewise.
48037         * tests/test-netinet_in.c: Likewise.
48038         * tests/test-open.c: Likewise.
48039         * tests/test-printf-frexp.c: Likewise.
48040         * tests/test-printf-frexpl.c: Likewise.
48041         * tests/test-printf-posix.c: Likewise.
48042         * tests/test-printf-posix.h: Likewise.
48043         * tests/test-rbtree_list.c: Likewise.
48044         * tests/test-rbtree_oset.c: Likewise.
48045         * tests/test-rbtreehash_list.c: Likewise.
48046         * tests/test-read-file.c: Likewise.
48047         * tests/test-rijndael.c: Likewise.
48048         * tests/test-search.c: Likewise.
48049         * tests/test-signbit.c: Likewise.
48050         * tests/test-sleep.c: Likewise.
48051         * tests/test-snprintf-posix.c: Likewise.
48052         * tests/test-snprintf-posix.h: Likewise.
48053         * tests/test-snprintf.c: Likewise.
48054         * tests/test-sprintf-posix.c: Likewise.
48055         * tests/test-sprintf-posix.h: Likewise.
48056         * tests/test-stat-time.c: Likewise.
48057         * tests/test-stdbool.c: Likewise.
48058         * tests/test-stdint.c: Likewise.
48059         * tests/test-stdio.c: Likewise.
48060         * tests/test-stdlib.c: Likewise.
48061         * tests/test-stpncpy.c: Likewise.
48062         * tests/test-strcasestr.c: Likewise.
48063         * tests/test-striconv.c: Likewise.
48064         * tests/test-striconveh.c: Likewise.
48065         * tests/test-striconveha.c: Likewise.
48066         * tests/test-string.c: Likewise.
48067         * tests/test-sys_select.c: Likewise.
48068         * tests/test-sys_socket.c: Likewise.
48069         * tests/test-sys_stat.c: Likewise.
48070         * tests/test-sys_time.c: Likewise.
48071         * tests/test-sysexits.c: Likewise.
48072         * tests/test-time.c: Likewise.
48073         * tests/test-tls.c: Likewise.
48074         * tests/test-trunc.c: Likewise.
48075         * tests/test-truncf.c: Likewise.
48076         * tests/test-truncl.c: Likewise.
48077         * tests/test-unistd.c: Likewise.
48078         * tests/test-vasnprintf-posix.c: Likewise.
48079         * tests/test-vasnprintf-posix2.c: Likewise.
48080         * tests/test-vasnprintf.c: Likewise.
48081         * tests/test-vasprintf-posix.c: Likewise.
48082         * tests/test-vasprintf.c: Likewise.
48083         * tests/test-verify.c: Likewise.
48084         * tests/test-vfprintf-posix.c: Likewise.
48085         * tests/test-vprintf-posix.c: Likewise.
48086         * tests/test-vsnprintf-posix.c: Likewise.
48087         * tests/test-vsnprintf.c: Likewise.
48088         * tests/test-vsprintf-posix.c: Likewise.
48089         * tests/test-wchar.c: Likewise.
48090         * tests/test-wctype.c: Likewise.
48091         * tests/test-wcwidth.c: Likewise.
48092         * tests/test-xstrtol.c: Likewise.
48093         * tests/test-xvasprintf.c: Likewise.
48094         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48095         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48096         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48097         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48098         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48099         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48100         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48101         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48102         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48103         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48104         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48105         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48106         * tests/uniname/test-uninames.c: Likewise.
48107         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48108         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48109         * tests/unistdio/test-u16-printf1.h: Likewise.
48110         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48111         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48112         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48113         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48114         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48115         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48116         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48117         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48118         * tests/unistdio/test-u32-printf1.h: Likewise.
48119         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48120         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48121         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48122         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48123         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48124         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48125         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48126         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48127         * tests/unistdio/test-u8-printf1.h: Likewise.
48128         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48129         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48130         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48131         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48132         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48133         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48134         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48135         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48136         * tests/unistdio/test-ulc-printf1.h: Likewise.
48137         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48138         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48139         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48140         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48141         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48142         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48143         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48144         * tests/uniwidth/test-u16-width.c: Likewise.
48145         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48146         * tests/uniwidth/test-u32-width.c: Likewise.
48147         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48148         * tests/uniwidth/test-u8-width.c: Likewise.
48149         * tests/uniwidth/test-uc_width.c: Likewise.
48150         * config/srclist-update: Likewise.
48151         (fixlicense): Update to GPLv3+.
48152
48153         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48154         * tests/test-tsearch.c: Change copyright notice.
48155
48156         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48157         * lib/c-strcaseeq.h: Change copyright notice.
48158         * lib/streq.h: Likewise.
48159         * lib/uniconv.h: Likewise.
48160         * lib/uniconv/u-conv-from-enc.h: Likewise.
48161         * lib/uniconv/u-conv-to-enc.h: Likewise.
48162         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48163         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48164         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48165         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48166         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48167         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48168         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48169         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48170         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48171         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48172         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48173         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48174         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48175         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48176         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48177         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48178         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48179         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48180         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48181         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48182         * lib/uniname.h: Likewise.
48183         * lib/uniname/uniname.c: Likewise.
48184         * lib/unistdio.h: Likewise.
48185         * lib/unistdio/u-asnprintf.h: Likewise.
48186         * lib/unistdio/u-asprintf.h: Likewise.
48187         * lib/unistdio/u-printf-args.c: Likewise.
48188         * lib/unistdio/u-printf-args.h: Likewise.
48189         * lib/unistdio/u-printf-parse.h: Likewise.
48190         * lib/unistdio/u-snprintf.h: Likewise.
48191         * lib/unistdio/u-sprintf.h: Likewise.
48192         * lib/unistdio/u-vasprintf.h: Likewise.
48193         * lib/unistdio/u-vsnprintf.h: Likewise.
48194         * lib/unistdio/u-vsprintf.h: Likewise.
48195         * lib/unistdio/u16-asnprintf.c: Likewise.
48196         * lib/unistdio/u16-asprintf.c: Likewise.
48197         * lib/unistdio/u16-printf-parse.c: Likewise.
48198         * lib/unistdio/u16-snprintf.c: Likewise.
48199         * lib/unistdio/u16-sprintf.c: Likewise.
48200         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48201         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48202         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48203         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48204         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48205         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48206         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48207         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48208         * lib/unistdio/u16-vasnprintf.c: Likewise.
48209         * lib/unistdio/u16-vasprintf.c: Likewise.
48210         * lib/unistdio/u16-vsnprintf.c: Likewise.
48211         * lib/unistdio/u16-vsprintf.c: Likewise.
48212         * lib/unistdio/u32-asnprintf.c: Likewise.
48213         * lib/unistdio/u32-asprintf.c: Likewise.
48214         * lib/unistdio/u32-printf-parse.c: Likewise.
48215         * lib/unistdio/u32-snprintf.c: Likewise.
48216         * lib/unistdio/u32-sprintf.c: Likewise.
48217         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48218         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48219         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48220         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48221         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48222         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48223         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48224         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48225         * lib/unistdio/u32-vasnprintf.c: Likewise.
48226         * lib/unistdio/u32-vasprintf.c: Likewise.
48227         * lib/unistdio/u32-vsnprintf.c: Likewise.
48228         * lib/unistdio/u32-vsprintf.c: Likewise.
48229         * lib/unistdio/u8-asnprintf.c: Likewise.
48230         * lib/unistdio/u8-asprintf.c: Likewise.
48231         * lib/unistdio/u8-printf-parse.c: Likewise.
48232         * lib/unistdio/u8-snprintf.c: Likewise.
48233         * lib/unistdio/u8-sprintf.c: Likewise.
48234         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48235         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48236         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48237         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48238         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48239         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48240         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48241         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48242         * lib/unistdio/u8-vasnprintf.c: Likewise.
48243         * lib/unistdio/u8-vasprintf.c: Likewise.
48244         * lib/unistdio/u8-vsnprintf.c: Likewise.
48245         * lib/unistdio/u8-vsprintf.c: Likewise.
48246         * lib/unistdio/ulc-asnprintf.c: Likewise.
48247         * lib/unistdio/ulc-asprintf.c: Likewise.
48248         * lib/unistdio/ulc-printf-parse.c: Likewise.
48249         * lib/unistdio/ulc-snprintf.c: Likewise.
48250         * lib/unistdio/ulc-sprintf.c: Likewise.
48251         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48252         * lib/unistdio/ulc-vasprintf.c: Likewise.
48253         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48254         * lib/unistdio/ulc-vsprintf.c: Likewise.
48255         * lib/unistr.h: Likewise.
48256         * lib/unistr/u-cpy-alloc.h: Likewise.
48257         * lib/unistr/u-cpy.h: Likewise.
48258         * lib/unistr/u-endswith.h: Likewise.
48259         * lib/unistr/u-move.h: Likewise.
48260         * lib/unistr/u-set.h: Likewise.
48261         * lib/unistr/u-startswith.h: Likewise.
48262         * lib/unistr/u-stpcpy.h: Likewise.
48263         * lib/unistr/u-stpncpy.h: Likewise.
48264         * lib/unistr/u-strcat.h: Likewise.
48265         * lib/unistr/u-strcpy.h: Likewise.
48266         * lib/unistr/u-strcspn.h: Likewise.
48267         * lib/unistr/u-strdup.h: Likewise.
48268         * lib/unistr/u-strlen.h: Likewise.
48269         * lib/unistr/u-strncat.h: Likewise.
48270         * lib/unistr/u-strncpy.h: Likewise.
48271         * lib/unistr/u-strnlen.h: Likewise.
48272         * lib/unistr/u-strpbrk.h: Likewise.
48273         * lib/unistr/u-strspn.h: Likewise.
48274         * lib/unistr/u-strstr.h: Likewise.
48275         * lib/unistr/u-strtok.h: Likewise.
48276         * lib/unistr/u16-check.c: Likewise.
48277         * lib/unistr/u16-chr.c: Likewise.
48278         * lib/unistr/u16-cmp.c: Likewise.
48279         * lib/unistr/u16-cpy-alloc.c: Likewise.
48280         * lib/unistr/u16-cpy.c: Likewise.
48281         * lib/unistr/u16-endswith.c: Likewise.
48282         * lib/unistr/u16-mblen.c: Likewise.
48283         * lib/unistr/u16-mbsnlen.c: Likewise.
48284         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48285         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48286         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48287         * lib/unistr/u16-mbtouc.c: Likewise.
48288         * lib/unistr/u16-mbtoucr.c: Likewise.
48289         * lib/unistr/u16-move.c: Likewise.
48290         * lib/unistr/u16-next.c: Likewise.
48291         * lib/unistr/u16-prev.c: Likewise.
48292         * lib/unistr/u16-set.c: Likewise.
48293         * lib/unistr/u16-startswith.c: Likewise.
48294         * lib/unistr/u16-stpcpy.c: Likewise.
48295         * lib/unistr/u16-stpncpy.c: Likewise.
48296         * lib/unistr/u16-strcat.c: Likewise.
48297         * lib/unistr/u16-strchr.c: Likewise.
48298         * lib/unistr/u16-strcmp.c: Likewise.
48299         * lib/unistr/u16-strcpy.c: Likewise.
48300         * lib/unistr/u16-strcspn.c: Likewise.
48301         * lib/unistr/u16-strdup.c: Likewise.
48302         * lib/unistr/u16-strlen.c: Likewise.
48303         * lib/unistr/u16-strmblen.c: Likewise.
48304         * lib/unistr/u16-strmbtouc.c: Likewise.
48305         * lib/unistr/u16-strncat.c: Likewise.
48306         * lib/unistr/u16-strncmp.c: Likewise.
48307         * lib/unistr/u16-strncpy.c: Likewise.
48308         * lib/unistr/u16-strnlen.c: Likewise.
48309         * lib/unistr/u16-strpbrk.c: Likewise.
48310         * lib/unistr/u16-strrchr.c: Likewise.
48311         * lib/unistr/u16-strspn.c: Likewise.
48312         * lib/unistr/u16-strstr.c: Likewise.
48313         * lib/unistr/u16-strtok.c: Likewise.
48314         * lib/unistr/u16-to-u32.c: Likewise.
48315         * lib/unistr/u16-to-u8.c: Likewise.
48316         * lib/unistr/u16-uctomb-aux.c: Likewise.
48317         * lib/unistr/u16-uctomb.c: Likewise.
48318         * lib/unistr/u32-check.c: Likewise.
48319         * lib/unistr/u32-chr.c: Likewise.
48320         * lib/unistr/u32-cmp.c: Likewise.
48321         * lib/unistr/u32-cpy-alloc.c: Likewise.
48322         * lib/unistr/u32-cpy.c: Likewise.
48323         * lib/unistr/u32-endswith.c: Likewise.
48324         * lib/unistr/u32-mblen.c: Likewise.
48325         * lib/unistr/u32-mbsnlen.c: Likewise.
48326         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48327         * lib/unistr/u32-mbtouc.c: Likewise.
48328         * lib/unistr/u32-mbtoucr.c: Likewise.
48329         * lib/unistr/u32-move.c: Likewise.
48330         * lib/unistr/u32-next.c: Likewise.
48331         * lib/unistr/u32-prev.c: Likewise.
48332         * lib/unistr/u32-set.c: Likewise.
48333         * lib/unistr/u32-startswith.c: Likewise.
48334         * lib/unistr/u32-stpcpy.c: Likewise.
48335         * lib/unistr/u32-stpncpy.c: Likewise.
48336         * lib/unistr/u32-strcat.c: Likewise.
48337         * lib/unistr/u32-strchr.c: Likewise.
48338         * lib/unistr/u32-strcmp.c: Likewise.
48339         * lib/unistr/u32-strcpy.c: Likewise.
48340         * lib/unistr/u32-strcspn.c: Likewise.
48341         * lib/unistr/u32-strdup.c: Likewise.
48342         * lib/unistr/u32-strlen.c: Likewise.
48343         * lib/unistr/u32-strmblen.c: Likewise.
48344         * lib/unistr/u32-strmbtouc.c: Likewise.
48345         * lib/unistr/u32-strncat.c: Likewise.
48346         * lib/unistr/u32-strncmp.c: Likewise.
48347         * lib/unistr/u32-strncpy.c: Likewise.
48348         * lib/unistr/u32-strnlen.c: Likewise.
48349         * lib/unistr/u32-strpbrk.c: Likewise.
48350         * lib/unistr/u32-strrchr.c: Likewise.
48351         * lib/unistr/u32-strspn.c: Likewise.
48352         * lib/unistr/u32-strstr.c: Likewise.
48353         * lib/unistr/u32-strtok.c: Likewise.
48354         * lib/unistr/u32-to-u16.c: Likewise.
48355         * lib/unistr/u32-to-u8.c: Likewise.
48356         * lib/unistr/u32-uctomb.c: Likewise.
48357         * lib/unistr/u8-check.c: Likewise.
48358         * lib/unistr/u8-chr.c: Likewise.
48359         * lib/unistr/u8-cmp.c: Likewise.
48360         * lib/unistr/u8-cpy-alloc.c: Likewise.
48361         * lib/unistr/u8-cpy.c: Likewise.
48362         * lib/unistr/u8-endswith.c: Likewise.
48363         * lib/unistr/u8-mblen.c: Likewise.
48364         * lib/unistr/u8-mbsnlen.c: Likewise.
48365         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48366         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48367         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48368         * lib/unistr/u8-mbtouc.c: Likewise.
48369         * lib/unistr/u8-mbtoucr.c: Likewise.
48370         * lib/unistr/u8-move.c: Likewise.
48371         * lib/unistr/u8-next.c: Likewise.
48372         * lib/unistr/u8-prev.c: Likewise.
48373         * lib/unistr/u8-set.c: Likewise.
48374         * lib/unistr/u8-startswith.c: Likewise.
48375         * lib/unistr/u8-stpcpy.c: Likewise.
48376         * lib/unistr/u8-stpncpy.c: Likewise.
48377         * lib/unistr/u8-strcat.c: Likewise.
48378         * lib/unistr/u8-strchr.c: Likewise.
48379         * lib/unistr/u8-strcmp.c: Likewise.
48380         * lib/unistr/u8-strcpy.c: Likewise.
48381         * lib/unistr/u8-strcspn.c: Likewise.
48382         * lib/unistr/u8-strdup.c: Likewise.
48383         * lib/unistr/u8-strlen.c: Likewise.
48384         * lib/unistr/u8-strmblen.c: Likewise.
48385         * lib/unistr/u8-strmbtouc.c: Likewise.
48386         * lib/unistr/u8-strncat.c: Likewise.
48387         * lib/unistr/u8-strncmp.c: Likewise.
48388         * lib/unistr/u8-strncpy.c: Likewise.
48389         * lib/unistr/u8-strnlen.c: Likewise.
48390         * lib/unistr/u8-strpbrk.c: Likewise.
48391         * lib/unistr/u8-strrchr.c: Likewise.
48392         * lib/unistr/u8-strspn.c: Likewise.
48393         * lib/unistr/u8-strstr.c: Likewise.
48394         * lib/unistr/u8-strtok.c: Likewise.
48395         * lib/unistr/u8-to-u16.c: Likewise.
48396         * lib/unistr/u8-to-u32.c: Likewise.
48397         * lib/unistr/u8-uctomb-aux.c: Likewise.
48398         * lib/unistr/u8-uctomb.c: Likewise.
48399         * lib/unitypes.h: Likewise.
48400         * lib/uniwidth.h: Likewise.
48401         * lib/uniwidth/cjk.h: Likewise.
48402         * lib/uniwidth/u16-strwidth.c: Likewise.
48403         * lib/uniwidth/u16-width.c: Likewise.
48404         * lib/uniwidth/u32-strwidth.c: Likewise.
48405         * lib/uniwidth/u32-width.c: Likewise.
48406         * lib/uniwidth/u8-strwidth.c: Likewise.
48407         * lib/uniwidth/u8-width.c: Likewise.
48408         * lib/uniwidth/width.c: Likewise.
48409
48410 2007-10-07  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48413         The file is still under LGPL (see modules/inttypes).
48414
48415 2007-10-06  Bruno Haible  <bruno@clisp.org>
48416
48417         * modules/trunc (Dependencies): Add 'extensions'.
48418         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48419         Reported by Ben Pfaff <blp@gnu.org>.
48420
48421 2007-10-06  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/freopen-tests: New file.
48424         * tests/test-freopen.c: New file.
48425
48426         * modules/fopen-tests: New file.
48427         * tests/test-fopen.c: New file.
48428
48429         * modules/fopen: New file.
48430         * lib/fopen.c: New file.
48431         * m4/fopen.m4: New file.
48432         * modules/freopen: New file.
48433         * lib/freopen.c: New file.
48434         * m4/freopen.m4: New file.
48435         * lib/stdio.in.h (fopen, freopen): New declarations.
48436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48437         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48438         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48439         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48440         * doc/functions/fopen.texi: Mention the 'fopen' module.
48441         * doc/functions/freopen.texi: Mention the 'freopen' module.
48442
48443 2007-10-06  Bruno Haible  <bruno@clisp.org>
48444
48445         * modules/open-tests: New file.
48446         * tests/test-open.c: New file.
48447
48448         * modules/open: New file.
48449         * lib/open.c: New file.
48450         * m4/open.m4: New file.
48451         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48452         lib/open.c does.
48453         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48455         macros.
48456         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48457         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48458         REPLACE_OPEN.
48459         * doc/functions/open.texi: Mention the 'open' module.
48460
48461 2007-10-04  Bruno Haible  <bruno@clisp.org>
48462
48463         * modules/ceill-tests: New file.
48464         * tests/test-ceill.c: New file.
48465
48466         * modules/ceill: New file.
48467         * lib/ceill.c: Replace entire file.
48468         * m4/ceill.m4: New file.
48469         * lib/math.in.h (ceill): Replace declaration.
48470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48471         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48472         * doc/functions/ceill.texi: Mention the 'ceill' module.
48473         * modules/mathl (Files): Remove lib/ceill.c.
48474         (Depends-on): Add ceill.
48475
48476 2007-10-04  Bruno Haible  <bruno@clisp.org>
48477
48478         * modules/ceilf-tests: New file.
48479         * tests/test-ceilf.c: New file.
48480
48481         * modules/ceilf: New file.
48482         * lib/ceil.c: New file.
48483         * lib/ceilf.c: New file.
48484         * m4/ceilf.m4: New file.
48485         * lib/math.in.h (ceilf): New declaration.
48486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48487         HAVE_DECL_CEILF.
48488         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48489         HAVE_DECL_CEILF.
48490         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48491
48492 2007-10-04  Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/floorl-tests: New file.
48495         * tests/test-floorl.c: New file.
48496
48497         * modules/floorl: New file.
48498         * lib/floorl.c: Replace entire file.
48499         * m4/floorl.m4: New file.
48500         * lib/math.in.h (floorl): Replace declaration.
48501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48502         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48503         * doc/functions/floorl.texi: Mention the 'floorl' module.
48504         * modules/mathl (Files): Remove lib/floorl.c.
48505         (Depends-on): Add floorl.
48506
48507 2007-10-04  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/floorf-tests: New file.
48510         * tests/test-floorf.c: New file.
48511
48512         * modules/floorf: New file.
48513         * lib/floor.c: New file.
48514         * lib/floorf.c: New file.
48515         * m4/floorf.m4: New file.
48516         * lib/math.in.h (floorf): New declaration.
48517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48518         HAVE_DECL_FLOORF.
48519         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48520         HAVE_DECL_FLOORF.
48521         * doc/functions/floorf.texi: Mention the 'floorf' module.
48522
48523 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48524             Bruno Haible  <bruno@clisp.org>
48525
48526         Advertise for the Git server instead of the CVS server.
48527         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48528         repository instead of the CVS one.
48529         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48530         about all VCS systems generically.
48531         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48532
48533 2007-10-04  Bruno Haible  <bruno@clisp.org>
48534
48535         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48536         means.
48537         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48538
48539 2007-10-04  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/truncl-tests: New file.
48542         * tests/test-truncl.c: New file.
48543
48544         * modules/truncl: New file.
48545         * lib/truncl.c: New file.
48546         * m4/truncl.m4: New file.
48547         * lib/math.in.h (truncl): New declaration.
48548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48549         HAVE_DECL_TRUNCL.
48550         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48551         HAVE_DECL_TRUNCL.
48552         * doc/functions/truncl.texi: Mention the 'truncl' module.
48553
48554 2007-10-04  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/truncf-tests: New file.
48557         * tests/test-truncf.c: New file.
48558
48559         * modules/truncf: New file.
48560         * lib/trunc.c: Make paramerizable through USE_* macros.
48561         * lib/truncf.c: New file.
48562         * m4/truncf.m4: New file.
48563         * lib/math.in.h (truncf): New declaration.
48564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48565         HAVE_DECL_TRUNCF.
48566         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48567         HAVE_DECL_TRUNCF.
48568         * doc/functions/truncf.texi: Mention the 'truncf' module.
48569
48570 2007-10-03  Bruno Haible  <bruno@clisp.org>
48571
48572         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48573         augmentation also for tests modules.
48574         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48575         * modules/atexit-tests (Makefile.am): Likewise.
48576         * modules/binary-io-tests (Makefile.am): Likewise.
48577         * modules/c-strcase-tests (Makefile.am): Likewise.
48578         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48579         * modules/canonicalize-tests (Makefile.am): Likewise.
48580         * modules/closein-tests (Makefile.am): Likewise.
48581         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48582         * modules/freadahead-tests (Makefile.am): Likewise.
48583         * modules/fseek-tests (Makefile.am): Likewise.
48584         * modules/fseeko-tests (Makefile.am): Likewise.
48585         * modules/ftell-tests (Makefile.am): Likewise.
48586         * modules/ftello-tests (Makefile.am): Likewise.
48587         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48588         * modules/isnanl-tests (Makefile.am): Likewise.
48589         * modules/lseek-tests (Makefile.am): Likewise.
48590         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48591         * modules/mbscasestr-tests (Makefile.am): Likewise.
48592         * modules/mbschr-tests (Makefile.am): Likewise.
48593         * modules/mbscspn-tests (Makefile.am): Likewise.
48594         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48595         * modules/mbspbrk-tests (Makefile.am): Likewise.
48596         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48597         * modules/mbsrchr-tests (Makefile.am): Likewise.
48598         * modules/mbsspn-tests (Makefile.am): Likewise.
48599         * modules/mbsstr-tests (Makefile.am): Likewise.
48600         * modules/printf-posix-tests (Makefile.am): Likewise.
48601         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48602         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48603         * modules/tsearch-tests (Makefile.am): Likewise.
48604         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48605         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48606         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48607         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48608         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48609         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48610         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48611         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48612         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48613         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48614         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48615         * modules/xstrtol-tests (Makefile.am): Likewise.
48616         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48617         * modules/yesno-tests (Makefile.am): Likewise.
48618
48619 2007-10-03  Bruno Haible  <bruno@clisp.org>
48620
48621         * modules/trunc-tests: New file.
48622         * tests/test-trunc.c: New file.
48623
48624         * modules/trunc: New file.
48625         * lib/trunc.c: New file.
48626         * m4/trunc.m4: New file.
48627         * lib/math.in.h (trunc): New declaration.
48628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48629         HAVE_DECL_TRUNC.
48630         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48631         HAVE_DECL_TRUNC.
48632         * doc/functions/trunc.texi: Mention the 'trunc' module.
48633
48634 2007-10-03  Bruno Haible  <bruno@clisp.org>
48635
48636         * tests/test-fpending.c: New file, mostly copied
48637         from coreutils/lib/t-fpending.c.
48638         * modules/fpending-tests: New file.
48639
48640 2007-10-03  Bruno Haible  <bruno@clisp.org>
48641
48642         Port the stdio extensions to QNX (untested).
48643         * lib/fseterr.c (fseterr): Add support for QNX.
48644         * lib/fbufmode.c (fbufmode): Likewise.
48645         * lib/freadable.c (freadable): Likewise.
48646         * lib/fwritable.c (fwritable): Likewise.
48647         * lib/freading.c (freading): Likewise.
48648         * lib/fwriting.c (fwriting): Likewise.
48649         * lib/freadahead.c (freadahed): Likewise.
48650         * lib/fpurge.c (fpurge): Likewise.
48651         * lib/fseeko.c (rpl_fseeko): Likewise.
48652
48653 2007-10-03  Bruno Haible  <bruno@clisp.org>
48654             Jim Meyering  <jim@meyering.net>
48655             Eric Blake  <ebb9@byu.net>
48656
48657         * doc/relocatable.texi: Use @command instead of @program.
48658
48659 2007-10-02  Jim Meyering  <jim@meyering.net>
48660
48661         Perform one more "_.h" -> ".in.h" substitution.
48662         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48663         instead of unistd_.h here, too.
48664
48665 2007-10-01  Bruno Haible  <bruno@clisp.org>
48666
48667         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48668         Needed for the alloca-opt module.
48669
48670 2007-09-30  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48673         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48674         alloca_.h.
48675         * lib/argz.in.h: Renamed from lib/argz_.h.
48676         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48677         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48678         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48679         byteswap_.h.
48680         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48681         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48682         dirent_.h.
48683         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48684         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48685         fcntl_.h.
48686         * lib/float.in.h: Renamed from lib/float_.h.
48687         * modules/float (Files, Makefile.am): Use float.in.h instead of
48688         float_.h.
48689         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48690         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48691         fnmatch_.h.
48692         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48693         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48694         getopt_.h.
48695         * lib/glob.in.h: Renamed from lib/glob_.h.
48696         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48697         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48698         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48699         iconv_.h.
48700         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48701         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48702         inttypes_.h.
48703         * lib/locale.in.h: Renamed from lib/locale_.h.
48704         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48705         locale_.h.
48706         * lib/math.in.h: Renamed from lib/math_.h.
48707         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48708         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48709         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48710         of netinet_in_.h. Add dependency.
48711         * lib/poll.in.h: Renamed from lib/poll_.h.
48712         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48713         * lib/search.in.h: Renamed from lib/search_.h.
48714         * modules/search (Files, Makefile.am): Use search.in.h instead of
48715         search_.h.
48716         * lib/signal.in.h: Renamed from lib/signal_.h.
48717         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48718         _signal.h.
48719         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48720         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48721         stdbool_.h.
48722         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48723         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48724         stdint_.h.
48725         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48726         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48727         stdio_.h.
48728         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48729         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48730         stdlib_.h.
48731         * lib/string.in.h: Renamed from lib/string_.h.
48732         * modules/string (Files, Makefile.am): Use string.in.h instead of
48733         string_.h.
48734         * doc/gnulib-tool.texi (Initial import): Update.
48735         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48736         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48737         of sys_select_.h. Add dependency.
48738         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48739         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48740         of sys_socket_.h.
48741         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48742         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48743         sys_stat_.h.
48744         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48745         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48746         sys_time_.h.
48747         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48748         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48749         sysexits_.h.
48750         * lib/time.in.h: Renamed from lib/time_.h.
48751         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48752         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48753         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48754         unistd_.h.
48755         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48756         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48757         wchar_.h.
48758         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48759         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48760         wctype_.h.
48761         * build-aux/bootstrap (slurp): Update.
48762         * lib/.cppi-disable: Update.
48763
48764 2007-09-30  Bruno Haible  <bruno@clisp.org>
48765
48766         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48767         Needed on BeOS.
48768
48769 2007-09-30  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48772
48773 2007-09-29  Bruno Haible  <bruno@clisp.org>
48774
48775         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48776
48777 2007-09-29  Bruno Haible  <bruno@clisp.org>
48778
48779         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48780         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48781         * build-aux/install-reloc: Compile also areadlink.c.
48782         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48783
48784 2007-09-29  Bruno Haible  <bruno@clisp.org>
48785
48786         * gnulib-tool (func_emit_initmacro_done): Indentation.
48787
48788 2007-09-29  Bruno Haible  <bruno@clisp.org>
48789
48790         * README: Add CVS checkout update instructions.
48791         Info from Bob Proulx <bob@proulx.com>.
48792
48793 2007-09-28  Eric Blake  <ebb9@byu.net>
48794
48795         Provide move-if-change.
48796         * build-aux/move-if-change: New file, based on best practice
48797         rather than any canonical upstream location.
48798
48799 2007-09-28  Jim Meyering  <jim@meyering.net>
48800
48801         Fix canonicalize loop-detection corner case.
48802         Do not attempt to stat the symlink values stored via seen_triple.
48803         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48804         on linux-2.6.18, (but not 2.6.22).
48805         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48806         triple_compare.  The former compares dev,ino,filename, while the latter
48807         would actually stat dirname(filename) when dev and ino were equal.
48808         * lib/hash-triple.c: Install <string.h>.
48809         (STREQ): Define.
48810         (triple_compare_ino_str): New function.
48811         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48812
48813 2007-09-28  Eric Blake  <ebb9@byu.net>
48814
48815         Enforce that AC_REPLACE_FUNCS files exist.
48816         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48817         override check for typos.
48818
48819         Fix test-closein on Solaris 10.
48820         * tests/test-closein.c (main): Don't assume stdin can be inherited
48821         closed on all systems.
48822         * tests/test-closein.sh: Likewise.
48823         Reported by Piotr Tarnowski.
48824
48825 2007-09-28  Jim Meyering  <jim@meyering.net>
48826
48827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48828
48829 2007-09-27  Jim Meyering  <jim@meyering.net>
48830
48831         canonicalize: Avoid a false-positive cycle failure.
48832         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48833         Sort.  Remove cycle-check.
48834         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48835         not cycle-check.h.
48836         (seen_triple): New function.
48837         (canonicalize_filename_mode): Use it instead of cycle-check.
48838         * tests/test-canonicalize.c: Add a test for this bug.
48839         * tests/test-canonicalize.sh: Set up and run the test.
48840
48841         New module, file-set, from coreutils.
48842         * modules/file-set: Define it.
48843         * lib/file-set.c, lib/file-set.h: Implement.
48844
48845         New module, hash-triple, from coreutils.
48846         * modules/hash-triple: Define it.
48847         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48848
48849 2007-09-25  Eric Blake  <ebb9@byu.net>
48850
48851         Fix strerror on Interix.
48852         * lib/string_.h (strerror): Declare replacement.
48853         * doc/functions/strerror.texi (strerror): Document the Interix
48854         shortcoming.
48855         * modules/string (Makefile.am): Support new hooks.
48856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48857         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48858         gl_FUNC_STRERROR_SEPARATE.
48859         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48860         * lib/strerror.c (rpl_strerror): Provide replacement.
48861         * modules/strerror (Depends-on): Add string.
48862         (configure.ac): Detect use of module.
48863         * tests/test-strerror.c: New file.
48864         * modules/strerror-tests: New test module.
48865         * modules/argp (Depends-on): Add strerror.
48866         * modules/error (Depends-on): Likewise.
48867         Reported by Martin Koeppe.
48868
48869 2007-09-24  Bruno Haible  <bruno@clisp.org>
48870
48871         * README: Update git instructions.
48872
48873 2007-09-24  Eric Blake  <ebb9@byu.net>
48874
48875         Revert fpending breakage from 2007-09-08.
48876         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48877         __fpending.c.
48878
48879 2007-09-24  Jim Meyering  <jim@meyering.net>
48880
48881         filenamecat.c: Add a test.
48882         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48883         showing how the function works when DIR is the empty string.
48884
48885 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48886
48887         * tests/test-canonicalize.sh: Turn on executable bit.
48888
48889 2007-09-19  Eric Blake  <ebb9@byu.net>
48890
48891         * README: Update CVS instructions.
48892
48893 2007-09-18  Bruno Haible  <bruno@clisp.org>
48894
48895         * modules/areadlink: New file.
48896         * lib/areadlink.h (areadlink): New declaration.
48897         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48898
48899 2007-09-17  Jim Meyering  <jim@meyering.net>
48900
48901         * lib/savewd.c (ESTALE) [!defined]: Define.
48902         Reported to be required on Interix by Martin Koeppe.
48903
48904 2007-09-17  Bruno Haible  <bruno@clisp.org>
48905
48906         * gnulib-tool (func_version): Use $version.
48907
48908 2007-09-16  Bruno Haible  <bruno@clisp.org>
48909
48910         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48911         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48912         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48913         Reported by Greg Schafer <gschafer@zip.com.au>.
48914
48915 2007-09-15  Bruno Haible  <bruno@clisp.org>
48916
48917         * gnulib-tool (sed): Try a little harder to make bash understand the
48918         alias.
48919         Reported by Bruce Korb <bruce.korb@gmail.com>.
48920
48921 2007-09-13  Eric Blake  <ebb9@byu.net>
48922
48923         * ChangeLog: Remove conflict markers.
48924
48925 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48926
48927         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48928         Reported by Bruno Haible <bruno@clisp.org>.
48929
48930 2007-09-12  Bruno Haible  <bruno@clisp.org>
48931
48932         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48933         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48934         is not defined.
48935
48936 2007-09-12  Eric Blake  <ebb9@byu.net>
48937
48938         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48939         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48940         Autoconf definition.
48941         * modules/euidaccess (Depends-on): Add extensions, for
48942         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48943         * modules/fnmatch (Depends-on): Likewise.
48944         * modules/getaddrinfo (Depends-on): Likewise.
48945         * modules/getdelim (Depends-on): Likewise.
48946         * modules/getline (Depends-on): Likewise.
48947         * modules/getsubopt (Depends-on): Likewise.
48948         * modules/gettext (Depends-on): Likewise.
48949         * modules/group-member (Depends-on): Likewise.
48950         * modules/mbchar (Depends-on): Likewise.
48951         * modules/memmem (Depends-on): Likewise.
48952         * modules/mempcpy (Depends-on): Likewise.
48953         * modules/memrchr (Depends-on): Likewise.
48954         * modules/pagealign_alloc (Depends-on): Likewise.
48955         * modules/readutmp (Depends-on): Likewise.
48956         * modules/stpcpy (Depends-on): Likewise.
48957         * modules/stpncpy (Depends-on): Likewise.
48958         * modules/strchrnul (Depends-on): Likewise.
48959         * modules/strndup (Depends-on): Likewise.
48960         * modules/strsep (Depends-on): Likewise.
48961         * modules/strverscmp (Depends-on): Likewise.
48962         * modules/vasprintf (Depends-on): Likewise.
48963         * modules/wcwidth (Depends-on): Likewise.
48964         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48965         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48968         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48969         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48970         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48971         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48972         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48973         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48975         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48976         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48977         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48978         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48979         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48983         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48984         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48985         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48986         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48987         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48988         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48990         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48991         so that lock.m4 can be used in gettext without extensions module.
48992
48993 2007-09-11  Bruno Haible  <bruno@clisp.org>
48994
48995         * m4/isc-posix.m4: Remove file.
48996         Suggested by Eric Blake.
48997
48998 2007-09-11  Eric Blake  <ebb9@byu.net>
48999
49000         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49001
49002 2007-09-10  Bruno Haible  <bruno@clisp.org>
49003
49004         * posix-modules: Fix typo in error message.
49005         Reported by Matt <mkraai@beckman.com>.
49006
49007 2007-09-09  Bruno Haible  <bruno@clisp.org>
49008
49009         * doc/functions/getdelim.texi: Update list of platforms lacking the
49010         function.
49011         * doc/functions/getline.texi: Likewise.
49012
49013 2007-09-09  Jim Meyering  <jim@meyering.net>
49014
49015         * lib/hash.c (hash_initialize): Detect calloc failure.
49016         Reported by Bruno Haible.
49017
49018 2007-09-09  Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49021         malloc or realloc fails.
49022
49023 2007-09-09  Bruno Haible  <bruno@clisp.org>
49024
49025         * modules/getcwd (Depends-on): Add malloc-posix.
49026         * modules/glob (Depends-on): Likewise.
49027         * modules/putenv (Depends-on): Likewise.
49028         * modules/strdup (Depends-on): Likewise.
49029         * modules/getdelim (Depends-on): Add realloc-posix.
49030         * modules/read-file (Depends-on): Likewise.
49031
49032 2007-09-09  Bruno Haible  <bruno@clisp.org>
49033
49034         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49035         (gl_FUNC_MALLOC_POSIX): Require it.
49036         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49037         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49038         * modules/realloc (Files): Add m4/malloc.m4.
49039         * modules/calloc (Files): Likewise.
49040
49041 2007-09-09  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/malloc-posix: New file.
49044         * modules/malloc (Depends-on): Add malloc-posix.
49045         * lib/malloc.c: Include errno.h.
49046         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49047         and a POSIX-compatible malloc into a single function. Set ENOMEM
49048         when returning NULL.
49049         * m4/malloc.m4: New file.
49050         * doc/functions/malloc.texi: Mention the malloc-posix module.
49051         * lib/stdlib_.h (malloc): New declaration.
49052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49053         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49054         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49055         and HAVE_MALLOC_POSIX.
49056
49057 2007-09-09  Bruno Haible  <bruno@clisp.org>
49058
49059         * modules/realloc-posix: New file.
49060         * modules/realloc (Depends-on): Add realloc-posix.
49061         * lib/realloc.c: Include errno.h.
49062         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49063         and a POSIX-compatible realloc into a single function. Set ENOMEM
49064         when returning NULL.
49065         * m4/realloc.m4: New file.
49066         * doc/functions/realloc.texi: Mention the realloc-posix module.
49067         * lib/stdlib_.h (realloc): New declaration.
49068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49069         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49070         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49071         and HAVE_REALLOC_POSIX.
49072
49073 2007-09-09  Bruno Haible  <bruno@clisp.org>
49074
49075         * modules/calloc-posix: New file.
49076         * modules/calloc (Depends-on): Add calloc-posix.
49077         * lib/calloc.c: Include errno.h.
49078         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49079         and a POSIX-compatible calloc into a single function. Set ENOMEM
49080         when returning NULL.
49081         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49082         * doc/functions/calloc.texi: Mention the calloc-posix module.
49083         * lib/stdlib_.h (calloc): New declaration.
49084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49085         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49086         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49087         and HAVE_CALLOC_POSIX.
49088
49089 2007-09-09  Bruno Haible  <bruno@clisp.org>
49090
49091         Allow for modules to show an arbitrary notice.
49092         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49093         * gnulib-tool: New option --extract-notice.
49094         (func_usage): Document it.
49095         (sed_extract_prog): Update.
49096         (func_get_notice): New function.
49097         (func_modules_notice): New function.
49098         (func_import, func_create_testdir): Invoke it.
49099         Suggested by Jim Meyering.
49100
49101 2007-09-09  Bruno Haible  <bruno@clisp.org>
49102
49103         * gnulib-tool: New options --verbose, --quiet.
49104         (func_usage): Document them.
49105         (verbose): New variable.
49106         (func_execute_command): New function.
49107         (func_import): Don't show the module list and the file list if
49108         $verbose < 0.
49109         (func_create_testdir): Likewise. Use func_execute_command.
49110         (func_create_megatestdir): Use func_execute_command.
49111
49112 2007-09-08  Bruno Haible  <bruno@clisp.org>
49113
49114         * gnulib-tool (func_import): Prefer rsync over wget when available,
49115         for fetching the PO files.
49116
49117 2007-09-08  Bruno Haible  <bruno@clisp.org>
49118
49119         * posix-modules: New file. Portions copied from gnulib-tool.
49120         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49121
49122 2007-09-08  Jim Meyering  <jim@meyering.net>
49123
49124         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49125         * lib/fpending.h: Rename from __fpending.h.
49126         * lib/fpending.c: Rename from __fpending.c.
49127         Include "fpending.h", not "__fpending.h".
49128         * lib/__fpending.h, lib/__fpending.c: Remove files.
49129         * modules/fpending (Files): Reflect new file names.
49130         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49131
49132 2007-09-08  Bruno Haible  <bruno@clisp.org>
49133
49134         * m4/inttypes-h.m4: Remove stub file.
49135
49136 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49137
49138         * doc/headers/stdint.texi: Discuss #include_next issue.
49139
49140 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49141
49142         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49143
49144 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49145
49146         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49147         in variable name.
49148
49149 2007-09-03  Jim Meyering  <jim@meyering.net>
49150
49151         New module: git-version-gen.
49152         * modules/git-version-gen: New file.
49153
49154         Import changes from coreutils for bootstrap script.
49155
49156         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49157
49158         bootstrap: uses rsync to download the .po files
49159         * build-aux/bootstrap (po_download_command_format): New global.
49160         (download_po_files): Use rsync.
49161         (update_po_files): Don't remove .po files after download,
49162         so future rsync runs can take advantage of the copies.
49163
49164         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49165
49166         Solve the unnecessary-.po-file-regeneration problem once and for all.
49167         * build-aux/bootstrap (download_po_files): New function, renamed from
49168         get_translations.  Now, downloads, but doesn't update LINGUAS.
49169         (update_po_files): New function.
49170
49171         bootstrap: Ignore more.
49172         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49173         uniwidth to e.g., lib/.gitignore.
49174         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49175
49176         * build-aux/bootstrap: New setting: vc_ignore.
49177         (insert_sorted_if_absent): Create $file if absent.
49178         Adapt to new, possibly empty, list: $vc_ignore.
49179
49180         bootstrap: generate more ignorable names
49181         * build-aux/bootstrap (slurp): When generating ignorable names,
49182         also map .sin to .sed, .gperf to .c, and .y to .c.
49183
49184 2007-09-03  Jim Meyering  <jim@meyering.net>
49185
49186         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49187         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49188
49189 2007-09-02  Bruno Haible  <bruno@clisp.org>
49190
49191         Fix mis-recognition of 'mcs' on QNX 6.
49192         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49193         output contains the string "Mono".
49194         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49195         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49196
49197 2007-09-01  Bruno Haible  <bruno@clisp.org>
49198
49199         Fix collision between uniwidth/* and linebreak modules.
49200         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49201         u32_width): Remove declarations.
49202         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49203         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49204         streq3, streq2, streq1, streq0): Remove functions.
49205         (STREQ): Remove macro.
49206         (is_cjk_encoding): Remove function.
49207         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49208         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49209         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49210         * NEWS: Document the change.
49211
49212 2007-09-01  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/streq.h: Add double-inclusion guard.
49215
49216 2007-09-01  Karl Berry  <karl@gnu.org>
49217
49218         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49219
49220 2007-08-28  Jim Meyering  <jim@meyering.net>
49221
49222         Rename mreadlink_with_size to areadlink_with_size.
49223         * NEWS: Document the change.
49224         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49225         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49226         * lib/mreadlink.h: Rename this to...
49227         * lib/areadlink.h: ...this.
49228         * modules/mreadlink-with-size: Rename this to...
49229         * modules/areadlink-with-size: ...this.
49230         * lib/canonicalize.c: Reflect the renaming.
49231         * modules/canonicalize: Likewise.
49232
49233 2007-08-26  Bruno Haible  <bruno@clisp.org>
49234
49235         * gnulib-tool (func_import): When deciding which files to remove,
49236         consider also dangling symbolic links.
49237         Reported by Eric Blake.
49238
49239 2007-08-26  Bruno Haible  <bruno@clisp.org>
49240
49241         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49242
49243 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49244
49245         * lib/readline.c: Don't include getline.h, the prototype is now
49246         found in stdio.h.
49247
49248 2007-08-23  Jim Meyering  <jim@meyering.net>
49249
49250         Getdelim touchup.
49251         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49252         around the funlockfile call, since funlockfile never sets errno.
49253         Don't set errno upon failed realloc.
49254
49255 2007-08-22  Eric Blake  <ebb9@byu.net>
49256
49257         Getline touchups.
49258         * lib/getdelim.c (getdelim): Revert regression that required *n to
49259         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49261         getdelim, rather than whether implementation is missing.
49262         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49263         * lib/stdio_.h (getline): Also declare if replacement is
49264         required.
49265         * doc/functions/getdelim.texi: New file.
49266         * doc/functions/getline.texi: Likewise.
49267         * doc/gnulib.texi (Function Substitutes): Add new files.
49268         Reported by Bruno Haible.
49269
49270 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49271
49272         * users.txt: Add Guile.
49273
49274 2007-08-22  Eric Blake  <ebb9@byu.net>
49275
49276         * tests/test-getdelim.c (main): Use remove, not unlink.
49277         * tests/test-getline.c (main): Likewise.
49278
49279         Move getline and getdelim into stdio.h, per POSIX 200x.
49280         * modules/getline (Files): Remove getline.h.
49281         (Depends-on): Add stdio.
49282         (configure.ac): Add module indicator.
49283         * modules/getdelim (Files): Remove getdelim.h.
49284         (Depends-on): Add stdio.
49285         (configure.ac): Add module indicator.
49286         * modules/stdio (Makefile.am): Work with new indicators.
49287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49288         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49290         * lib/getdelim.h: Delete.
49291         * lib/getline.h: Delete.
49292         * lib/stdio_.h (getdelim, getline): Declare.
49293         * modules/getdelim-tests: New module.
49294         * modules/getline-tests: Likewise.
49295         * tests/test-getdelim.c: New file.
49296         * tests/test-getline.c: Likewise.
49297         * NEWS: Document the change.
49298         * lib/getline.c: Update choice of header.
49299         * lib/csharpcomp.c: Likewise.
49300         * lib/getpass.c: Likewise.
49301         * lib/javacomp.c: Likewise.
49302         * lib/javaversion.c: Likewise.
49303         * lib/yesno.c: Likewise.
49304         * lib/getdelim.c: Likewise.
49305         (getdelim): Set errno on failure, and avoid memory leak.
49306
49307 2007-08-19  Bruno Haible  <bruno@clisp.org>
49308
49309         * modules/closein (Depends-on): Add freadahead.
49310         * lib/closein.c: Include freadahead.h.
49311         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49312         is zero.
49313
49314 2007-08-19  Bruno Haible  <bruno@clisp.org>
49315
49316         * modules/freadahead-tests: New file.
49317         * tests/test-freadahead.sh: New file.
49318         * tests/test-freadahead.c: New file.
49319
49320         * modules/freadahead: New file.
49321         * lib/freadahead.h: New file.
49322         * lib/freadahead.c: New file.
49323         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49324         fbufmode, fpurge, freadable, fwritable.
49325
49326 2007-08-19  Eric Blake  <ebb9@byu.net>
49327
49328         Test yesno in combination with closein.
49329         * lib/yesno.c (yesno): Document use of stdin.
49330         * modules/yesno-tests (Files): New module.
49331         * tests/test-yesno.c (main): New file.
49332         * tests/test-yesno.sh: Likewise.
49333
49334 2007-08-19  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49337         * lib/fseeko.c (rpl_fseeko): Likewise.
49338         * lib/fseterr.c (fseterr): Likewise.
49339
49340 2007-08-19  Bruno Haible  <bruno@clisp.org>
49341
49342         * tests/test-lseek.c (main): Disable a test for BeOS.
49343         * doc/functions/lseek.texi: Document the BeOS bug.
49344
49345 2007-08-19  Bruno Haible  <bruno@clisp.org>
49346             Eric Blake  <ebb9@byu.net>
49347
49348         * lib/lseek.c: Include <sys/stat.h>.
49349         (rpl_lseek): Add workaround code also for Unix platforms.
49350         Needed for BeOS.
49351         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49352         * doc/functions/lseek.texi: Document BeOS definiency.
49353
49354 2007-08-18  Bruno Haible  <bruno@clisp.org>
49355
49356         * modules/fstrcmp-tests: New file.
49357         * tests/test-fstrcmp.c: New file.
49358
49359 2007-08-18  Bruno Haible  <bruno@clisp.org>
49360
49361         * modules/fstrcmp: New file, from GNU gettext with modifications.
49362         * lib/fstrcmp.h: New file, from GNU gettext.
49363         * lib/fstrcmp.c: New file, from GNU gettext.
49364         * MODULES.html.sh (String handling): Add fstrcmp.
49365
49366 2007-08-18  Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49369         'bool'.
49370         (diag, compareseq): Remove const from the ctxt argument.
49371         (USE_HEURISTIC): Undefine at the end.
49372
49373 2007-08-18  Jim Meyering  <jim@meyering.net>
49374
49375         New file: lib/idcache.h
49376         * NEWS: Mention the addition.
49377         * modules/idcache (Files): Add lib/idcache.h
49378         * lib/idcache.c: Include "idcache.h".
49379         Don't include <sys/types.h>.
49380         Add a FIXME comment.
49381         Move file-scoped "static" declarations to the top.
49382         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49383
49384 2007-08-17  Bruno Haible  <bruno@clisp.org>
49385         and Paul Eggert  <eggert@cs.ucla.edu>
49386
49387         * MODULES.html.sh: Add diffseq.
49388         * modules/diffseq: New file.
49389         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49390         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49391
49392 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49393
49394         Import changes from coreutils for bootstrap script.
49395
49396         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * build-aux/bootstrap (slurp): Work even in environments where
49399         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49400         current code does not slurp files whose names start with ".", and
49401         this looks like it might be a troublesome area.
49402
49403         2007-07-11  Jim Meyering  <jim@meyering.net>
49404
49405         If there's a GPL vN copyright comment, require that N == 3.
49406
49407         2007-07-08  Jim Meyering  <jim@meyering.net>
49408
49409         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49410         * build-aux/bootstrap (mam_template): Move definition out of loop.
49411
49412         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49413
49414         * build-aux/bootstrap (symlink_to_dir): Rename function from
49415         symlink_to_gnulib.  Add a directory parameter.  Update all
49416         callers.
49417         (cp_mark_as_generated): Also check for -- and link to -- files in
49418         gl/.
49419
49420         2007-07-08  Jim Meyering  <jim@meyering.net>
49421
49422         Adapt to deeper hierarchy in gnulib.
49423         * build-aux/bootstrap (symlink_to_dir): If the destination
49424         directory doesn't exist, create it. This is required at least for
49425         "lib/uniwidth/cjk.h".
49426
49427         2007-05-15  Jim Meyering  <jim@meyering.net>
49428
49429         * build-aux/bootstrap: Now that generated Makefile.am files
49430         are no longer under version control, they must be created at
49431         bootstrap time.
49432
49433 2007-08-14  Ben Pfaff  <blp@gnu.org>
49434
49435         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49436
49437 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49440         given the changes below.
49441         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49442         even on hosts that have padding bits beyond the supported 64.
49443
49444 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49445
49446         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49447         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49448         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49449         depends on it.
49450         (xstrtol_error): Remove.
49451         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49452         but with a different signature.
49453         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49454         * lib/xstrtol-error.c: Include exitfail.h.
49455         (xstrtol_fatal): New function, with a different signature from the
49456         old xstrtol_error, so that the caller need not worry about passing
49457         in an exit status, or about storage management of the option argument.
49458         (xstrtol_error): Now a static function.  Redo signature to
49459         implement xstrtol_fatal.  Output the correct number of hyphens in
49460         front of the option so that the caller need not worry about
49461         storage management.
49462         (N_): New macro.
49463         (_): Remove; not used now.
49464         * modules/xstrtol: Depend on getopt.
49465         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49466         of old STRTOL_FATAL_ERROR macro.
49467         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49468         of test program.
49469         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49470         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49471
49472 2007-08-08  Eric Blake  <ebb9@byu.net>
49473
49474         * lib/xstrtol-error.c: Add missing include.
49475
49476         Move xstrtol messages into gnulib domain, when --pobase is used.
49477         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49478         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49479         * modules/xstrtol (Files): Distribute new file.
49480         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49481         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49482         * tests/test-xstrtol.c: ...into new file.
49483         * tests/test-xstrtoul.c: Also test xstrtoul.
49484         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49485         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49486         * tests/test-xstrtol.sh: Drive the tests.
49487         * tests/test-xstrtoimax.sh: Likewise.
49488         * tests/test-xstrtoumax.sh: Likewise.
49489         * modules/xstrtol-tests: New module.
49490         * modules/xstrtoimax-tests: Likewise.
49491         * modules/xstrtoumax-tests: Likewise.
49492
49493 2007-08-08  Jim Meyering  <jim@meyering.net>
49494
49495         New function: mfile_name_concat.
49496         * lib/filenamecat.c (mfile_name_concat): New function, just like
49497         file_name_concat, but return NULL upon failure rather than exiting
49498         with a diagnostic.
49499         * lib/filenamecat.h: Declare it.
49500
49501 2007-08-07  Bruno Haible  <bruno@clisp.org>
49502
49503         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49504         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49505         warning from gcc.
49506         Reported by Eric Blake.
49507
49508 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49509
49510         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49511         * modules/crypto/arcfour (License): Likewise.
49512         * modules/crypto/des-tests (License): Likewise.
49513         * modules/crypto/gc-arctwo-tests (License): Likewise.
49514         * modules/crypto/gc-des-tests (License): Likewise.
49515         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49516         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49517         * modules/crypto/gc-md2-tests (License): Likewise.
49518         * modules/crypto/gc-md4-tests (License): Likewise.
49519         * modules/crypto/gc-md5-tests (License): Likewise.
49520         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49521         * modules/crypto/gc-rijndael-tests (License): Likewise.
49522         * modules/crypto/gc-sha1-tests (License): Likewise.
49523         * modules/crypto/gc-tests (License): Likewise.
49524         * modules/crypto/hmac-md5 (License): Likewise.
49525         * modules/crypto/hmac-sha1 (License): Likewise.
49526         * modules/crypto/md2-tests (License): Likewise.
49527         * modules/crypto/md4-tests (License): Likewise.
49528         * modules/crypto/md5 (License): Likewise.
49529         * modules/crypto/rijndael (License): Likewise.
49530         * modules/crypto/sha1 (License): Likewise.
49531         * modules/memxor (License): Likewise.
49532
49533 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49534         and Bruno Haible  <bruno@clisp.org>
49535
49536         * NEWS: Describe interface changes to human, xstrtol.
49537         * lib/human.h: Include <xstrtol.h>.
49538         (human_options): Return enum strtol_error, not int.  Remove
49539         bool arg; take int * instead.
49540         * lib/human.c: Don't include "gettext.h".
49541         (_): Remove; no longer used.
49542         Don't include <xstrtol.h>, since human.h does it.
49543         (human_options): Adjust to abovementioned interface changes.
49544         Do not report error to stderr; that's now the caller's
49545         responsibility.
49546         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49547         interface change.
49548         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49549         Str, Argument_type_string.  All uses changed.  Put " argument"
49550         in diagnostics to make them clearer.  Change wording of suffix
49551         message for clarity.
49552         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49553         Argument_type_string.
49554         (STRTOL_FATAL_WARN): Remove; no longer used.
49555         * modules/human (Depends-on): Remove gettext-h.
49556
49557 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49558
49559         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49560
49561 2007-07-31  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49564         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49565         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49566
49567 2007-07-31  Bruno Haible  <bruno@clisp.org>
49568
49569         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49570         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49571
49572 2007-07-30  Bruno Haible  <bruno@clisp.org>
49573
49574         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49575         * modules/c-ctype (License): Likewise.
49576         * modules/c-strcase (License): Likewise.
49577         * modules/check-version (License): Likewise.
49578         * modules/iconv (License): Likewise.
49579         * modules/iconv_open (License): Likewise.
49580         * modules/read-file (License): Likewise.
49581         * modules/striconv (License): Likewise.
49582         * modules/strverscmp (License): Likewise.
49583         * modules/vasprintf (License): Likewise.
49584         * modules/crypto/des (License): Likewise.
49585         * modules/crypto/gc (License): Likewise.
49586         * modules/crypto/gc-arcfour (License): Likewise.
49587         * modules/crypto/gc-arctwo (License): Likewise.
49588         * modules/crypto/gc-des (License): Likewise.
49589         * modules/crypto/gc-hmac-md5 (License): Likewise.
49590         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49591         * modules/crypto/gc-md2 (License): Likewise.
49592         * modules/crypto/gc-md4 (License): Likewise.
49593         * modules/crypto/gc-md5 (License): Likewise.
49594         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49595         * modules/crypto/gc-random (License): Likewise.
49596         * modules/crypto/gc-rijndael (License): Likewise.
49597         * modules/crypto/gc-sha1 (License): Likewise.
49598         * modules/crypto/md2 (License): Likewise.
49599         * modules/crypto/md4 (License): Likewise.
49600
49601 2007-07-30  Jim Meyering  <jim@meyering.net>
49602
49603         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49604         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49605         it has valid stat data.  This bug would cause du not to count the
49606         sizes of inaccessible directories.
49607         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49608         in <http://bugzilla.redhat.com/250077>.
49609
49610 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49611             Bruno Haible  <bruno@clisp.org>
49612
49613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49614         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49615         #include_next, gives a diagnostic about it, but reports no error in
49616         the exit code.
49617         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49618
49619 2007-07-24  Ben Pfaff  <blp@gnu.org>
49620
49621         Improve name: "count-one-bits" is better than "popcount".
49622         * MODULES.html.sh: Update name.
49623         * lib/popcount.h: Renamed lib/count-one-bits.h.
49624         (popcount): Renamed count_one_bits.
49625         (popcountl): Renamed count_one_bits_l.
49626         (popcountll): Renamed count_one_bits_ll.
49627         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49628         * modules/popcount: Renamed module/count-one-bits.
49629         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49630         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49631
49632 2007-07-23  Ben Pfaff  <blp@gnu.org>
49633
49634         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49635         better code generation, and add U to large constants to avoid
49636         warnings, in non-GCC case.
49637         Suggested by Bruno Haible.
49638
49639 2007-07-23  Ben Pfaff  <blp@gnu.org>
49640
49641         * lib/popcount.h: Use verify_true instead of if...abort.
49642         * modules/popcount: Depend on verify module.
49643         Suggested by Jim Meyering.
49644
49645 2007-07-23  Bruno Haible  <bruno@clisp.org>
49646
49647         * gnulib-tool (func_import): Create a .cvsignore file also when the
49648         directory is not yet in CVS but the toplevel directory is. When
49649         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49650         Reported by Karl Berry.
49651
49652 2007-07-22  Ben Pfaff  <blp@gnu.org>
49653
49654         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49655         case.
49656         Suggested by Eric Blake.
49657
49658 2007-07-22  Ben Pfaff  <blp@gnu.org>
49659
49660         New module: popcount.
49661         * MODULES.html.sh: Add popcount.
49662         * modules/popcount: New file.
49663         * modules/popcount-tests: New file.
49664         * tests/test-popcount.c: New file.
49665         * lib/popcount.h: New file.
49666         * m4/popcount.m4: New file.
49667
49668 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         * build-aux/announce-gen: Update to GPLv3.
49671
49672         * build-aux/config.guess: Update from config.
49673
49674 2007-07-21  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49677         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49678
49679 2007-07-20  Jim Meyering  <jim@meyering.net>
49680
49681         * check-module: Diagnose a self-dependency.
49682
49683 2007-07-19  Bruno Haible  <bruno@clisp.org>
49684
49685         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49686         empty.
49687         Reported by Eric Blake.
49688
49689 2007-07-18  Bruno Haible  <bruno@clisp.org>
49690
49691         * gnulib-tool: New options --po-base, --po-domain.
49692         (func_usage): Document them.
49693         (pobase, po_domain): New variables.
49694         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49695         DEFAULT_TEXT_DOMAIN.
49696         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49697         (func_import): Consider pobase and po_domain. Create a po/ directory.
49698         (func_create_testdir): Set pobase and po_domain to empty.
49699         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49700         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49701
49702 2007-07-18  Bruno Haible  <bruno@clisp.org>
49703
49704         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49705         EXTRA_DIST augmentation for files in build-aux/.
49706
49707 2007-07-16  Bruno Haible  <bruno@clisp.org>
49708
49709         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49710         * modules/getdelim (License): Likewise.
49711
49712 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49713
49714         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49715         * modules/d-type (License): Likewise.
49716         * modules/extensions (License): Likewise.
49717         * modules/fnmatch (License): Likewise.
49718         * modules/fseeko (License): Likewise.
49719         * modules/getaddrinfo (License): Likewise.
49720         * modules/getline (License): Likewise.
49721         * modules/getlogin_r (License): Likewise.
49722         * modules/getpass (License): Likewise.
49723         * modules/gettimeofday (License): Likewise.
49724         * modules/glob (License): Likewise.
49725         * modules/inet_ntop (License): Likewise.
49726         * modules/malloc (License): Likewise.
49727         * modules/malloca (License): Likewise.
49728         * modules/memmem (License): Likewise.
49729         * modules/mempcpy (License): Likewise.
49730         * modules/memset (License): Likewise.
49731         * modules/minmax (License): Likewise.
49732         * modules/mktime (License): Likewise.
49733         * modules/netinet_in (License): Likewise.
49734         * modules/pathmax (License): Likewise.
49735         * modules/poll (License): Likewise.
49736         * modules/regex (License): Likewise.
49737         * modules/snprintf (License): Likewise.
49738         * modules/stdbool (License): Likewise.
49739         * modules/stdint (License): Likewise.
49740         * modules/stdio (License): Likewise.
49741         * modules/strcase (License): Likewise.
49742         * modules/strcasestr (License): Likewise.
49743         * modules/strdup (License): Likewise.
49744         * modules/string (License): Likewise.
49745         * modules/strndup (License): Likewise.
49746         * modules/strnlen (License): Likewise.
49747         * modules/strpbrk (License): Likewise.
49748         * modules/strptime (License): Likewise.
49749         * modules/strsep (License): Likewise.
49750         * modules/sys_select (License): Likewise.
49751         * modules/sys_socket (License): Likewise.
49752         * modules/sys_stat (License): Likewise.
49753         * modules/sys_time (License): Likewise.
49754         * modules/time (License): Likewise.
49755         * modules/time_r (License): Likewise.
49756         * modules/timegm (License): Likewise.
49757         * modules/unistd (License): Likewise.
49758         * modules/vsnprintf (License): Likewise.
49759         * modules/wctype (License): Likewise.
49760
49761 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49762
49763         * modules/argz (License): LGPLv2+.
49764
49765 2007-07-15  Karl Berry  <karl@gnu.org>
49766
49767         * doc/gnulib.texi: revise node structure per new fdl.texi.
49768
49769 2007-07-14  Bruno Haible  <bruno@clisp.org>
49770
49771         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49772         the output file.
49773         * lib/uniname/uninames.h: Regenerated.
49774
49775 2007-07-14  Karl Berry  <karl@gnu.org>
49776
49777         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49778         omitting sectioning and index commands.
49779
49780 2007-07-13  Bruno Haible  <bruno@clisp.org>
49781
49782         New gnulib-tool option --more-symlinks.
49783         * gnulib-tool (func_usage): Document --more-symlinks.
49784         (do_copyrights): New variable.
49785         Recognize option --more-symlinks.
49786         (func_import): Don't add a copyright notice transform to
49787         sed_transform_lib_file if do_copyrights is empty.
49788
49789 2007-07-13  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/vasnprintf.c (decimal_point_char): Define also if
49792         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49793         && !NEED_PRINTF_DIRECTIVE_A.
49794         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49795         Gary V. Vaughan <gary@gnu.org>.
49796
49797 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49798
49799         * lib/inttypes_.h: Undo previous change, since it was fixed
49800         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49801
49802 2007-07-13  Bruno Haible  <bruno@clisp.org>
49803
49804         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49805         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49806
49807 2007-07-13  Jim Meyering  <jim@meyering.net>
49808
49809         df: Don't fail for Tru64's "file-on-file mount".
49810         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49811         so we fall through and use statfs instead.  Details here:
49812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49813         Reported by Albert Chin.
49814
49815 2007-07-13  Bruno Haible  <bruno@clisp.org>
49816
49817         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49818         * modules/configmake (License): Likewise.
49819         * modules/gettext (License): Likewise.
49820         * modules/gettext-h (License): Likewise.
49821         * modules/include_next (License): Likewise.
49822         * modules/link-warning (License): Likewise.
49823         * modules/localcharset (License): Likewise.
49824         * modules/localename (License): Likewise.
49825         * modules/lock (License): Likewise.
49826         * modules/relocatable-lib-lgpl (License): Likewise.
49827         * modules/size_max (License): Likewise.
49828         * modules/vasnprintf (License): Likewise.
49829         * modules/wchar (License): Likewise.
49830         * modules/xsize (License): Likewise.
49831
49832 2007-07-13  Bruno Haible  <bruno@clisp.org>
49833
49834         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49835         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49836
49837 2007-07-12  Bruno Haible  <bruno@clisp.org>
49838
49839         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49840         in the modules files.
49841
49842 2007-07-11  Karl Berry  <karl@gnu.org>
49843
49844         * MODULES.html.sh (func_module): use
49845          sed -e '\|^'"${includefile}"'$|d'
49846          instead of /.../d, to avoid errors on $includefile's containing /.
49847
49848 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49849
49850         * gnulib-tool (func_import): Avoid duplication of --avoid
49851         statements
49852         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49853         names to `_' in variable names.
49854
49855 2007-07-10  Eric Blake  <ebb9@byu.net>
49856
49857         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49858         * NEWS: Document this change.
49859
49860 2007-07-08  Bruno Haible  <bruno@clisp.org>
49861
49862         Update to Unicode 5.0.
49863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49864         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49865         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49866         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49867         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49868         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49869         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49870         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49871         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49872         U+10A3F, U+1D242..U+1D244.
49873         (nonspacing_table_ind): Update.
49874         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49875         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49876
49877 2007-07-08  Bruno Haible  <bruno@clisp.org>
49878
49879         Update to Unicode 5.0.
49880         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49881         code transform. Extend the name index field of unicode_name_to_code and
49882         unicode_code_to_name from 16 to 24 bits.
49883         * lib/uniname/uniname.c (unicode_character_name,
49884         unicode_name_character): Add the range 0x12xxx to the code transform.
49885         * lib/uniname/uninames.h: Regenerated.
49886         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49887
49888 2007-07-07  Bruno Haible  <bruno@clisp.org>
49889
49890         * modules/wcwidth-tests: New file.
49891         * tests/test-wcwidth.c: New file.
49892
49893         Work around MacOS X wcwidth() bug.
49894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49895         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49896         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49897         original wcwidth in non-UTF-8 locales.
49898         * modules/wcwidth (Depends-on): Add localcharset, streq,
49899         uniwidth/width.
49900         * doc/functions/wcwidth.texi: Update.
49901
49902 2007-07-07  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49905         (wcwidth): New declaration.
49906         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49907         macros.
49908         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49909         here. Prepare for creating <wchar.h> unconditionally.
49910         * modules/wchar (Depends-on): Add link-warning.
49911         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49912         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49913         * lib/wcwidth.h: Remove file.
49914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49915         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49916         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49917         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49918         (Include): Replace wcwidth.h with <wchar.h>.
49919         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49920         * lib/mbchar.h: Don't include wcwidth.h.
49921         * lib/mbswidth.c: Likewise.
49922         * NEWS: Mention the change.
49923
49924 2007-07-07  Bruno Haible  <bruno@clisp.org>
49925
49926         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49927         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49928         definition with an external declaration.
49929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49930         defined as a function. Remove AC_C_INLINE requirement.
49931         * modules/wcwidth (Files): Add lib/wcwidth.c.
49932         (Makefile.am): Remove redundant statement.
49933
49934 2007-07-07  Bruno Haible  <bruno@clisp.org>
49935
49936         * MODULES.html.sh (Unicode string functions): Add the new modules.
49937
49938         * tests/uniwidth/test-u32-strwidth.c: New file.
49939         * modules/uniwidth/u32-strwidth-tests: New file.
49940
49941         * lib/uniwidth/u32-strwidth.c: New file.
49942         * modules/uniwidth/u32-strwidth: New file.
49943
49944         * tests/uniwidth/test-u16-strwidth.c: New file.
49945         * modules/uniwidth/u16-strwidth-tests: New file.
49946
49947         * lib/uniwidth/u16-strwidth.c: New file.
49948         * modules/uniwidth/u16-strwidth: New file.
49949
49950         * tests/uniwidth/test-u8-strwidth.c: New file.
49951         * modules/uniwidth/u8-strwidth-tests: New file.
49952
49953         * lib/uniwidth/u8-strwidth.c: New file.
49954         * modules/uniwidth/u8-strwidth: New file.
49955
49956         * tests/uniwidth/test-u32-width.c: New file.
49957         * modules/uniwidth/u32-width-tests: New file.
49958
49959         * lib/uniwidth/u32-width.c: New file.
49960         * modules/uniwidth/u32-width: New file.
49961
49962         * tests/uniwidth/test-u16-width.c: New file.
49963         * modules/uniwidth/u16-width-tests: New file.
49964
49965         * lib/uniwidth/u16-width.c: New file.
49966         * modules/uniwidth/u16-width: New file.
49967
49968         * tests/uniwidth/test-u8-width.c: New file.
49969         * modules/uniwidth/u8-width-tests: New file.
49970
49971         * lib/uniwidth/u8-width.c: New file.
49972         * modules/uniwidth/u8-width: New file.
49973
49974         * tests/uniwidth/test-uc_width.c: New file.
49975         * modules/uniwidth/width-tests: New file.
49976
49977         * lib/uniwidth/width.c: New file, from GNU libiconv.
49978         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49979         * modules/uniwidth/width: New file.
49980
49981         * lib/uniwidth.h: New file, from GNU libiconv.
49982         * modules/uniwidth/base: New file.
49983
49984 2007-07-07  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/uniname.h: New file, from GNU gettext.
49987         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49988         * lib/uniname/uninames.h: New file, from GNU gettext.
49989         * lib/uniname/uniname.c: New file, from GNU gettext.
49990         * tests/uniname/test-uninames.sh: New file.
49991         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49992         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49993         * modules/uniname/base: New file.
49994         * modules/uniname/uniname: New file.
49995         * modules/uniname/uniname-tests: New file.
49996         * MODULES.html.sh (Unicode string functions): Add the new modules.
49997
49998 2007-07-06  Bruno Haible  <bruno@clisp.org>
49999
50000         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50001
50002 2007-07-06  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50005         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50006         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50007         include <sys/time.h>.
50008         Reported by Eric Blake.
50009
50010 2007-07-06  Eric Blake  <ebb9@byu.net>
50011
50012         Fix testing canonicalize on cygwin.
50013         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50014         Revert patch from 2007-06-19.
50015         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50016         canonicalize module is also in use.
50017         * tests/test-canonicalize.c: New file.
50018         * tests/test-canonicalize.sh: Likewise.
50019         * modules/canonicalize-tests: Likewise.
50020
50021 2007-07-06  Jim Meyering  <jim@meyering.net>
50022
50023         * lib/getugroups.c (getugroups): Detect getgrent failure.
50024         Adjust comment to reflect reality: this function may return -1.
50025
50026 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50027
50028         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50029         the new TP address.
50030         (usage): Fix typo
50031         (gnulib_mk): New variable.
50032
50033 2007-07-05  Jim Meyering  <jim@meyering.net>
50034
50035         Don't let endgrent clobber errno, no matter how improbable.
50036         * lib/getugroups.c (getugroups): Save and restore errno around
50037         endgrent call.
50038
50039         Close the group DB even when failing with 2^31 or more members.
50040         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50041
50042 2007-07-04  Jim Meyering  <jim@meyering.net>
50043
50044         * lib/getugroups.h: New file.
50045         * lib/getugroups.c: Include "getugroups.h".
50046         Remove uses of "register" keyword.
50047         Move local variable, "cp", down into scope where used.
50048         Give "username" parameter the "const" attribute.
50049         * modules/getugroups (Files): Add lib/getugroups.h
50050
50051 2007-07-04  Karl Berry  <karl@gnu.org>
50052
50053         * MODULES.html.sh (func_all_modules): Complete rename of
50054         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50055
50056 2007-07-02  Bruno Haible  <bruno@clisp.org>
50057
50058         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50059         mode, when inttypes.h comes from gnulib.
50060         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50061
50062 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50063
50064         * NEWS: Mention lgpl module name change.
50065
50066         * modules/lgpl-2.1: Renamed from lgpl.
50067
50068         * NEWS: Mention gpl module name change.
50069
50070         * modules/gpl-3.0: New file, based on gpl-2.0.
50071
50072         * modules/gpl-2.0: Renamed from gpl.
50073
50074         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50075         doc/gpl-2.0.texi.
50076
50077 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50078
50079         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50080         #define __STDC_LIMIT_MACROS temporarily while including
50081         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50082         Problem reported by Joel E. Denny in
50083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50084
50085 2007-07-01  Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/unistdio.h: New file.
50088         * lib/unistdio/u-asnprintf.h: New file.
50089         * lib/unistdio/u-asprintf.h: New file.
50090         * lib/unistdio/u-printf-args.c: New file.
50091         * lib/unistdio/u-printf-args.h: New file.
50092         * lib/unistdio/u-printf-parse.h: New file.
50093         * lib/unistdio/u-snprintf.h: New file.
50094         * lib/unistdio/u-sprintf.h: New file.
50095         * lib/unistdio/u-vasprintf.h: New file.
50096         * lib/unistdio/u-vsnprintf.h: New file.
50097         * lib/unistdio/u-vsprintf.h: New file.
50098         * lib/unistdio/ulc-asnprintf.c: New file.
50099         * lib/unistdio/ulc-asprintf.c: New file.
50100         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50101         * lib/unistdio/ulc-printf-parse.c: New file.
50102         * lib/unistdio/ulc-snprintf.c: New file.
50103         * lib/unistdio/ulc-sprintf.c: New file.
50104         * lib/unistdio/ulc-vasnprintf.c: New file.
50105         * lib/unistdio/ulc-vasprintf.c: New file.
50106         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50107         * lib/unistdio/ulc-vsnprintf.c: New file.
50108         * lib/unistdio/ulc-vsprintf.c: New file.
50109         * lib/unistdio/u8-asnprintf.c: New file.
50110         * lib/unistdio/u8-asprintf.c: New file.
50111         * lib/unistdio/u8-printf-parse.c: New file.
50112         * lib/unistdio/u8-snprintf.c: New file.
50113         * lib/unistdio/u8-sprintf.c: New file.
50114         * lib/unistdio/u8-vasnprintf.c: New file.
50115         * lib/unistdio/u8-vasprintf.c: New file.
50116         * lib/unistdio/u8-vsnprintf.c: New file.
50117         * lib/unistdio/u8-vsprintf.c: New file.
50118         * lib/unistdio/u8-u8-asnprintf.c: New file.
50119         * lib/unistdio/u8-u8-asprintf.c: New file.
50120         * lib/unistdio/u8-u8-snprintf.c: New file.
50121         * lib/unistdio/u8-u8-sprintf.c: New file.
50122         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50123         * lib/unistdio/u8-u8-vasprintf.c: New file.
50124         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50125         * lib/unistdio/u8-u8-vsprintf.c: New file.
50126         * lib/unistdio/u16-asnprintf.c: New file.
50127         * lib/unistdio/u16-asprintf.c: New file.
50128         * lib/unistdio/u16-printf-parse.c: New file.
50129         * lib/unistdio/u16-snprintf.c: New file.
50130         * lib/unistdio/u16-sprintf.c: New file.
50131         * lib/unistdio/u16-vasnprintf.c: New file.
50132         * lib/unistdio/u16-vasprintf.c: New file.
50133         * lib/unistdio/u16-vsnprintf.c: New file.
50134         * lib/unistdio/u16-vsprintf.c: New file.
50135         * lib/unistdio/u16-u16-asnprintf.c: New file.
50136         * lib/unistdio/u16-u16-asprintf.c: New file.
50137         * lib/unistdio/u16-u16-snprintf.c: New file.
50138         * lib/unistdio/u16-u16-sprintf.c: New file.
50139         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50140         * lib/unistdio/u16-u16-vasprintf.c: New file.
50141         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50142         * lib/unistdio/u16-u16-vsprintf.c: New file.
50143         * lib/unistdio/u32-asnprintf.c: New file.
50144         * lib/unistdio/u32-asprintf.c: New file.
50145         * lib/unistdio/u32-printf-parse.c: New file.
50146         * lib/unistdio/u32-snprintf.c: New file.
50147         * lib/unistdio/u32-sprintf.c: New file.
50148         * lib/unistdio/u32-vasnprintf.c: New file.
50149         * lib/unistdio/u32-vasprintf.c: New file.
50150         * lib/unistdio/u32-vsnprintf.c: New file.
50151         * lib/unistdio/u32-vsprintf.c: New file.
50152         * lib/unistdio/u32-u32-asnprintf.c: New file.
50153         * lib/unistdio/u32-u32-asprintf.c: New file.
50154         * lib/unistdio/u32-u32-snprintf.c: New file.
50155         * lib/unistdio/u32-u32-sprintf.c: New file.
50156         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50157         * lib/unistdio/u32-u32-vasprintf.c: New file.
50158         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50159         * lib/unistdio/u32-u32-vsprintf.c: New file.
50160         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50161         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50162         * tests/unistdio/test-ulc-printf1.h: New file.
50163         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50164         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50165         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50166         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50167         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50168         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50169         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50170         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50171         * tests/unistdio/test-u8-asnprintf1.c: New file.
50172         * tests/unistdio/test-u8-asnprintf1.h: New file.
50173         * tests/unistdio/test-u8-printf1.h: New file.
50174         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50175         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50176         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50177         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50178         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50179         * tests/unistdio/test-u8-vasprintf1.c: New file.
50180         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50181         * tests/unistdio/test-u8-vsprintf1.c: New file.
50182         * tests/unistdio/test-u16-asnprintf1.c: New file.
50183         * tests/unistdio/test-u16-asnprintf1.h: New file.
50184         * tests/unistdio/test-u16-printf1.h: New file.
50185         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50186         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50187         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50188         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50189         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50190         * tests/unistdio/test-u16-vasprintf1.c: New file.
50191         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50192         * tests/unistdio/test-u16-vsprintf1.c: New file.
50193         * tests/unistdio/test-u32-asnprintf1.c: New file.
50194         * tests/unistdio/test-u32-asnprintf1.h: New file.
50195         * tests/unistdio/test-u32-printf1.h: New file.
50196         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50197         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50198         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50199         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50200         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50201         * tests/unistdio/test-u32-vasprintf1.c: New file.
50202         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50203         * tests/unistdio/test-u32-vsprintf1.c: New file.
50204         * modules/unistdio/base: New file.
50205         * modules/unistdio/u-printf-args: New file.
50206         * modules/unistdio/ulc-asnprintf: New file.
50207         * modules/unistdio/ulc-asprintf: New file.
50208         * modules/unistdio/ulc-fprintf: New file.
50209         * modules/unistdio/ulc-printf-parse: New file.
50210         * modules/unistdio/ulc-snprintf: New file.
50211         * modules/unistdio/ulc-sprintf: New file.
50212         * modules/unistdio/ulc-vasnprintf: New file.
50213         * modules/unistdio/ulc-vasprintf: New file.
50214         * modules/unistdio/ulc-vfprintf: New file.
50215         * modules/unistdio/ulc-vsnprintf: New file.
50216         * modules/unistdio/ulc-vsprintf: New file.
50217         * modules/unistdio/u8-asnprintf: New file.
50218         * modules/unistdio/u8-asprintf: New file.
50219         * modules/unistdio/u8-printf-parse: New file.
50220         * modules/unistdio/u8-snprintf: New file.
50221         * modules/unistdio/u8-sprintf: New file.
50222         * modules/unistdio/u8-vasnprintf: New file.
50223         * modules/unistdio/u8-vasprintf: New file.
50224         * modules/unistdio/u8-vsnprintf: New file.
50225         * modules/unistdio/u8-vsprintf: New file.
50226         * modules/unistdio/u8-u8-asnprintf: New file.
50227         * modules/unistdio/u8-u8-asprintf: New file.
50228         * modules/unistdio/u8-u8-snprintf: New file.
50229         * modules/unistdio/u8-u8-sprintf: New file.
50230         * modules/unistdio/u8-u8-vasnprintf: New file.
50231         * modules/unistdio/u8-u8-vasprintf: New file.
50232         * modules/unistdio/u8-u8-vsnprintf: New file.
50233         * modules/unistdio/u8-u8-vsprintf: New file.
50234         * modules/unistdio/u16-asnprintf: New file.
50235         * modules/unistdio/u16-asprintf: New file.
50236         * modules/unistdio/u16-printf-parse: New file.
50237         * modules/unistdio/u16-snprintf: New file.
50238         * modules/unistdio/u16-sprintf: New file.
50239         * modules/unistdio/u16-vasnprintf: New file.
50240         * modules/unistdio/u16-vasprintf: New file.
50241         * modules/unistdio/u16-vsnprintf: New file.
50242         * modules/unistdio/u16-vsprintf: New file.
50243         * modules/unistdio/u16-u16-asnprintf: New file.
50244         * modules/unistdio/u16-u16-asprintf: New file.
50245         * modules/unistdio/u16-u16-snprintf: New file.
50246         * modules/unistdio/u16-u16-sprintf: New file.
50247         * modules/unistdio/u16-u16-vasnprintf: New file.
50248         * modules/unistdio/u16-u16-vasprintf: New file.
50249         * modules/unistdio/u16-u16-vsnprintf: New file.
50250         * modules/unistdio/u16-u16-vsprintf: New file.
50251         * modules/unistdio/u32-asnprintf: New file.
50252         * modules/unistdio/u32-asprintf: New file.
50253         * modules/unistdio/u32-printf-parse: New file.
50254         * modules/unistdio/u32-snprintf: New file.
50255         * modules/unistdio/u32-sprintf: New file.
50256         * modules/unistdio/u32-vasnprintf: New file.
50257         * modules/unistdio/u32-vasprintf: New file.
50258         * modules/unistdio/u32-vsnprintf: New file.
50259         * modules/unistdio/u32-vsprintf: New file.
50260         * modules/unistdio/u32-u32-asnprintf: New file.
50261         * modules/unistdio/u32-u32-asprintf: New file.
50262         * modules/unistdio/u32-u32-snprintf: New file.
50263         * modules/unistdio/u32-u32-sprintf: New file.
50264         * modules/unistdio/u32-u32-vasnprintf: New file.
50265         * modules/unistdio/u32-u32-vasprintf: New file.
50266         * modules/unistdio/u32-u32-vsnprintf: New file.
50267         * modules/unistdio/u32-u32-vsprintf: New file.
50268         * modules/unistdio/ulc-asnprintf-tests: New file.
50269         * modules/unistdio/ulc-vasnprintf-tests: New file.
50270         * modules/unistdio/ulc-vasprintf-tests: New file.
50271         * modules/unistdio/ulc-vsnprintf-tests: New file.
50272         * modules/unistdio/ulc-vsprintf-tests: New file.
50273         * modules/unistdio/u8-asnprintf-tests: New file.
50274         * modules/unistdio/u8-vasnprintf-tests: New file.
50275         * modules/unistdio/u8-vasprintf-tests: New file.
50276         * modules/unistdio/u8-vsnprintf-tests: New file.
50277         * modules/unistdio/u8-vsprintf-tests: New file.
50278         * modules/unistdio/u16-asnprintf-tests: New file.
50279         * modules/unistdio/u16-vasnprintf-tests: New file.
50280         * modules/unistdio/u16-vasprintf-tests: New file.
50281         * modules/unistdio/u16-vsnprintf-tests: New file.
50282         * modules/unistdio/u16-vsprintf-tests: New file.
50283         * modules/unistdio/u32-asnprintf-tests: New file.
50284         * modules/unistdio/u32-vasnprintf-tests: New file.
50285         * modules/unistdio/u32-vasprintf-tests: New file.
50286         * modules/unistdio/u32-vsnprintf-tests: New file.
50287         * modules/unistdio/u32-vsprintf-tests: New file.
50288         * MODULES.html.sh (Unicode string functions): Add the new modules.
50289
50290 2007-07-01  Bruno Haible  <bruno@clisp.org>
50291
50292         * lib/sprintf.c (sprintf): Limit the available length estimation,
50293         to avoid address wraparound.
50294         * lib/vsprintf.c (vsprintf): Likewise.
50295         * modules/sprintf-posix (Dependencies): Add stdint.
50296         * modules/vsprintf-posix (Dependencies): Likewise.
50297
50298 2007-07-01  Bruno Haible  <bruno@clisp.org>
50299
50300         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50301         Windows PATH as well. Conservative double-quoting. Comments.
50302
50303 2007-07-01  Bruno Haible  <bruno@clisp.org>
50304             Eric Blake  <ebb9@byu.net>
50305             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50306
50307         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50308         empty components in $PATH, denoting '.'.
50309
50310 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50311
50312         * gnulib-tool: Fix indentation.
50313         (func_create_megatestdir): Likewise.
50314         Report by Bruno Haible.
50315
50316 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50317
50318         Sync from Automake.
50319         * build-aux/gnupload: Fix shell portability issues with for loops.
50320         Report by Karl Berry.
50321
50322 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50323
50324         * build-aux/maint.mk (POURL): Use translationproject.org.
50325
50326 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50327             Bruno Haible  <bruno@clisp.org>
50328
50329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50330         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50331         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50332         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50333         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50334
50335 2007-06-27  Bruno Haible  <bruno@clisp.org>
50336
50337         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50338         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50339
50340 2007-06-26  Karl Berry  <karl@gnu.org>
50341
50342         * MODULES.html.sh: remove xreadlink-with-size.
50343
50344 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50347         method that I hope also handles the double-include problem noted
50348         by Bruno Haible in
50349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50350
50351 2007-06-23  Bruno Haible  <bruno@clisp.org>
50352
50353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50354         Don't let the 'mostlyclean' target fail if the last subdirectory could
50355         not be removed.
50356         Reported by Karl Berry.
50357
50358 2007-06-23  Bruno Haible  <bruno@clisp.org>
50359
50360         * gnulib-tool (echo): Add a speedier workaround for ksh.
50361         * tests/test-echo.sh: Likewise.
50362
50363 2007-06-23  Bruno Haible  <bruno@clisp.org>
50364
50365         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50366         * tests/test-echo.sh: Likewise.
50367
50368 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50369
50370         * gnulib-tool (IFS): Initialize early, so we don't set it to
50371         empty later.
50372         (self_abspathname): Rewrite algorithm to set it, reindent.
50373         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50374         (func_create_megatestdir): Merge some sed scripts.
50375
50376 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50379         exposed by Sun Studio 11 cc on Solaris 8.
50380
50381 2007-06-22  Bruno Haible  <bruno@clisp.org>
50382
50383         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50384         backslashes.
50385         * tests/test-echo.sh: New file.
50386
50387 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50388
50389         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50390         simplify `sed_replace_build_aux' scripts, they are portable but
50391         echoing them with `echo' is not.
50392         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50393
50394 2007-06-21  Karl Berry  <karl@gnu.org>
50395
50396         * config/srclist.txt: guess we can't handle the licenses via
50397         srclist at the moment.
50398
50399 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50400
50401         * MODULES.html.sh: Add include_next.
50402         * modules/include_next: New file.
50403
50404 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50407         INCLUDE_NEXT.
50408         (gl_CHECK_NEXT_HEADERS): New macro.
50409         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50410         the obsolescent gl_ABSOLUTE_HEADER.
50411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50412         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50413         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50414         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50415         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50416         * m4/math_h.m4 (gl_MATH_H): Likewise.
50417         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50418         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50419         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50420         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50421         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50422         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50423         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50428         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50429         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50430         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50431         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50432         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50433         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50434         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50435         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50436         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50437         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50438         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50439         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50440         * lib/float_.h: Likewise.
50441         * lib/inttypes_.h: Likewise.
50442         * lib/math_.h: Likewise.
50443         * lib/search_.h: Likewise.
50444         * lib/signal_.h: Likewise.
50445         * lib/stdint_.h: Likewise.
50446         * lib/stdio_.h: Likewise.
50447         * lib/stdlib_.h: Likewise.
50448         * lib/string_.h: Likewise.
50449         * lib/sys_stat_.h: Likewise.
50450         * lib/sys_time_.h: Likewise.
50451         * lib/time_.h: Likewise.
50452         * lib/unistd_.h: Likewise.
50453         * lib/wchar_.h: Likewise.
50454         * lib/wctype_.h: Likewise.
50455         * lib/dirent_.h: Likewise.
50456         * lib/iconv_.h: Likewise.
50457         * lib/locale_.h: Likewise.
50458         * lib/netinet_in_.h: Likewise.
50459         * lib/sys_select_.h: Likewise.
50460         * lib/sys_socket_.h: Likewise.
50461         * lib/sysexits_.h: Likewise.
50462         * modules/fcntl (Depends-on): Depend on include_next, not
50463         absolute_header.
50464         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50465         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50466         * modules/fchdir: Likewise.
50467         * modules/float: Likewise.
50468         * modules/iconv_open: Likewise.
50469         * modules/inttypes: Likewise.
50470         * modules/locale: Likewise.
50471         * modules/math: Likewise.
50472         * modules/netinet_in: Likewise.
50473         * modules/search: Likewise.
50474         * modules/signal: Likewise.
50475         * modules/stdint: Likewise.
50476         * modules/stdio: Likewise.
50477         * modules/stdlib: Likewise.
50478         * modules/string: Likewise.
50479         * modules/sys_select: Likewise.
50480         * modules/sys_socket: Likewise.
50481         * modules/sys_stat: Likewise.
50482         * modules/sys_time: Likewise.
50483         * modules/sysexits: Likewise.
50484         * modules/time: Likewise.
50485         * modules/unistd: Likewise.
50486         * modules/wchar: Likewise.
50487         * modules/wctype: Likewise.
50488         * modules/sys_stat: Change maintainer to "all".
50489         * modules/unistd: Likewise.
50490
50491 2007-06-20  Karl Berry  <karl@gnu.org>
50492
50493         * config/srclist.txt: track www changes in license files.
50494
50495 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50496
50497         * build-aux/bootstrap: Remove stray dot.
50498         Make sure build_aux settings are honored when linking
50499         gnulib_extra_files.
50500
50501 2007-06-19  Eric Blake  <ebb9@byu.net>
50502
50503         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50504         Allow compilation on cygwin.
50505
50506 2007-06-19  Jim Meyering  <jim@meyering.net>
50507
50508         xreadlink-with-size: Remove module.  No longer used.
50509         Ex-callers now use xreadlink or mreadlink-with-size.
50510         * modules/xreadlink-with-size: Remove module.
50511         * lib/xreadlink-with-size.c: Remove file.
50512         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50513         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50514         just before the function definition *is* accurate.
50515
50516         Eliminate one way canonicalize_filename_mode could exit.
50517         * lib/canonicalize.c (canonicalize_filename_mode):
50518         Use mreadlink_with_size, not xreadlink_with_size.
50519
50520 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50521
50522         Detect porting problems to FreeBSD/arm, which has time_t wider than
50523         long int.  Original problem reported for GNU diff by Xin Li in
50524         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50525         * modules/getdate (Depends-on): Add intprops, verify.
50526         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50527         is an integer type no wider than long int.
50528
50529 2007-06-18  Jim Meyering  <jim@meyering.net>
50530
50531         New module: mreadlink-with-size.
50532         * MODULES.html.sh: Add mreadlink-with-size.
50533         * modules/mreadlink-with-size: New module
50534         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50535         not xreadlink-with-size.
50536         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50537
50538 2007-06-16  Bruno Haible  <bruno@clisp.org>
50539
50540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50541         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50542         Reported by Gary V. Vaughan <gary@gnu.org>.
50543
50544 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         Revamp lchown so that it lives in unistd.h where it belongs.
50547         * lib/lchown.h: Remove.
50548         * lib/dirchownmod.c: Don't include lib/lchown.h.
50549         * lib/fchownat.c: Likewise.
50550         * lib/openat.c: Likewise.
50551         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50552         does not follow symlinks.
50553         (EOPNOTSUPP): Define if not defined.
50554         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50555         is defined to 0.
50556         (lchown): New decl.
50557         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50558         Do not check for lchown decl.
50559         Set REPLACE_LCHOWN.
50560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50561         REPLACE_LCHOWN.
50562         * modules/chown: Make it clear it follows symlinks.
50563         * modules/lchown: Make it clear it doesn't follow symlinks.
50564         (Files): Remove lib/lchown.h
50565         (Depends-on): Add unistd.
50566         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50567         (Include): Include <unistd.h>, not "lchown.h".
50568         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50569         REPLACE_LCHOWN.
50570
50571 2007-06-15  Jim Meyering  <jim@meyering.net>
50572
50573         Change license (GPL to LGPL) of fsusage and dependents.
50574         * modules/fsusage (License): Change to LGPL.
50575         * modules/full-read (License): Likewise.
50576         * modules/full-write (License): Likewise.
50577         * modules/safe-read (License): Likewise.
50578         * modules/safe-write (License): Likewise.
50579
50580 2007-06-14  Ben Pfaff  <blp@gnu.org>
50581
50582         Missing part of allocsa -> malloca transition.
50583         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50584         gl_MALLOCA.
50585
50586 2007-06-12  Bruno Haible  <bruno@clisp.org>
50587
50588         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50589         to ia64, x86_64, i386.
50590         Reported by Eric Blake.
50591
50592 2007-06-12  Bruno Haible  <bruno@clisp.org>
50593
50594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50595         cross-compiling to x86_64.
50596
50597 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50600         glitch reported by Ralf Wildenhues in
50601         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50602
50603         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50604         Vin Shelton.
50605
50606 2007-06-11  Bruno Haible  <bruno@clisp.org>
50607
50608         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50609         replacement string.
50610         Reported by Eric Blake.
50611
50612 2007-06-10  Bruno Haible  <bruno@clisp.org>
50613
50614         Prepare vasnprintf code for use with Unicode strings.
50615         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50616         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50617         TYPE_U32_STRING.
50618         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50619         a_u32_string variants.
50620         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50621         * lib/printf-args.c: Don't include config.h and the specification
50622         header if PRINTF_FETCHARGS is already defined.
50623         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50624         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50625         TYPE_U16_STRING, TYPE_U32_STRING.
50626         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50627         u16_directive, u16_directives, u32_directive, u32_directives): New
50628         types.
50629         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50630         New declarations.
50631         * lib/printf-parse.c: Don't include config.h and the specification
50632         header if PRINTF_PARSE is already defined. Eliminate the set of
50633         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50634         them now. Include c-ctype.h.
50635         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50636         directive and CHAR_T_ONLY_ASCII.
50637         * lib/vasnprintf.c: Don't include config.h and the specification header
50638         if VASNPRINTF is already defined.
50639         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50640         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50641         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50642         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50643         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50644         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50645         code accordingly.
50646         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50647         pad_ourselves also in this case, with the 'c' and 's' directives, and
50648         with a different notion of "width".
50649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50650
50651 2007-06-10  Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/unistr/u32-mbsnlen: New file.
50654         * lib/unistr/u32-mbsnlen.c: New file.
50655
50656         * modules/unistr/u16-mbsnlen: New file.
50657         * lib/unistr/u16-mbsnlen.c: New file.
50658
50659         * modules/unistr/u8-mbsnlen: New file.
50660         * lib/unistr/u8-mbsnlen.c: New file.
50661
50662         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50663         declarations.
50664
50665 2007-06-10  Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/string_.h (mbsnlen): New declaration.
50668         * lib/mbsnlen.c: New file.
50669         * m4/mbsnlen.m4: New file.
50670         * modules/mbsnlen: New file.
50671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50672         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50673         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50674
50675 2007-06-10  Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50678
50679 2007-06-10  Bruno Haible  <bruno@clisp.org>
50680
50681         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50682         * lib/mbuiter.h: Likewise.
50683
50684 2007-06-10  Bruno Haible  <bruno@clisp.org>
50685
50686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50687         declaration.
50688
50689 2007-06-10  Karl Berry  <karl@gnu.org>
50690
50691         * config/srclist.txt: remove gettext entries, Bruno prefers
50692         to update individually.
50693
50694 2007-06-10  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50697         'maxlen'. Ensure only length + width bytes are allocated, not
50698         length + 1 + width.
50699
50700 2007-06-09  Bruno Haible  <bruno@clisp.org>
50701
50702         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50703         (CHAR_T): Remove macro.
50704         (VASNPRINTF): Update.
50705
50706 2007-06-09  Bruno Haible  <bruno@clisp.org>
50707
50708         * MODULES.html.sh (Unicode string functions): Add the new modules.
50709
50710         * modules/uniconv/u32-conv-to-enc: New file.
50711         * lib/uniconv/u32-conv-to-enc.c: New file.
50712         * modules/uniconv/u32-conv-to-enc-tests: New file.
50713         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50714
50715         * modules/uniconv/u16-conv-to-enc: New file.
50716         * lib/uniconv/u16-conv-to-enc.c: New file.
50717         * lib/uniconv/u-conv-to-enc.h: New file.
50718         * modules/uniconv/u16-conv-to-enc-tests: New file.
50719         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50720
50721         * modules/uniconv/u8-conv-to-enc: New file.
50722         * lib/uniconv/u8-conv-to-enc.c: New file.
50723         * modules/uniconv/u8-conv-to-enc-tests: New file.
50724         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50725
50726         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50727         u32_conv_to_encoding): New declarations.
50728
50729 2007-06-09  Bruno Haible  <bruno@clisp.org>
50730
50731         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50732
50733 2007-06-09  Bruno Haible  <bruno@clisp.org>
50734
50735         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50736         * modules/malloca: Renamed from modules/allocsa, updated.
50737         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50738         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50739         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50740         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50741         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50742         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50743         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50744         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50745         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50746         * modules/c-strcasestr (Depends-on): Update.
50747         * lib/c-strcasestr.c: Update.
50748         * modules/c-strstr (Depends-on): Update.
50749         * lib/c-strstr.c: Update.
50750         * modules/canonicalize-lgpl (Depends-on): Update.
50751         * lib/canonicalize-lgpl.c: Update.
50752         * modules/clean-temp (Depends-on): Update.
50753         * lib/clean-temp.c: Update.
50754         * modules/csharpcomp (Depends-on): Update.
50755         * lib/csharpcomp.c: Update.
50756         * modules/csharpexec (Depends-on): Update.
50757         * lib/csharpexec.c: Update.
50758         * modules/javacomp (Depends-on): Update.
50759         * lib/javacomp.c: Update.
50760         * modules/javaexec (Depends-on): Update.
50761         * lib/javaexec.c: Update.
50762         * modules/mbscasestr (Depends-on): Update.
50763         * lib/mbscasestr.c: Update.
50764         * modules/mbsstr (Depends-on): Update.
50765         * lib/mbsstr.c: Update.
50766         * modules/setenv (Depends-on): Update.
50767         * lib/setenv.c: Update.
50768         * modules/strcasestr (Depends-on): Update.
50769         * lib/strcasestr.c: Update.
50770         * modules/striconveha (Depends-on): Update.
50771         * lib/striconveha.c: Update.
50772         * modules/relocatable-prog-wrapper (Files): Update.
50773         * lib/relocwrapper.c: Update.
50774         * build-aux/install-reloc: Update.
50775         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50776
50777 2007-06-08  Bruno Haible  <bruno@clisp.org>
50778
50779         Port to uClibc.
50780         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50781         * lib/fpurge.c (fpurge): Likewise.
50782         * lib/freading.c (freading): Likewise.
50783         * lib/fseeko.c (rpl_fseeko): Likewise.
50784         * lib/fseterr.c (fseterr): Likewise.
50785         * lib/fwriting.c (fwriting): Likewise.
50786         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50787
50788 2007-06-08  Bruno Haible  <bruno@clisp.org>
50789
50790         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50791         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50792         * modules/gettext (Files): Add m4/intlmacosx.m4.
50793
50794 2007-06-07  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/localename-tests: New file.
50797         * tests/test-localename.c: New file.
50798
50799         New module 'localename'.
50800         * lib/localename.h: New file.
50801         * lib/localename.c: New file, from GNU gettext.
50802         * m4/localename.m4: New file.
50803         * modules/localename: New file.
50804
50805 2007-06-07  Bruno Haible  <bruno@clisp.org>
50806
50807         Work around the lack of <wchar.h> on some builds of uClibc.
50808         * doc/headers/wchar.texi: Update.
50809         * lib/wchar_.h: Include <wchar.h> only if it exists.
50810         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50811         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50812         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50813         doesn't exist.
50814         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50815         * modules/mbfile (Depends-on): Add wchar.
50816         * modules/mbiter (Depends-on): Likewise.
50817         * modules/mbuiter (Depends-on): Likewise.
50818         Reported by Simon Josefsson.
50819
50820 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         Work around problem reported by Steven M. Schweda in
50823         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50824         Tru64 5.1B with the Compaq compiler environment installed declares
50825         an 'isblank' function but does not define it in the C library.
50826         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50827         * lib/regex_internal.h (isblank): Likewise.
50828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50829         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50830
50831 2007-06-05  Bruno Haible  <bruno@clisp.org>
50832
50833         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50834         ia64.
50835         * modules/printf-safe: New file.
50836         * modules/fprintf-posix (Depends-on): Add printf-safe.
50837         * modules/printf-posix (Depends-on): Likewise.
50838         * modules/snprintf-posix (Depends-on): Likewise.
50839         * modules/sprintf-posix (Depends-on): Likewise.
50840         * modules/vasnprintf-posix (Depends-on): Likewise.
50841         * modules/vasprintf-posix (Depends-on): Likewise.
50842         * modules/vfprintf-posix (Depends-on): Likewise.
50843         * modules/vprintf-posix (Depends-on): Likewise.
50844         * modules/vsnprintf-posix (Depends-on): Likewise.
50845         * modules/vsprintf-posix (Depends-on): Likewise.
50846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50847         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50848         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50849         "no" on i386, x86_64, ia64.
50850         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50852         on i386, x86_64, ia64.
50853         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50854         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50855         on i386, x86_64, ia64.
50856         * tests/test-vasnprintf-posix.c: Include float.h.
50857         (LDBL80_WORDS): New macro.
50858         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50859         on i386, x86_64, ia64.
50860         * tests/test-vasprintf-posix.c: Include float.h.
50861         (LDBL80_WORDS): New macro.
50862         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50863         on i386, x86_64, ia64.
50864         * tests/test-snprintf-posix.c: Include float.h.
50865         * tests/test-sprintf-posix.c: Likewise.
50866         * tests/test-vsnprintf-posix.c: Likewise.
50867         * tests/test-vsprintf-posix.c: Likewise.
50868
50869 2007-06-05  Bruno Haible  <bruno@clisp.org>
50870
50871         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50872         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50873         non-IEEE numbers on i386, x86_64, ia64.
50874         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50875         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50876         * tests/test-isnanl.h: Include float.h.
50877         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50878
50879 2007-06-05  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50882         also the %a / %A. Handle the %a / %A code before this extra handling.
50883
50884 2007-06-05  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50887         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50888
50889 2007-06-05  Bruno Haible  <bruno@clisp.org>
50890
50891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50892         typo in variable name.
50893
50894 2007-06-05  Eric Blake  <ebb9@byu.net>
50895
50896         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50897         Reported by Simon Josefsson.
50898
50899 2007-06-04  Bruno Haible  <bruno@clisp.org>
50900
50901         Avoid test failures on some PowerPC platforms.
50902         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50903         Define differently for PowerPC.
50904         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50905         Reported by Gary V. Vaughan <gary@gnu.org>.
50906
50907 2007-06-02  Bruno Haible  <bruno@clisp.org>
50908
50909         Fix test-stdint failure on FreeBSD/ia64.
50910         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50911         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50912         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50913         * doc/headers/stdint.texi: Update.
50914
50915 2007-06-01  Bruno Haible  <bruno@clisp.org>
50916
50917         * tests/test-binary-io.c (main): Pass a third argument to open().
50918         Reported by Gary V. Vaughan <gary@gnu.org>.
50919
50920 2007-06-01  Bruno Haible  <bruno@clisp.org>
50921
50922         * doc/functions/frexpl.texi: Update for mingw.
50923
50924 2007-06-01  Bruno Haible  <bruno@clisp.org>
50925
50926         * tests/test-lseek.c (main): Disable test of errno for invalid third
50927         argument.
50928         * doc/functions/lseek.texi: Update.
50929         Reported by Gary V. Vaughan <gary@gnu.org>.
50930
50931 2007-05-28  Bruno Haible  <bruno@clisp.org>
50932
50933         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50934
50935 2007-05-31  Eric Blake  <ebb9@byu.net>
50936
50937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50938         cross compiling.
50939
50940 2007-05-30  Eric Blake  <ebb9@byu.net>
50941         and Bruno Haible  <bruno@clisp.org>
50942
50943         Work around mingw test failures exposed by m4-1.4.9b.
50944         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50945         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50946         moment.
50947
50948 2007-05-30  Bruno Haible  <bruno@clisp.org>
50949
50950         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50951         assuming that they are closed. Needed on HP-UX 11.
50952
50953 2007-05-29  Bruno Haible  <bruno@clisp.org>
50954
50955         Fix a problem with #include_next.
50956         * lib/dirent_.h: Split the double-inclusion guard.
50957         * lib/fcntl_.h: Likewise.
50958         * lib/float_.h: Likewise.
50959         * lib/iconv_.h: Likewise.
50960         * lib/inttypes_.h: Likewise.
50961         * lib/locale_.h: Likewise.
50962         * lib/math_.h: Likewise.
50963         * lib/netinet_in_.h: Likewise.
50964         * lib/search_.h: Likewise.
50965         * lib/signal_.h: Likewise.
50966         * lib/stdint_.h: Likewise.
50967         * lib/stdio_.h: Likewise.
50968         * lib/stdlib_.h: Likewise.
50969         * lib/string_.h: Likewise.
50970         * lib/sys_select_.h: Likewise.
50971         * lib/sys_socket_.h: Likewise.
50972         * lib/sys_stat_.h: Likewise.
50973         * lib/sys_time_.h: Likewise.
50974         * lib/sysexits_.h: Likewise.
50975         * lib/time_.h: Likewise.
50976         * lib/unistd_.h: Likewise.
50977         * lib/wchar_.h: Likewise.
50978         * lib/wctype_.h: Likewise.
50979
50980 2007-05-29  Bruno Haible  <bruno@clisp.org>
50981
50982         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50983         for the moment.
50984
50985 2007-05-29  Bruno Haible  <bruno@clisp.org>
50986
50987         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50988         invocation.
50989         Reported by Eric Blake.
50990
50991 2007-05-29  Bruno Haible  <bruno@clisp.org>
50992
50993         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50994         compiling case.
50995
50996 2007-05-29  Eric Blake  <ebb9@byu.net>
50997             Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51000         cross compiles.
51001
51002 2007-05-28  Eric Blake  <ebb9@byu.net>
51003
51004         * modules/closein-tests (test_closein_LDADD): Support test on
51005         cygwin with libtool.
51006
51007 2007-05-28  Bruno Haible  <bruno@clisp.org>
51008
51009         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51010         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51011         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51012         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51013         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51014         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51015         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51016         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51017         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51018
51019 2007-05-28  Eric Blake  <ebb9@byu.net>
51020
51021         Unconditionally include <config.h> in unit tests.
51022         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51023         * tests/test-allocsa.c, tests/test-arcfour.c,
51024         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51025         tests/test-array_list.c, tests/test-array_oset.c,
51026         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51027         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51028         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51029         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51030         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51031         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51032         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51033         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51034         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51035         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51036         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51037         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51038         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51039         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51040         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51041         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51042         test-md5.c, test-memmem.c, test-printf-posix.c,
51043         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51044         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51045         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51046         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51047         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51048         test-vasnprintf-posix2.c, test-vasnprintf.c,
51049         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51050         test-vfprintf-posix.c, test-vprintf-posix.c,
51051         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51052         test-xvasprintf.c: Likewise.
51053
51054 2007-05-28  Bruno Haible  <bruno@clisp.org>
51055
51056         * gnulib-tool (func_import): Remember the --with-tests command-line
51057         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51058         Reported by Eric Blake.
51059
51060 2007-05-28  Bruno Haible  <bruno@clisp.org>
51061
51062         * modules/ftell-tests: New file.
51063         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51064         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51065
51066         * lib/ftell.c: New file.
51067         * modules/ftell: New file.
51068         * m4/ftell.m4: New file.
51069         * doc/functions/ftell.texi: Update.
51070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51071         REPLACE_FTELL.
51072         * lib/stdio_.h (rpl_ftell): New declaration.
51073         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51074         REPLACE_FTELL.
51075
51076 2007-05-28  Eric Blake  <ebb9@byu.net>
51077
51078         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51079
51080 2007-05-28  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/fseek-tests: New file.
51083         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51084         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51085
51086         * lib/fseek.c: New file.
51087         * modules/fseek: New file.
51088         * m4/fseek.m4: New file.
51089         * doc/functions/fseek.texi: Update.
51090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51091         REPLACE_FSEEK.
51092         * lib/stdio_.h (rpl_fseek): New declaration.
51093         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51094         REPLACE_FSEEK.
51095
51096 2007-05-28  Bruno Haible  <bruno@clisp.org>
51097
51098         * lib/stdio_.h (fflush): More comments.
51099
51100 2007-05-28  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51103         runtime test.
51104
51105 2007-05-28  Eric Blake  <ebb9@byu.net>
51106
51107         Improve lseek module.
51108         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51109         * lib/unistd_.h (lseek): Scale back link warning message.
51110         * tests/test-lseek.c: Beef up test.
51111         * tests/test-lseek.sh: Exercise more facets of lseek.
51112         Reported by Bruno Haible.
51113
51114 2007-05-28  Bruno Haible  <bruno@clisp.org>
51115
51116         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51117         to define.
51118
51119 2007-05-27  Bruno Haible  <bruno@clisp.org>
51120
51121         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51122
51123 2007-05-27  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/openmp: New file.
51126         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51127         Noah Misch.
51128
51129 2007-05-26  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/chdir-long (Depends-on): Add fchdir.
51132         * modules/chdir-safer (Depends-on): Likewise.
51133         * modules/fts (Depends-on): Likewise.
51134         * modules/fts-lgpl (Depends-on): Likewise.
51135         * modules/openat (Depends-on): Likewise.
51136         * modules/savewd (Depends-on): Likewise.
51137
51138 2007-05-24  Eric Blake  <ebb9@byu.net>
51139
51140         Fix lseek on mingw.
51141         * modules/lseek: New module.
51142         * m4/lseek.m4: New file.
51143         * lib/lseek.c: New file.
51144         * modules/lseek-tests: New file.
51145         * tests/test-lseek.c: New file.
51146         * tests/test-lseek.sh: New file.
51147         * MODULES.html.sh: Document lseek module.
51148         * modules/fflush (Depends-on): Add lseek, fseeko.
51149         * modules/fseeko (Depends-on): Likewise.
51150         * modules/ftello (Depends-on): Likewise.
51151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51152         broken.
51153         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51154         broken.
51155         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51156         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51157         * lib/ftello.c (rpl_ftello): Likewise.
51158         * tests/test-fseeko.c (main): Test this.
51159         * tests/test-fseeko.sh: Likewise.
51160         * tests/test-ftello.c (main): Likewise.
51161         * tests/test-ftello.sh: Likewise.
51162         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51163         implies replacing fseek.
51164         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51165         HAVE_FTELLO.
51166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51167         * modules/unistd (Makefile.am): Likewise.
51168         * lib/unistd_.h (lseek): Declare a replacement.
51169         * doc/functions/lseek.texi (lseek): Document this fix.
51170         * doc/functions/fseek.texi (fseek): Likewise.
51171         * doc/functions/ftell.texi (ftell): Likewise.
51172
51173 2007-05-24  Bruno Haible  <bruno@clisp.org>
51174
51175         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51176         in the printed representation of a NaN.
51177         * tests/test-vasprintf-posix.c (test_function): Likewise.
51178         * tests/test-snprintf-posix.h (test_function): Likewise.
51179         * tests/test-sprintf-posix.h (test_function): Likewise.
51180         Reported by Eric Blake.
51181
51182 2007-05-23  Eric Blake  <ebb9@byu.net>
51183
51184         Fix fseeko/ftello on cygwin 1.5.24.
51185         * doc/functions/fseeko.texi (fseeko): Document the fix.
51186         * doc/functions/ftello.texi (ftello): Document the fix.
51187         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51188         * doc/functions/stdout.text (stdout): New file.
51189         * doc/functions/stderr.text (stderr): New file.
51190         * doc/gnulib.texi (Function Substitutes): Use new files.
51191         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51192         prior to 1.7.0.
51193         * tests/test-ftello.c (main): Likewise for ftello.
51194         * tests/test-fseeko.sh: New file.
51195         * tests/test-ftello.sh: New file.
51196         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51197         with seekable stdin.
51198         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51199         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51200         (gl_REPLACE_FSEEKO): New macro.
51201         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51202         * modules/fseeko (Files): Distribute fseeko.c.
51203         * modules/ftello (Files): Distribute ftello.c.
51204         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51205         mode.
51206         * lib/ftello.c (rpl_ftello): New file.
51207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51208         fseeko, ftello.
51209         (gl_STDIN_LARGE_OFFSET): New macro.
51210         * modules/stdio (Makefile.am): Perform the replacement.
51211         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51212
51213 2007-05-23  Bruno Haible  <bruno@clisp.org>
51214
51215         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51216         GNULIB_POSIXCHECK is defined.
51217
51218 2007-05-21  Bruno Haible  <bruno@clisp.org>
51219
51220         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51221         Check also the output for NaN arguments. When cross-compiling, guess
51222         no on IRIX.
51223         * lib/vasnprintf.c: Update comments.
51224         * tests/test-vasnprintf-posix.c (strisnan): New function.
51225         (test_function): Use it.
51226         * tests/test-vasprintf-posix.c (strisnan): New function.
51227         (test_function): Use it.
51228         * tests/test-snprintf-posix.h (strisnan): New function.
51229         (test_function): Use it.
51230         * tests/test-sprintf-posix.h (strisnan): New function.
51231         (test_function): Use it.
51232         Reported by Eric Blake.
51233
51234 2007-05-20  Bruno Haible  <bruno@clisp.org>
51235
51236         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51237         numbers that fails on BeOS.
51238         * doc/functions/frexpl.texi: Update.
51239
51240 2007-05-20  Jim Meyering  <jim@meyering.net>
51241
51242         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51243         forced upon us by glibc-2.6.
51244
51245 2007-05-20  Bruno Haible  <bruno@clisp.org>
51246
51247         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51248         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51249         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51250         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51251         NEED_PRINTF_INFINITE.
51252         (is_infinitel): New function.
51253         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51255         gl_PREREQ_VASNPRINTF_INFINITE.
51256         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51257         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51258         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51259         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51260         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51261         gl_PREREQ_VASNPRINTF_INFINITE.
51262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51269         * doc/functions/fprintf.texi: Update.
51270         * doc/functions/printf.texi: Update.
51271         * doc/functions/snprintf.texi: Update.
51272         * doc/functions/sprintf.texi: Update.
51273         * doc/functions/vfprintf.texi: Update.
51274         * doc/functions/vprintf.texi: Update.
51275         * doc/functions/vsnprintf.texi: Update.
51276         * doc/functions/vsprintf.texi: Update.
51277
51278 2007-05-20  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51281         was not found in libc.
51282         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51283
51284 2007-05-20  Bruno Haible  <bruno@clisp.org>
51285
51286         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51287         printed as "-nan" instead of "nan".
51288         * tests/test-vasprintf-posix.c (test_function): Likewise.
51289         * tests/test-snprintf-posix.h (test_function): Likewise.
51290         * tests/test-sprintf-posix.h (test_function): Likewise.
51291         Needed for HP-UX 11.
51292
51293 2007-05-20  Jim Meyering  <jim@meyering.net>
51294
51295         Fix buggy test for the fchownat-deref bug.
51296         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51297         symlink required for the run-test.  Without it, this test would
51298         always declare that fchownat doesn't work, and client code would
51299         unnecessarily use the replacement function with fixed libc.
51300         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51301         Reported by Greg Schafer.
51302
51303 2007-05-19  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51306         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51307         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51308         Needed for IRIX 6.5 and Solaris 2.5.1.
51309
51310 2007-05-19  Bruno Haible  <bruno@clisp.org>
51311
51312         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51313         (test_function): Skip tests involving -0.0 on platforms where
51314         -0.0 = 0.0.
51315         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51316         (test_function): Skip tests involving -0.0 on platforms where
51317         -0.0 = 0.0.
51318         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51319         (test_function): Skip tests involving -0.0 on platforms where
51320         -0.0 = 0.0.
51321         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51322         (test_function): Skip tests involving -0.0 on platforms where
51323         -0.0 = 0.0.
51324         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51325         tests.
51326         * tests/test-printf-posix.h (test_function): Likewise.
51327         * tests/test-printf-posix.output: Remove all -0.0 related results.
51328         Needed for IRIX 6.5.
51329
51330 2007-05-19  Bruno Haible  <bruno@clisp.org>
51331
51332         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51333         printed as "nan0x7fffffff" instead of "nan".
51334         * tests/test-vasprintf-posix.c (test_function): Likewise.
51335         * tests/test-snprintf-posix.h (test_function): Likewise.
51336         * tests/test-sprintf-posix.h (test_function): Likewise.
51337         * tests/test-fprintf-posix.h (NaN): Remove macro.
51338         (test_function): Remove all NaN related tests.
51339         * tests/test-printf-posix.h (NaN): Remove macro.
51340         (test_function): Remove all NaN related tests.
51341         * tests/test-printf-posix.output: Remove all NaN related results.
51342         Needed for IRIX 6.5.
51343
51344 2007-05-19  Bruno Haible  <bruno@clisp.org>
51345
51346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51348
51349 2007-05-19  Bruno Haible  <bruno@clisp.org>
51350
51351         * lib/float_.h: New file.
51352         * m4/float_h.m4: New file.
51353         * modules/float: New file.
51354         * modules/isnanl (Dependencies): Add float.
51355         * modules/isnanl-nolibm (Dependencies): Likewise.
51356         * modules/mathl (Dependencies): Likewise.
51357         * modules/printf-frexpl (Dependencies): Likewise.
51358         * modules/signbit (Dependencies): Likewise.
51359         * modules/vasnprintf (Dependencies): Likewise.
51360         * doc/headers/float.texi: Update.
51361
51362 2007-05-19  Jim Meyering  <jim@meyering.net>
51363
51364         * lib/utimens.c (gl_futimens): Rename from futimens,
51365         now that glibc-2.6 declares futimens.
51366         * lib/utimens.h: Likewise.
51367
51368 2007-05-19  Bruno Haible  <bruno@clisp.org>
51369
51370         Avoid test failures on mingw.
51371         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51372         * tests/test-printf-posix.sh: Likewise.
51373         * tests/test-vfprintf-posix.sh: Likewise.
51374         * tests/test-vprintf-posix.sh: Likewise.
51375
51376 2007-05-19  Bruno Haible  <bruno@clisp.org>
51377
51378         Fix *printf result for NaN, Inf, -0.0 on mingw.
51379         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51380         * lib/vasnprintf.c: Include math.h and isnan.h.
51381         (is_infinite_or_zero): New function.
51382         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51383         values in the %f, %F, %e, %E, %g, %G directives.
51384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51386         gl_PRINTF_INFINITE and test its result. Invoke
51387         gl_PREREQ_VASNPRINTF_INFINITE.
51388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51395         * doc/functions/fprintf.texi: Update.
51396         * doc/functions/printf.texi: Update.
51397         * doc/functions/snprintf.texi: Update.
51398         * doc/functions/sprintf.texi: Update.
51399         * doc/functions/vfprintf.texi: Update.
51400         * doc/functions/vprintf.texi: Update.
51401         * doc/functions/vsnprintf.texi: Update.
51402         * doc/functions/vsprintf.texi: Update.
51403
51404 2007-05-19  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51407         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51408         Instead of multiplying with 10^k, set extra_zeroes to k.
51409         (scale10_round_long_double): Remove function.
51410
51411 2007-05-18  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51414         introduced on 2007-05-06.
51415
51416 2007-05-18  Bruno Haible  <bruno@clisp.org>
51417
51418         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51419         %g directives.
51420         * tests/test-vasprintf-posix.c (test_function): Likewise.
51421         * tests/test-snprintf-posix.h (test_function): Likewise.
51422         * tests/test-sprintf-posix.h (test_function): Likewise.
51423
51424 2007-05-18  Bruno Haible  <bruno@clisp.org>
51425
51426         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51427         (strmatch): New function.
51428         (test_function): Test the %f directive on numbers of various exponents.
51429         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51430         (strmatch): New function.
51431         (test_function): Test the %f directive on numbers of various exponents.
51432         * tests/test-snprintf-posix.h (strmatch): New function.
51433         (test_function): Test the %f directive on numbers of various exponents.
51434         * tests/test-sprintf-posix.h (strmatch): New function.
51435         (test_function): Test the %f directive on numbers of various exponents.
51436         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51437         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51438         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51439         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51440
51441 2007-05-18  Bruno Haible  <bruno@clisp.org>
51442
51443         Add support for 'long double' number output.
51444         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51445         * lib/vasnprintf.c: Include math.h and float+.h.
51446         (mp_limb_t): New type.
51447         (GMP_LIMB_BITS): New macro.
51448         (mp_twolimb_t): New type.
51449         (GMP_TWOLIMB_BITS): New macro.
51450         (mpn_t): New type.
51451         (multiply, divide, convert_to_decimal, decode_long_double,
51452         scale10_round_long_double, scale10_round_decimal_long_double,
51453         floorlog10l): New functions.
51454         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51455         for the %f, %F, %e, %E, %g, %G directives.
51456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51458         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51459         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51467         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51468         * modules/snprintf-posix (Depends-on): Likewise.
51469         * modules/sprintf-posix (Depends-on): Likewise.
51470         * modules/vasnprintf-posix (Depends-on): Likewise.
51471         * modules/vasprintf-posix (Depends-on): Likewise.
51472         * modules/vfprintf-posix (Depends-on): Likewise.
51473         * modules/vsnprintf-posix (Depends-on): Likewise.
51474         * modules/vsprintf-posix (Depends-on): Likewise.
51475         * modules/vasnprintf (Files): Add lib/float+.h.
51476         * doc/functions/fprintf.texi: Update.
51477         * doc/functions/printf.texi: Update.
51478         * doc/functions/snprintf.texi: Update.
51479         * doc/functions/sprintf.texi: Update.
51480         * doc/functions/vfprintf.texi: Update.
51481         * doc/functions/vprintf.texi: Update.
51482         * doc/functions/vsnprintf.texi: Update.
51483         * doc/functions/vsprintf.texi: Update.
51484
51485 2007-05-18  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51488
51489 2007-05-18  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51492         for printing 64-bit integers. Needed for mingw.
51493
51494 2007-05-18  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51497         gl_FUNC_FREXPL_WORKS.
51498         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51499
51500 2007-05-18  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/frexpl-nolibm-tests: New file.
51503
51504         * modules/frexpl-nolibm: New file.
51505         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51506
51507 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51510         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51511         GCC 4.2, which otherwise issues a lot of warnings.
51512         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51513         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51514         Likewise.
51515         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51516         * modules/iconv_open (iconv.h): Likewise.
51517         * modules/locale (locale.h): Likewise.
51518         * modules/netinet_in (netinet/in.h): Likewise.
51519         * modules/sys_select (sys_select.h): Likewise.
51520         * modules/sys_socket (sys/socket.h): Likewise.
51521         * modules/sys_stat (sys/stat.h): Likewise.
51522         * modules/sysexits (sysexits.h): Likewise.
51523         * modules/unistd (unistd.h): Likewise.
51524
51525 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51526
51527         * modules/closein-tests (Makefile.am): Distribute
51528         `test-closein.sh'.
51529
51530 2007-05-17  Bruno Haible  <bruno@clisp.org>
51531
51532         * tests/test-printf-posix.output: Renamed from
51533         tests/test-fprintf-posix.out.
51534         * modules/fprintf-posix-tests: Update.
51535         * modules/printf-posix-tests: Update.
51536         * modules/vfprintf-posix-tests: Update.
51537         * modules/vprintf-posix-tests: Update.
51538         * tests/test-fprintf-posix.sh: Update.
51539         * tests/test-printf-posix.sh: Update.
51540         * tests/test-vfprintf-posix.sh: Update.
51541         * tests/test-vprintf-posix.sh: Update.
51542         Reported by Ralf Wildenhues.
51543
51544 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51545
51546         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51547         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51548         GCC 4.2, which otherwise issues a lot of warnings.
51549         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51550         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51551         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51552         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51553         it should no longer be needed.
51554         * lib/string_.h: Likewise.
51555         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51556         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51557         * modules/inttypes (inttypes.h): Likewise.
51558         * modules/math (math.h): Likewise.
51559         * modules/search (search.h): Likewise.
51560         * modules/signal (signal.h): Likewise.
51561         * modules/stdint (stdint.h): Likewise.
51562         * modules/stdio (stdio.h): Likewise.
51563         * modules/stdlib (stdlib.h): Likewise.
51564         * modules/string (string.h): Likewise.
51565         * modules/sys_time (sys/time.h): Likewise.
51566         * modules/time (time.h): Likewise.
51567         * modules/wchar (wchar.h): Likewise.
51568         * modules/wctype (wtype.h): Likewise.
51569
51570 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51571
51572         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51573
51574 2007-05-13  Bruno Haible  <bruno@clisp.org>
51575
51576         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51577         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51578         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51579         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51580         (gl_PREREQ_STRTOK_R): Don't require it here.
51581
51582 2007-05-13  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51585         when used in C++ mode.
51586
51587 2007-05-12  Bruno Haible  <bruno@clisp.org>
51588
51589         * lib/linebuffer.h: Tweak doc.
51590         * lib/linebuffer.c: Likewise.
51591
51592 2007-05-12  James Youngman  <jay@gnu.org>
51593
51594         * lib/linebuffer.c (readlinebuffer_delim): New function,
51595         like readlinebuffer, but use a caller-specified delimiter.
51596         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51597         as the delimiter.
51598         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51599
51600 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51601
51602         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51603         * modules/openat (Files): Remove openat-die.c.
51604         (Depends-on): Add openat-die.
51605         * modules/openat-die: New module.
51606
51607 2007-05-06  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51610         Update with info about Cygwin.
51611         * doc/functions/fprintf.texi: Update.
51612         * doc/functions/printf.texi: Update.
51613         * doc/functions/snprintf.texi: Update.
51614         * doc/functions/sprintf.texi: Update.
51615         * doc/functions/vfprintf.texi: Update.
51616         * doc/functions/vprintf.texi: Update.
51617         * doc/functions/vsnprintf.texi: Update.
51618         * doc/functions/vsprintf.texi: Update.
51619         Reported by Eric Blake.
51620
51621 2007-05-06  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51624         padding ourselves for the floating-point directives.
51625         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51628         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51629         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51637         * tests/test-snprintf-posix.h (test_function): Also check the width
51638         and some flags in the %f directive.
51639         * tests/test-sprintf-posix.h (test_function): Likewise.
51640         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51641         * tests/test-vasprintf-posix.c (test_function): Likewise.
51642         * doc/functions/fprintf.texi: Update.
51643         * doc/functions/printf.texi: Update.
51644         * doc/functions/snprintf.texi: Update.
51645         * doc/functions/sprintf.texi: Update.
51646         * doc/functions/vfprintf.texi: Update.
51647         * doc/functions/vprintf.texi: Update.
51648         * doc/functions/vsnprintf.texi: Update.
51649         * doc/functions/vsprintf.texi: Update.
51650
51651 2007-05-06  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51654         pass the ' flag character to sprintf or snprintf.
51655         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51658         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51659         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51661         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51667         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51668         flag.
51669         * tests/test-sprintf-posix.h (test_function): Likewise.
51670         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51671         * tests/test-vasprintf-posix.c (test_function): Likewise.
51672         * doc/functions/fprintf.texi: Update.
51673         * doc/functions/printf.texi: Update.
51674         * doc/functions/snprintf.texi: Update.
51675         * doc/functions/sprintf.texi: Update.
51676         * doc/functions/vfprintf.texi: Update.
51677         * doc/functions/vprintf.texi: Update.
51678         * doc/functions/vsnprintf.texi: Update.
51679         * doc/functions/vsprintf.texi: Update.
51680
51681 2007-05-01  Bruno Haible  <bruno@clisp.org>
51682
51683         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51684
51685 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51688         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51689
51690 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51693         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51694         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51695
51696 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51697
51698         * lib/argp-help.c (struct hol_entry): New member `ord'.
51699         (HOL_ENTRY_PTRCMP): Use ord for comparison
51700         (hol_sort): Initialize ord.
51701
51702 2007-05-01  Bruno Haible  <bruno@clisp.org>
51703
51704         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51705         Reported by Eric Blake.
51706         * doc/gnulib.texi (Function Substitutes): Update.
51707
51708 2007-05-01  Bruno Haible  <bruno@clisp.org>
51709
51710         * doc/functions.texi: Remove file, now redundant through
51711         doc/functions/*.texi.
51712
51713 2007-05-01  Bruno Haible  <bruno@clisp.org>
51714
51715         * modules/argp (Depends-on): Add sleep.
51716
51717 2007-05-01  Bruno Haible  <bruno@clisp.org>
51718
51719         * modules/sleep-tests: New file.
51720         * tests/test-sleep.c: New file.
51721
51722         * modules/sleep: New file.
51723         * lib/sleep.c: New file.
51724         * m4/sleep.m4: New file.
51725         * lib/unistd_.h (sleep): New declaration.
51726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51727         HAVE_SLEEP.
51728         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51729         * doc/functions/sleep.texi: Document the sleep module.
51730
51731 2007-05-01  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/sigprocmask.h: Remove file.
51734         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51735         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51736         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51737         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51738         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51739         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51740         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51741         HAVE_SIGSET_T as a shell variable.
51742         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51743         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51744         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51745         (Depends-on): Add signal. Remove verify.
51746         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51747         (Include): Mention <signal.h> instead of sigprocmask.h.
51748         * NEWS: Mention the change.
51749         * lib/fatal-signal.c: Don't include sigprocmask.h.
51750
51751 2007-05-01  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/signal: New file.
51754         * lib/signal_.h: New file.
51755         * m4/signal_h.m4: New file.
51756
51757 2007-05-01  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51760         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51761         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51762         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51763
51764 2007-05-01  Bruno Haible  <bruno@clisp.org>
51765
51766         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51767         configure time.
51768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51769         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51770         * modules/sys_stat (Makefile.am): Substitute their values into
51771         sys/stat.h.
51772
51773 2007-05-01  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51776         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51777         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51778
51779 2007-05-01  Bruno Haible  <bruno@clisp.org>
51780
51781         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51782         'assert' module here.
51783
51784 2007-05-01  Bruno Haible  <bruno@clisp.org>
51785
51786         * doc/functions/*.texi: New files.
51787         * doc/functions/google-ranking.txt: New file.
51788         * doc/gnulib.texi (Function Substitutes): New chapter.
51789         (ctime, inet_ntoa): Remove sections.
51790         * doc/ctime.texi: Remove file.
51791         * doc/inet_ntoa.texi: Remove file.
51792         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51793         dependencies.
51794         (%.info): New rule, specifying a --reference-limit.
51795
51796 2007-05-01  Bruno Haible  <bruno@clisp.org>
51797
51798         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51799
51800 2007-05-01  Bruno Haible  <bruno@clisp.org>
51801
51802         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51803         the portability of 'mkdir' to mingw systems.
51804
51805 2007-05-01  Bruno Haible  <bruno@clisp.org>
51806
51807         * doc/headers/google-ranking.txt: New file.
51808
51809 2007-04-30  Eric Blake  <ebb9@byu.net>
51810
51811         Prefer fseeko to fseek.
51812         * modules/getpass (Depends-on): Add fseeko.
51813         * lib/getpass.c (getpass): Use fseeko, not fseek.
51814
51815 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51816
51817         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51818         assumes the sorting is stable, while most qsort implementations
51819         are not.  Use argument addresses to ensure they never compare as
51820         equal.
51821
51822         * tests/test-argp-2.sh (usage-indent test): Fix output
51823         (func_compare): Restore diff options
51824         * tests/test-argp.c: Restore #include "progname.h"
51825
51826 2007-04-29  Bruno Haible  <bruno@clisp.org>
51827
51828         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51830         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51832         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51833         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51834         (TESTS, check_PROGRAMS): Add test-snprintf.
51835         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51836         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51837         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51838         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51839         assertions that fail on HP-UX, OSF/1, or IRIX.
51840         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51841
51842 2007-04-29  Bruno Haible  <bruno@clisp.org>
51843
51844         * MODULES.html.sh (posix_functions): Remove 'contents'.
51845
51846 2007-04-29  Karl Berry  <karl@gnu.org>
51847
51848         * config/srclist.txt (gendocs_template_min): new entry.
51849
51850 2007-04-29  Bruno Haible  <bruno@clisp.org>
51851
51852         Work around fpurge bug on BSD systems.
51853         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51854         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51855         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51856         fpurge to rpl_fpurge if the system already has this function.
51857         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51858         the case where the system already has this function. Correct invariants
51859         on BSD systems.
51860         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51861         BSD systems.
51862
51863 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51864
51865         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51866         proposed by Sven Verdoolaege.
51867
51868         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51869         options.
51870         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51871         (usage and help tests): Update
51872
51873 2007-04-29  Bruno Haible  <bruno@clisp.org>
51874
51875         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51876         Print more information in case of failure. Disable a test on BeOS.
51877
51878 2007-04-29  Bruno Haible  <bruno@clisp.org>
51879
51880         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51881         This helps debugging on systems on which no gdb is available.
51882
51883 2007-04-29  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/freading.h: Improve comments.
51886         * lib/fwriting.h: Likewise.
51887         * tests/test-freading.c (main): Don't check freading immediately after
51888         repositioning. Needed for glibc.
51889
51890 2007-04-29  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/freading.c (freading): Trivial simplification.
51893
51894 2007-04-28  Bruno Haible  <bruno@clisp.org>
51895
51896         * tests/test-fwriting.c (main): Also test the interaction between
51897         fflush and fwriting.
51898         * modules/fwriting-tests (Depends-on): Add fflush.
51899
51900         * tests/test-freading.c (main): Also test the interaction between
51901         fflush and freading.
51902         * modules/freading-tests (Depends-on): Add fflush.
51903
51904 2007-04-28  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51907         fseeko and ftello.
51908         Suggested by Eric Blake.
51909
51910 2007-04-28  Jim Meyering  <jim@meyering.net>
51911
51912         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51913         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51914         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51915
51916 2007-04-27  Eric Blake  <ebb9@byu.net>
51917
51918         * doc/headers/assert.texi (assert.h): Document assert module use.
51919
51920 2007-04-27  Bruno Haible  <bruno@clisp.org>
51921
51922         * doc/headers/*.texi: New files.
51923         * doc/gnulib.texi (Header File Substitutes): New chapter.
51924         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51925         dependencies.
51926         (standards.info ,standards.html, standards.dvi): Update dependencies.
51927         (mostlyclean, clean): New targets.
51928
51929 2007-04-27  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51932         * modules/sysexits (Files, Makefile.am): Update.
51933
51934         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51935         * modules/sys_socket (Files, Makefile.am): Update.
51936
51937         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51938         * modules/sys_stat (Files, Makefile.am): Update.
51939
51940 2007-04-27  Eric Blake  <ebb9@byu.net>
51941
51942         * lib/freading.h: Improve comments.
51943         * lib/fwriting.h: Likewise.
51944         * lib/fflush.c: Likewise.
51945
51946         Fix closein for mingw.
51947         * modules/closein-tests: Add tests for closein.
51948         * tests/test-closein.c: New file.
51949         * tests/test-closein.sh: Likewise.
51950         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51951         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51952
51953 2007-04-27  Bruno Haible  <bruno@clisp.org>
51954
51955         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51956         version is < 6.
51957         * lib/math_.h [__DECC]: Likewise.
51958         * lib/stdio_.h [__DECC]: Likewise.
51959         * lib/stdlib_.h [__DECC]: Likewise.
51960         * lib/string_.h [__DECC]: Likewise.
51961         * lib/time_.h [__DECC]: Likewise.
51962         * lib/wchar_.h [__DECC]: Likewise.
51963         * lib/wctype_.h [__DECC]: Likewise.
51964
51965 2007-04-27  Bruno Haible  <bruno@clisp.org>
51966
51967         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51968
51969 2007-04-27  Bruno Haible  <bruno@clisp.org>
51970
51971         * lib/fflush.c: Add comments.
51972         * modules/fpurge-tests (Depends-on): Add fflush.
51973         * modules/freadable-tests (Depends-on): Likewise.
51974         * modules/fwritable-tests (Depends-on): Likewise.
51975
51976 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51977
51978         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51979         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51980         Report by Bruno Haible <bruno@clisp.org>.
51981
51982 2007-04-26  Eric Blake  <ebb9@byu.net>
51983
51984         Fix fflush on mingw.
51985         * modules/fflush (Depends-on): Add freading.
51986         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51987         but unread data.
51988
51989 2007-04-26  Eric Blake  <ebb9@byu.net>
51990         and Bruno Haible  <bruno@clisp.org>
51991
51992         Implement freading and fwriting.
51993         * lib/freading.c: New file.
51994         * lib/freading.h: Likewise.
51995         * m4/freading.m4: Likewise.
51996         * modules/freading: Likewise.
51997         * modules/freading-tests: Likewise.
51998         * tests/test-freading.c: Likewise.
51999         * lib/fwriting.c: New file.
52000         * lib/fwriting.h: Likewise.
52001         * m4/fwriting.m4: Likewise.
52002         * modules/fwriting: Likewise.
52003         * modules/fwriting-tests: Likewise.
52004         * tests/test-fwriting.c: Likewise.
52005         * MODULES.html.sh (File stream based Input/Output): Mention them.
52006
52007 2007-04-26  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52010         'long' when we assume it.
52011         Suggested by Eric Blake.
52012
52013 2007-04-26  Bruno Haible  <bruno@clisp.org>
52014
52015         Ensure fseeko, ftello are declared on glibc systems.
52016         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52017         * modules/fseeko (configure.ac-early): Likewise.
52018         * modules/ftello (configure.ac-early): Likewise.
52019         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52020         AC_FUNC_FSEEKO for this.
52021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52022         (gl_CHECK_FSEEKO): Remove macro.
52023
52024 2007-04-26  Bruno Haible  <bruno@clisp.org>
52025
52026         * tests/test-fflush.c (main): Also check the ftell result after
52027         fflush and fseek/fseeko.
52028         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52029         file descriptor position cache in the stream.
52030         * lib/fseeko.c (rpl_fseeko): Likewise.
52031
52032 2007-04-26  Bruno Haible  <bruno@clisp.org>
52033
52034         * modules/fflush-tests (Depends-on): Add fseeko.
52035
52036 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52037             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52038
52039         * lib/argz_.h: ensure error_t definition is obtained in same
52040         mechanism system argz.h would have.
52041         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52042         argz facilities are known bad.  Err on the side of caution if
52043         cross-compiling.
52044
52045 2007-04-25  Eric Blake  <ebb9@byu.net>
52046
52047         * lib/fpurge.c (includes): Use stdlib.h for free.
52048         * tests/test-fflush.c (main): Also test fflush-fseeko.
52049
52050 2007-04-25  Bruno Haible  <bruno@clisp.org>
52051
52052         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52053         * lib/fseeko.c: New file.
52054         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52055         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52056         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52057         gl_FUNC_FSEEKO.
52058         (gl_FUNC_FSEEKO): Invoke it.
52059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52060         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52061         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52062
52063 2007-04-25  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/fflush (Depends-on): Add ftello.
52066
52067 2007-04-25  Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/ftello-tests: New file.
52070         * tests/test-ftello.c: New file.
52071
52072         * modules/ftello: New file.
52073         * m4/ftello.m4: New file.
52074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52075         HAVE_FTELLO.
52076         * lib/stdio_.h (ftello): New declaration.
52077         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52078         HAVE_FTELLO.
52079
52080 2007-04-25  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/fseeko-tests: New file.
52083         * tests/test-fseeko.c: New file.
52084
52085         * modules/fseeko: New file.
52086         * m4/fseeko.m4: New file.
52087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52088         HAVE_FSEEKO.
52089         * lib/stdio_.h (fseeko): New declaration.
52090         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52091         HAVE_FSEEKO.
52092
52093 2007-04-25  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52096
52097 2007-04-25  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52100         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52101         * tests/test-unistd.c: Likewise.
52102         * tests/test-fcntl.c: Likewise.
52103
52104 2007-04-23  Eric Blake  <ebb9@byu.net>
52105
52106         * lib/fflush.c: Fix missing include.
52107         Reported by Bruno Haible.
52108
52109 2007-04-23  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52112         Reported by Eric Blake.
52113
52114 2007-04-23  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52117
52118 2007-04-23  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52121
52122 2007-04-23  Bruno Haible  <bruno@clisp.org>
52123
52124         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52125         Needed on HP-UX 11.
52126
52127 2007-04-16  Eric Blake  <ebb9@byu.net>
52128
52129         Make fflush rely on fpurge.
52130         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52131         open coding all variants.
52132         * modules/fflush (Depends-on): Add fpurge and unistd.
52133         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52134         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52135
52136         Fix --with-tests compilation on cygwin.
52137         * modules/argmatch-tests (Makefile.am): List gnulib library first
52138         in LDADD.
52139         * modules/argp-tests (Makefile.am): Likewise.
52140         * modules/array-list-tests (Makefile.am): Likewise.
52141         * modules/array-oset-tests (Makefile.am): Likewise.
52142         * modules/avltree-list-tests (Makefile.am): Likewise.
52143         * modules/avltree-oset-tests (Makefile.am): Likewise.
52144         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52145         * modules/carray-list-tests (Makefile.am): Likewise.
52146         * modules/dirname-tests (Makefile.am): Likewise.
52147         * modules/frexp-tests (Makefile.am): Likewise.
52148         * modules/isnanl-tests (Makefile.am): Likewise.
52149         * modules/linked-list-tests (Makefile.am): Likewise.
52150         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52151         * modules/lock-tests (Makefile.am): Likewise.
52152         * modules/rbtree-list-tests (Makefile.am): Likewise.
52153         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52154         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52155         * modules/tls-tests (Makefile.am): Likewise.
52156         * modules/tsearch-tests (Makefile.am): Likewise.
52157         * modules/xvasprintf-tests (Makefile.am): Likewise.
52158
52159         Fix fpurge for cygwin.
52160         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52161         value.
52162         * modules/fpurge-tests (Depends-on): Clean up trash.
52163
52164 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52165
52166         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52167
52168         * m4/autobuild.m4: Re-indent.
52169
52170 2007-04-13  Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/fpurge-tests: New file.
52173         * tests/test-fpurge.c: New file.
52174
52175         * modules/fpurge: New file.
52176         * lib/fpurge.h: New file.
52177         * lib/fpurge.c: New file.
52178         * m4/fpurge.m4: New file.
52179
52180 2007-04-13  Bruno Haible  <bruno@clisp.org>
52181
52182         * modules/fbufmode-tests: New file.
52183         * tests/test-fbufmode.c: New file.
52184
52185         * modules/fbufmode: New file.
52186         * lib/fbufmode.h: New file.
52187         * lib/fbufmode.c: New file.
52188         * m4/fbufmode.m4: New file.
52189
52190 2007-04-13  Bruno Haible  <bruno@clisp.org>
52191
52192         * modules/fwritable-tests: New file.
52193         * tests/test-fwritable.c: New file.
52194
52195         * modules/fwritable: New file.
52196         * lib/fwritable.h: New file.
52197         * lib/fwritable.c: New file.
52198         * m4/fwritable.m4: New file.
52199
52200 2007-04-13  Bruno Haible  <bruno@clisp.org>
52201
52202         * modules/freadable-tests: New file.
52203         * tests/test-freadable.c: New file.
52204
52205         * modules/freadable: New file.
52206         * lib/freadable.h: New file.
52207         * lib/freadable.c: New file.
52208         * m4/freadable.m4: New file.
52209
52210 2007-04-13  Bruno Haible  <bruno@clisp.org>
52211
52212         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52213         MOSTLYCLEANFILES.
52214
52215 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52216
52217         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52218         gzip bootstrap.conf to avoid dragging in i18n machinery.
52219         (gnulib_tool_option): Use it.
52220
52221 2007-04-13  Bruno Haible  <bruno@clisp.org>
52222
52223         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52224         %F directives.
52225         * tests/test-vasprintf-posix.c (test_function): Likewise.
52226         * tests/test-snprintf-posix.h (test_function): Likewise.
52227         * tests/test-sprintf-posix.h (test_function): Likewise.
52228         * tests/test-fprintf-posix.h (test_function): Likewise.
52229         * tests/test-printf-posix.h (test_function): Likewise.
52230         * tests/test-fprintf-posix.out: Likewise.
52231
52232 2007-04-13  Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52235         * modules/tls-tests (configure.ac): Likewise.
52236         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52237
52238 2007-04-13  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/tls.c (glthread_tls_get): Fix return type.
52241         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52242
52243 2007-04-12  Eric Blake  <ebb9@byu.net>
52244
52245         * modules/gettime (Depends-on): Remove gettime.
52246         Reported by Dmitry V. Levin.
52247
52248 2007-04-12  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/fflush (Include): Mention <stdio.h>.
52251         * modules/strtoimax (Include): Mention <inttypes.h>.
52252         * modules/strtoumax (Include): Likewise.
52253
52254 2007-04-12  Eric Blake  <ebb9@byu.net>
52255
52256         * .cvsignore: New file.
52257         * .gitignore: Likewise.
52258
52259 2007-04-12  Bruno Haible  <bruno@clisp.org>
52260
52261         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52262         not before, since $(LDADD) often contains libgnu.a.
52263         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52264         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52265         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52266         Needed on Cygwin.
52267
52268 2007-04-12  Eric Blake  <ebb9@byu.net>
52269
52270         Work around glibc's failure to flush stdin on fclose.
52271         * lib/closein.c (close_stdin): Flush stdin before closing.
52272
52273         Work around glibc's failure to reset seekable stdin on exit.
52274         * modules/closein: New module.
52275         * lib/closein.c: New file.
52276         * lib/closein.h: Likewise.
52277         * m4/closein.m4: Likewise.
52278         * MODULES.html.sh (File stream based Input/Output): Document it.
52279
52280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52281
52282         * gnulib-tool: Rename generated 'autobuild' script to
52283         'do-autobuild' in --create-megatestdir output.
52284
52285         * doc/gnulib.texi (Build robot for gnulib): Fix.
52286
52287 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52288
52289         * modules/sysexits (Depends-on): Add absolute-header.
52290
52291 2007-04-12  Eric Blake  <ebb9@byu.net>
52292
52293         No need to preserve errno on success.
52294         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52295         Reported by Bruno Haible.
52296
52297 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52298
52299         * MODULES.html.sh (Support for maintaining and releasing
52300         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52301
52302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52303
52304         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52305
52306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52307
52308         * modules/autobuild: New module.
52309
52310         * m4/autobuild.m4: New file.
52311
52312 2007-04-11  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52315         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52340         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52341         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52342         Reported by Eric Blake.
52343
52344 2007-04-11  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52347
52348 2007-04-10  Bruno Haible  <bruno@clisp.org>
52349
52350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52351         for NaN and Infinity. Needed on FreeBSD 6.1.
52352         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52353         regarding results for "%010a" of Infinity and NaN.
52354         * tests/test-vasprintf-posix.c (test_function): Likewise.
52355         * tests/test-snprintf-posix.h (test_function): Likewise.
52356         * tests/test-sprintf-posix.h (test_function): Likewise.
52357         * tests/test-fprintf-posix.h (test_function): Likewise.
52358         * tests/test-printf-posix.h (test_function): Likewise.
52359         * tests/test-fprintf-posix.out: Likewise.
52360
52361 2007-04-10  Bruno Haible  <bruno@clisp.org>
52362
52363         * modules/locale-tests: New file.
52364         * tests/test-locale.c: New file.
52365
52366         * modules/locale: New file.
52367         * lib/locale_.h: New file.
52368         * m4/locale_h.m4: New file.
52369
52370 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52371             Bruno Haible  <bruno@clisp.org>
52372
52373         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52374         be determined, test for availability of the copysignf, copysign,
52375         copysignl functions.
52376         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52377         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52378         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52379
52380 2007-04-09  Eric Blake  <ebb9@byu.net>
52381
52382         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52383         * modules/stdio (Makefile.am): Support fflush.
52384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52385         * modules/fflush: New file.
52386         * lib/fflush.c: Likewise.
52387         * m4/fflush.m4: Likewise.
52388         * modules/fflush-tests: New test.
52389         * tests/test-fflush.c: Likewise.
52390         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52391
52392 2007-04-06  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52395         (VASNPRINTF): Use signbit for faster determination whether to print a
52396         minus sign.
52397         * modules/vasnprintf (Files): Remove lib/float+.h.
52398         * modules/fprintf-posix (Depends-on): Add signbit.
52399         * modules/snprintf-posix (Depends-on): Likewise.
52400         * modules/sprintf-posix (Depends-on): Likewise.
52401         * modules/vasnprintf-posix (Depends-on): Likewise.
52402         * modules/vasprintf-posix (Depends-on): Likewise.
52403         * modules/vfprintf-posix (Depends-on): Likewise.
52404         * modules/vsnprintf-posix (Depends-on): Likewise.
52405         * modules/vsprintf-posix (Depends-on): Likewise.
52406
52407 2007-04-06  Bruno Haible  <bruno@clisp.org>
52408
52409         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52410         * tests/test-frexpl.c (main): Likewise.
52411         * tests/test-ldexpl.c (main): Likewise.
52412         * modules/frexp-tests (Depends-on): Add signbit.
52413         * modules/frexpl-tests (Depdends-on): Likewise.
52414         * modules/ldexpl-tests (Depdends-on): Likewise.
52415
52416 2007-04-06  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/signbit-tests: New file.
52419         * tests/test-signbit.c: New file.
52420
52421         * modules/signbit: New file.
52422         * lib/signbitf.c: New file.
52423         * lib/signbitd.c: New file.
52424         * lib/signbitl.c: New file.
52425         * m4/signbit.m4: New file.
52426         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52427         (signbit): New macro.
52428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52429         REPLACE_SIGNBIT.
52430         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52431         REPLACE_FREXPL into math.h.
52432
52433 2007-04-06  Bruno Haible  <bruno@clisp.org>
52434
52435         * modules/isnanf-nolibm-tests: New file.
52436         * tests/test-isnanf.c: New file.
52437
52438         * modules/isnanf-nolibm: New file.
52439         * lib/isnanf.h: New file.
52440         * lib/isnanf.c: New file.
52441         * lib/isnan.c: Consider the USE_FLOAT macro.
52442         * m4/isnanf.m4: New file.
52443
52444 2007-04-06  Bruno Haible  <bruno@clisp.org>
52445
52446         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52447         (Link): New section.
52448
52449         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52450
52451 2007-04-06  Bruno Haible  <bruno@clisp.org>
52452
52453         Assume the 'long double' type.
52454         * m4/longdouble.m4: Remove file.
52455         * config/srclist.txt: Don't mention longdouble.m4.
52456         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52457         * lib/float+.h: Likewise.
52458         * lib/frexp.c: Likewise.
52459         * lib/printf-args.h: Likewise.
52460         * lib/printf-args.c: Likewise.
52461         * lib/printf-frexp.c: Likewise.
52462         * lib/printf-parse.c: Likewise.
52463         * lib/vasnprintf.c: Likewise.
52464         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52465         * m4/intl.m4: Likewise.
52466         * m4/isnanl.m4: Likewise.
52467         * m4/printf.m4: Likewise.
52468         * m4/printf-frexpl.m4: Likewise.
52469         * m4/vasnprintf.m4: Likewise.
52470         * modules/allocsa (Files): Remove m4/longdouble.m4.
52471         * modules/gettext (Files): Likewise.
52472         * modules/relocatable-prog-wrapper (Files): Likewise.
52473         * modules/vasnprintf (Files): Likewise.
52474         * modules/isnanl (Files): Likewise.
52475         (Include): Simplify.
52476         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52477         (Include): Simplify.
52478         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52479         (Include): Simplify.
52480         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52481         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52482         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52483         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52484         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52486         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52488         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52489         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52490         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52491         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52492         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52493         * tests/test-isnanl.c: Likewise.
52494         * tests/test-snprintf-posix.h: Likewise.
52495         * tests/test-sprintf-posix.h: Likewise.
52496         * tests/test-vasnprintf-posix.c: Likewise.
52497         * tests/test-vasnprintf-posix2.c: Likewise.
52498         * tests/test-vasprintf-posix.c: Likewise.
52499
52500 2007-04-06  Bruno Haible  <bruno@clisp.org>
52501
52502         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52503         * lib/math_.h [__DECC]: Include the overridden include file through
52504         #include_next, outside the double-inclusion guard.
52505         * lib/stdio_.h [__DECC]: Likewise.
52506         * lib/stdlib_.h [__DECC]: Likewise.
52507         * lib/string_.h [__DECC]: Likewise.
52508         * lib/time_.h [__DECC]: Likewise.
52509         * lib/wchar_.h [__DECC]: Likewise.
52510         * lib/wctype_.h [__DECC]: Likewise.
52511         * lib/inttypes_.h [__DECC]: Likewise.
52512         Reported by Albert Chin <china@thewrittenword.com> in
52513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52514
52515 2007-04-04  Eric Blake  <ebb9@byu.net>
52516
52517         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52518         1.5.x.
52519
52520 2007-04-04  Bruno Haible  <bruno@clisp.org>
52521
52522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52523         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52524
52525 2007-04-04  Bruno Haible  <bruno@clisp.org>
52526
52527         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52528         results for "%010a" of Infinity and NaN.
52529         * tests/test-vasprintf-posix.c (test_function): Likewise.
52530         * tests/test-snprintf-posix.h (test_function): Likewise.
52531         * tests/test-sprintf-posix.h (test_function): Likewise.
52532         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52533         * tests/test-printf-posix.h (test_function): Likewise.
52534         * tests/test-fprintf-posix.out: Update.
52535         Needed for FreeBSD 6.1.
52536
52537 2007-04-04  Bruno Haible  <bruno@clisp.org>
52538
52539         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52540         directly used by the gnulib modules nor by gnulib-tool.
52541
52542 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * DEPENDENCIES: Give overall description of version dependency
52545         desirability.  Use more-typical names for apps.
52546         Add shell, coreutils, diffutils, grep, tar, gzip.
52547
52548 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52549
52550         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52551
52552 2007-04-04  Karl Berry  <karl@gnu.org>
52553
52554         * MODULES.html.sh (func_module): missing '.
52555
52556 2007-04-03  Bruno Haible  <bruno@clisp.org>
52557
52558         * modules/argmatch-tests (Makefile.am): New variable
52559         test_argmatch_LDADD.
52560         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52561         * modules/array-list-tests (Makefile.am): New variable
52562         test_array_list_LDADD.
52563         * modules/array-oset-tests (Makefile.am): New variable
52564         test_array_oset_LDADD.
52565         * modules/avltree-list-tests (Makefile.am): New variable
52566         test_avltree_list_LDADD.
52567         * modules/avltree-oset-tests (Makefile.am): New variable
52568         test_avltree_oset_LDADD.
52569         * modules/avltreehash-list-tests (Makefile.am): New variable
52570         test_avltreehash_list_LDADD.
52571         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52572         test_canonicalize_lgpl_LDADD.
52573         * modules/carray-list-tests (Makefile.am): New variable
52574         test_carray_list_LDADD.
52575         * modules/dirname-tests (Makefile.am): New variable
52576         test_dirname_LDADD.
52577         * modules/linked-list-tests (Makefile.am): New variable
52578         test_linked_list_LDADD.
52579         * modules/linkedhash-list-tests (Makefile.am): New variable
52580         test_linkedhash_list_LDADD.
52581         * modules/rbtree-list-tests (Makefile.am): New variable
52582         test_rbtree_list_LDADD.
52583         * modules/rbtree-oset-tests (Makefile.am): New variable
52584         test_rbtree_oset_LDADD.
52585         * modules/rbtreehash-list-tests (Makefile.am): New variable
52586         test_rbtreehash_list_LDADD.
52587         * modules/xvasprintf-tests (Makefile.am): New variable
52588         test_xvasprintf_LDADD.
52589         Reported by Eric Blake.
52590
52591 2007-04-03  Eric Blake  <ebb9@byu.net>
52592
52593         * DEPENDENCIES: Weaken m4 requirements.
52594
52595 2007-04-03  Bruno Haible  <bruno@clisp.org>
52596
52597         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52598         * modules/isnanl-tests (configure.ac): Likewise.
52599
52600 2007-04-03  Ben Pfaff  <blp@gnu.org>
52601
52602         * modules/iconv_open: Add $(srcdir)/ to source directory
52603         references in Makefile fragments that call gperf, to fix VPATH
52604         builds.
52605
52606 2007-04-03  Bruno Haible  <bruno@clisp.org>
52607
52608         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52609         * lib/ldexpl.c: Undo last change.
52610
52611 2007-04-03  Bruno Haible  <bruno@clisp.org>
52612
52613         * modules/printf-frexpl (Depends-on): Undo last change.
52614         (Files): Add m4/ldexpl.m4.
52615
52616 2007-04-03  Bruno Haible  <bruno@clisp.org>
52617
52618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52619         * modules/isnanl (Link): New section.
52620
52621         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52622         * modules/frexp (Link): New section.
52623
52624         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52625         * modules/frexpl (Link): New section.
52626
52627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52628         * modules/ldexpl (Link): New section.
52629
52630 2007-04-03  Bruno Haible  <bruno@clisp.org>
52631
52632         * modules/TEMPLATE-EXTENDED: New file.
52633         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52634
52635 2007-04-03  Bruno Haible  <bruno@clisp.org>
52636
52637         * DEPENDENCIES: New file.
52638         Suggested by Simon Josefsson.
52639
52640 2007-04-03  Bruno Haible  <bruno@clisp.org>
52641
52642         * doc/gnulib.texi: Escape @.
52643
52644 2007-04-03  James Youngman  <jay@gnu.org>
52645         and Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52648         birthtime on all systems that have birthtime, not just those which
52649         use st_birthtimensec rather than st_birthtim.  Putting zero in
52650         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52651         that the birth time is not available for files on an NFS mount.
52652
52653 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52654
52655         * modules/memxor: Move back from crypto/, suggested by Bruno.
52656         * modules/crypto/hmac-sha1: Fix memxor dependency.
52657
52658         * modules/crypto/gc: Moved from ../.
52659
52660 2007-04-02  Eric Blake  <ebb9@byu.net>
52661
52662         * lib/ldexpl.c (includes): Avoid libm.
52663
52664         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52665
52666 2007-04-02  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52669         on IRIX.
52670
52671 2007-04-02  Bruno Haible  <bruno@clisp.org>
52672
52673         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52674         x86 or x86_64 platforms running MacOS X.
52675         Reported by Ryan Schmidt <@ryandesign.com>.
52676
52677 2007-04-02  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52680         i386.
52681
52682 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52683
52684         * modules/crypto/arcfour: Moved from ../.
52685         * modules/crypto/arcfour-tests: Moved from ../.
52686         * modules/crypto/arctwo: Moved from ../.
52687         * modules/crypto/arctwo-tests: Moved from ../.
52688         * modules/crypto/des: Moved from ../.
52689         * modules/crypto/des-tests: Moved from ../.
52690         * modules/crypto/gc-arcfour: Moved from ../.
52691         * modules/crypto/gc-arcfour-tests: Moved from ../.
52692         * modules/crypto/gc-arctwo: Moved from ../.
52693         * modules/crypto/gc-arctwo-tests: Moved from ../.
52694         * modules/crypto/gc-des: Moved from ../.
52695         * modules/crypto/gc-des-tests: Moved from ../.
52696         * modules/crypto/gc-hmac-md5: Moved from ../.
52697         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52698         * modules/crypto/gc-hmac-sha1: Moved from ../.
52699         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52700         * modules/crypto/gc-md2: Moved from ../.
52701         * modules/crypto/gc-md2-tests: Moved from ../.
52702         * modules/crypto/gc-md4: Moved from ../.
52703         * modules/crypto/gc-md4-tests: Moved from ../.
52704         * modules/crypto/gc-md5: Moved from ../.
52705         * modules/crypto/gc-md5-tests: Moved from ../.
52706         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52707         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52708         * modules/crypto/gc-random: Moved from ../.
52709         * modules/crypto/gc-rijndael: Moved from ../.
52710         * modules/crypto/gc-rijndael-tests: Moved from ../.
52711         * modules/crypto/gc-sha1: Moved from ../.
52712         * modules/crypto/gc-sha1-tests: Moved from ../.
52713         * modules/crypto/gc-tests: Moved from ../.
52714         * modules/crypto/hmac-md5: Moved from ../.
52715         * modules/crypto/hmac-md5-tests: Moved from ../.
52716         * modules/crypto/hmac-sha1: Moved from ../.
52717         * modules/crypto/hmac-sha1-tests: Moved from ../.
52718         * modules/crypto/md2: Moved from ../.
52719         * modules/crypto/md2-tests: Moved from ../.
52720         * modules/crypto/md4: Moved from ../.
52721         * modules/crypto/md4-tests: Moved from ../.
52722         * modules/crypto/md5: Moved from ../.
52723         * modules/crypto/md5-tests: Moved from ../.
52724         * modules/crypto/memxor: Moved from ../.
52725         * modules/crypto/rijndael: Moved from ../.
52726         * modules/crypto/rijndael-tests: Moved from ../.
52727         * modules/crypto/sha1: Moved from ../.
52728
52729 2007-03-30  James Youngman  <jay@gnu.org>
52730
52731         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52732         rename() to change the ctime of a file (because ctime is unaffected
52733         by rename on jfs2 on AIX 5.1).
52734         (main): Start by doing cleanup, in case a previous run failed leaving
52735         test files behind.
52736
52737 2007-03-31  Bruno Haible  <bruno@clisp.org>
52738
52739         Support old proprietary implementations of iconv.
52740         * modules/iconv_open: New file.
52741         * lib/iconv_.h: New file.
52742         * m4/iconv_h.m4: New file.
52743         * lib/iconv_open.c: New file.
52744         * lib/iconv_open-aix.gperf: New file.
52745         * lib/iconv_open-hpux.gperf: New file.
52746         * lib/iconv_open-irix.gperf: New file.
52747         * lib/iconv_open-osf.gperf: New file.
52748         * m4/iconv_open.m4: New file.
52749         * modules/linebreak (Depends-on): Add iconv_open.
52750         * modules/striconv (Depends-on): Likewise.
52751         * modules/striconveh (Depends-on): Likewise.
52752         * modules/unicodeio (Depends-on): Likewise.
52753         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52754         (iconv_t)(-1).
52755         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52756         conversion if cd is (iconv_t)(-1).
52757         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52758         is not possible.
52759
52760 2007-03-31  Bruno Haible  <bruno@clisp.org>
52761
52762         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52763         work on Solaris either. Protect also second use of "autodetect_jp".
52764
52765 2007-03-31  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52768         the function is not present.
52769
52770 2007-03-31  Bruno Haible  <bruno@clisp.org>
52771
52772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52773         the function is not present.
52774
52775 2007-03-31  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52778         a bug in HP-UX iconv_open().
52779
52780 2007-03-31  Bruno Haible  <bruno@clisp.org>
52781
52782         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52783         (Mathematics <math.h>): New section, add fpieee.
52784         (Input/output <stdio.h>): Add fseterr.
52785         (Mathematics <math.h>): New section, add printf-frexp.
52786         (Container data structures): Add sublist.
52787         (Core language properties): Add fpucw, inline.
52788         (Functions for greatest-width integer types <inttypes.h>): Add
52789         imaxabs, imaxdiv, inttypes.
52790         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52791         isnanl-nolibm, ldexp.
52792         (Mathematics <math.h>): New section, add printf-frexpl.
52793         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52794         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52795         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52796         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52797         (Unicode string functions): Add unistr/u*-mbtoucr.
52798         (Java): Add javacomp-script, javaexec-script.
52799         (C#): Add csharpcomp-script, csharpexec-script.
52800         (Support for building libraries and executables): Add havelib,
52801         relocatable-*.
52802         (Support for maintaining and releasing projects): Renamed from
52803         'Support for maintaining and release projects'. Add announce-gen.
52804
52805 2007-03-31  Bruno Haible  <bruno@clisp.org>
52806
52807         * README: Talk primarily about git.
52808         (git and CVS): Renamed from CVS.
52809         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52810         gnulib is available through git.
52811         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52812
52813 2007-03-30  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52816         * lib/poll_.h: Likewise.
52817         * lib/stat_.h: Likewise.
52818         * lib/sys_time_.h: Likewise.
52819         * lib/sysexit_.h: Likewise.
52820         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52821         * lib/stdbool_.h: Likewise.
52822         * lib/byteswap_.h: Add double-inclusion guard.
52823
52824 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52825
52826         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52827
52828 2007-03-30  Karl Berry  <karl@gnu.org>
52829
52830         * config/srclist-update: double space after USA in the license
52831         substitution, since that's how it's usually (?) written.
52832
52833 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52836         reported by Bruno Haible.
52837
52838 2007-03-29  Bruno Haible  <bruno@clisp.org>
52839
52840         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52841         a bug in AIX iconv().
52842
52843 2007-03-29  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/ldexpl-tests: New file.
52846         * tests/test-ldexpl.c: New file.
52847
52848 2007-03-29  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/ldexpl.c: Include fpucw.h.
52851         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52852         multiplication.
52853         * modules/ldexpl (Depends-on): Add fpucw.
52854
52855 2007-03-29  Bruno Haible  <bruno@clisp.org>
52856
52857         * modules/ldexpl: New file.
52858         * m4/ldexpl.m4: New file.
52859         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52860         set.
52861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52862         REPLACE_LDEXPL.
52863         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52864         REPLACE_LDEXPL.
52865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52866         gl_FUNC_LDEXPL_WORKS.
52867         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52868         * modules/mathl (Files): Remove lib/ldexpl.c.
52869         (Depends-on): Add ldexpl.
52870
52871 2007-03-29  Bruno Haible  <bruno@clisp.org>
52872
52873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52874
52875 2007-03-29  Bruno Haible  <bruno@clisp.org>
52876
52877         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52878         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52879         and possibly also HP-UX.
52880         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52881         work on AIX, IRIX, HP-UX, OSF/1.
52882         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52883         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52884         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52885         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52886         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52887         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52888
52889 2007-03-29  Bruno Haible  <bruno@clisp.org>
52890
52891         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52892
52893 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52894
52895         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52896         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52897
52898 2007-03-29  Eric Blake  <ebb9@byu.net>
52899
52900         * lib/acl-internal.h: Remove redundant include.
52901         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52902         Cygwin when a file is locked.
52903
52904 2007-03-29  Bruno Haible  <bruno@clisp.org>
52905
52906         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52907         file.
52908         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52909
52910 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52913         try to remove a parent directory if the child couldn't be removed
52914         (except for the first rmdir, which could fail because the child
52915         doesn't exist).  Problem reported by Jeff Blaine in
52916         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52917
52918 2007-03-28  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/striconveh.c (utf8conv_carefully): New function.
52921         (mem_cd_iconveh_internal): Invoke it.
52922
52923 2007-03-28  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52926         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52927         input.
52928         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52929         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52930         unistr/u8-uctomb.
52931
52932 2007-03-28  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/unistr/u8-mbtoucr: New file.
52935         * lib/unistr/u8-mbtoucr.c: New file.
52936         * modules/unistr/u16-mbtoucr: New file.
52937         * lib/unistr/u16-mbtoucr.c: New file.
52938         * modules/unistr/u16-mbtoucr: New file.
52939         * lib/unistr/u16-mbtoucr.c: New file.
52940         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52941
52942 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52943             Bruno Haible  <bruno@clisp.org>
52944
52945         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52946         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52947         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52948
52949         * m4/stdio_h.m4: Add stubs for vasprintf too.
52950
52951         * modules/stdio: Support vasprintf in sed command.
52952
52953         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52954         vasprintf.h.  Add stdio module indicator.
52955
52956         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52957         vasprintf.h.
52958
52959         * lib/vasprintf.h: File removed.
52960
52961         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52962         * lib/vasprintf.c: Ditto.
52963         * lib/xvasprintf.c: Ditto.
52964         * tests/test-vasprintf-posix.c: Ditto.
52965         * tests/test-vasprintf.c: Ditto.
52966
52967 2007-03-27  Bruno Haible  <bruno@clisp.org>
52968
52969         Make vasnprintf multithread-safe.
52970         * lib/vasnprintf.c (decimal_point_char): New function.
52971         (VASNPRINTF): Use it.
52972         Suggested by Simon Josefsson.
52973
52974 2007-03-27  Eric Blake  <ebb9@byu.net>
52975
52976         Support sub-second birthtime on cygwin.
52977         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52978         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52979         (get_stat_birthtime): Also work with st_birthtim.
52980
52981 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52984         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52985         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52986         (get_stat_birthtime_ns): Simplify compile-time tests.
52987         (get_stat_birthtime): Change the API to look like
52988         get_stat_mtime etc., except return a negative tv_nsec on error.
52989         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52990         Don't check for "spare" fields.
52991         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52992         or for struct stat.st_birthtime, as these tests aren't used.
52993         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52994
52995 2007-03-27  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/stat-time.h: Include <sys/stat.h>.
52998
52999 2007-03-27  James Youngman  <jay@gnu.org>
53000
53001         * lib/stat-time.h (get_stat_birthtime): New function for
53002           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53003         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53004           and its variants.
53005         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53006         * modules/stat-time-test: New file.
53007         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53008
53009 2007-03-26  Bruno Haible  <bruno@clisp.org>
53010
53011         Better support of signalling NaNs.
53012         * lib/atanl.c: Include isnanl.h.
53013         (atanl): Perform test for NaN at the beginning of the function and
53014         through a call to isnanl.
53015         * lib/cosl.c: Include isnanl.h.
53016         (cosl): Perform test for NaN at the beginning of the function and
53017         through a call to isnanl.
53018         * lib/ldexpl.c: Include isnanl.h.
53019         (ldexpl): Perform test for NaN through a call to isnanl.
53020         * lib/logl.c: Include isnanl.h.
53021         (logl): Perform test for NaN at the beginning of the function and
53022         through a call to isnanl.
53023         * lib/sinl.c: Include isnanl.h.
53024         (sinl): Perform test for NaN at the beginning of the function and
53025         through a call to isnanl.
53026         * lib/sqrtl.c: Include isnanl.h.
53027         (sqrtl): Perform test for NaN at the beginning of the function and
53028         through a call to isnanl.
53029         * lib/tanl.c: Include isnanl.h.
53030         (tanl): Perform test for NaN at the beginning of the function and
53031         through a call to isnanl.
53032         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53033         * modules/mathl (Depends-on): Add isnanl.
53034
53035 2007-03-26  Eric Blake  <ebb9@byu.net>
53036
53037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53038         regression in logic sense of previous patch.
53039
53040 2007-03-26  Bruno Haible  <bruno@clisp.org>
53041
53042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53043         unportable shell command "if ! ...".
53044         Reported by Ralf Wildenhues.
53045
53046 2007-03-25  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53049         <sysexits.h> file, and only add EX_CONFIG.
53050         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53051         absolute file name and whether it is sufficient. Substitute also
53052         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53053         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53054         ABSOLUTE_SYSEXITS_H into sysexits.h.
53055
53056 2007-03-25  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53059         hints is NULL.
53060
53061 2007-03-25  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53064         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53065
53066 2007-03-25  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/vasnprintf.c: Include langinfo.h.
53069         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53070         multithread-safe.
53071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53075         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53076         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53080         Reported by Simon Josefsson.
53081
53082 2007-03-25  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53085         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53086         * modules/vasnprintf (Depends-on): Add stdint.
53087
53088 2007-03-25  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/fpieee: New file.
53091         * m4/fpieee.m4: New file.
53092         * modules/isnan-nolibm (Depends-on): Add fpieee.
53093         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53094         * modules/isnanl (Depends-on): Add fpieee.
53095
53096 2007-03-25  Bruno Haible  <bruno@clisp.org>
53097
53098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53099
53100 2007-03-25  Bruno Haible  <bruno@clisp.org>
53101
53102         Avoid test failures on IRIX 6.5.
53103         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53104         (main): Use it.
53105         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53106         macros.
53107         (main): Use them.
53108
53109 2007-03-25  Bruno Haible  <bruno@clisp.org>
53110
53111         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53112         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53113         exists but doesn't work.
53114         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53115         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53117         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53118         math.h.
53119
53120 2007-03-25  Bruno Haible  <bruno@clisp.org>
53121
53122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53123         returns inf. Needed on IRIX 6.5.
53124
53125 2007-03-25  Bruno Haible  <bruno@clisp.org>
53126
53127         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53128         (main): Use isnanl instead of x != x idiom.
53129         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53130
53131         * tests/test-frexp.c: Include isnan.h.
53132         (main): Use isnan instead of x != x idiom.
53133         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53134
53135 2007-03-25  Bruno Haible  <bruno@clisp.org>
53136
53137         * tests/test-frexp.c (NaN): New function/macro.
53138         (main): Use it instead of 0.0 / 0.0.
53139         * tests/test-isnan.c (NaN): New function/macro.
53140         (main): Use it instead of 0.0 / 0.0.
53141         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53142         (test_function): Use it instead of 0.0 / 0.0.
53143         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53144         (test_function): Use it instead of 0.0 / 0.0.
53145         * tests/test-snprintf-posix.h (NaN): New function/macro.
53146         (test_function): Use it instead of 0.0 / 0.0.
53147         * tests/test-sprintf-posix.h (NaN): New function/macro.
53148         (test_function): Use it instead of 0.0 / 0.0.
53149         * tests/test-fprintf-posix.h (NaN): New function/macro.
53150         (test_function): Use it instead of 0.0 / 0.0.
53151         * tests/test-printf-posix.h (NaN): New function/macro.
53152         (test_function): Use it instead of 0.0 / 0.0.
53153
53154         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53155
53156 2007-03-25  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53159
53160 2007-03-25  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/regexec.c (merge_state_with_log): Make static.
53163
53164 2007-03-25  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/trigl.c (kernel_rem_pio2): Make static.
53167
53168 2007-03-25  Bruno Haible  <bruno@clisp.org>
53169
53170         * lib/sincosl.c (sincosl_table): Make static.
53171
53172 2007-03-25  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53175         if the compiler does not support C99.
53176
53177 2007-03-25  Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/time (Makefile.am): Ensure all rule action lines start with a
53180         tab.
53181
53182 2007-03-24  Bruno Haible  <bruno@clisp.org>
53183
53184         * modules/tsearch-tests: New file.
53185         * tests/test-tsearch.sh: New file.
53186         * tests/test-tsearch.c: New file, mostly copied from glibc.
53187
53188         * modules/search-tests: New file.
53189         * tests/test-search.c: New file.
53190
53191         * modules/search: New file.
53192         * lib/search_.h: New file, incorporating lib/tsearch.h.
53193         * m4/search_h.m4: New file.
53194         * lib/tsearch.h: Remove file.
53195         * lib/tsearch.c: Include search.h instead of tsearch.h.
53196         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53197         HAVE_TSEARCH.
53198         * modules/tsearch (Files): Remove lib/tsearch.h.
53199         (Depends-on): Add search.
53200         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53201         (Include): Change tsearch.h into search.h.
53202
53203 2007-03-24  Bruno Haible  <bruno@clisp.org>
53204
53205         * modules/fpucw: New file.
53206         * lib/fpucw.h: New file.
53207         * lib/frexp.c: Include fpucw.h.
53208         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53209         (FUNC): Use them.
53210         * lib/printf-frexp.c: Include fpucw.h.
53211         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53212         (FUNC): Use them.
53213         * lib/vasnprintf.c: Include fpucw.h.
53214         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53215         'long double' calculations.
53216         * tests/test-frexpl.c: Include fpucw.h.
53217         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53218         * tests/test-printf-frexpl.c: Include fpucw.h.
53219         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53220         * modules/frexpl (Depends-on): Add fpucw.
53221         * modules/printf-frexpl (Depends-on): Likewise.
53222         * modules/fprintf-posix (Depends-on): Likewise.
53223         * modules/snprintf-posix (Depends-on): Likewise.
53224         * modules/sprintf-posix (Depends-on): Likewise.
53225         * modules/vasnprintf-posix (Depends-on): Likewise.
53226         * modules/vasprintf-posix (Depends-on): Likewise.
53227         * modules/vfprintf-posix (Depends-on): Likewise.
53228         * modules/vsnprintf-posix (Depends-on): Likewise.
53229         * modules/vsprintf-posix (Depends-on): Likewise.
53230         * modules/frexpl-tests (Depends-on): Likewise.
53231         * modules/printf-frexpl-tests (Depends-on): Likewise.
53232
53233 2007-03-24  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/float+.h: New file.
53236         * lib/isnan.c: Include float+.h.
53237         (SIZE): New macro.
53238         (FUNC): Compare only SIZE bytes of the value.
53239         * lib/vasnprintf.c: Include float+.h.
53240         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53241         SIZEOF_LDBL or SIZEOF_DBL bytes.
53242         * modules/isnan-nolibm (Files): Add lib/float+.h.
53243         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53244         * modules/isnanl (Files): Add lib/float+.h.
53245         * modules/vasnprintf (Files): Add lib/float+.h.
53246
53247 2007-03-24  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53250         include isnanl-nolibm.h.
53251
53252 2007-03-24  Bruno Haible  <bruno@clisp.org>
53253
53254         * tests/test-read-file.c (main): Don't produce spurious output for
53255         expected situations. Make the test fail if it encountered unexpected
53256         results.
53257
53258 2007-03-24  Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53261         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53262
53263 2007-03-24  Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53266
53267 2007-03-24  Bruno Haible  <bruno@clisp.org>
53268
53269         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53270         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53271
53272         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53273         * modules/utf8-ucs4: Turn into a symbolic link to module
53274         unistr/u8-mbtouc.
53275
53276         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53277         utf8-ucs4-unsafe.
53278         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53279         unistr/u8-mbtouc-unsafe.
53280
53281         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53282         * modules/utf16-ucs4: Turn into a symbolic link to module
53283         unistr/u16-mbtouc.
53284
53285         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53286         utf16-ucs4-unsafe.
53287         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53288         unistr/u16-mbtouc-unsafe.
53289
53290         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53291         * modules/ucs4-utf8: Turn into a symbolic link to module
53292         unistr/u8-ubtomb.
53293
53294         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53295         * modules/ucs4-utf16: Turn into a symbolic link to module
53296         unistr/u16-ubtomb.
53297
53298 2007-03-24  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53301         Enable the function only if HAVE_INLINE.
53302         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53303         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53304         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53305         Enable the function only if HAVE_INLINE.
53306         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53307         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53308         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53309         Enable the function only if HAVE_INLINE.
53310         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53311         Enable the function only if HAVE_INLINE.
53312         * modules/utf8-ucs4: Update.
53313         * modules/utf8-ucs4-unsafe: Update.
53314         * modules/utf16-ucs4: Update.
53315         * modules/utf16-ucs4-unsafe: Update.
53316         * modules/ucs4-utf8: Update.
53317         * modules/ucs4-utf16: Update.
53318
53319 2007-03-24  Bruno Haible  <bruno@clisp.org>
53320
53321         * lib/utf8-ucs4.h: Remove file.
53322         * lib/utf8-ucs4-unsafe.h: Remove file.
53323         * lib/utf16-ucs4.h: Remove file.
53324         * lib/utf16-ucs4-unsafe.h: Remove file.
53325         * lib/ucs4-utf8.h: Remove file.
53326         * lib/ucs4-utf16.h: Remove file.
53327         * lib/unistr.h: Include their previous contents.
53328         * m4/utf-ucs4.m4: Remove file.
53329         * m4/ucs4-utf.m4: Remove file.
53330         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53331         (Depends-on): Add unistr/base.
53332         (configure.ac): Remove gl_UTF_UCS4.
53333         (Makefile.am): Update.
53334         (Include): Change to unistr.h.
53335         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53336         (Depends-on): Add unistr/base.
53337         (configure.ac): Remove gl_UTF_UCS4.
53338         (Makefile.am): Update.
53339         (Include): Change to unistr.h.
53340         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53341         (Depends-on): Add unistr/base.
53342         (configure.ac): Remove gl_UTF_UCS4.
53343         (Makefile.am): Update.
53344         (Include): Change to unistr.h.
53345         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53346         (Depends-on): Add unistr/base.
53347         (configure.ac): Remove gl_UTF_UCS4.
53348         (Makefile.am): Update.
53349         (Include): Change to unistr.h.
53350         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53351         (Depends-on): Add unistr/base.
53352         (configure.ac): Remove gl_UCS4_UTF.
53353         (Makefile.am): Update.
53354         (Include): Change to unistr.h.
53355         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53356         (Depends-on): Add unistr/base.
53357         (configure.ac): Remove gl_UCS4_UTF.
53358         (Makefile.am): Update.
53359         (Include): Change to unistr.h.
53360         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53361         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53362         utf8-ucs4-unsafe.h.
53363         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53364         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53365         utf16-ucs4-unsafe.h.
53366         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53367         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53368         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53369         * lib/unistr/u8-strchr.c: Likewise.
53370         * lib/unistr/u8-strrchr.c: Likewise.
53371         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53372         * lib/unistr/u16-strchr.c: Likewise.
53373         * lib/unistr/u16-strrchr.c: Likewise.
53374         * lib/striconveh.c: Update.
53375         * lib/linebreak.c: Update.
53376
53377 2007-03-24  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53380         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53381
53382 2007-03-22  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53385
53386 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53387
53388         * MODULES.html.sh (File system functions): New module write-any-file.
53389         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53390         * m4/write-any-file.m4: New files.
53391
53392 2007-03-23  Eric Blake  <ebb9@byu.net>
53393
53394         * gnulib-tool: Rearrange space-tab sequences, since some editors
53395         like to eat them.
53396
53397 2007-03-23  Eric Blake  <ebb9@byu.net>
53398
53399         * lib/version-etc.c (version_etc_va): Update license wording to
53400         be more concise.  Recommended by Richard Stallman.
53401
53402 2007-03-22  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/poll.c (MSG_PEEK): New fallback definition.
53405
53406 2007-03-22  Bruno Haible  <bruno@clisp.org>
53407
53408         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53409         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53410         (main): Update.
53411         Fixes a compilation error on BeOS.
53412
53413 2007-03-22  Bruno Haible  <bruno@clisp.org>
53414
53415         * modules/frexpl-tests: New file.
53416         * tests/test-frexpl.c: New file.
53417
53418         * modules/frexpl: New file.
53419         * m4/frexpl.m4: New file.
53420         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53421         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53423         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53424         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53425         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53426
53427 2007-03-22  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/frexpl.c: Share code with lib/frexp.c.
53430         * modules/mathl (Files): Add lib/frexp.c.
53431         (Depends-on): Add isnanl-nolibm.
53432
53433 2007-03-22  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/printf-frexp (Files): Add m4/frexp.m4.
53436         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53437         only if the found frexp function actually works.
53438
53439 2007-03-22  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/frexp.c: Remove older implementation that uses divisions.
53442
53443 2007-03-21  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/frexp-tests: New file.
53446         * tests/test-frexp.c: New file.
53447
53448         * modules/frexp: New file.
53449         * lib/frexp.c: New file.
53450         * m4/frexp.m4: New file.
53451         * lib/math_.h (frexp): New declaration.
53452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53453         REPLACE_FREXP.
53454         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53455
53456 2007-03-21  Bruno Haible  <bruno@clisp.org>
53457
53458         * modules/isnanl-tests: New file.
53459         * tests/test-isnanl.c: New file.
53460
53461         * modules/isnanl: New file.
53462         * lib/isnanl.h: New file.
53463         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53464         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53465         gl_FUNC_ISNANL_WORKS.
53466         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53467         New macros.
53468
53469 2007-03-21  Bruno Haible  <bruno@clisp.org>
53470
53471         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53472         lib/isnanl.h.
53473         (Include): Update.
53474         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53475         * lib/vasnprintf.c: Update.
53476         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53477         tests/test-isnanl.h, remove tests/test-isnanl.c.
53478         (Makefile.am): Update.
53479         * tests/test-isnanl-nolibm.c: New file.
53480         * tests/test-isnanl.h: New file.
53481         * tests/test-isnanl.c: Remove file.
53482
53483 2007-03-21  Jim Meyering  <jim@meyering.net>
53484
53485         When trying to open ".", treat ESTALE like EACCES.
53486         * lib/savewd.c (savewd_save): Resort to forking not just upon
53487         failure with EACCES, but also when errno is ESTALE.
53488
53489 2007-03-20  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53492         Needed on AIX 5.1. Reported by Matthew Woehlke.
53493
53494 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53495
53496         Suggestions by Bruno Haible:
53497         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53498         our own.
53499         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53500         * modules/acl (Depends-on): Add gettext.
53501
53502 2007-03-19  Bruno Haible  <bruno@clisp.org>
53503
53504         * modules/iconvme: Remove file.
53505         * lib/iconvme.h: Remove file.
53506         * lib/iconvme.c: Remove file.
53507         * m4/iconvme.m4: Remove file.
53508
53509 2007-03-19  Bruno Haible  <bruno@clisp.org>
53510
53511         * doc/relocatable-maint.texi: Break long shell script line.
53512         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53513
53514 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53517         handle file_has_acl.
53518         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53519         * lib/acl.c: Move header inclusions and related macro defns into
53520         lib/acl-internal.h.
53521         (S_ISLNK): Remove defn, since that's now done for us.
53522         (file_has_acl): Move to lib/file-has-acl.c.
53523         Call acl_trivial if available.  This is the crucial part of the fix.
53524         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53525         shared within the library.  Rewrite a bit, partly to make it compatible
53526         with the GNU coding style.
53527         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53528         Remove unnecessary double-quotes.
53529         Don't test for acl_to_text; the build will catch that.
53530         Replace acl_entries if it doesn't exist and it is needed.
53531         Check for -lsec and acl_trivial (as used on Solaris 10).
53532         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53533         lib/file-has-acl.c.
53534         (Depends-on): Add sys_stat, for S_ISLNK.
53535
53536 2007-03-19  Ben Pfaff  <blp@gnu.org>
53537
53538         * doc/gnulib.texi: Fix typos.
53539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53540
53541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53544         If size is zero here, buf must be zero.
53545
53546 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53547
53548         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53549         <bruno@clisp.org>.
53550
53551 2007-03-18  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53554         Suggested by Eric Blake.
53555
53556 2007-03-18  Ben Pfaff  <blp@gnu.org>
53557
53558         * doc/relocatable.texi: Recommend using as prefix a directory
53559         that does not exist and will never be created.  Based on
53560         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53561         and others.
53562
53563 2007-03-17  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/fchownat.c: Include lchown.h.
53566
53567 2007-03-17  Bruno Haible  <bruno@clisp.org>
53568
53569         Fix endless loop when the given allocated size was > INT_MAX.
53570         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53571         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53572         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53573         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53574         * lib/sprintf.c (sprintf): Likewise.
53575
53576 2007-03-17  Bruno Haible  <bruno@clisp.org>
53577
53578         * tests/test-argp-2.sh (func_compare): Output a context diff.
53579
53580 2007-03-17  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53583         locale's decimal-point character.
53584
53585 2007-03-17  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53588         before comparing it. Needed because on some platforms (e.g. x86) a
53589         'long double' occupies less bytes than sizeof (long double).
53590
53591 2007-03-17  Bruno Haible  <bruno@clisp.org>
53592
53593         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53594         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53595         * tests/test-getaddrinfo.c (simple): Likewise.
53596         * tests/test-read-file.c (main): Likewise.
53597
53598 2007-03-17  Bruno Haible  <bruno@clisp.org>
53599
53600         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53601
53602 2007-03-17  Bruno Haible  <bruno@clisp.org>
53603
53604         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53605         unused variable.
53606
53607 2007-03-17  Bruno Haible  <bruno@clisp.org>
53608
53609         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53610         * tests/test-c-strncasecmp.c: Likewise.
53611
53612 2007-03-17  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/stdlib (Depends-on): Add unistd.
53615         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53616         Needed for MacOS X 10.3.
53617
53618 2007-03-17  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53621
53622 2007-03-17  Bruno Haible  <bruno@clisp.org>
53623
53624         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53625
53626 2007-03-17  Bruno Haible  <bruno@clisp.org>
53627
53628         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53629         to reflect files copied from gnulib (with or without modifications).
53630         Suggested by Jim Meyering.
53631
53632 2007-03-17  Eric Blake  <ebb9@byu.net>
53633
53634         * NEWS: Document stdlib change from 2007-02-18.
53635
53636 2007-03-17  Jim Meyering  <jim@meyering.net>
53637
53638         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53639         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53640         someone uses a name containing shell meta-characters.
53641         Reported by Alfred M. Szmidt.
53642
53643         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53644
53645 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53646
53647         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53648         and copy gettext configuration files only if configure.ac contains
53649         a use of AM_GNU_GETTEXT_VERSION.
53650
53651 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53652
53653         * build-aux/bootstrap (gnulib_name): New variable.
53654         (gnulib_tool_options): Use it.
53655
53656 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53657
53658         * tests/test-des.c: Use new namespace.
53659
53660 2007-03-15  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53663         Reported by James Youngman <jay@gnu.org>.
53664
53665 2007-03-15  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53668         declared prototype. Needed with cc on OSF/1 5.1.
53669
53670 2007-03-15  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53673         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53674         (struct gl_list_implementation): Add dispose_fn argument to the
53675         'create_empty', 'create' methods.
53676         (struct gl_list_impl_base): Add field 'dispose_fn'.
53677         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53678         argument.
53679         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53680         dispose_fn argument.
53681         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53682         dispose_fn on the dropped values.
53683         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53684         dispose_fn argument.
53685         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53686         dropped values.
53687         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53688         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53689         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53690         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53691         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53692         argument.
53693         (gl_tree_list_free): Call dispose_fn on the dropped values.
53694         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53695         the dropped values.
53696         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53697         Add dispose_fn argument.
53698         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53699         Call dispose_fn on the dropped values.
53700         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53701         Add dispose_fn argument.
53702         (gl_sublist_create): Initialize the 'dispose_fn' field.
53703         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53704         * tests/test-array_list.c (main): Update.
53705         * tests/test-carray_list.c (main): Update.
53706         * tests/test-avltree_list.c (main): Update.
53707         * tests/test-rbtree_list.c (main): Update.
53708         * tests/test-avltreehash_list.c (main): Update.
53709         * tests/test-rbtreehash_list.c (main): Update.
53710         * tests/test-linked_list.c (main): Update.
53711         * tests/test-linkedhash_list.c (main): Update.
53712         * tests/test-array_oset.c (main): Update.
53713
53714 2007-03-15  Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53717         (gl_oset_create_empty): Add dispose_fn argument.
53718         (struct gl_oset_implementation): Add dispose_fn argument to
53719         'create_empty' method.
53720         (struct gl_oset_impl_base): Add dispose_fn field.
53721         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53722         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53723         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53724         values.
53725         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53726         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53727         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53728         dropped value.
53729         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53730         dropped value.
53731         * tests/test-array_oset.c (main): Update.
53732         * tests/test-avltree_oset.c (main): Update.
53733         * tests/test-rbtree_oset.c (main): Update.
53734         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53735
53736 2007-03-13  Bruno Haible  <bruno@clisp.org>
53737
53738         * tests/test-stdbool.c (i): Update after last patch.
53739
53740 2007-03-12  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53743         the iswprint macro. Needed on Solaris 2.5.1.
53744
53745 2007-03-12  Bruno Haible  <bruno@clisp.org>
53746
53747         * tests/test-printf-frexp.c (main): Declare x as volatile.
53748
53749 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53750
53751         * doc/gnulib.texi (Build robot for gnulib): New section.
53752
53753 2007-03-12  Jim Meyering  <jim@meyering.net>
53754
53755         * build-aux/bootstrap: New file.
53756         * build-aux/bootstrap.conf: New file, from coreutils.
53757
53758 2007-03-11  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53761
53762 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53763
53764         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53765         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53766         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53767
53768 2007-03-11  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53771         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53772
53773 2007-03-11  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53776         formula. Needed for SunPRO C 5.0.
53777
53778 2007-03-11  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/long-options (Depends-on): Add getopt.
53781
53782 2007-03-11  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/modechange (Depends-on): Add stdbool.
53785
53786 2007-03-11  Bruno Haible  <bruno@clisp.org>
53787
53788         * modules/i-ring (Depends-on): Add stdbool.
53789
53790 2007-03-11  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/gc-des (Depends-on): Add stdbool.
53793
53794 2007-03-11  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53797
53798 2007-03-11  Bruno Haible  <bruno@clisp.org>
53799
53800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53801
53802 2007-03-11  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53805
53806 2007-03-11  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/vasnprintf.c (sprintf): Undefine.
53809
53810 2007-03-11  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53813         initializers in SunPRO C and Compaq C compilers.
53814
53815 2007-03-11  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53818         decrementing code ANSI C compliant.
53819
53820 2007-03-11  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53823         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53824
53825 2007-03-11  Bruno Haible  <bruno@clisp.org>
53826
53827         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53828         <stdbool.h> substitute doesn't pass.
53829
53830 2007-03-11  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53833
53834 2007-03-11  Bruno Haible  <bruno@clisp.org>
53835
53836         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53837         script, for submission to autobuild.josefsson.org.
53838
53839 2007-03-10  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/canonicalize-lgpl-tests: New file.
53842         * tests/test-canonicalize-lgpl.sh: New file.
53843         * tests/test-canonicalize-lgpl.c: New file.
53844
53845         * modules/c-strcase-tests: New file.
53846         * tests/test-c-strcase.sh: New file.
53847         * tests/test-c-strcasecmp.c: New file.
53848         * tests/test-c-strncasecmp.c: New file.
53849
53850         * modules/atexit-tests: New file.
53851         * tests/test-atexit.sh: New file.
53852         * tests/test-atexit.c: New file.
53853
53854 2007-03-10  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-binary-io.sh: Use temporary filenames that are not so
53857         likely to clash with those of other tests (in a parallel make).
53858         * tests/test-binary-io.c: Likewise.
53859
53860 2007-03-10  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53863         fallback; use #error instead.
53864         Suggested by Simon Josefsson.
53865
53866 2007-03-10  Bruno Haible  <bruno@clisp.org>
53867
53868         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53869         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53870         first and the last.
53871
53872 2007-03-10  Bruno Haible  <bruno@clisp.org>
53873
53874         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53875
53876 2007-03-10  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53879         "make distcheck".
53880         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53881         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53882         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53883
53884 2007-03-10  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53887         variable.
53888         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53889         variable.
53890
53891 2007-03-09  Eric Blake  <ebb9@byu.net>
53892         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53893
53894         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53895         types are not being provided by gnulib.
53896         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53897         types are supported.
53898
53899 2007-03-10  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/stdio_.h (__attribute__): New macro.
53902         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53903         vsprintf): Specify __attribute__ __format__ for GCC.
53904         Suggested by Eric Blake.
53905
53906 2007-03-09  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/printf-posix-tests: New file.
53909         * tests/test-printf-posix.sh: New file.
53910         * tests/test-printf-posix.c: New file.
53911
53912         * modules/printf-posix: New file.
53913         * lib/printf.c: New file.
53914         * m4/printf-posix-rpl.m4: New file.
53915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53916         REPLACE_PRINTF.
53917         * lib/stdio_.h (printf): New declaration.
53918         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53919         ____strfmon____): New macros.
53920         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53921         REPLACE_PRINTF.
53922
53923 2007-03-09  Bruno Haible  <bruno@clisp.org>
53924
53925         * tests/test-vasnprintf-posix2.sh: New file.
53926         * tests/test-vasnprintf-posix2.c: New file.
53927         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53928         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53929         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53930
53931         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53932         a locale dependent decimal point, rather than always '.'.
53933
53934 2007-03-09  Eric Blake  <ebb9@byu.net>
53935
53936         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53937         spite of platforms like Tandem/NSK that define it to -1.
53938
53939 2007-03-08  Bruno Haible  <bruno@clisp.org>
53940
53941         * modules/vprintf-posix-tests: New file.
53942         * tests/test-vprintf-posix.sh: New file.
53943         * tests/test-vprintf-posix.c: New file.
53944         * tests/test-printf-posix.h: New file.
53945
53946         * modules/vprintf-posix: New file.
53947         * lib/vprintf.c: New file.
53948         * m4/vprintf-posix.m4: New file.
53949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53950         REPLACE_VPRINTF.
53951         * lib/stdio_.h (vprintf): New declaration.
53952         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53953         REPLACE_VPRINTF.
53954
53955 2007-03-08  Bruno Haible  <bruno@clisp.org>
53956
53957         * modules/fprintf-posix-tests: New file.
53958         * tests/test-fprintf-posix.sh: New file.
53959         * tests/test-fprintf-posix.c: New file.
53960
53961         * modules/fprintf-posix: New file.
53962         * lib/fprintf.c: New file.
53963         * m4/fprintf-posix.m4: New file.
53964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53965         REPLACE_FPRINTF.
53966         * lib/stdio_.h (fprintf): New declaration.
53967         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53968         REPLACE_FPRINTF.
53969
53970 2007-03-08  Bruno Haible  <bruno@clisp.org>
53971
53972         * modules/vfprintf-posix-tests: New file.
53973         * tests/test-vfprintf-posix.sh: New file.
53974         * tests/test-vfprintf-posix.c: New file.
53975         * tests/test-fprintf-posix.h: New file.
53976         * tests/test-fprintf-posix.out: New file.
53977
53978         * modules/vfprintf-posix: New file.
53979         * lib/vfprintf.c: New file.
53980         * m4/vfprintf-posix.m4: New file.
53981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53982         REPLACE_VFPRINTF.
53983         * lib/stdio_.h (vfprintf): New declaration.
53984         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53985         REPLACE_VFPRINTF.
53986
53987 2007-03-08  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53990
53991 2007-03-08  Bruno Haible  <bruno@clisp.org>
53992
53993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53994         instead of 'expr' invocations.
53995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54000         Suggested by Paul Eggert.
54001
54002 2007-03-08  Bruno Haible  <bruno@clisp.org>
54003
54004         * modules/fseterr-tests: New file.
54005         * tests/test-fseterr.c: New file.
54006
54007         * modules/fseterr: New file.
54008         * lib/fseterr.h: New file.
54009         * lib/fseterr.c: New file.
54010
54011 2007-03-08  Bruno Haible  <bruno@clisp.org>
54012
54013         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54014         * lib/getopt_.h: Likewise.
54015         * lib/mbswidth.h: Likewise.
54016         * lib/setenv.h: Likewise.
54017         * lib/vasnprintf.h: Likewise.
54018         * lib/vasprintf.h: Likewise.
54019         * lib/verror.h: Likewise.
54020         * lib/xsetenv.h: Likewise.
54021         * lib/xvasprintf.h: Likewise.
54022
54023 2007-03-08  Jim Meyering  <jim@meyering.net>
54024
54025         * users.txt: Add parted.
54026
54027         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54028
54029 2007-03-07  Bruno Haible  <bruno@clisp.org>
54030
54031         * m4/printf.m4: Make the shell script snippets copy&pastable.
54032
54033 2007-03-02  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/netinet_in_.h: New file.
54036         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54037         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54038         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54039         (Depends-on): Add absolute-header.
54040         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54041         into netinet/in.h.
54042
54043 2007-03-03  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/sys_select_.h: New file.
54046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54047         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54048         * modules/sys_select (Files): Add lib/sys_select_.h.
54049         (Depends-on): Add absolute-header.
54050         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54051         into sys/select.h.
54052
54053 2007-03-02  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54056         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54057         values.
54058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54059         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54060         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54061         * modules/sys_socket (Depends-on): Add absolute-header.
54062         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54063         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54064         (Include): Remove requirement of inclusion of <sys/types.h>.
54065
54066 2007-03-02  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/byteswap_.h (bswap_32): Fix formula.
54069
54070 2007-03-06  Bruno Haible  <bruno@clisp.org>
54071
54072         * modules/sprintf-posix-tests: New file.
54073         * tests/test-sprintf-posix.c: New file.
54074
54075         * modules/sprintf-posix: New file.
54076         * lib/sprintf.c: New file.
54077         * m4/sprintf-posix.m4: New file.
54078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54079         REPLACE_SPRINTF.
54080         * lib/stdio_.h (sprintf): New declaration.
54081         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54082         REPLACE_SPRINTF.
54083
54084 2007-03-06  Bruno Haible  <bruno@clisp.org>
54085
54086         * modules/vsprintf-posix-tests: New file.
54087         * tests/test-vsprintf-posix.c: New file.
54088         * tests/test-sprintf-posix.h: New file.
54089
54090         * modules/vsprintf-posix: New file.
54091         * lib/vsprintf.c: New file.
54092         * m4/vsprintf-posix.m4: New file.
54093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54094         REPLACE_VSPRINTF.
54095         * lib/stdio_.h (vsprintf): New declaration.
54096         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54097         REPLACE_VSPRINTF.
54098
54099 2007-03-06  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/vsnprintf (Depend-on): Remove minmax.
54102
54103 2007-03-06  Bruno Haible  <bruno@clisp.org>
54104
54105         * modules/snprintf-posix-tests: New file.
54106         * tests/test-snprintf-posix.c: New file.
54107
54108         * modules/snprintf-posix: New file.
54109         * m4/snprintf-posix.m4: New file.
54110         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54111         gl_FUNC_SNPRINTF.
54112         (gl_FUNC_SNPRINTF): Invoke it.
54113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54114         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54115         is set.
54116         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54117
54118 2007-03-06  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/vsnprintf-posix-tests: New file.
54121         * tests/test-vsnprintf-posix.c: New file.
54122         * tests/test-snprintf-posix.h: New file.
54123
54124         * modules/vsnprintf-posix: New file.
54125         * m4/vsnprintf-posix.m4: New file.
54126         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54127         gl_FUNC_VSNPRINTF.
54128         (gl_FUNC_VSNPRINTF): Invoke it.
54129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54130         * lib/stdio_.h (vsnprintf): Define as a replacement if
54131         REPLACE_VSNPRINTF is set.
54132         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54133
54134 2007-03-06  Bruno Haible  <bruno@clisp.org>
54135
54136         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54138
54139 2007-03-06  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54142         (asinl): Declare also if HAVE_DECL_ASINL is set.
54143         (atanl): Declare also if HAVE_DECL_ATANL is set.
54144         (ceill): Declare also if HAVE_DECL_CEILL is set.
54145         (cosl): Declare also if HAVE_DECL_COSL is set.
54146         (expl): Declare also if HAVE_DECL_EXPL is set.
54147         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54148         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54149         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54150         (logl): Declare also if HAVE_DECL_LOGL is set.
54151         (sinl): Declare also if HAVE_DECL_SINL is set.
54152         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54153         (tanl): Declare also if HAVE_DECL_TANL is set.
54154         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54157         declaration of frexpl, ldexpl.
54158         * modules/printf-frexpl (Depends-on): Add math.
54159         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54160
54161 2007-03-05  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54164         frexpl and ldexpl are declared.
54165         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54166
54167 2007-03-05  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54170         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54171
54172 2007-03-05  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/stdio_.h: Include <stddef.h>.
54175
54176 2007-03-05  Bruno Haible  <bruno@clisp.org>
54177
54178         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54179
54180 2007-03-05  Bruno Haible  <bruno@clisp.org>
54181
54182         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54183         NetBSD 4, from Ralf Wildenhues.
54184
54185 2007-03-04  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/vasprintf.h: Update #if logic for the case when the functions
54188         exist but are overridden.
54189
54190 2007-03-04  Bruno Haible  <bruno@clisp.org>
54191
54192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54193         implementations: glibc-2.4 and MacOS X 10.3.
54194         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54195         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54196         * tests/test-vasprintf-posix.c (test_function): Likewise.
54197
54198 2007-03-04  Bruno Haible  <bruno@clisp.org>
54199
54200         * modules/vasprintf-posix-tests: New file.
54201         * tests/test-vasprintf-posix.c: New file.
54202
54203         * modules/vasprintf-posix: New file.
54204         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54205         defined.
54206         * m4/vasprintf-posix.m4: New file.
54207         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54208         gl_FUNC_VASPRINTF.
54209         (gl_FUNC_VASPRINTF): Invoke it.
54210         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54211         here.
54212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54213
54214 2007-03-04  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54217         REPLACE_GETTIMEOFDAY.
54218         * modules/sys_time (Makefile.am): Likewise.
54219         * m4/sys_time_h.m4: Likewise.
54220         * m4/gettimeofday.m4: Likewise.
54221
54222 2007-03-04  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/vasnprintf-posix-tests: New file.
54225         * tests/test-vasnprintf-posix.c: New file.
54226
54227         * modules/vasnprintf-posix: New file.
54228         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54229         printf-frexpl.h.
54230         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54231         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54232         REPLACE_VASNPRINTF is defined.
54233         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54234         gl_FUNC_VASNPRINTF.
54235         (gl_FUNC_VASNPRINTF): Invoke it.
54236         * m4/vasnprintf-posix.m4: New file.
54237         * m4/printf.m4: New file.
54238
54239 2007-03-04  Bruno Haible  <bruno@clisp.org>
54240
54241         Compile progreloc.c only if --enable-relocatable is specified.
54242         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54243         if --enable-relocatable was specified.
54244         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54245         lib_SOURCES.
54246
54247 2007-03-04  Jim Meyering  <jim@meyering.net>
54248
54249         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54250         Use it consistently, rather than enumerating errno constants.
54251
54252 2007-03-04  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/xvasprintf-tests: New file.
54255         * tests/test-xvasprintf.c: New file.
54256
54257         * modules/vasprintf-tests: New file.
54258         * tests/test-vasprintf.c: New file.
54259
54260         * modules/vasnprintf-tests: New file.
54261         * tests/test-vasnprintf.c: New file.
54262
54263         * modules/vsnprintf-tests: New file.
54264         * tests/test-vsnprintf.c: New file.
54265
54266         * modules/snprintf-tests: New file.
54267         * tests/test-snprintf.c: New file.
54268
54269 2007-03-04  Bruno Haible  <bruno@clisp.org>
54270
54271         Compile relocatable.c only if --enable-relocatable is specified.
54272         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54273         gl_RELOCATABLE_LIBRARY.
54274         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54275         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54276         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54277         gl_RELOCATABLE_LIBRARY.
54278         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54279         (Makefile.am): Remove lib_SOURCES.
54280         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54281         gl_RELOCATABLE_LIBRARY.
54282         (Makefile.am): Remove lib_SOURCES.
54283         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54284         always.
54285         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54286         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54287
54288 2007-03-04  Bruno Haible  <bruno@clisp.org>
54289
54290         * modules/argmatch-tests: New file.
54291         * tests/test-argmatch.c: New file.
54292
54293         * tests/test-allocsa.c (main): Halve the number of loop runs.
54294
54295         * modules/alloca-opt-tests: New file.
54296         * tests/test-alloca-opt.c: New file.
54297
54298 2007-03-04  Jim Meyering  <jim@meyering.net>
54299
54300         Work around difference between Linux ACLs and Solaris 10 ZFS.
54301         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54302         for EINVAL.
54303
54304 2007-03-03  Bruno Haible  <bruno@clisp.org>
54305
54306         * modules/relocatable-prog (Depends-on): Add back progreloc's
54307         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54308
54309 2007-03-03  Bruno Haible  <bruno@clisp.org>
54310
54311         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54312         * modules/relocatable-lib: New file.
54313
54314 2007-03-03  Bruno Haible  <bruno@clisp.org>
54315
54316         * modules/relocatable-prog: Renamed from modules/relocatable.
54317         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54318
54319 2007-03-03  Bruno Haible  <bruno@clisp.org>
54320
54321         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54322         m4/relocatable-lib.m4.
54323         (Depends-on): Remove 'relocatable'.
54324         (configure.ac): Add gl_RELOCATABLE_NOP.
54325
54326 2007-03-03  Bruno Haible  <bruno@clisp.org>
54327
54328         * modules/relocatable-prog-wrapper: New file.
54329         * modules/relocatable (Depends-on): Add it. Remove all other
54330         dependencies except progname.
54331         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54332
54333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54334         (gl_FUNC_STRERROR): Nop.
54335         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54336
54337         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54338         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54339
54340         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54341         (gl_FUNC_READLINK): Update.
54342
54343         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54344
54345 2007-03-03  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54348         * modules/xreadlink (Depends-on): Add unistd.
54349         * modules/xreadlink-with-size (Depends-on): Likewise.
54350
54351 2007-03-03  Bruno Haible  <bruno@clisp.org>
54352
54353         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54354         extracted from gt_FUNC_SETENV.
54355         (gt_FUNC_SETENV): Remove macro.
54356         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54357         remove gt_FUNC_SETENV.
54358
54359 2007-03-03  Bruno Haible  <bruno@clisp.org>
54360
54361         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54362         ENABLE_RELOCATABLE here.
54363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54364
54365 2007-03-03  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54368         * tests/test-rbtreehash_list.c: Include progname.h.
54369         (main): Call set_program_name.
54370
54371         * modules/rbtree-oset-tests (Depends-on): Add progname.
54372         * tests/test-rbtree_oset.c: Include progname.h.
54373         (main): Call set_program_name.
54374
54375         * modules/rbtree-list-tests (Depends-on): Add progname.
54376         * tests/test-rbtree_list.c: Include progname.h.
54377         (main): Call set_program_name.
54378
54379         * modules/linked-list-tests (Depends-on): Add progname.
54380         * tests/test-linked_list.c: Include progname.h.
54381         (main): Call set_program_name.
54382
54383 2007-03-03  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54386         All uses of __restrict changed to _Restrict_.
54387         * lib/glob_.h (__restrict): Remove macro.
54388
54389 2007-03-02  Bruno Haible  <bruno@clisp.org>
54390
54391         * modules/gettext (configure.ac): Require gettext infrastructure
54392         from version 0.16.1.
54393
54394 2007-03-02  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/linkedhash-list-tests (Depends-on): Add progname.
54397         * tests/test-linkedhash_list.c: Include progname.h.
54398         (main): Call set_program_name.
54399
54400         * modules/carray-list-tests (Depends-on): Add progname.
54401         * tests/test-carray_list.c: Include progname.h.
54402         (main): Call set_program_name.
54403
54404         * modules/avltreehash-list-tests (Depends-on): Add progname.
54405         * tests/test-avltreehash_list.c: Include progname.h.
54406         (main): Call set_program_name.
54407
54408         * modules/avltree-oset-tests (Depends-on): Add progname.
54409         * tests/test-avltree_oset.c: Include progname.h.
54410         (main): Call set_program_name.
54411
54412         * modules/avltree-list-tests (Depends-on): Add progname.
54413         * tests/test-avltree_list.c: Include progname.h.
54414         (main): Call set_program_name.
54415
54416         * modules/array-oset-tests (Depends-on): Add progname.
54417         * tests/test-array_oset.c: Include progname.h.
54418         (main): Call set_program_name.
54419
54420         * modules/array-list-tests (Depends-on): Add progname.
54421         * tests/test-array_list.c: Include progname.h.
54422         (main): Call set_program_name.
54423
54424         * modules/argp-tests (Depends-on): Add progname.
54425         * tests/test-argp.c: Include argp.h first. Include progname.h.
54426         (main): Call set_program_name.
54427
54428 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54429
54430         * doc/gnulib-tool.texi (Initial import): Reword description of
54431         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54432         limited effect even if defined after the first system include.
54433
54434 2007-03-01  Bruno Haible  <bruno@clisp.org>
54435
54436         * build-aux/config.libpath: Update to libtool-1.5.22.
54437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54438
54439 2007-03-01  Bruno Haible  <bruno@clisp.org>
54440
54441         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54442         foo_CFLAGS.
54443         Reported by Ralf Wildenhues.
54444
54445 2007-03-01  Bruno Haible  <bruno@clisp.org>
54446
54447         * build-aux/install-reloc: Remove object files left over by some
54448         compilers.
54449         Reported by Ralf Wildenhues.
54450
54451 2007-03-01  Bruno Haible  <bruno@clisp.org>
54452
54453         * build-aux/install-reloc: Break long lines.
54454
54455 2007-03-01  Bruno Haible  <bruno@clisp.org>
54456
54457         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54458         Reported by Ralf Wildenhues.
54459
54460 2007-03-01  Bruno Haible  <bruno@clisp.org>
54461
54462         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54463         include ordering constraints.
54464
54465 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54469         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54470         as another example.
54471         * lib/time_.h: Fix misspelling.
54472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54473         Require gl_HEADER_TIME_H_DEFAULTS.
54474         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54475         * m4/time_r.m4 (gl_TIME_R): Likewise.
54476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54477
54478 2007-03-01  Bruno Haible  <bruno@clisp.org>
54479
54480         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54481         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54482
54483 2007-03-01  Jim Meyering  <jim@meyering.net>
54484
54485         * modules/xreadlink (Maintainer): Add my name.
54486         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54487
54488 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54489             Bruno Haible  <bruno@clisp.org>
54490
54491         * build-aux/install-reloc: Compile also c-ctype.c.
54492         * build-aux/relocatable.sh.in: New file.
54493         * doc/relocatable.texi: New file.
54494         * doc/relocatable-maint.texi: New file.
54495         * doc/gnulib.texi: Include relocatable-maint.texi.
54496         * lib/progreloc.c: Include unistd.h unconditionally.
54497         * lib/relocwrapper.c: Include unistd.h unconditionally.
54498         Include c-ctype.h.
54499         (add_dotbin): Use c_tolower.
54500         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54501         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54502         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54503         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54504         to m4/relocatable-lib.m4.
54505         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54506         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54507         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54508         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54509         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54510         * modules/relocatable: New file.
54511         * modules/relocatable-lib: New file.
54512         * modules/relocatable-script: New file.
54513
54514 2007-02-28  Bruno Haible  <bruno@clisp.org>
54515
54516         Import --enable-relocatable infrastructure.
54517         * build-aux/config.libpath: New file, from GNU gettext.
54518         * build-aux/install-reloc: New file, from GNU gettext.
54519         * build-aux/reloc-ldflags: New file, from GNU gettext.
54520         * lib/relocatable.h: New file, from GNU gettext.
54521         * lib/relocatable.c: New file, from GNU gettext.
54522         * lib/relocwrapper.c: New file, from GNU gettext.
54523         * m4/relocatable.m4: New file, from GNU gettext.
54524
54525 2007-02-28  Bruno Haible  <bruno@clisp.org>
54526
54527         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54528
54529         * modules/xreadlink: New file, from GNU gettext with modifications.
54530         * lib/xreadlink.c: New file, from GNU gettext.
54531         * lib/xreadlink.h: Add comments.
54532         (xreadlink): New declaration.
54533
54534         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54535         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54536         lib/xreadlink-with-size.c.
54537         (configure.ac): Remove gl_XREADLINK invocation.
54538         (Makefile.am): Augment lib_SOURCES.
54539         * m4/xreadlink.m4: Remove file.
54540         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54541         (xreadlink_with_size): Renamed from xreadink.
54542         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54543         * modules/canonicalize (Depends-on): Replace xreadlink with
54544         xreadlink-with-size.
54545         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54546
54547 2007-02-25  Jim Meyering  <jim@meyering.net>
54548
54549         * build-aux/announce-gen: When complaining about excess arguments,
54550         list them.
54551
54552 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54553
54554         * README: Document signed integer overflow situation more
54555         accurately.
54556
54557 2007-02-25  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54560         'a' or 'A' conversion.
54561
54562 2007-02-25  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/filename: Renamed from modules/pathname.
54565         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54566         lib/concatpath.c with lib/concat-filename.c.
54567         (Makefile.am): Update.
54568         (Include): Replace pathname.h with filename.h.
54569         * lib/filename.h: Renamed from lib/pathname.h.
54570         (concatenated_filename): Renamed from concatenated_pathname.
54571         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54572         (concatenated_filename): Renamed from concatenated_pathname.
54573         * lib/findprog.c: Include filename.h instead of pathname.h.
54574         (find_in_path): Update.
54575         * lib/javacomp.c: Include filename.h instead of pathname.h.
54576         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54577         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54578         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54579         is_oldgcj_14_13_usable, is_javac_usable): Update.
54580         * lib/javaexec.c: Include filename.h instead of pathname.h.
54581         (execute_java_class): Update.
54582         * modules/findprog: Update.
54583         * modules/javacomp: Update.
54584         * modules/javaexec: Update.
54585         * MODULES.html.sh (File system functions): Add 'filename', remove
54586         'pathname'.
54587
54588 2007-02-25  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/printf-frexpl-tests: New file.
54591         * tests/test-printf-frexpl.c: New file.
54592
54593         * modules/printf-frexpl: New file.
54594         * lib/printf-frexpl.h: New file.
54595         * lib/printf-frexpl.c: New file.
54596         * m4/printf-frexpl.m4: New file.
54597
54598 2007-02-25  Bruno Haible  <bruno@clisp.org>
54599
54600         * modules/printf-frexp-tests: New file.
54601         * tests/test-printf-frexp.c: New file.
54602
54603         * modules/printf-frexp: New file.
54604         * lib/printf-frexp.h: New file.
54605         * lib/printf-frexp.c: New file.
54606         * m4/printf-frexp.m4: New file.
54607
54608 2007-02-25  Bruno Haible  <bruno@clisp.org>
54609
54610         Assume automake >= 1.10 for the tests.
54611         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54612         * modules/arctwo-tests: Likewise.
54613         * modules/argp-tests: Likewise.
54614         * modules/avltree-list-tests: Likewise.
54615         * modules/avltree-oset-tests: Likewise.
54616         * modules/avltreehash-list-tests: Likewise.
54617         * modules/carray-list-tests: Likewise.
54618         * modules/crc-tests: Likewise.
54619         * modules/des-tests: Likewise.
54620         * modules/gc-arcfour-tests: Likewise.
54621         * modules/gc-arctwo-tests: Likewise.
54622         * modules/gc-des-tests: Likewise.
54623         * modules/gc-hmac-md5-tests: Likewise.
54624         * modules/gc-hmac-sha1-tests: Likewise.
54625         * modules/gc-md2-tests: Likewise.
54626         * modules/gc-md4-tests: Likewise.
54627         * modules/gc-md5-tests: Likewise.
54628         * modules/gc-pbkdf2-sha1-tests: Likewise.
54629         * modules/gc-rijndael-tests: Likewise.
54630         * modules/gc-sha1-tests: Likewise.
54631         * modules/gc-tests: Likewise.
54632         * modules/getaddrinfo-tests: Likewise.
54633         * modules/hmac-md5-tests: Likewise.
54634         * modules/hmac-sha1-tests: Likewise.
54635         * modules/linked-list-tests: Likewise.
54636         * modules/linkedhash-list-tests: Likewise.
54637         * modules/lock-tests: Likewise.
54638         * modules/md2-tests: Likewise.
54639         * modules/md4-tests: Likewise.
54640         * modules/md5-tests: Likewise.
54641         * modules/rbtree-list-tests: Likewise.
54642         * modules/rbtree-oset-tests: Likewise.
54643         * modules/rbtreehash-list-tests: Likewise.
54644         * modules/read-file-tests: Likewise.
54645         * modules/rijndael-tests: Likewise.
54646         * modules/stdint-tests: Likewise.
54647         * modules/tls-tests: Likewise.
54648
54649 2007-02-24  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54652         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54653         function; instead check whether isnan with a double argument links.
54654         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54655         function; instead check whether isnan with a 'long double' argument
54656         links.
54657         Reported by Eric Blake <ebb9@byu.net>.
54658
54659 2007-02-24  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54662         defined.
54663         * lib/isnanl.c: Remove all code. Just include isnan.c.
54664         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54665
54666 2007-02-25  Jim Meyering  <jim@meyering.net>
54667
54668         Avoid conflicting types for 'unsetenv' on FreeBSD.
54669         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54670         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54671         in stdlib.h.
54672
54673 2007-02-24  Bruno Haible  <bruno@clisp.org>
54674
54675         * modules/isnanl-nolibm-tests: New file.
54676         * tests/test-isnanl.c: New file.
54677
54678         * modules/isnanl-nolibm: New file.
54679         * lib/isnanl.h: New file.
54680         * lib/isnanl.c: New file.
54681         * m4/isnanl.m4: New file.
54682
54683 2007-02-24  Bruno Haible  <bruno@clisp.org>
54684
54685         * modules/isnan-nolibm-tests: New file.
54686         * tests/test-isnan.c: New file.
54687
54688         * modules/isnan-nolibm: New file.
54689         * lib/isnan.h: New file.
54690         * lib/isnan.c: New file.
54691         * m4/isnan.m4: New file.
54692
54693 2007-02-24  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54696         assume that an exponent fits in 20 bits.
54697
54698 2007-02-24  Jim Meyering  <jim@meyering.net>
54699
54700         * m4/regex.m4: Update the description of the configure-time option,
54701         --without-included-regex, to state accurately what the defaults are,
54702         and perhaps to give people an idea why using this option is risky.
54703
54704 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54707         loops on small arguments.  This attempts to avoid the problem
54708         Bruno Haible reported for AIX 4.3.2 in
54709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54710
54711 2007-02-23  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54714         Needed for help2man.
54715
54716 2007-02-23  Karl Berry  <karl@gnu.org>
54717
54718         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54719         exists, foo.h should be cvs-ignored, not committed.
54720
54721 2007-02-23  Eric Blake  <ebb9@byu.net>
54722
54723         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54724         * lib/stat-time.h (includes): Likewise.
54725         * lib/utimecmp.c (includes): Likewise.
54726         * lib/utimens.h (includes): Likewise.
54727         * lib/getdate.y (includes): Also include "timespec.h" for use
54728         internal to the module.
54729         * modules/utimens (Depends-on): Revert yesterday's patch.
54730         * modules/nanosleep (Depends-on): Add missing dependency.
54731
54732 2007-02-22  Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/glob.c: Don't include getlogin_r.h.
54735
54736 2007-02-22  Jim Meyering  <jim@meyering.net>
54737
54738         * modules/utimens (Depends-on): Add timespec, required for
54739         utimens.h's inclusion of timespec.h.
54740
54741 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54744         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54745         Schwab in
54746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54747         I'll try to think of a better way to fix the Solaris problem.
54748
54749         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54750         like glibc; on Solaris 10, it fails with errno == EINVAL.
54751         POSIX says the behavior is unspecified if the first argument is NULL,
54752         so play it safe and never pass NULL to the system getcwd.
54753
54754 2007-02-21  Jim Meyering  <jim@meyering.net>
54755
54756         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54757         of gettimeofday.  It would conflict with the one now always
54758         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54759         an IRIX 6.5 build failure.
54760
54761 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         Minor fixups to port to Solaris 10 with Sun C 5.8.
54764         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54765         * modules/getcwd (Depends-on): Add dirfd.
54766         * lib/putenv.c (putenv): #undef it.
54767         (rpl_putenv): New decl.
54768         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54769
54770 2007-02-20  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/stdio-tests: New file.
54773         * tests/test-stdio.c: New file.
54774
54775         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54776         (Depends-on): Add stdio.
54777         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54778         (Include): Use <stdio.h> instead of vsnprintf.h.
54779         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54780         HAVE_DECL_VSNPRINTF.
54781         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54782
54783         * modules/snprintf (Files): Remove lib/snprintf.h.
54784         (Depends-on): Add stdio.
54785         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54786         (Include): Use <stdio.h> instead of snprintf.h.
54787         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54788         HAVE_DECL_SNPRINTF.
54789         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54790         * lib/getaddrinfo.c: Likewise.
54791
54792         * modules/stdio: New file.
54793         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54794         * lib/snprintf.h: Remove file.
54795         * lib/vsnprintf.h: Remove file.
54796         * lib/.cppi-disable: Remove snprintf.h.
54797         * m4/stdio_h.m4: New file.
54798         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54799
54800 2007-02-20  Jim Meyering  <jim@meyering.net>
54801
54802         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54803         used by e.g., mingw.  From Bruno Haible.
54804
54805 2007-02-19  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54808         warnings.
54809         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54810
54811 2007-02-19  Bruno Haible  <bruno@clisp.org>
54812
54813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54814         from mingw users.
54815
54816 2007-02-19  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54819         warnings.
54820         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54821
54822 2007-02-19  Jim Meyering  <jim@meyering.net>
54823
54824         Don't use FD after a successful "fdopendir (fd)".
54825         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54826         Reset it by calling dirfd on the just-obtained DIR*.
54827
54828         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54829         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54830
54831 2007-02-18  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/readlink.c: Include <unistd.h>.
54834         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54835         HAVE_READLINK.
54836         * modules/readlink (Depends-on): Add unistd.
54837         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54838         (Include): Add <unistd.h>.
54839
54840         * lib/getlogin_r.h: Remove file.
54841         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54842         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54843         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54844         HAVE_DECL_GETLOGIN_R.
54845         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54847         (Include): Use <unistd.h> instead of getlogin_r.h.
54848
54849         * lib/getcwd.h: Remove file.
54850         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54851         * lib/xgetcwd.c: Likewise.
54852         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54853         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54854         * modules/getcwd (Files): Remove lib/getcwd.h.
54855         (Depends-on): Add unistd.
54856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54857         (Include): Use <unistd.h> instad of getcwd.h.
54858
54859         * lib/ftruncate.c: Include <unistd.h> first.
54860         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54861         Set HAVE_FTRUNCATE.
54862         * modules/ftruncate (Depends-on): Add unistd.
54863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54864
54865         * lib/fchdir.c: Include <unistd.h> first.
54866         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54868         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54869         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54870         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54871
54872         * lib/dup2.c: Include <unistd.h> first.
54873         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54874         HAVE_DUP2.
54875         * modules/dup2 (Depends-on): Add unistd.
54876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54877
54878         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54879         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54880         REPLACE_CHOWN. Don't define chown as a macro here.
54881         * modules/chown (Depends-on): Add unistd.
54882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54883
54884         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54885         Add definition for GL_LINK_WARNING.
54886         (chown, dup2): New declarations.
54887         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54888         link warning.
54889         (ftruncate): New declaration.
54890         (getcwd): New declaration, taken from old getcwd.h.
54891         (getlogin_r): New declaration, taken from old getlogin_r.h.
54892         (readlink): New declaration.
54893         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54894         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54895         (gl_PREREQ_UNISTD): Remove macro.
54896         (gl_UNISTD_MODULE_INDICATOR): New macro.
54897         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54898         many new variables. Don't set UNISTD_H.
54899         * modules/unistd (Description): Change.
54900         (Depends-on): Add link-warning.
54901         (configure.ac): Update.
54902         (Makefile.am): Create unistd.h always. Substitute many new variables
54903         into it.
54904
54905 2007-02-18  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54908         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54909         HAVE_GETSUBOPT.
54910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54911         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54912         * lib/getsubopt.h: Remove file.
54913         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54914         (Depends-on): Add stdlib.
54915         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54916         (Includes): Use <stdlib.h> instead of getsubopt.h.
54917         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54918         Set HAVE_GETSUBOPT.
54919         * lib/getsubopt.c: Don't include getsubopt.h.
54920
54921 2007-02-18  Bruno Haible  <bruno@clisp.org>
54922
54923         * modules/fchdir (Depends-on): Add dup2.
54924
54925 2007-02-18  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/stdlib_.h: Handle glibc's special invocation convention
54928         specially.
54929
54930 2007-02-18  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/stdlib-tests: New file.
54933         * tests/test-stdlib.c: New file.
54934
54935         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54936         (Depends-on): Add stdlib.
54937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54938         (Includes): Use <stdlib.h> instead of mkstemp.h.
54939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54940         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54941         * lib/mkstemp.c: Don't include mkstemp.h.
54942         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54943         * lib/stdlib--.h: Don't include mkstemp.h.
54944
54945         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54946         (Depends-on): Add stdlib.
54947         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54948         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54949         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54950         HAVE_MKDTEMP.
54951         * lib/mkdtemp.c: Don't include mkdtemp.h.
54952         * lib/clean-temp.c: Don't include mkdtemp.h.
54953
54954         * modules/exit (Files): Remove lib/exit.h.
54955         (Depends-on): Add stdlib.
54956         (Makefile.am): Remove lib_SOURCES.
54957         (Include): Use <stdlib.h> instead of exit.h.
54958         * lib/argmatch.c: Don't include exit.h.
54959         * lib/execute.c: Likewise.
54960         * lib/pagealign_alloc.c: Likewise.
54961         * lib/pipe.c: Likewise.
54962         * lib/wait-process.c: Likewise.
54963         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54964         * lib/exitfail.c: Likewise.
54965         * lib/savewd.c: Likewise.
54966         * lib/xsetenv.c: Likewise.
54967
54968         * modules/stdlib: New file.
54969         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54970         and extra comments about mkstemp().
54971         * lib/exit.h: Remove file.
54972         * lib/mkdtemp.h: Remove file.
54973         * lib/mkstemp.h: Remove file.
54974         * m4/stdlib_h.m4: New file.
54975         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54976
54977 2007-02-18  Bruno Haible  <bruno@clisp.org>
54978
54979         * modules/math-tests: New file.
54980         * tests/test-math.c: New file.
54981
54982         * modules/math: New file.
54983         * modules/mathl (Files): Remove lib/mathl.h.
54984         (Depends-on): Add math.
54985         (Makefile.am): Don't mention mathl.h.
54986         (Include): Use <math.h> instead of mathl.h.
54987         * lib/math_.h: New file.
54988         * lib/mathl.h: Remove file.
54989         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54990         mathl.h.
54991         * lib/asinl.c: Likewise.
54992         * lib/atanl.c: Likewise.
54993         * lib/ceill.c: Likewise.
54994         * lib/cosl.c: Likewise.
54995         * lib/expl.c: Likewise.
54996         * lib/floorl.c: Likewise.
54997         * lib/frexpl.c: Likewise.
54998         * lib/ldexpl.c: Likewise.
54999         * lib/logl.c: Likewise.
55000         * lib/sincosl.c: Likewise.
55001         * lib/sinl.c: Likewise.
55002         * lib/sqrtl.c: Likewise.
55003         * lib/tanl.c: Likewise.
55004         * lib/trigl.c: Likewise.
55005         * m4/math_h.m4: New file.
55006         * MODULES.html.sh (Mathematics): Add math.
55007
55008 2007-02-17  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/wctype-tests: New file.
55011         * tests/test-wctype.c: New file.
55012
55013         * modules/wchar-tests: New file.
55014         * tests/test-wchar.c: New file.
55015
55016         * modules/unistd-tests: New file.
55017         * tests/test-unistd.c: New file.
55018
55019         * modules/time-tests: New file.
55020         * tests/test-time.c: New file.
55021
55022         * modules/sysexits-tests: New file.
55023         * tests/test-sysexits.c: New file.
55024
55025         * modules/sys_time-tests: New file.
55026         * tests/test-sys_time.c: New file.
55027
55028         * modules/sys_stat-tests: New file.
55029         * tests/test-sys_stat.c: New file.
55030
55031         * modules/sys_socket-tests: New file.
55032         * tests/test-sys_socket.c: New file.
55033
55034         * modules/sys_select-tests: New file.
55035         * tests/test-sys_select.c: New file.
55036
55037         * modules/string-tests: New file.
55038         * tests/test-string.c: New file.
55039
55040         * modules/stdbool-tests: New file.
55041         * tests/test-stdbool.c: New file.
55042
55043         * modules/netinet_in-tests: New file.
55044         * tests/test-netinet_in.c: New file.
55045
55046         * modules/inttypes-tests: New file.
55047         * tests/test-inttypes.c: New file.
55048
55049         * modules/fcntl-tests: New file.
55050         * tests/test-fcntl.c: New file.
55051
55052         * modules/byteswap-tests: New file.
55053         * tests/test-byteswap.c: New file.
55054
55055         * modules/arpa_inet-tests: New file.
55056         * tests/test-arpa_inet.c: New file.
55057
55058 2007-02-17  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55061         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55062         if the corresponding module is not enabled. Emit link warnings if
55063         the function is used nevertheless.
55064         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55065         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55066         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55067         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55068         * modules/inttypes (Depends-on): Add link-warning.
55069         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55070         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55071         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55072         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55073         * modules/imaxdiv (configure.ac): Likewise.
55074         * modules/strtoimax (configure.ac): Likewise.
55075         * modules/strtoumax (configure.ac): Likewise.
55076
55077 2007-02-17  Bruno Haible  <bruno@clisp.org>
55078
55079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55080         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55081         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55082         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55083
55084 2007-02-17  Bruno Haible  <bruno@clisp.org>
55085
55086         * modules/link-warning: New file.
55087         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55088         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55089         * modules/string (Depends-on): Add link-warning.
55090         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55091         string.h.
55092         * MODULES.html.sh (Support for building libraries and executables): Add
55093         link-warning.
55094
55095 2007-02-17  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55098         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55099         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55100         long lines.
55101
55102 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55103             Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/tmpfile: New file.
55106         * lib/tmpfile.c: New file.
55107         * m4/tmpfile.m4: New file.
55108         * MODULES.html.sh (func_all_modules): New section "Input/output".
55109
55110 2007-02-15  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55113         (supports_delete_on_close): New function.
55114         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55115
55116 2007-02-14  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/mbspcasecmp-tests: New file.
55119         * tests/test-mbspcasecmp.sh: New file.
55120         * tests/test-mbspcasecmp.c: New file.
55121
55122         New module mbspcasecmp.
55123         * modules/mbspcasecmp: New file.
55124         * lib/mbspcasecmp.c: New file.
55125         * lib/string_.h (strncasecmp): Change warning message.
55126         (mbspcasecmp): New declaration.
55127         * m4/mbspcasecmp.m4: New file.
55128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55129         GNULIB_MBSPCASECMP.
55130         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55131         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55132
55133 2007-02-14  Bruno Haible  <bruno@clisp.org>
55134
55135         * modules/mbsncasecmp-tests: New file.
55136         * tests/test-mbsncasecmp.sh: New file.
55137         * tests/test-mbsncasecmp.c: New file.
55138
55139         New module mbsncasecmp.
55140         * modules/mbsncasecmp: New file.
55141         * lib/mbsncasecmp.c: New file.
55142         * lib/string_.h (mbsncasecmp): New declaration.
55143         * m4/mbsncasecmp.m4: New file.
55144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55145         GNULIB_MBSNCASECMP.
55146         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55147         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55148
55149 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55152         Verify that it doesn't overlap with our flags.
55153         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55154         do not have the desired effect in multibyte locales; instead, use
55155         mbscasecmp.
55156         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55157         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55158         we don't require GNU fnmatch ourselves (if our users require it, they
55159         should do so explicitly).
55160
55161         Fix regex code so it doesn't rely on strcasecmp.
55162         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55163         Otherwise, include gnulib's langinfo.h.
55164         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55165         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55166         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55167         * modules/regex (FILES): Remove m4/codeset.m4.
55168         (Depends-on): Add localcharset.  Remove strcase.
55169
55170 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55171
55172         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55173         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55174
55175 2007-02-13  Bruno Haible  <bruno@clisp.org>
55176
55177         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55179
55180 2007-02-12  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55183         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55184         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55185         time warning rather than a link error.
55186
55187 2007-02-12  Bruno Haible  <bruno@clisp.org>
55188
55189         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55190         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55192
55193 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55196         args, not 2.
55197
55198 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55199
55200         New module 'time', so that apps can include <time.h> as per
55201         POSIX and GNU instead of separate include files like time_r.h
55202         and timegm.h.  This implementation tries out a simpler approach
55203         for replacing decls in standard include files (as compared to
55204         the string module), somewhat as an experiment.
55205
55206         * config/srclist.txt: Comment out mktime.c for now.
55207         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55208         since it doesn't apply any more.  Use generic wording instead.
55209         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55210         'time'.
55211         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55212         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55213         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55214         Don't include <sys/types.h>; no longer needed since we assume C89.
55215         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55216         * lib/strftime.c: Likewise.
55217         * lib/time_r.c: Likewise.
55218         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55219         * lib/nanosleep.c: Include <time.h> first, to check interface.
55220         * lib/strptime.c: Likewise.
55221         * lib/time_r.c: Likewise.
55222         * lib/timegm.c: Likewise.
55223         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55224         needed.
55225         * lib/timegm.c: Don't include timegm.h; no longer needed.
55226         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55227         time.h now handles any problems in that area.
55228         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55229         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55230         that time.h defines struct timespec.
55231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55232         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55233         handles that.
55234         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55235         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55236         needed.  Set REPLACE_LOCALTIME.
55237         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55238         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55239         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55240         nanosleep; time_h.m4 now does that.  Don't require
55241         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55242         module handles this now.
55243         * modules/getdate (Depends-on): Remove timespec.  Add time.
55244         * modules/nanosleep (Depends-on): Likewise.
55245         * modules/stat-time (Depends-on): Likewise.
55246         * modules/nanosleep (Include): Include time.h, not timespec.h.
55247         * modules/strptime (Files): Remove lib/strptime.h.
55248         (Depends-on): Add extensions, time.
55249         (Include): Include time.h, not strptime.h.
55250         * modules/time_r (Files): Remove lib/time_r.h.
55251         (Depends-on): Add time.
55252         (Include): Include time.h, not time_r.h.
55253         * modules/timegm: Likewise.
55254         * modules/timespec (Description): Now does timespec-related decls
55255         of our own, instead of struct timespec itself.
55256         (Depends-on): Add time; remove extensions.
55257         (Maintainer): Add self.
55258         * modules/utimecmp (Depends-on): Add time; remove timespec.
55259         * modules/utimens (Depends-on): Likewise.
55260         * modules/xnanosleep (Depends-on): Likewise.
55261
55262 2007-02-11  Bruno Haible  <bruno@clisp.org>
55263
55264         * lib/c-strstr.c: Include allocsa.h.
55265         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55266         * lib/c-strcasestr.c: Include allocsa.h.
55267         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55268         * lib/strcasestr.c: Include allocsa.h.
55269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55270         * lib/mbsstr.c: Include allocsa.h.
55271         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55272         allocsa/freesa instead of malloc/free.
55273         * lib/mbscasestr.c: Include allocsa.h.
55274         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55275         allocsa/freesa instead of malloc/free.
55276         * modules/c-strstr (Depends-on): Add allocsa.
55277         * modules/c-strcasestr (Depends-on): Likewise.
55278         * modules/strcasestr (Depends-on): Likewise.
55279         * modules/mbsstr (Depends-on): Likewise.
55280         * modules/mbscasestr (Depends-on): Likewise.
55281
55282 2007-02-11  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55285
55286         * modules/mbsspn-tests: New file.
55287         * tests/test-mbsspn.sh: New file.
55288         * tests/test-mbsspn.c: New file.
55289
55290 2007-02-11  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55293
55294         * modules/mbspbrk-tests: New file.
55295         * tests/test-mbspbrk.sh: New file.
55296         * tests/test-mbspbrk.c: New file.
55297
55298 2007-02-11  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55301         unneeded cast.
55302
55303         * modules/mbscspn-tests: New file.
55304         * tests/test-mbscspn.sh: New file.
55305         * tests/test-mbscspn.c: New file.
55306
55307 2007-02-11  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/mbscasecmp-tests: New file.
55310         * tests/test-mbscasecmp.sh: New file.
55311         * tests/test-mbscasecmp.c: New file.
55312
55313 2007-02-11  Bruno Haible  <bruno@clisp.org>
55314
55315         Ensure O(n) worst-case complexity of mbscasestr.
55316         * lib/mbscasestr.c: Include stdbool.h.
55317         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55318         functions.
55319         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55320         the bookkeeping indicates that it's worth it.
55321         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55322
55323         * modules/mbscasestr-tests: New file.
55324         * tests/test-mbscasestr1.c: New file.
55325         * tests/test-mbscasestr2.sh: New file.
55326         * tests/test-mbscasestr2.c: New file.
55327         * tests/test-mbscasestr3.sh: New file.
55328         * tests/test-mbscasestr3.c: New file.
55329         * tests/test-mbscasestr4.sh: New file.
55330         * tests/test-mbscasestr4.c: New file.
55331         * m4/locale-tr.m4: New file.
55332
55333 2007-02-11  Bruno Haible  <bruno@clisp.org>
55334
55335         Ensure O(n) worst-case complexity of mbsstr.
55336         * lib/mbsstr.c: Include stdbool.h.
55337         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55338         functions.
55339         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55340         bookkeeping indicates that it's worth it.
55341         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55342
55343         * modules/mbsstr-tests: New file.
55344         * tests/test-mbsstr1.c: New file.
55345         * tests/test-mbsstr2.sh: New file.
55346         * tests/test-mbsstr2.c: New file.
55347         * tests/test-mbsstr3.sh: New file.
55348         * tests/test-mbsstr3.c: New file.
55349         * m4/locale-fr.m4: New file.
55350
55351 2007-02-11  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/mbsrchr.c (mbsrchr): Fix bug.
55354
55355         * modules/mbsrchr-tests: New file.
55356         * tests/test-mbsrchr.sh: New file.
55357         * tests/test-mbsrchr.c: New file.
55358
55359 2007-02-11  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/mbschr.c (mbschr): Fix bug.
55362
55363         * modules/mbschr-tests: New file.
55364         * tests/test-mbschr.sh: New file.
55365         * tests/test-mbschr.c: New file.
55366         * m4/locale-zh.m4: New file.
55367
55368 2007-02-11  Bruno Haible  <bruno@clisp.org>
55369
55370         Support for copying multibyte string iterators.
55371         * lib/mbiter.h: Include <string.h>.
55372         (mbiter_multi_copy): New function.
55373         (mbi_copy): New macro.
55374         * lib/mbuiter.h: Include <string.h>.
55375         (mbuiter_multi_copy): New function.
55376         (mbui_copy): New macro.
55377
55378 2007-02-11  Bruno Haible  <bruno@clisp.org>
55379
55380         New module mbslen.
55381         * modules/mbslen: New file.
55382         * lib/mbslen.c: New file.
55383         * lib/string_.h (mbslen): New declaration.
55384         * m4/mbslen.m4: New file.
55385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55386         GNULIB_MBSLEN.
55387         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55388         * MODULES.html.sh (Internationalization functions): Add mbslen.
55389
55390 2007-02-11  Bruno Haible  <bruno@clisp.org>
55391
55392         Ensure O(n) worst-case complexity of strcasestr substitute.
55393         * lib/strcasestr.c: Include stdbool.h.
55394         (knuth_morris_pratt): New function.
55395         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55396         bookkeeping indicates that it's worth it.
55397         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55398
55399         * modules/strcasestr-tests: New file.
55400         * tests/test-strcasestr.c: New file.
55401
55402 2007-02-11  Bruno Haible  <bruno@clisp.org>
55403
55404         Ensure O(n) worst-case complexity of c_strcasestr.
55405         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55406         (knuth_morris_pratt): New function.
55407         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55408         the bookkeeping indicates that it's worth it.
55409         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55410
55411         * modules/c-strcasestr-tests: New file.
55412         * tests/test-c-strcasestr.c: New file.
55413
55414 2007-02-11  Bruno Haible  <bruno@clisp.org>
55415
55416         Ensure O(n) worst-case complexity of c_strstr.
55417         * lib/c-strstr.c: Include stdbool.h, string.h.
55418         (knuth_morris_pratt): New function.
55419         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55420         bookkeeping indicates that it's worth it.
55421         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55422
55423         * lib/c-strstr.c: Complete rewrite for maintainability.
55424
55425         * modules/c-strstr-tests: New file.
55426         * tests/test-c-strstr.c: New file.
55427
55428 2007-02-11  Bruno Haible  <bruno@clisp.org>
55429
55430         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55431         5.2.1 and earlier, whereby \055 was treated just like the range
55432         delimiter '-'.
55433         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55434
55435 2007-02-08  Bruno Haible  <bruno@clisp.org>
55436
55437         * modules/regex (Depends-on): Add stdbool.
55438         Reported by Dalibor Topic <robilad@kaffe.org>.
55439
55440 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55443         Prefer returning from main to exiting from it.
55444         Remove unnecessary parens after sizeof.
55445
55446 2007-02-05  Bruno Haible  <bruno@clisp.org>
55447
55448         New module mbssep.
55449         * modules/mbssep: New file.
55450         * lib/mbssep.c: New file.
55451         * lib/string_.h (strsep): Add a conditional link warning.
55452         (mbssep): New declaration.
55453         * m4/mbssep.m4: New file.
55454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55455         GNULIB_MBSSEP.
55456         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55457         * MODULES.html.sh (Internationalization functions): Add mbssep.
55458
55459 2007-02-05  Bruno Haible  <bruno@clisp.org>
55460
55461         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55462         Optimize search in case of 1 delimiter.
55463
55464 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55465
55466         * lib/acl.h: Include sys/types.h before sys/acl.h.
55467
55468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55469
55470         Merge upstream fix for glibc bugzilla #3957:
55471
55472         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55473
55474         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55475         bit for RE_HAT_LISTS_NOT_NEWLINE.
55476         (build_charclass_op): Remove bogus comment.
55477
55478 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55479
55480         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55481
55482 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55485         * lib/memmem.c [!defined _LIBC]: Include config.h.
55486
55487 2007-02-04  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55490         warning message.
55491
55492 2007-02-04  Bruno Haible  <bruno@clisp.org>
55493
55494         New module mbstok_r.
55495         * modules/mbstok_r: New file.
55496         * lib/mbstok_r.c: New file.
55497         * lib/string_.h (strtok_r): Change argument names to match the
55498         comments. Add a conditional link warning.
55499         (mbstok_r): New declaration.
55500         * m4/mbstok_r.m4: New file.
55501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55502         GNULIB_MBSTOK_R.
55503         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55504         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55505
55506 2007-02-04  Bruno Haible  <bruno@clisp.org>
55507
55508         New module mbsspn.
55509         * modules/mbsspn: New file.
55510         * lib/mbsspn.c: New file.
55511         * lib/string_.h (strspn): Add a conditional link warning.
55512         (mbsspn): New declaration.
55513         * m4/mbsspn.m4: New file.
55514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55515         GNULIB_MBSSPN.
55516         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55517         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55518
55519 2007-02-04  Bruno Haible  <bruno@clisp.org>
55520
55521         New module mbspbrk.
55522         * modules/mbspbrk: New file.
55523         * lib/mbspbrk.c: New file.
55524         * lib/string_.h (strpbrk): Add a conditional link warning.
55525         (mbspbrk): New declaration.
55526         * m4/mbspbrk.m4: New file.
55527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55528         GNULIB_MBSPBRK.
55529         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55530         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55531
55532 2007-02-04  Bruno Haible  <bruno@clisp.org>
55533
55534         New module mbscspn.
55535         * modules/mbscspn: New file.
55536         * lib/mbscspn.c: New file.
55537         * lib/string_.h (strcspn): Add a conditional link warning.
55538         (mbscspn): New declaration.
55539         * m4/mbscspn.m4: New file.
55540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55541         GNULIB_MBSCSPN.
55542         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55543         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55544
55545 2007-02-04  Bruno Haible  <bruno@clisp.org>
55546
55547         New module mbscasestr, reduced goal of strcasestr.
55548         * modules/mbscasestr: New file.
55549         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55550         (mbscasestr): Renamed from strcasestr.
55551         * lib/strcasestr.c: Don't include mbuiter.h.
55552         (strcasestr): Remove support for multibyte locales.
55553         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55554         Change the conditional link warning.
55555         (mbscasestr): New declaration.
55556         * m4/mbscasestr.m4: New file.
55557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55558         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55559         REPLACE_STRCASESTR.
55560         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55562         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55563         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55564         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55565         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55566         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55567         (Depends-on): Remove mbuiter.
55568         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55569
55570 2007-02-04  Bruno Haible  <bruno@clisp.org>
55571
55572         Simplify handling of strncasecmp.
55573         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55574         the conditional link warning.
55575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55576         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55577         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55578         * modules/strcase (configure.ac): Don't invoke
55579         gl_STRING_MODULE_INDICATOR.
55580         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55581
55582 2007-02-04  Bruno Haible  <bruno@clisp.org>
55583
55584         New module mbscasecmp, reduced goal of strcasecmp.
55585         * modules/mbscasecmp: New file.
55586         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55587         (mbscasecmp): Renamed from strcasecmp.
55588         * lib/strcasecmp.c: Don't include mbuiter.h.
55589         (strcasecmp): Remove support for multibyte locales.
55590         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55591         Change the conditional link warning.
55592         (mbscasecmp): New declaration.
55593         * m4/mbscasecmp.m4: New file.
55594         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55595         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55596         REPLACE_STRCASECMP.
55597         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55599         GNULIB_MBSCASECMP.
55600         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55601         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55602         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55603         (Depends-on): Remove mbuiter.
55604         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55605
55606 2007-02-04  Bruno Haible  <bruno@clisp.org>
55607
55608         New module mbsstr. Remove module strstr.
55609         * modules/mbsstr: New file.
55610         * modules/strstr: Remove file.
55611         * lib/mbsstr.c: Renamed from lib/strstr.c.
55612         (mbsstr): Renamed from strstr.
55613         * lib/string_.h (strstr): Remove declaration. Change the conditional
55614         link warning.
55615         (mbsstr): New declaration.
55616         * m4/mbsstr.m4: New file.
55617         * m4/strstr.m4: Remove file.
55618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55619         REPLACE_STRSTR.
55620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55621         Don't initialize GNULIB_STRSTR.
55622         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55623         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55624         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55625         (Support for systems lacking ANSI C 89): Remove strstr.
55626
55627 2007-02-04  Bruno Haible  <bruno@clisp.org>
55628
55629         New module mbsrchr.
55630         * modules/mbsrchr: New file.
55631         * lib/mbsrchr.c: New file.
55632         * lib/string_.h (strrchr): Add a conditional link warning.
55633         (mbsrchr): New declaration.
55634         * m4/mbsrchr.m4: New file.
55635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55636         GNULIB_MBSRCHR.
55637         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55638         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55639
55640 2007-02-04  Bruno Haible  <bruno@clisp.org>
55641
55642         New module mbschr.
55643         * modules/mbschr: New file.
55644         * lib/mbschr.c: New file.
55645         * lib/string_.h (strchr): Add a conditional link warning.
55646         (mbschr): New declaration.
55647         * m4/mbschr.m4: New file.
55648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55649         GNULIB_MBSCHR.
55650         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55651         * MODULES.html.sh (Internationalization functions): Add mbschr.
55652
55653 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55654
55655         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55656
55657         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55658
55659 2007-02-04  Bruno Haible  <bruno@clisp.org>
55660
55661         New module description section 'configure.ac-early'.
55662         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55663         (func_get_autoconf_early_snippet): New function.
55664         (func_import, func_create_testdir): Use it. Remove special cases for
55665         modules 'extensions' and 'lock'.
55666         * modules/extensions (configure.ac-early): Require
55667         gl_USE_SYSTEM_EXTENSIONS.
55668         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55669
55670 2007-02-04  Bruno Haible  <bruno@clisp.org>
55671
55672         Make use of gcj-4.3's -fsource and -ftarget option.
55673         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55674         and if so try the options -fsource and -ftarget.
55675         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55676         source_version, ftarget_option, target_version arguments.
55677         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55678         (is_envjavac_oldgcj_14_14_usable): Renamed from
55679         is_envjavac_gcj_14_14_usable.
55680         (is_envjavac_oldgcj_14_13_usable): Renamed from
55681         is_envjavac_gcj_14_13_usable.
55682         (is_gcj_present): Update.
55683         (is_gcj_43, is_gcj43_usable): New functions.
55684         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55685         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55686         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55687         try the options -fsource and -ftarget.
55688
55689 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55690
55691         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55692         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55693         larger value.
55694
55695 2007-02-03  Jim Meyering  <jim@meyering.net>
55696
55697         Give tools a better chance to allocate space for very large buffers.
55698         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55699
55700         Make pwd and readlink work also when run with an unreadable parent dir
55701         on systems with openat support.
55702         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55703         provided getcwd function, even when we have openat support.
55704         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55705
55706 2007-02-02  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55709         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55710         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55711         portability problems if one of these functions is only used on specific
55712         platforms.
55713         Reported by Paul Eggert.
55714
55715 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55716
55717         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55718         is causing more trouble than it's curing.
55719         * lib/regex_internal.h (__mempcpy): Remove.
55720         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55721         (and make the code a tad smaller to boot).
55722         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55723
55724 2007-02-02  Jim Meyering  <jim@meyering.net>
55725
55726         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55727         section, not in the Makefile.am: one.
55728
55729 2007-02-02  Eric Blake  <ebb9@byu.net>
55730
55731         * lib/strchrnul.c: Always include config.h first.
55732
55733         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55734         gnulib strstr is not necessary here.
55735
55736 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55737
55738         * m4/socklen.m4: Fix typo.
55739
55740 2007-02-02  Eric Blake  <ebb9@byu.net>
55741
55742         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55743         * modules/netinet_in (Makefile.am): Likewise.
55744
55745 2007-02-01  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/string_.h (GL_LINK_WARNING): New macro.
55748         (strcasecmp, strstr, strcasestr): If provided by the system,
55749         conditionally define as a macro that leads to a warning instead of to
55750         an error.
55751         (strncasecmp): Conditionally define as a macro that leads to a warning.
55752
55753 2007-02-01  Karl Berry  <karl@gnu.org>
55754
55755         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55756
55757 2007-02-01  Bruno Haible  <bruno@clisp.org>
55758
55759         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55760         renamings.
55761
55762 2007-02-01  Eric Blake  <ebb9@byu.net>
55763
55764         * modules/regex (Depends-on): Revert dependence on mempcpy.
55765         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55766         module's definition of mempcpy.
55767         Reported by Paul Eggert.
55768
55769 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55772         the symbol XYZ before redefining it.  This fixes a problem with
55773         programs that don't use XYZ, when compiled on systems that define
55774         XYZ to something else.
55775
55776 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55779         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55780         writeable to group or other and (2) is intended to have a special
55781         mode bit that is set or cleared.  In such a case, the directory
55782         should be neither group- nor other-writeable until the special
55783         mode bits are right.
55784
55785 2007-01-31  Eric Blake  <ebb9@byu.net>
55786
55787         * modules/mountlist (Depends-on): Add strstr.
55788
55789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55790         bug.
55791         * modules/string (Makefile.am): Remove redundant replacement.
55792         * modules/regex (Depends-on): Add mempcpy.
55793
55794 2007-01-31  Bruno Haible  <bruno@clisp.org>
55795
55796         New module description field 'Link'.
55797         * gnulib-tool (func_usage): Document --extract-link-directive.
55798         (sed_extract_prog): Recognize 'Link' directive.
55799         (func_get_link_directive): New function.
55800         (func_import): Show summary of link directives.
55801         Handle --extract-link-directive option.
55802         * modules/acl (Link): New section.
55803         * modules/clock-time (Link): New section.
55804         * modules/euidaccess (Link): New section.
55805         * modules/gettext (Link): New section.
55806         * modules/iconv (Link): New section.
55807         * modules/lock (Link): New section.
55808         * modules/nanosleep (Link): New section.
55809         * modules/readline (Link): New section.
55810
55811 2007-01-27  Bruno Haible  <bruno@clisp.org>
55812
55813         Enforce the use of gnulib modules for unportable <string.h> functions.
55814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55815         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55816         (gl_HEADER_STRING_H_BODY): Require it.
55817         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55818         the symbol XYZ to one that gives a link error.
55819         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55820         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55821         * modules/mempcpy (configure.ac): Likewise.
55822         * modules/memrchr (configure.ac): Likewise.
55823         * modules/stpcpy (configure.ac): Likewise.
55824         * modules/stpncpy (configure.ac): Likewise.
55825         * modules/strcase (configure.ac): Likewise.
55826         * modules/strcasestr (configure.ac): Likewise.
55827         * modules/strchrnul (configure.ac): Likewise.
55828         * modules/strdup (configure.ac): Likewise.
55829         * modules/strndup (configure.ac): Likewise.
55830         * modules/strnlen (configure.ac): Likewise.
55831         * modules/strpbrk (configure.ac): Likewise.
55832         * modules/strsep (configure.ac): Likewise.
55833         * modules/strstr (configure.ac): Likewise.
55834         * modules/strtok_r (configure.ac): Likewise.
55835
55836 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55837
55838         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55839
55840 2007-01-30  Jim Meyering  <jim@meyering.net>
55841
55842         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55843
55844 2007-01-29  Bruno Haible  <bruno@clisp.org>
55845
55846         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55847         * lib/execute.c: Likewise.
55848         * lib/pipe.c: Likewise.
55849         * lib/printf-args.h: Likewise.
55850         * lib/printf-args.c: Likewise.
55851         * lib/printf-parse.c: Likewise.
55852         * lib/vasnprintf.c: Likewise.
55853
55854 2007-01-29  Eric Blake  <ebb9@byu.net>
55855
55856         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55857         declaration.
55858
55859 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * lib/strptime.h (strptime): Use 'restrict' for args where
55862         POSIX requires this.
55863         * lib/strptime.c (strptime): Likewise.
55864         Change license notice from LGPL to GPL, since gnulib-tool will
55865         change this as needed.
55866         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55867         defined.
55868         Include "strptime.h" first, to check interface.
55869         Do not #undef _LIBC and _NL_CURRENT.
55870         Do not include <stdlib.h>; no longer needed.
55871         Include "time_r.h" and declare ptime_locale_status
55872         only if _LIBC is not defined.
55873         (__P): Remove unused macro.
55874         (match_string): Bring back glibc version, but use it only if _LIBC
55875         is defined.
55876         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55877         Remove unnecessary assertion and abort() call.
55878         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55879         * m4/strptime.m4: Fix serial number comment.
55880         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55881         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55882         (Depends-on): Add time_r.
55883
55884 2007-01-29  Bruno Haible  <bruno@clisp.org>
55885
55886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55887         strptime.
55888         * modules/strptime (Depends-on): Add stdbool.
55889         * lib/strptime.h: Include <time.h> always. Add comments.
55890
55891 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55892
55893         * modules/strptime: New file.
55894         * lib/strptime.h: New file.
55895         * lib/strptime.c: New file.
55896         * m4/strptime.m4: New file.
55897
55898 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * MODULES.html.sh: New module mpsort.
55901         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55902
55903         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55904         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55906         All uses changed.
55907         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55908         All uses changed.
55909         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55910         to _Restrict_.
55911         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55912         the parameter matches the prototype.
55913
55914 2007-01-28  Jim Meyering  <jim@meyering.net>
55915
55916         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55917         sys/time.h here, reverting that part of the previous patch:
55918         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55919
55920 2007-01-28  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55923         value of $(SYS_TIME_H).
55924         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55925         remove it conditionally, too. [added by Jim Meyering]
55926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55928         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55929         GETTIMEOFDAY_REPLACEMENT to 1.
55930
55931 2007-01-28  Bruno Haible  <bruno@clisp.org>
55932
55933         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55934         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55936         Set UNISTD_H instead of UNISTD_H2.
55937         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55938
55939 2007-01-28  Bruno Haible  <bruno@clisp.org>
55940
55941         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55942         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55943
55944 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55945
55946         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55947         (func_create_testdir): Ensure C locale for `grep' and `tr'
55948         character ranges.
55949         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55950         ACLOCAL_AMFLAGS parsing state machine.
55951
55952 2007-01-27  Bruno Haible  <bruno@clisp.org>
55953
55954         * modules/unistr/base: Update.
55955
55956 2007-01-27  Bruno Haible  <bruno@clisp.org>
55957
55958         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55959         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55960         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55961         modules/unistr/u32-mbtouc.
55962         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55963         * lib/unistr.h: Update.
55964         * lib/linebreak.c: Update.
55965         * modules/unistr/u32-mbtouc: Renamed from
55966         modules/unistr/u32-mbtouc-safe.
55967         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55968         * lib/unistr.h: Update.
55969         * lib/unistr/u32-to-u8.c: Update.
55970         * lib/unistr/u32-to-u16.c: Update.
55971
55972 2007-01-27  Bruno Haible  <bruno@clisp.org>
55973
55974         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55975         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55976         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55977         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55978         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55979         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55980         modules/unistr/u16-mbtouc.
55981         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55982         * lib/unistr.h: Update.
55983         * lib/linebreak.c: Update.
55984         * modules/linebreak: Update.
55985         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55986         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55987         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55988         * modules/unistr/u16-mbtouc: Renamed from
55989         modules/unistr/u16-mbtouc-safe.
55990         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55991         * lib/unistr.h: Update.
55992         * lib/unistr/u16-to-u8.c: Update.
55993         * modules/unistr/u16-to-u8: Update.
55994         * lib/unistr/u16-to-u32.c: Update.
55995         * modules/unistr/u16-to-u32: Update.
55996
55997 2007-01-27  Bruno Haible  <bruno@clisp.org>
55998
55999         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56000         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56001         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56002         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56003         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56004         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56005         modules/unistr/u8-mbtouc.
56006         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56007         * lib/unistr.h: Update.
56008         * lib/striconveh.c: Update.
56009         * modules/striconveh: Update.
56010         * lib/linebreak.c: Update.
56011         * modules/linebreak: Update.
56012         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56013         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56014         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56015         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56016         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56017         * lib/unistr.h: Update.
56018         * lib/striconveh.c: Update.
56019         * modules/striconveh: Update.
56020         * lib/unistr/u8-to-u16.c: Update.
56021         * modules/unistr/u8-to-u16: Update.
56022         * lib/unistr/u8-to-u32.c: Update.
56023         * modules/unistr/u8-to-u32: Update.
56024
56025 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56026
56027         Sync from Libtool.
56028         * lib/argz.c: Do not include strings.h nor memory.h, include
56029         string.h unconditionally.  Patch by Simon Josefsson.
56030
56031 2007-01-27  Bruno Haible  <bruno@clisp.org>
56032
56033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56034         from gl_HEADER_STRING_H_BODY.
56035         (gl_HEADER_STRING_H_BODY): Require it.
56036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56037         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56038         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56039         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56041         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56043         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56044         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56046         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56047         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56048         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56049         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56050         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56051
56052 2007-01-27  Bruno Haible  <bruno@clisp.org>
56053
56054         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56055         check_PROGRAMS into noinst_PROGRAMS.
56056         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56057         check_PROGRAMS in this case.
56058         (func_import): Set for_test to false.
56059         (func_create_testdir): Set for_test to true.
56060
56061 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56062             Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56065         (Depends-on): Add string.
56066         (Includes): Use <string.h> instead of strcasestr.h.
56067         * modules/string (Makefile.am): Also substitute the value of
56068         REPLACE_STRCASESTR.
56069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56070         assume strcasestr is declared in <string.h> not <strings.h>. Also
56071         set REPLACE_STRCASESTR.
56072         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56073         REPLACE_STRCASESTR.
56074         * lib/strcasestr.h: Remove file.
56075         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56076         * lib/string_.h (strcasestr): New declaration.
56077
56078 2007-01-27  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/string_.h: Use 'extern'.
56081
56082 2007-01-27  Jim Meyering  <jim@meyering.net>
56083
56084         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56085         of set-but-not-used local, "q".
56086
56087         * lib/mempcpy.c: Include <config.h> before <string.h>.
56088         This fixes a compilation error on HP-UX, due to the system's
56089         "restrict"-using mempcpy prototype.
56090
56091 2007-01-26  Bruno Haible  <bruno@clisp.org>
56092
56093         Small optimization.
56094         * lib/javacomp.c: Include c-strstr.h.
56095          (is_envjavac_gcj): Use c_strstr instead of strstr.
56096         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56097
56098 2007-01-26  Bruno Haible  <bruno@clisp.org>
56099
56100         * MODULES.html.sh (Unicode string functions): Add the new modules.
56101
56102         * modules/uniconv/u32-strconv-to-locale: New file.
56103         * lib/uniconv/u32-strconv-to-locale.c: New file.
56104
56105         * modules/uniconv/u16-strconv-to-locale: New file.
56106         * lib/uniconv/u16-strconv-to-locale.c: New file.
56107
56108         * modules/uniconv/u8-strconv-to-locale: New file.
56109         * lib/uniconv/u8-strconv-to-locale.c: New file.
56110
56111         * modules/uniconv/u32-strconv-from-locale: New file.
56112         * lib/uniconv/u32-strconv-from-locale.c: New file.
56113
56114         * modules/uniconv/u16-strconv-from-locale: New file.
56115         * lib/uniconv/u16-strconv-from-locale.c: New file.
56116
56117         * modules/uniconv/u8-strconv-from-locale: New file.
56118         * lib/uniconv/u8-strconv-from-locale.c: New file.
56119
56120         * modules/uniconv/u32-strconv-to-enc: New file.
56121         * lib/uniconv/u32-strconv-to-enc.c: New file.
56122         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56123         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56124
56125         * modules/uniconv/u16-strconv-to-enc: New file.
56126         * lib/uniconv/u16-strconv-to-enc.c: New file.
56127         * lib/uniconv/u-strconv-to-enc.h: New file.
56128         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56129         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56130
56131         * modules/uniconv/u8-strconv-to-enc: New file.
56132         * lib/uniconv/u8-strconv-to-enc.c: New file.
56133         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56134         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56135
56136         * modules/uniconv/u32-strconv-from-enc: New file.
56137         * lib/uniconv/u32-strconv-from-enc.c: New file.
56138         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56139         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56140
56141         * modules/uniconv/u16-strconv-from-enc: New file.
56142         * lib/uniconv/u16-strconv-from-enc.c: New file.
56143         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56144         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56145
56146         * modules/uniconv/u8-strconv-from-enc: New file.
56147         * lib/uniconv/u8-strconv-from-enc.c: New file.
56148         * lib/uniconv/u-strconv-from-enc.h: New file.
56149         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56150         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56151
56152         * modules/uniconv/u32-conv-from-enc: New file.
56153         * lib/uniconv/u32-conv-from-enc.c: New file.
56154         * modules/uniconv/u32-conv-from-enc-tests: New file.
56155         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56156
56157         * modules/uniconv/u16-conv-from-enc: New file.
56158         * lib/uniconv/u16-conv-from-enc.c: New file.
56159         * lib/uniconv/u-conv-from-enc.h: New file.
56160         * modules/uniconv/u16-conv-from-enc-tests: New file.
56161         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56162
56163         * modules/uniconv/u8-conv-from-enc: New file.
56164         * lib/uniconv/u8-conv-from-enc.c: New file.
56165         * modules/uniconv/u8-conv-from-enc-tests: New file.
56166         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56167
56168         * modules/uniconv/base: New file.
56169         * lib/uniconv.h: New file.
56170
56171 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56172
56173         * doc/gnulib-tool.texi (Initial import): Update to match current
56174         behavior with strdup module.
56175         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56176         * lib/memmem.h: Remove; all uses removed.  This is now done
56177         by <string.h>.
56178         * lib/mempcpy.h: Likewise.
56179         * lib/memrchr.h: Likewise.
56180         * lib/stpcpy.h: Likewise.
56181         * lib/stpncpy.h: Likewise.
56182         * lib/strcase.h: Likewise.
56183         * lib/strchrnul.h: Likewise.
56184         * lib/strdup.h: Likewise.
56185         * lib/strndup.h: Likewise.
56186         * lib/strnlen.h: Likewise.
56187         * lib/strpbrk.h: Likewise.
56188         * lib/strsep.h: Likewise.
56189         * lib/strstr.h: Likewise.
56190         * lib/strtok_r.h: Likewise.
56191         * lib/string_.h: New file.
56192         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56193         Rely on <string.h> instead.
56194         * lib/canon-host.c: Likewise.
56195         * lib/chdir-long.c: Likewise.
56196         * lib/concatpath.c: Likewise.
56197         * lib/exclude.c: Likewise.
56198         * lib/fchdir.c: Likewise.
56199         * lib/getaddrinfo.c: Likewise.
56200         * lib/getcwd.c: Likewise.
56201         * lib/getsubopt.c: Likewise.
56202         * lib/glob.c: Likewise.
56203         * lib/hard-locale.c: Likewise.
56204         * lib/iconvme.c: Likewise.
56205         * lib/javacomp.c: Likewise.
56206         * lib/mempcpy.c: Likewise.
56207         * lib/memrchr.c: Likewise.
56208         * lib/regex_internal.h: Likewise.
56209         * lib/stpncpy.c: Likewise.
56210         * lib/strcasecmp.c: Likewise.
56211         * lib/strchrnul.c: Likewise.
56212         * lib/strdup.c: Likewise.
56213         * lib/striconv.c: Likewise.
56214         * lib/striconveh.c: Likewise.
56215         * lib/striconveha.c: Likewise.
56216         * lib/strncasecmp.c: Likewise.
56217         * lib/strndup.c: Likewise.
56218         * lib/strnlen.c: Likewise.
56219         * lib/strsep.c: Likewise.
56220         * lib/strstr.c: Likewise.
56221         * lib/strtok_r.c: Likewise.
56222         * lib/userspec.c: Likewise.
56223         * lib/w32spawn.h: Likewise.
56224         * lib/xstrndup.c: Likewise.
56225         * lib/mountlist.c (strstr): Remove decl.
56226         * m4/string_h.m4: New file.
56227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56228         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56230         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56231         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56232         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56233         Set REPLACE_STRCASECMP if necessary.
56234         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56236         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56238         HAVE_DECL_STRDUP if necessary.
56239         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56240         since gl_FUNC_STRNDUP does that now.
56241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56242         Check for decl here...
56243         (gl_PREREQ_STRNLEN): ... not here.
56244         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56245         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56246         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56247         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56248         necessary.
56249         * modules/string: New file.
56250         * modules/memmem (Files): Remove special-purpose include file.
56251         (Depends-on): Add string.
56252         (Include): Include <string.h>, not the removed file.
56253         * modules/mempcpy: Likewise.
56254         * modules/memrchr: Likewise.
56255         * modules/stpcpy: Likewise.
56256         * modules/stpncpy: Likewise.
56257         * modules/strcase: Likewise.
56258         * modules/strchrnul: Likewise.
56259         * modules/strdup: Likewise.
56260         * modules/strndup: Likewise.
56261         * modules/strnlen: Likewise.
56262         * modules/strpbrk: Likewise.
56263         * modules/strsep: Likewise.
56264         * modules/strstr: Likewise.
56265         * modules/strtok_r: Likewise.
56266         * tests/test-dirname.c: Don't include "strdup.h", since
56267         <string.h> now suffices.
56268         * tests/test-memmem.c: Don't include "memmem.h", since
56269         <string.h> now suffices.
56270
56271 2007-01-25  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56274         *resultp is 0.
56275
56276         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56277         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56278         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56279         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56280
56281         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56282         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56283         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56284         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56285         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56286         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56287
56288 2007-01-24  Bruno Haible  <bruno@clisp.org>
56289
56290         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56291         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56292         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56293         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56294         gl_FUNC_FTS_CORE.
56295         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56296         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56297         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56298         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56299         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56300         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56301         gl_FUNC_FCHOWNAT.
56302         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56303         gl_FUNC_STRFTIME.
56304         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56305         Reported by Ralf Wildenhues.
56306
56307 2007-01-24  Bruno Haible  <bruno@clisp.org>
56308
56309         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56310         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56311         gl_GETADDRINFO.
56312         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56313         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56314         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56315
56316 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56319         Don't use 'exit'; just return from 'main'.
56320         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56321
56322         * lib/fnmatch_.h: Readjust white space and comments to match
56323         glibc, to avoid spurious diffs.
56324
56325 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56328         2004-12-01 change by Jakub Jelinek, since this code won't compile
56329         if !LIBC.  Problem reported by Bob Proulx.
56330
56331 2007-01-23  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/striconveh.c: Include c-strcaseeq.h.
56334         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56335         * modules/striconveh (Depends-on): Add c-strcaseeq.
56336
56337 2007-01-23  Bruno Haible  <bruno@clisp.org>
56338
56339         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56340
56341         * modules/c-strcaseeq: New file.
56342         * lib/c-strcaseeq.h: New file.
56343
56344         * modules/streq: New file.
56345         * lib/streq.h: New file.
56346
56347 2007-01-23  Bruno Haible  <bruno@clisp.org>
56348
56349         * modules/striconveha-tests: New file.
56350         * tests/test-striconveha.c: New file.
56351
56352         * lib/striconveha.h: Include <stdbool.h>.
56353         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56354         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56355         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56356         (mem_iconveha): New function.
56357         (str_iconveha_notranslit): Renamed from str_iconveha.
56358         (str_iconveha): New function.
56359         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56360         c-strcase.
56361
56362 2007-01-23  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56365         encodings without forgiving before trying any encoding with handler.
56366         (str_iconveha): Try all encodings without forgiving before trying any
56367         encoding with handler.
56368
56369 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56370
56371         Import the following changes from libc.
56372
56373         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56374
56375         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56376
56377         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56378
56379         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56380         normal_bracket label.
56381
56382         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56383
56384         [BZ #361]
56385         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56386         to normal_bracket after fetching the next character.
56387
56388 2007-01-22  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56391         argument.
56392         * lib/striconveh.c (iconv_carefully_1): New function.
56393         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56394         argument.
56395         (str_cd_iconveh): Update.
56396         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56397         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56398         * tests/test-striconveh.c (MAGIC): New macro.
56399         (new_offsets): New function.
56400         (main): Test call with and without offsets.
56401
56402 2007-01-22  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56405         * modules/sys_select (Makefile.am): Likewise.
56406         * modules/sys_socket (Makefile.am): Likewise.
56407         * modules/sys_time (Makefile.am): Likewise.
56408
56409 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * modules/gettimeofday (License): Change from GPL to LGPL, since
56412         gettimeofday is a library function.
56413
56414 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56415
56416         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56417
56418 2007-01-21  Bruno Haible  <bruno@clisp.org>
56419
56420         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56421
56422 2007-01-21  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/striconveha: New file.
56425         * lib/striconveha.h: New file.
56426         * lib/striconveha.c: New file.
56427         * MODULES.html.sh (Internationalization functions): Add striconveha.
56428         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56429         string.
56430         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56431
56432 2007-01-21  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56435         * lib/striconveh.c (str_iconveh): Likewise.
56436
56437 2007-01-21  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/striconveh.h (mem_iconveh): New declaration.
56440         * lib/striconveh.c (mem_iconveh): New function.
56441         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56442
56443 2007-01-21  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56446
56447         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56448         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56449         original result buffer.
56450         (str_cd_iconveh): Update.
56451         * tests/test-striconveh.c (main): Update.
56452
56453         * lib/striconv.h (mem_cd_iconv): Change specification.
56454         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56455         result buffer.
56456         (str_cd_iconv): Update.
56457         * tests/test-striconv.c (main): Update.
56458
56459 2007-01-21  Bruno Haible  <bruno@clisp.org>
56460
56461         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56462
56463 2007-01-20  Jim Meyering  <jim@meyering.net>
56464
56465         * lib/userspec.c (parse_with_separator): If a user or group string
56466         starts with "+", skip the corresponding name-to-ID look-up, since
56467         such a look-up must fail: user and group names may not include "+".
56468
56469 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56472         since we now assume the sys_time module.
56473         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56474         check for sys/time.h; no longer needed.
56475         * modules/poll (Depends-on): Depend on sys_time.
56476
56477 2007-01-18  Bruno Haible  <bruno@clisp.org>
56478
56479         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56481
56482         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56483         gettimeofday.
56484
56485         * tests/test-gettimeofday.c: Include <time.h>.
56486         (dummy): Remove variable.
56487
56488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56489         gl_HEADER_SYS_TIME_H.
56490         (gl_HEADER_SYS_TIME_H): New macro.
56491
56492         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56493         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56495         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56496         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56497         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56498         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56499         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56500         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56501         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56502         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56503
56504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56505         last change; it caused a compilation error when cross-compiling to
56506         Cygwin.
56507
56508 2007-01-18  Jim Meyering  <jim@meyering.net>
56509
56510         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56511         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56512         than the race-prone "test -d sys || mkdir sys".
56513         (configure.ac): Use AC_PROG_MKDIR_P.
56514         * modules/sys_select: Likewise.
56515         * modules/sys_socket: Likewise.
56516         * modules/sys_time: Likewise.
56517
56518 2007-01-18  Eric Blake  <ebb9@byu.net>
56519
56520         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56521         replace gettimeofday.
56522         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56523         name, to avoid infinite recursion.
56524
56525 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56526
56527         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56528         module sys_time.
56529         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56530         assume timespec.h defines struct timeval.
56531         * lib/settime.c: Likewise.
56532         * lib/utimens.c: Likewise.
56533         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56534         since we now assume the gettimeofday module.
56535         * lib/tempname.c (__gen_tempname): Likewise.
56536         * lib/gettimeofday.h: Remove.
56537         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56538         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56539         Include <time.h>, for 'time()'.
56540         (localtime_buffer_addr): Also use this workaround if
56541         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56542         to simplify the uses.  All uses changed.
56543         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56544         that #undef is inside {}, and 'const' follows type name consistently.
56545         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56546         (gettimeofday): Do not use the maximum possible value for
56547         tv->tv_usec, since that might break usages other than ls.c.
56548         Instead, we'll leave ls.c alone.  This undoes today's patch
56549         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56550         we've never observed the problem but might as well keep the
56551         canary.
56552         * lib/nanosleep.c: Include timespec.h first, for interface check.
56553         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56554         now assume the sys_time module.
56555         * lib/tempname.c: Likewise.
56556         * lib/timespec.h: Likewise.
56557         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56558         needed.
56559         * lib/strftime.c: Likewise.
56560         * lib/timespec.h: Likewise.
56561         * lib/posixtm.c: Include posixtm.h first, for interface check.
56562         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56563         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56564         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56565         * lib/sys_time_.h: New file.
56566         * lib/timespec.h (struct timespec): Use long int, not long.
56567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56568         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56569         Remove obsolescent call to AC_HEADER_TIME.
56570         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56573         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56574         Likewise.
56575         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56576         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56578         into the sys_time module.  Check for gettimeofday just once.
56579         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56580         for gettimeofday signature to just check the signature.  Merely
56581         compile it, since linking doesn't test signature.  Improve test for
56582         whether gettimeofday.o is actually needed.
56583         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56584         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56585         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56586         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56587         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56588         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56589         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56590         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56591         than worrying about sys/time.h.
56592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56593         Don't bother worrying about TIME_WITH_SYS_TIME.
56594         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56595         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56596         * m4/sys_time_h.m4: New file.
56597         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56598         Don't include sys/time.h.  Return from main rather than exiting.
56599         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56600         all uses changed.
56601         * modules/gethrxtime (Depends-on): Add sys_time.
56602         * modules/gettime (Depends-on): Likewise.
56603         * modules/gettimeofday (Depends-on): Likewise.
56604         * modules/nanosleep (Depends-on): Likewise.
56605         * modules/settime (Depends-on): Likewise.
56606         * modules/tempname (Depends-on): Likewise.
56607         * modules/utimens (Depends-on): Likewise.
56608         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56609         (Include): Change back to <sys/time.h>.
56610         (Maintainer): Add self.
56611         * modules/sys_time: New file.
56612         * modules/tempname (Depends-on): Add gettimeofday.
56613         * tests/test-gettimeofday.c: Include <sys/time.h>
56614         rather than gettimeofday.h.
56615
56616 2007-01-17  Bruno Haible  <bruno@clisp.org>
56617
56618         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56619         the license default to GPL.
56620         (func_create_testdir): Don't complain if a module is LGPL and its
56621         tests module depends on GPLed modules.
56622
56623 2007-01-17  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/gettimeofday.c (gettimeofday): Add code for the case
56626         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56627         maximum possible value for tv->tv_usec, rather than the minimum one.
56628
56629 2005-10-08  Martin Lambers  <marlam@marlam.de>
56630 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56631 2007-01-16  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56634         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56635         gl_FUNC_GETTIMEOFDAY.
56636         (Include): Add gettimeofday.h.
56637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56638         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56639         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56640         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56641         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56642         * lib/gettimeofday.h: New file.
56643         * lib/gettimeofday.c: Include <sys/timeb.h>.
56644         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56645         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56646         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56647         fall back on time().
56648
56649         * tests/test-gettimeofday.c: New file.
56650         * modules/gettimeofday-tests: New file.
56651
56652 2007-01-16  Eric Blake  <ebb9@byu.net>
56653
56654         * modules/fnmatch (Depends-on): Depend on wchar.
56655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56656         * m4/fnmatch.m4: Likewise.
56657         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56658         * m4/mbchar.m4: Likewise.
56659         * modules/mbswidth (Depends-on): Depend on wchar.
56660         * lib/mbswidth.c: Assume <wchar.h>.
56661         * m4/mbswidth.m4: Likewise.
56662         * modules/quotearg (Depends-on): Depend on wchar.
56663         * lib/quotearg.c: Assume <wchar.h>.
56664         * m4/quotearg.m4: Likewise.
56665         * modules/regex (Depends-on): Depend on wchar.
56666         * lib/regex_internal.h: Assume <wchar.h>.
56667         * m4/regex.m4: Likewise.
56668         * modules/stdint (Depends-on): Depend on wchar.
56669         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56670         * m4/stdint.m4: Likewise.
56671         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56672         * modules/strftime (Depends-on): Depend on wchar.
56673         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56674         * modules/strtol (Depends-on): Depend on wchar.
56675         * lib/strtol.c: Assume <wchar.h>.
56676         * modules/wcwidth (Depends-on): Depend on wchar.
56677         * lib/wcwidth.h: Assume <wchar.h>.
56678         * m4/wcwidth.m4: Likewise.
56679
56680 2007-01-16  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/csharpexec-script: New, created from...
56683         * modules/csharpexec: ... this.
56684
56685 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56686
56687         * modules/javaexec-script: New, created from...
56688         * modules/javaexec: ... this.
56689
56690 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56691
56692         * modules/poll (Dependencies): Add sys_select.
56693
56694 2007-01-15  Jim Meyering  <jim@meyering.net>
56695
56696         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56697         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56698         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56699         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56700
56701 2007-01-15  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/striconveh: New file.
56704         * lib/striconveh.h: New file.
56705         * lib/striconveh.c: New file.
56706         * MODULES.html.sh (Internationalization functions): Add striconveh.
56707
56708         * modules/striconveh-tests: New file.
56709         * tests/test-striconveh.c: New file.
56710
56711 2007-01-15  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56714         not from GNU libiconv or GNU libc.
56715
56716 2007-01-15  Bruno Haible  <bruno@clisp.org>
56717
56718         * doc/gnulib-intro.texi (Copyright): Explain the different license
56719         terms for module descriptions, autoconf macros, tests, documentation.
56720
56721 2007-01-14  Bruno Haible  <bruno@clisp.org>
56722
56723         * modules/striconv-tests: New file.
56724         * tests/test-striconv.c: New file.
56725
56726 2007-01-14  Bruno Haible  <bruno@clisp.org>
56727
56728         * modules/iconv-tests: New file.
56729         * tests/test-iconv.c: New file.
56730
56731 2007-01-14  Bruno Haible  <bruno@clisp.org>
56732
56733         * gnulib-tool (func_get_license): For test modules, use the license of
56734         the main module.
56735
56736 2007-01-14  Bruno Haible  <bruno@clisp.org>
56737
56738         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56739         if iconv is found to exist.
56740
56741 2007-01-14  Bruno Haible  <bruno@clisp.org>
56742
56743         * modules/c-ctype-tests: New file.
56744         * tests/test-c-ctype.c: New file.
56745
56746 2007-01-14  Bruno Haible  <bruno@clisp.org>
56747
56748         * modules/binary-io-tests: New file.
56749         * tests/test-binary-io.sh: New file.
56750         * tests/test-binary-io.c: New file.
56751
56752 2007-01-14  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/array-oset-tests: New file.
56755         * tests/test-array_oset.c: New file.
56756
56757 2007-01-14  Bruno Haible  <bruno@clisp.org>
56758
56759         * modules/array-list-tests: New file.
56760         * tests/test-array_list.c: New file.
56761
56762 2007-01-14  Bruno Haible  <bruno@clisp.org>
56763
56764         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56765         and make.
56766         Reported by Simon Josefsson in
56767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56768
56769 2007-01-14  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/allocsa-tests: New file.
56772         * tests/test-allocsa.c: New file.
56773
56774 2007-01-14  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/fchdir (Depends-on): Add absolute-header.
56777         * modules/unistd (Depends-on): Likewise.
56778
56779 2006-12-30  Bruno Haible  <bruno@clisp.org>
56780
56781         * modules/fchdir: New file.
56782         * modules/unistd (Files): Add lib/unistd_.h.
56783         (Makefile.am): Generate unistd.h from unistd_.h.
56784         * lib/fchdir.c: New file.
56785         * lib/dirent_.h: New file.
56786         * lib/unistd_.h: New file.
56787         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56788         * m4/fchdir.m4: New file.
56789         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56790         (gl_HEADER_UNISTD): Invoke it.
56791         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56792         function.
56793         * lib/backupfile.c (opendir, closedir): Undefine.
56794         * lib/chown.c (open, close): Undefine.
56795         * lib/clean-temp.c (open, close): Undefine.
56796         * lib/copy-file.c (open, close): Undefine.
56797         * lib/execute.c (open, close): Undefine.
56798         * lib/fsusage.c (open, close): Undefine.
56799         * lib/gc-gnulib.c (open, close): Undefine.
56800         * lib/getcwd.c (opendir, closedir): Undefine.
56801         * lib/glob.c (opendir, closedir): Undefine.
56802         * lib/javacomp.c (open, close): Undefine.
56803         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56804         * lib/openat-proc.c (open, close): Undefine.
56805         * lib/pagealign_alloc.c (open, close): Undefine.
56806         * lib/pipe.c (open, close): Undefine.
56807         * lib/progreloc.c (open, close): Undefine.
56808         * lib/savedir.c (opendir, closedir): Undefine.
56809         * lib/utime.c (open, close): Undefine.
56810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56811
56812 2007-01-10  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56815
56816 2007-01-12  Eric Blake  <ebb9@byu.net>
56817
56818         Provide a robust <wchar.h>.  Further simplifications are now
56819         possible in other modules, but not included here.
56820         * modules/wchar: New module.
56821         * m4/wchar.m4: New file.
56822         * lib/wchar_.h: Likewise.
56823         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56824         of the new module.
56825         * MODULES.html.sh (Extended multibyte and wide character utilities):
56826         New section.
56827
56828 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56829
56830         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56831         to a reasonable default for memory allocation.
56832         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56833         file system that reports garbage st_size values for symlinks.
56834         Problem reported by Liyang Hu.
56835
56836 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56837
56838         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56839         Emacs .#* auto-save files).
56840
56841 2007-01-11  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56844         directory.
56845
56846 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         Use @...@ consistently in lib/wctype_.h.
56849         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56850         on it being set to 1 or 0.
56851         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56852         go back to AC_SUBSTing it.
56853         * modules/wctype (Makefile.am): Undo previous change.
56854
56855 2007-01-10  Eric Blake  <ebb9@byu.net>
56856
56857         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56858         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56859         * modules/wctype (Makefile.am): Likewise.
56860         Reported by Chris McGuire.
56861
56862 2007-01-10  Jim Meyering  <jim@meyering.net>
56863
56864         fts.c: a small readability/maintainability improvement
56865         * lib/fts.c (fts_read): Make this code slightly more readable and
56866         maintainable by hoisting the "sp->fts_cur = p" assignments to
56867         immediately follow the statements that set P.  Derived from
56868         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56869
56870 2007-01-10  Eric Blake  <ebb9@byu.net>
56871
56872         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56873         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56875         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56876         Reported by Chris McGuire.
56877
56878 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56879
56880         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56881         in sed script.
56882
56883 2007-01-09  Bruno Haible  <bruno@clisp.org>
56884
56885         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56886         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56887         variables.
56888         (func_module): Use them.
56889
56890 2007-01-09  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/unistr/base: New file.
56893         * lib/unistr.h: New file.
56894
56895         * modules/unistr/u8-to-u16: New file.
56896         * lib/unistr/u8-to-u16.c: New file.
56897
56898         * modules/unistr/u8-to-u32: New file.
56899         * lib/unistr/u8-to-u32.c: New file.
56900
56901         * modules/unistr/u16-to-u8: New file.
56902         * lib/unistr/u16-to-u8.c: New file.
56903
56904         * modules/unistr/u16-to-u32: New file.
56905         * lib/unistr/u16-to-u32.c: New file.
56906
56907         * modules/unistr/u32-to-u8: New file.
56908         * lib/unistr/u32-to-u8.c: New file.
56909
56910         * modules/unistr/u32-to-u16: New file.
56911         * lib/unistr/u32-to-u16.c: New file.
56912
56913         * modules/unistr/u8-check: New file.
56914         * modules/unistr/u16-check: New file.
56915         * modules/unistr/u32-check: New file.
56916         * lib/unistr/u8-check.c: New file.
56917         * lib/unistr/u16-check.c: New file.
56918         * lib/unistr/u32-check.c: New file.
56919
56920         * modules/unistr/u8-chr: New file.
56921         * modules/unistr/u16-chr: New file.
56922         * modules/unistr/u32-chr: New file.
56923         * lib/unistr/u8-chr.c: New file.
56924         * lib/unistr/u16-chr.c: New file.
56925         * lib/unistr/u32-chr.c: New file.
56926
56927         * modules/unistr/u8-cmp: New file.
56928         * modules/unistr/u16-cmp: New file.
56929         * modules/unistr/u32-cmp: New file.
56930         * lib/unistr/u8-cmp.c: New file.
56931         * lib/unistr/u16-cmp.c: New file.
56932         * lib/unistr/u32-cmp.c: New file.
56933
56934         * modules/unistr/u8-cpy: New file.
56935         * modules/unistr/u16-cpy: New file.
56936         * modules/unistr/u32-cpy: New file.
56937         * lib/unistr/u8-cpy.c: New file.
56938         * lib/unistr/u16-cpy.c: New file.
56939         * lib/unistr/u32-cpy.c: New file.
56940         * lib/unistr/u-cpy.h: New file.
56941
56942         * modules/unistr/u8-cpy-alloc: New file.
56943         * modules/unistr/u16-cpy-alloc: New file.
56944         * modules/unistr/u32-cpy-alloc: New file.
56945         * lib/unistr/u8-cpy-alloc.c: New file.
56946         * lib/unistr/u16-cpy-alloc.c: New file.
56947         * lib/unistr/u32-cpy-alloc.c: New file.
56948         * lib/unistr/u-cpy-alloc.h: New file.
56949
56950         * modules/unistr/u8-endswith: New file.
56951         * modules/unistr/u16-endswith: New file.
56952         * modules/unistr/u32-endswith: New file.
56953         * lib/unistr/u8-endswith.c: New file.
56954         * lib/unistr/u16-endswith.c: New file.
56955         * lib/unistr/u32-endswith.c: New file.
56956         * lib/unistr/u-endswith.h: New file.
56957
56958         * modules/unistr/u8-mblen: New file.
56959         * modules/unistr/u16-mblen: New file.
56960         * modules/unistr/u32-mblen: New file.
56961         * lib/unistr/u8-mblen.c: New file.
56962         * lib/unistr/u16-mblen.c: New file.
56963         * lib/unistr/u32-mblen.c: New file.
56964
56965         * modules/unistr/u8-mbtouc: New file.
56966         * modules/unistr/u16-mbtouc: New file.
56967         * modules/unistr/u32-mbtouc: New file.
56968         * lib/unistr/u8-mbtouc.c: New file.
56969         * lib/unistr/u16-mbtouc.c: New file.
56970         * lib/unistr/u32-mbtouc.c: New file.
56971
56972         * modules/unistr/u8-mbtouc-safe: New file.
56973         * modules/unistr/u16-mbtouc-safe: New file.
56974         * modules/unistr/u32-mbtouc-safe: New file.
56975         * lib/unistr/u8-mbtouc-safe.c: New file.
56976         * lib/unistr/u16-mbtouc-safe.c: New file.
56977         * lib/unistr/u32-mbtouc-safe.c: New file.
56978
56979         * modules/unistr/u8-move: New file.
56980         * modules/unistr/u16-move: New file.
56981         * modules/unistr/u32-move: New file.
56982         * lib/unistr/u8-move.c: New file.
56983         * lib/unistr/u16-move.c: New file.
56984         * lib/unistr/u32-move.c: New file.
56985         * lib/unistr/u-move.h: New file.
56986
56987         * modules/unistr/u8-next: New file.
56988         * modules/unistr/u16-next: New file.
56989         * modules/unistr/u32-next: New file.
56990         * lib/unistr/u8-next.c: New file.
56991         * lib/unistr/u16-next.c: New file.
56992         * lib/unistr/u32-next.c: New file.
56993
56994         * modules/unistr/u8-prev: New file.
56995         * modules/unistr/u16-prev: New file.
56996         * modules/unistr/u32-prev: New file.
56997         * lib/unistr/u8-prev.c: New file.
56998         * lib/unistr/u16-prev.c: New file.
56999         * lib/unistr/u32-prev.c: New file.
57000
57001         * modules/unistr/u8-set: New file.
57002         * modules/unistr/u16-set: New file.
57003         * modules/unistr/u32-set: New file.
57004         * lib/unistr/u8-set.c: New file.
57005         * lib/unistr/u16-set.c: New file.
57006         * lib/unistr/u32-set.c: New file.
57007         * lib/unistr/u-set.h: New file.
57008
57009         * modules/unistr/u8-startswith: New file.
57010         * modules/unistr/u16-startswith: New file.
57011         * modules/unistr/u32-startswith: New file.
57012         * lib/unistr/u8-startswith.c: New file.
57013         * lib/unistr/u16-startswith.c: New file.
57014         * lib/unistr/u32-startswith.c: New file.
57015         * lib/unistr/u-startswith.h: New file.
57016
57017         * modules/unistr/u8-stpcpy: New file.
57018         * modules/unistr/u16-stpcpy: New file.
57019         * modules/unistr/u32-stpcpy: New file.
57020         * lib/unistr/u8-stpcpy.c: New file.
57021         * lib/unistr/u16-stpcpy.c: New file.
57022         * lib/unistr/u32-stpcpy.c: New file.
57023         * lib/unistr/u-stpcpy.h: New file.
57024
57025         * modules/unistr/u8-stpncpy: New file.
57026         * modules/unistr/u16-stpncpy: New file.
57027         * modules/unistr/u32-stpncpy: New file.
57028         * lib/unistr/u8-stpncpy.c: New file.
57029         * lib/unistr/u16-stpncpy.c: New file.
57030         * lib/unistr/u32-stpncpy.c: New file.
57031         * lib/unistr/u-stpncpy.h: New file.
57032
57033         * modules/unistr/u8-strcat: New file.
57034         * modules/unistr/u16-strcat: New file.
57035         * modules/unistr/u32-strcat: New file.
57036         * lib/unistr/u8-strcat.c: New file.
57037         * lib/unistr/u16-strcat.c: New file.
57038         * lib/unistr/u32-strcat.c: New file.
57039         * lib/unistr/u-strcat.h: New file.
57040
57041         * modules/unistr/u8-strchr: New file.
57042         * modules/unistr/u16-strchr: New file.
57043         * modules/unistr/u32-strchr: New file.
57044         * lib/unistr/u8-strchr.c: New file.
57045         * lib/unistr/u16-strchr.c: New file.
57046         * lib/unistr/u32-strchr.c: New file.
57047
57048         * modules/unistr/u8-strcmp: New file.
57049         * modules/unistr/u16-strcmp: New file.
57050         * modules/unistr/u32-strcmp: New file.
57051         * lib/unistr/u8-strcmp.c: New file.
57052         * lib/unistr/u16-strcmp.c: New file.
57053         * lib/unistr/u32-strcmp.c: New file.
57054
57055         * modules/unistr/u8-strcpy: New file.
57056         * modules/unistr/u16-strcpy: New file.
57057         * modules/unistr/u32-strcpy: New file.
57058         * lib/unistr/u8-strcpy.c: New file.
57059         * lib/unistr/u16-strcpy.c: New file.
57060         * lib/unistr/u32-strcpy.c: New file.
57061         * lib/unistr/u-strcpy.h: New file.
57062
57063         * modules/unistr/u8-strcspn: New file.
57064         * modules/unistr/u16-strcspn: New file.
57065         * modules/unistr/u32-strcspn: New file.
57066         * lib/unistr/u8-strcspn.c: New file.
57067         * lib/unistr/u16-strcspn.c: New file.
57068         * lib/unistr/u32-strcspn.c: New file.
57069         * lib/unistr/u-strcspn.h: New file.
57070
57071         * modules/unistr/u8-strdup: New file.
57072         * modules/unistr/u16-strdup: New file.
57073         * modules/unistr/u32-strdup: New file.
57074         * lib/unistr/u8-strdup.c: New file.
57075         * lib/unistr/u16-strdup.c: New file.
57076         * lib/unistr/u32-strdup.c: New file.
57077         * lib/unistr/u-strdup.h: New file.
57078
57079         * modules/unistr/u8-strlen: New file.
57080         * modules/unistr/u16-strlen: New file.
57081         * modules/unistr/u32-strlen: New file.
57082         * lib/unistr/u8-strlen.c: New file.
57083         * lib/unistr/u16-strlen.c: New file.
57084         * lib/unistr/u32-strlen.c: New file.
57085         * lib/unistr/u-strlen.h: New file.
57086
57087         * modules/unistr/u8-strmblen: New file.
57088         * modules/unistr/u16-strmblen: New file.
57089         * modules/unistr/u32-strmblen: New file.
57090         * lib/unistr/u8-strmblen.c: New file.
57091         * lib/unistr/u16-strmblen.c: New file.
57092         * lib/unistr/u32-strmblen.c: New file.
57093
57094         * modules/unistr/u8-strmbtouc: New file.
57095         * modules/unistr/u16-strmbtouc: New file.
57096         * modules/unistr/u32-strmbtouc: New file.
57097         * lib/unistr/u8-strmbtouc.c: New file.
57098         * lib/unistr/u16-strmbtouc.c: New file.
57099         * lib/unistr/u32-strmbtouc.c: New file.
57100
57101         * modules/unistr/u8-strncat: New file.
57102         * modules/unistr/u16-strncat: New file.
57103         * modules/unistr/u32-strncat: New file.
57104         * lib/unistr/u8-strncat.c: New file.
57105         * lib/unistr/u16-strncat.c: New file.
57106         * lib/unistr/u32-strncat.c: New file.
57107         * lib/unistr/u-strncat.h: New file.
57108
57109         * modules/unistr/u8-strncmp: New file.
57110         * modules/unistr/u16-strncmp: New file.
57111         * modules/unistr/u32-strncmp: New file.
57112         * lib/unistr/u8-strncmp.c: New file.
57113         * lib/unistr/u16-strncmp.c: New file.
57114         * lib/unistr/u32-strncmp.c: New file.
57115
57116         * modules/unistr/u8-strncpy: New file.
57117         * modules/unistr/u16-strncpy: New file.
57118         * modules/unistr/u32-strncpy: New file.
57119         * lib/unistr/u8-strncpy.c: New file.
57120         * lib/unistr/u16-strncpy.c: New file.
57121         * lib/unistr/u32-strncpy.c: New file.
57122         * lib/unistr/u-strncpy.h: New file.
57123
57124         * modules/unistr/u8-strnlen: New file.
57125         * modules/unistr/u16-strnlen: New file.
57126         * modules/unistr/u32-strnlen: New file.
57127         * lib/unistr/u8-strnlen.c: New file.
57128         * lib/unistr/u16-strnlen.c: New file.
57129         * lib/unistr/u32-strnlen.c: New file.
57130         * lib/unistr/u-strnlen.h: New file.
57131
57132         * modules/unistr/u8-strpbrk: New file.
57133         * modules/unistr/u16-strpbrk: New file.
57134         * modules/unistr/u32-strpbrk: New file.
57135         * lib/unistr/u8-strpbrk.c: New file.
57136         * lib/unistr/u16-strpbrk.c: New file.
57137         * lib/unistr/u32-strpbrk.c: New file.
57138         * lib/unistr/u-strpbrk.h: New file.
57139
57140         * modules/unistr/u8-strrchr: New file.
57141         * modules/unistr/u16-strrchr: New file.
57142         * modules/unistr/u32-strrchr: New file.
57143         * lib/unistr/u8-strrchr.c: New file.
57144         * lib/unistr/u16-strrchr.c: New file.
57145         * lib/unistr/u32-strrchr.c: New file.
57146
57147         * modules/unistr/u8-strspn: New file.
57148         * modules/unistr/u16-strspn: New file.
57149         * modules/unistr/u32-strspn: New file.
57150         * lib/unistr/u8-strspn.c: New file.
57151         * lib/unistr/u16-strspn.c: New file.
57152         * lib/unistr/u32-strspn.c: New file.
57153         * lib/unistr/u-strspn.h: New file.
57154
57155         * modules/unistr/u8-strstr: New file.
57156         * modules/unistr/u16-strstr: New file.
57157         * modules/unistr/u32-strstr: New file.
57158         * lib/unistr/u8-strstr.c: New file.
57159         * lib/unistr/u16-strstr.c: New file.
57160         * lib/unistr/u32-strstr.c: New file.
57161         * lib/unistr/u-strstr.h: New file.
57162
57163         * modules/unistr/u8-strtok: New file.
57164         * modules/unistr/u16-strtok: New file.
57165         * modules/unistr/u32-strtok: New file.
57166         * lib/unistr/u8-strtok.c: New file.
57167         * lib/unistr/u16-strtok.c: New file.
57168         * lib/unistr/u32-strtok.c: New file.
57169         * lib/unistr/u-strtok.h: New file.
57170
57171         * modules/unistr/u8-uctomb: New file.
57172         * modules/unistr/u16-uctomb: New file.
57173         * modules/unistr/u32-uctomb: New file.
57174         * lib/unistr/u8-uctomb.c: New file.
57175         * lib/unistr/u16-uctomb.c: New file.
57176         * lib/unistr/u32-uctomb.c: New file.
57177
57178         * MODULES.html.sh (Unicode string functions): Add the new modules.
57179
57180 2007-01-08  Bruno Haible  <bruno@clisp.org>
57181
57182         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57183         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57184         subdirectories.
57185
57186 2007-01-08  Karl Berry  <karl@gnu.org>
57187
57188         * doc/error.texi: mention that main() fns must set program_name
57189         when progname is used.
57190
57191 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57192
57193         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57194         WCTYPE_H is empty, for the benefit of builds from non-distclean
57195         directories.  Problem reported by Eric Blake in
57196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57197
57198 2007-01-08  Bruno Haible  <bruno@clisp.org>
57199
57200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57201         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57202         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57203         PROVIDE_CANONICALIZE_FILENAME_MODE.
57204         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57205
57206 2007-01-08  Bruno Haible  <bruno@clisp.org>
57207
57208         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57209         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57210         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57211         * lib/fts.c: Likewise.
57212         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57213
57214 2006-12-25  Bruno Haible  <bruno@clisp.org>
57215
57216         * modules/utf8-ucs4-safe: New file.
57217         * lib/utf8-ucs4-safe.h: New file.
57218         * lib/unistr/utf8-ucs4-safe.c: New file.
57219
57220         * modules/utf16-ucs4-safe: New file.
57221         * lib/utf16-ucs4-safe.h: New file.
57222         * lib/unistr/utf16-ucs4-safe.c: New file.
57223
57224         * MODULES.html.sh (Unicode string functions): Add the new modules.
57225
57226 2007-01-08  Bruno Haible  <bruno@clisp.org>
57227
57228         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57229         (Depends-on): Add unitypes.
57230         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57231         (u8_mbtouc_aux): Move out to separate file.
57232         (u8_mbtouc): Use ucs4_t, uint8_t types.
57233         * lib/unistr/utf8-ucs4.c: New file.
57234
57235         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57236         (Depends-on): Add unitypes.
57237         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57238         (u16_mbtouc_aux): Move out to separate file.
57239         (u16_mbtouc): Use ucs4_t, uint16_t types.
57240         * lib/unistr/utf16-ucs4.c: New file.
57241
57242         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57243         (Depends-on): Add unitypes.
57244         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57245         (u8_uctomb_aux): Move out to separate file.
57246         (u8_uctomb): Use ucs4_t, uint8_t types.
57247         * lib/unistr/ucs4-utf8.c: New file.
57248
57249         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57250         (Depends-on): Add unitypes.
57251         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57252         (u16_uctomb_aux): Move out to separate file.
57253         (u16_uctomb): Use ucs4_t, uint16_t types.
57254         * lib/unistr/ucs4-utf16.c: New file.
57255
57256 2006-12-25  Bruno Haible  <bruno@clisp.org>
57257
57258         * modules/unitypes: New file.
57259         * lib/unitypes.h: New file.
57260         * MODULES.html.sh (func_all_modules): New section "Unicode string
57261         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57262         this section. Add unitypes.
57263
57264 2007-01-08  Bruno Haible  <bruno@clisp.org>
57265
57266         Avoid variable names that conflict with those from libtool.
57267         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57268         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57269         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57270         library_names_spec to acl_library_names_spec, hardcode_* to
57271         acl_hardcode_*.
57272         Reported by Ralf Wildenhues.
57273
57274 2007-01-08  Bruno Haible  <bruno@clisp.org>
57275
57276         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57277         definition.
57278         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57279         definition.
57280         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57281         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57282         definition.
57283         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57284         definition.
57285         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57286         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57287         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57288         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57289         definition.
57290         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57291         definition.
57292         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57293         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57294         GC_USE_<algorithm>.
57295         * lib/gc-libgcrypt.c: Likewise.
57296         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57297         * modules/gc-arctwo (configure.ac): Likewise.
57298         * modules/gc-des (configure.ac): Likewise.
57299         * modules/gc-hmac-md5 (configure.ac): Likewise.
57300         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57301         * modules/gc-md2 (configure.ac): Likewise.
57302         * modules/gc-md4 (configure.ac): Likewise.
57303         * modules/gc-md5 (configure.ac): Likewise.
57304         * modules/gc-random (configure.ac): Likewise.
57305         * modules/gc-rijndael (configure.ac): Likewise.
57306         * modules/gc-sha1 (configure.ac): Likewise.
57307
57308 2007-01-08  Bruno Haible  <bruno@clisp.org>
57309
57310         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57311         macro definition.
57312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57313         definition.
57314         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57315         definition.
57316         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57317         * modules/fcntl-safer (configure.ac): Likewise.
57318         * modules/fopen-safer (configure.ac): Likewise.
57319         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57320         GNULIB_FWRITEERROR macro definition.
57321
57322 2007-01-08  Bruno Haible  <bruno@clisp.org>
57323
57324         * m4/gnulib-common.m4: New file.
57325         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57326         (func_get_filelist): Add m4/gnulib-common.m4.
57327
57328 2007-01-08  Bruno Haible  <bruno@clisp.org>
57329
57330         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57331         command.
57332
57333 2007-01-08  Jim Meyering  <jim@meyering.net>
57334
57335         Use a more robust test for a "can't happen" condition.
57336         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57337         narrowed the st_size value.  Presuming the "can't happen" condition
57338         is true, that narrowing could conceivably convert an invalid st_size
57339         value into a valid one.  Instead, use a change based on Matthew
57340         Woehlke's original patch.
57341
57342         Slight readability improvement: use an assert-like macro
57343         in place of literal "abort ()" uses.
57344         * lib/fts.c (fts_assert): Define.
57345         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57346         Use this macro instead of a bare 'abort'.
57347
57348 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57349
57350         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57351         simply work around them.
57352         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57353         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57354         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57355         declaring.
57356         Don't bother to define as macros, since the standard doesn't require it.
57357         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57358         longer worry about IRIX 5.3.
57359         (HAVE_WCTYPE_CTMP_BUG): Remove.
57360
57361 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57364         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57365         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57366         Problems reported by Georg Schwarz for IRIX 5.3.
57367
57368         * gnulib-tool (autoconf_minversion): Take the maximum version number
57369         found, not the minimum.  Problem reported by James Youngman.
57370
57371 2007-01-03  Karl Berry  <karl@gnu.org>
57372
57373         * doc/error.texi: new file, explaining interaction with progname.
57374         * doc/gnulib.texi: include it.  Update copyright.
57375
57376 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57377
57378         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57379         AC_CANONICAL_HOST, to improve autobuild outputs.
57380
57381 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57382             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57383
57384         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57385         sockets, server sockets, and other file descriptors.  Count errors
57386         to compute the return value.  Reorder the code a bit to be easier
57387         to follow.  Don't set event bits that were not requested (except
57388         POLLERR and POLLHUP).
57389
57390 2007-01-01  Bruno Haible  <bruno@clisp.org>
57391
57392         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57393
57394 2007-01-03  Jim Meyering  <jim@meyering.net>
57395
57396         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57397
57398 2007-01-02  Bruno Haible  <bruno@clisp.org>
57399
57400         * modules/settime (Include): Require timespec.h.
57401         * modules/nanosleep (Include): Likewise.
57402
57403 2007-01-01  Bruno Haible  <bruno@clisp.org>
57404
57405         * gnulib-tool (func_emit_copyright_notice): Bump year.
57406         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57407
57408 2007-01-01  Bruno Haible  <bruno@clisp.org>
57409
57410         Improve support for OpenBSD.
57411         * build-aux/config.rpath (libname_spec): Export.
57412         (library_names_spec): New variable. Export.
57413         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57414         library_names_spec from the config.rpath output. Locate shared library
57415         through the name pattern in library_names_spec.
57416
57417 2007-01-01  Eric Blake  <ebb9@byu.net>
57418
57419         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57420
57421 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57424         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57425         assume the C locale, and avoid an "eval" that could cause trouble.
57426         Problem with SORT reported by Bob Proulx.
57427
57428         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57429         Define.  Trivial patch from Henning Nielsen Lund, originally
57430         sent to bug-grep@gnu.org today.
57431
57432 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57435         struct stat.  Problem reported by Henning Nielsen Lund.
57436         * lib/acl.c: Include acl.h first, to check interface.  Don't
57437         bother to include sys/types.h and sys/stat.h again.
57438
57439 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         Import the following change from libc; problem reported by
57442         Sven Verdoolaege.
57443
57444         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57445
57446         [BZ #1373]
57447         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57448
57449 2006-12-28  Jim Meyering  <jim@meyering.net>
57450
57451         * build-aux/announce-gen: Do not assume that the package
57452         builds any of tar.gz, tar.bz2, and .xdelta files.
57453         Suggestion from Simon Josefsson.
57454
57455 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57456
57457         * modules/announce-gen: New file.
57458
57459 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57462         handles its gotchas now.
57463         * lib/mbswidth.c: Likewise.
57464         * lib/wcwidth.h: Likewise.
57465         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57466         and iswcntrl; the wctype module does this stuff now.
57467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57469         * modules/mbchar (Depends-on): Add wctype.
57470         * modules/mbswidth (Depends-on): Likewise.
57471         * modules/wcwidth (Depends-on): Likewise.
57472
57473 2006-12-27  Eric Blake  <ebb9@byu.net>
57474
57475         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57476         module uses more than what <wctype.h> is required to provide.
57477
57478 2006-12-26  Eric Blake  <ebb9@byu.net>
57479
57480         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57481
57482 2006-12-26  Eric Blake  <ebb9@byu.net>
57483
57484         * modules/absolute-header: New module.
57485         * modules/fcntl (Depends-on): Depend on it.
57486         * modules/inttypes (Depends-on): Likewise.
57487         * modules/stdint (Depends-on): Likewise.
57488         * modules/sys_stat (Depends-on): Likewise.
57489         * modules/wctype (Depends-on): Likewise.
57490         * MODULES.html.sh (Support for building libraries and
57491         executables): Document it.
57492
57493 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         * gnulib-tool (SED): Remove, undoing previous change.
57496         The problem was that it broke coreutils on Solaris, because
57497         "sed --posix" leaked into a makefile.
57498         (sed): New alias, if 'alias' and GNU sed.
57499
57500 2006-12-24  Jim Meyering  <jim@meyering.net>
57501
57502         Work around an fchownat bug in glibc-2.4:
57503         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57504         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57505         in spite of the -P option.
57506         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57507         New macros.
57508         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57509         * modules/openat (Files): Add lib/fchownat.c.
57510         * lib/openat.c (fchownat): Don't define here.  Move to...
57511         * lib/fchownat.c: ...this new file.
57512
57513 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         Fix bug reported by Bruno Haible in
57516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57517         where quotearg.c didn't compile on Mac OS X 10.2 because it
57518         lacks <wchar.h> and wint_t.
57519         * lib/wctype_.h (__wctype_wint_t): New type.
57520         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57521         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57522         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57523         Arg is now of type __wctype_wint_t, not wint_t.
57524         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57525         substitute HAVE_WINT_T.
57526         * modules/wctype (Files): Add m4/wint_t.m4.
57527         (wctype.h): Substitute HAVE_WINT_T.
57528
57529 2006-12-23  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57532
57533 2006-12-23  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57536         S_ISLNK.
57537         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57538         mingw.
57539
57540 2006-12-22  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/copy-file.c: Include acl.h.
57543         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57544         Close the file descriptors only after being done with copy_acl.
57545         * modules/copy-file (Depends-on): Add acl.
57546
57547 2006-12-22  Bruno Haible  <bruno@clisp.org>
57548
57549         * gnulib-tool (SED): New variable.
57550         Use $SED instead of sed everywhere.
57551
57552 2006-12-22  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/no-c++: New file.
57555         * m4/no-c++.m4: New file.
57556         * MODULES.html.sh (Support for building libraries and executables):
57557         Add no-c++.
57558
57559 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57560
57561         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57562         Include <limits.h>, and use its INT_MAX to rewrite the
57563         j loop so that it does not overflow 'int'.  Problem reported by
57564         Ralf Wildenhues in
57565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57566         Play it safe by shifting left by 1 rather than multiplying by 2,
57567         as GCC is less likely to optimize this away when the value
57568         is signed (when it assumes overflow leads to undefined behavior).
57569         Also, don't assume time_t uses two's complement.
57570
57571 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57572
57573         * MODULES.html.sh: New module wctype.
57574         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57575         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57576         <wctype.h>, since the new wctype module should fix this.
57577         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57578         the wctype module should arrange for it.
57579         * lib/regex_internal.h: Likewise.
57580         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57581         since the wctype module should handle this now.
57582         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57583         * modules/fnmatch (Depends-on): Add wctype.
57584         * modules/quotearg (Depends-on): Likewise.
57585         * modules/regex (Depends-on): Likewise.
57586
57587 2006-12-19  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57590         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57591
57592 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57593
57594         * modules/savewd (Depends-on): Fix dependency on fcntl.
57595
57596 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57599         conforms to C99, rather than relying on the user's environment
57600         setting of STDINT_H.
57601
57602 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57603         and Eric Blake  <ebb9@byu.net>
57604
57605         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57606         This is more consistent with the other defines here.
57607         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57608         Port to z/OS.  Problem reported by Paul Gilmartin.
57609         Change local vars to use gl_ prefix rather than ac_.
57610         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57611         with other defines.
57612         * modules/double-slash-root: New module.
57613         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57614         (Depends-on): Add double-slash-root.
57615         * MODULES.html.sh (File system functions): Mention new module.
57616
57617 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57620         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57621         This is for the benefit of gzip, which doesn't do i18n.
57622
57623 2006-12-12  Jim Meyering  <jim@meyering.net>
57624
57625         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57626         Reported by Andreas Schwab <schwab@suse.de>.
57627
57628 2006-12-12  Bruno Haible  <bruno@clisp.org>
57629
57630         Merge these changes.
57631         2006-09-05  Bruno Haible  <bruno@clisp.org>
57632         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57633         iconv_alloc succeeded.
57634         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57635         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57636         test for " && dest " at the end - dest is always != NULL there. Call
57637         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57638         with 2xNULL arguments, also to flush the state storage. Handle the
57639         IRIX iconv behaviour. Realloc the final result, to throw away unused
57640         memory.
57641
57642 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57645         and fchmodat unconditionally, since glibc 2.4 has them.
57646         Problem reported by Arkadiusz Miskiewicz.
57647
57648 2006-12-10  Bruno Haible  <bruno@clisp.org>
57649
57650         * gnulib-tool (func_import): Show the include files only for those
57651         modules that are copied and specified.
57652         Reported by Karl Berry.
57653
57654 2006-12-08  Jim Meyering  <jim@meyering.net>
57655
57656         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57657         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57658
57659         * build-aux/announce-gen: Add two new options, both optional:
57660         --bootstrap-tools=TOOL_LIST
57661               a comma-separated list of tools, e.g.,
57662               autoconf,automake,bison,gnulib
57663         --gnulib-snapshot-date=DATE
57664               if gnulib is in the bootstrap tool list,
57665               then report this as the snapshot date.
57666               If not specified, use the current date/time.
57667               If you specify a date here, be sure it's UTC.
57668
57669 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57670
57671         * tests/test-argp-2.sh: Fix test to match actual output.
57672         (func_compare): Fix sed script to be portable.
57673
57674 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57677         workaround for this case.  It is not autoconfigured now; offhand
57678         it's hard to see how to autoconfigure it.
57679
57680 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57683         a directory that is about to be chowned.  Such a directory's
57684         initial file permissions should permit the owner only and this
57685         should not be changed until after the chown, since the group and
57686         other bits would be incorrect if they granted permission before
57687         the chown.
57688
57689         Fix porting problem for iswctype reported by Georg Schwarz in:
57690         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57691         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57692         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57694         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57695
57696 2006-12-03  Jim Meyering  <jim@meyering.net>
57697
57698         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57699         p->fts_statp may not yet be defined.
57700         (fts_read): Instead, set it in the caller, once p->fts_statp is
57701         sure to be defined, and corresponds to a top-level directory.
57702         This bug made du -x fail.  Here's the coreutils test case:
57703         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57704         Reported by Mike Frysinger.
57705
57706 2006-12-01  Jim Meyering  <jim@meyering.net>
57707
57708         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57709         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57710         Reported by Simon Josefsson.
57711
57712 2006-11-30  Jim Meyering  <jim@meyering.net>
57713
57714         * m4/warning.m4: Use the all-permissive copyright notice
57715         recommended by RMS (rather than LGPL).
57716         * m4/vararrays.m4: Likewise.
57717         * m4/flexmember.m4: Likewise.
57718
57719 2006-11-29  Bruno Haible  <bruno@clisp.org>
57720
57721         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57722         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57723         using +=.
57724         Reported by Simon Josefsson <simon@josefsson.org>.
57725
57726 2006-11-28  James Youngman <jay@gnu.org>
57727
57728         * README: Advise users that they might find the bug-gnulib@gnu.org
57729         and autotools-announce@gnu.org mailing lists useful.
57730
57731 2006-11-28  Bruno Haible  <bruno@clisp.org>
57732
57733         * m4/ptrdiff_max.m4: Remove file.
57734
57735 2006-11-21  Bruno Haible  <bruno@clisp.org>
57736
57737         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57738         _AC_COMPUTE_INT.
57739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57740         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57741         _AC_COMPUTE_INT.
57742         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57743         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57744         _AC_COMPUTE_INT.
57745         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57746
57747 2006-11-28  Jim Meyering  <jim@meyering.net>
57748
57749         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57750         warning from "gcc -Wshadow" about shadowing the builtin.
57751
57752 2006-11-27  Bruno Haible  <bruno@clisp.org>
57753
57754         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57755         _AC_COMPUTE_INT.
57756         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57757
57758 2006-11-27  Bruno Haible  <bruno@clisp.org>
57759             Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57762
57763 2006-11-26  Bruno Haible  <bruno@clisp.org>
57764
57765         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57766         noinst_LTLIBRARIES.
57767
57768 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57769             Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57772         if compiling with "gcc -ansi".
57773
57774 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         Fix some incompatibilities with gcc -ansi -pedantic.
57777         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57778         if compiling pedantically with GCC, unless it's C99 or later.
57779         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57780         it mishandles gcc -ansi -pedantic as well.
57781         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57782         if gcc -pedantic.
57783         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57784         initializers for struct if -pedantic, unless it's C99 or later.
57785
57786 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57787
57788         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57789         Don't close an fd more than once. Identical atimes indicate
57790         success, not failure.
57791
57792 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57793
57794         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57795
57796 2006-11-23  Jim Meyering  <jim@meyering.net>
57797
57798         * build-aux/announce-gen: New file.  From coreutils.
57799
57800 2006-11-22  Jim Meyering  <jim@meyering.net>
57801
57802         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57803         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57804         (fts_read): Use a temporary to narrow the overused st_size member
57805         before using it in a switch statement.  Reported by Matthew Woehlke.
57806
57807         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57808         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57809
57810 2006-11-20  Bruno Haible  <bruno@clisp.org>
57811
57812         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57813         changequote instead of pairs of brackets.
57814         Reported by Andreas Schwab <schwab@suse.de>.
57815
57816 2006-11-21  Jim Meyering  <jim@meyering.net>
57817
57818         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57819         so as to remain compatible with older compilers.
57820         Patch from Michael Deutschmann.
57821
57822 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * MODULES.html.sh (File system functions): Add openat.
57825
57826         * lib/openat.h (rpl_fstatat): New macro, if
57827         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57828         (fstatat): Define to rpl_fstatat under the same conditions,
57829         unless COMPILING_FSTATAT.
57830         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57831         seems to have the bug.
57832         * lib/fstatat.c: New file.
57833         * modules/openat (Files): Add it.
57834
57835 2006-11-20  Bruno Haible  <bruno@clisp.org>
57836
57837         * Makefile: New file.
57838
57839 2006-11-20  Jim Meyering  <jim@meyering.net>
57840
57841         The beginnings of syntax-related checks for gnulib.
57842         * lib/Makefile: New file.
57843         * lib/t-idcache: New script.  Ensure that the two halves of
57844         idcache.c stay in sync.
57845
57846         * lib/idcache.c: Adjust comments in user- and group- portions to
57847         be more accurate, and to be consistent with one another.
57848
57849 2006-11-20  Jim Meyering  <jim@meyering.net>
57850
57851         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57852         continue using the flexible array member (thus, this module performs
57853         half as many malloc calls), with the addition that...
57854         (getgroup, getuser): Consistently record a non-match via an empty
57855         "name" string, and map an empty string match to a NULL return value.
57856         * modules/idcache (Depends-on): Re-add flexmember.
57857
57858         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57859         (getuidbyname, getgroup, getgidbyname): Likewise.
57860
57861         Use cleaner syntax: NULL rather than 0.
57862         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57863
57864 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57865
57866         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57867         It mishandled the case where the group was missing.
57868         Problem reported by Greg Schafer.
57869         * modules/idcache: Likewise.
57870
57871 2006-11-18  Jim Meyering  <jim@meyering.net>
57872
57873         * check-module (%exempt_header): Add exception for some
57874         conditionally-included headers.
57875
57876         * modules/i-ring (Depends-on): Add verify.
57877         (License): Change to LGPL.
57878
57879 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57880
57881         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57882         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57883         and inttostr.h.  Use snprintf rather than uinttostr, so that
57884         LGPLed code doesn't depend on GPLed.
57885
57886 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * modules/inline (License): Change from GPL to LGPL.
57889
57890 2006-11-17  Jim Meyering  <jim@meyering.net>
57891
57892         * modules/d-type (License): Switch to LGPL.
57893
57894 2006-11-15  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57897
57898 2006-11-15  Eric Blake  <ebb9@byu.net>
57899
57900         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57901         the module dependency.
57902
57903 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57904             Bruno Haible  <bruno@clisp.org>
57905
57906         * gnulib-tool (func_create_testdir): Add license consistency check.
57907
57908 2006-11-15  Eric Blake  <ebb9@byu.net>
57909
57910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57911         random "(cached)" in configure output.
57912
57913 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57914
57915         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57916         test for conforming inttypes.h is both announced and cached.
57917
57918         * MODULES.html.sh (seen_modules, seen_files): New variables.
57919         (func_module): Rewrite to use a few less gnulib-tool and sed
57920         invocations.  Avoid a couple of quadratic algorithms for ...
57921         (missed_modules, missed_files): ... these, with ...
57922         (func_append, func_tmpdir): ... these new functions, from
57923         gnulib-tool.  Analogously, install traps for cleanup.
57924
57925         * tests/test-gc.c (main): Remove unused variables.
57926         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57927
57928 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * modules/inttostr (License): Change to LGPL.
57931
57932 2006-11-14  Eric Blake  <ebb9@byu.net>
57933
57934         * modules/tempname (License): Change to LGPL.
57935
57936 2006-11-14  Eric Blake  <ebb9@byu.net>
57937
57938         * doc/functions.texi (Function Portability): *printf functions on
57939         Cygwin now understand all POSIX size specifiers.
57940
57941 2006-11-14  Bruno Haible  <bruno@clisp.org>
57942
57943         * modules/c-ctype (License): Change to LGPL.
57944
57945 2006-11-12  Bruno Haible  <bruno@clisp.org>
57946
57947         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57948         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57949         for GNOME libraries, for which the include files are installed in
57950         subdirectories of $prefix/include.
57951
57952 2006-11-12  Bruno Haible  <bruno@clisp.org>
57953
57954         * m4/lib-link.m4: Require at least autoconf-2.54.
57955         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57956         name to underscores for the --with option.
57957
57958 2006-11-13  Bruno Haible  <bruno@clisp.org>
57959
57960         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57961         the tests directory.
57962         Reported by Ralf Wildenhues.
57963
57964 2006-11-13  Bruno Haible  <bruno@clisp.org>
57965
57966         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57967         (func_emit_initmacro_end): Undo the override here.
57968         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57969         Works around the famous automake error in coreutils.
57970
57971 2006-11-13  Eric Blake  <ebb9@byu.net>
57972
57973         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57974         element, not its node.
57975
57976 2006-11-12  Bruno Haible  <bruno@clisp.org>
57977
57978         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57979         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57980
57981 2006-11-12  Bruno Haible  <bruno@clisp.org>
57982
57983         * gnulib-tool: New option --local-symlink.
57984         (func_usage): Document it.
57985         (lsymbolic): New variable.
57986         (func_import, func_create_testdir): If --symlink was not specified,
57987         test whether --local-symlink was specified and the file comes from
57988         the local_gnulib_dir.
57989
57990 2006-11-12  Bruno Haible  <bruno@clisp.org>
57991
57992         * gnulib-tool (func_ln): New function.
57993         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57994
57995 2006-11-12  Bruno Haible  <bruno@clisp.org>
57996
57997         Finish support for source files in subdirectories.
57998         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57999         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58000         AUTOMAKE_OPTIONS.
58001         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58002
58003 2006-11-12  Bruno Haible  <bruno@clisp.org>
58004
58005         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58006         EXTRA_lib_SOURCES augmentation.
58007         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58008
58009 2006-11-12  Jim Meyering  <jim@meyering.net>
58010
58011         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58012         file descriptors.  This also averts a failure on systems with
58013         native openat support when a traversed directory lacks "x" access.
58014         * lib/fts_.h: Include "i-ring.h"
58015         (struct FTS) [fts_fd_ring]: New member.
58016         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58017         (FCHDIR): Add parentheses.
58018         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58019         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58020         When descending, rather than simply closing the previous
58021         fts_cwd_fd value, push that file descriptor onto the ring.
58022         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58023         (fts_open): Initialize the new fd_ring member.
58024         (fts_close): Clear the ring.
58025         (fts_safe_changedir): When possible, use our new fd_ring to skip
58026         the diropen and fstat and dev/ino comparison that would normally
58027         accompany a virtual `chdir ("..")'.
58028
58029         * modules/fts (Depends-on): Add i-ring.
58030         * modules/i-ring: New module.
58031         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58032         * m4/i-ring.m4: New file.
58033
58034 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58035
58036         * gnulib-tool (func_create_testdir): Fix replacement of
58037         `build-aux' in configure.ac.  Run autotools in gltests
58038         subdirectory.
58039         (func_create_testdir, func_create_megatestdir, test): There is
58040         no need for '--force' in most autotool invocations in a new
58041         tree.  Actually fail the whole test if any of the tools, or the
58042         configure or make stages fail.
58043
58044         Sync from Automake.
58045         * build-aux/gnupload: Revert last change.  Add pointer to upload
58046         instructions of the GNU Maintenance Instructions.
58047         Suggestion by Karl Berry.
58048
58049 2006-11-10  Jim Meyering  <jim@meyering.net>
58050
58051         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58052
58053 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58054
58055         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58056         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58057         (bind_textdomain_codeset) [! ENABLE_NLS]:
58058         Evaluate all the arguments.  That way, callers get compatible behavior
58059         if the arguments have side effects.  Also, it avoids some GCC
58060         diagnostics in some cases; Joel E. Denny reported problems when Bison
58061         was configured with --enable-gcc-warnigs.
58062
58063 2006-11-10  Jim Meyering  <jim@meyering.net>
58064
58065         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58066         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58067         account.
58068
58069 2006-11-10  Jim Meyering  <jim@meyering.net>
58070
58071         * modules/inline: New file/module.
58072         * modules/xalloc (Files): Remove m4/inline.m4.
58073         (Depends-on): Add inline, instead.
58074         * modules/oset: Likewise.
58075         * modules/list: Likewise.
58076
58077 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58080         Problem reported by Matthew Woehlke.
58081
58082 2006-11-09  Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/tempname.c (gen_tempname): Remove variant that invokes
58085         __gen_tempname.
58086         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58087         __gen_tempname.
58088
58089 2006-11-08  Bruno Haible  <bruno@clisp.org>
58090
58091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58092         to 'yes' instead of 'cross-compiling'.
58093
58094 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58095
58096         * lib/quotearg.h (quotearg_free): New decl.
58097         * lib/quotearg.c (quotearg_free): New function.
58098         (slot0, nslots, slotvec0, slotvec):
58099         Now file-scope so that quotearg_free can get at them.
58100
58101 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58102
58103         Sync from Automake.
58104         * build-aux/gnupload: Add missing 'gnu' to example URL.
58105         Report by Karl Berry.
58106
58107 2006-11-08  Bruno Haible  <bruno@clisp.org>
58108
58109         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58110         Suggested by Paul Eggert.
58111
58112 2006-11-08  Jim Meyering  <jim@meyering.net>
58113
58114         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58115         It's already included if !_LIBC.
58116         (fts_safe_changedir): Add a comment.
58117
58118 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58121         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58122         Matthew Woehlke.
58123
58124         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58125         definitions up, to avoid colliding with change below.
58126         (static_inline) [HAVE_INLINE]: New macro.
58127         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58128         Provide extern decls when !HAVE_INLINE.  Do not define unless
58129         static_inline is defined, either by us or by xmalloc.c.  Use
58130         static_inline rather than static inline.
58131         (XCALLOC): Optimize sizeof(T) = 1 case.
58132         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58133
58134 2006-11-07  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58137         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58138         AC_C_INLINE.
58139         * modules/xalloc (Files): Add m4/inline.m4.
58140
58141 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58142
58143         * README: Fix typo.
58144         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58145         (Miscellanous Notes): ...from this.
58146
58147 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58150         Mention that offsetof should be used instead of sizeof.
58151         From Bruno Haible.
58152
58153 2006-11-07  Bruno Haible  <bruno@clisp.org>
58154
58155         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58156
58157 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58160         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58161         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58162         (gl_tree_add_before, gl_tree_add_after):
58163         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58164         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58165         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58166         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58167         (gl_linked_add_after, gl_linked_add_at): Likewise.
58168         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58169         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58170         (gl_tree_add_before, gl_tree_add_after): Likewise.
58171         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58172         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58173         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58174
58175 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58176
58177         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58178
58179 2006-11-06  Bruno Haible  <bruno@clisp.org>
58180
58181         * m4/inline.m4: New file.
58182         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58183         * modules/list (Files): Add m4/inline.m4.
58184         * modules/oset (Files): Likewise.
58185
58186 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         * lib/idcache.c: Include <stddef.h>, for offsetof.
58189         (struct userid.name): Change from char * to a flexible array member.
58190         All uses changed.
58191         * modules/idcache (Depends-on): Add flexmember.
58192
58193         * MODULES.html.sh (Core language properties): New module flexmember.
58194         * modules/flexmember, m4/flexmember.m4: New files.
58195
58196         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58197         inline functions that are identical with the old xnmalloc_inline,
58198         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58199         that we can avoid some unnecessary integer multiplications and
58200         divisions in the common case where the element size is known at
58201         compile time.
58202         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58203         needed.
58204         (xnboundedmalloc): Remove.
58205         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58206         arguments, for consistency with rest of this header.
58207         (xcharalloc): Rewrite using XNMALLOC.
58208         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58209         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58210         versions have been moved to lib/xalloc.h and renamed to be the
58211         non-*_inline versions.
58212         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58213         and xnrealloc functions, since those functions are now inline and
58214         now call us.
58215         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58216         renaming described above.
58217         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58218         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58219         captures the dependency in AC_C_INLINE.
58220
58221         New module canonicalize-lgpl, proposed by Charles Wilson in
58222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58223         with a few small changes afterwards.
58224         * MODULES.html.sh (File system functions): New module
58225         canonicalize-lgpl.
58226         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58227         and canonicalize_file_name.
58228         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58229         * modules/canonicalize-lgpl: New files.
58230
58231 2006-11-05  Bruno Haible  <bruno@clisp.org>
58232
58233         * gnulib-tool (func_import, func_create_testdir): Create directories
58234         also for files in subdirectories of lib/.
58235
58236 2006-11-05  Bruno Haible  <bruno@clisp.org>
58237
58238         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58239         ANSI C compliant.
58240
58241 2006-11-03  Bruno Haible  <bruno@clisp.org>
58242
58243         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58244         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58245         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58246         (xnboundedmalloc): New inline function.
58247         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58248         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58249         xmalloc.
58250         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58251         xmalloc.
58252         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58253         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58254         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58255         xmalloc.
58256         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58257         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58258         xmalloc.
58259         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58260         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58261         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58262         xmalloc.
58263         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58264         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58265         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58266         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58267         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58268         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58269         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58270
58271 2006-11-03  Bruno Haible  <bruno@clisp.org>
58272
58273         * lib/c-ctype.h [C++]: Define functions without name mangling.
58274         * lib/fwriteerror.h [C++]: Likewise.
58275         * lib/gcd.h [C++]: Likewise.
58276         * lib/linebreak.h [C++]: Likewise.
58277
58278 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58281         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58282         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58283         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58284         Check for functions and headers just once.
58285         Check for declaration of canonicalize_file_name.
58286         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58287
58288 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58289
58290         * gnulib-tool (func_import): Fix typo in actioncmd.
58291
58292 2006-11-02  Bruno Haible  <bruno@clisp.org>
58293
58294         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58295         newline sequence in the Makefile.am snippet as a space, like "make"
58296         does.
58297         Reported by Roger Persson <perrog@gmail.com>.
58298
58299 2006-11-01  Bruno Haible  <bruno@clisp.org>
58300
58301         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58302         already declared in <string.h>.
58303         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58304
58305 2006-11-01  Bruno Haible  <bruno@clisp.org>
58306
58307         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58308         * lib/strcase.h: Include <string.h>.
58309         (strcasecmp): Define to rpl_strcasecmp here.
58310
58311 2006-11-01  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58314
58315 2006-11-01  Eric Blake  <ebb9@byu.net>
58316
58317         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58318
58319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58320
58321 2006-10-29  Bruno Haible  <bruno@clisp.org>
58322
58323         Make it compile in C++ mode.
58324         * lib/full-write.c (full_rw): Add a cast.
58325
58326 2006-11-01  Bruno Haible  <bruno@clisp.org>
58327
58328         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58329         be POSIX compliant.
58330         Reported by Roger Persson <perrog@gmail.com>.
58331
58332 2006-11-01  Eric Blake  <ebb9@byu.net>
58333
58334         * lib/getopt_.h: Fix comments.
58335
58336 2006-10-31  Eric Blake  <ebb9@byu.net>
58337
58338         * modules/tmpdir (Depends-on): Add sys_stat.
58339         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58340         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58341         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58342         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58343         tempname.
58344
58345 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         Avoid some C++ diagnostics reported by Bruno Haible.
58348         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58349         xmalloc.
58350         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58351         (struct slotvec): Move to top level.
58352         (quotearg_n_options): Rewrite to avoid xmalloc.
58353         * lib/xalloc.h (xcharalloc): New function.
58354         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58355         [defined __cplusplus]: Add function template that provides result
58356         type propagation.  This part of the change is from Bruno Haible.
58357
58358 2006-10-29  Bruno Haible  <bruno@clisp.org>
58359
58360         Make it compile in C++ mode.
58361         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58362         * lib/strnlen1.c (strnlen1): Cast memchr result.
58363         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58364         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58365         (create_temp_dir): Rename local variable 'template'.
58366         (compile_csharp_using_sscli): Add cast.
58367         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58368         * lib/findprog.c (find_in_path): Likewise.
58369         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58370         * lib/wait-process.c (register_slave_subprocess): Likewise.
58371
58372 2006-10-22  Bruno Haible  <bruno@clisp.org>
58373
58374         * modules/tsearch: New file.
58375         * lib/tsearch.h: New file.
58376         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58377         * m4/tsearch.m4: New file.
58378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58379
58380 2006-10-29  Eric Blake  <ebb9@byu.net>
58381
58382         * lib/arcfour.c: Assume config.h.
58383         * lib/arctwo.c: Likewise.
58384         * lib/base64.c: Likewise.
58385         * lib/check-version.c: Likewise.
58386         * lib/crc.c: Likewise.
58387         * lib/des.c: Likewise.
58388         * lib/gc-gnulib.c: Likewise.
58389         * lib/gc-libgcrypt.c: Likewise.
58390         * lib/gc-pbkdf2-sha1.c: Likewise.
58391         * lib/getaddrinfo.c: Likewise.
58392         * lib/getdelim.c: Likewise.
58393         * lib/getline.c: Likewise.
58394         * lib/hmac-md5.c: Likewise.
58395         * lib/hmac-sha1.c: Likewise.
58396         * lib/iconvme.c: Likewise.
58397         * lib/md2.c: Likewise.
58398         * lib/md4.c: Likewise.
58399         * lib/memxor.c: Likewise.
58400         * lib/read-file.c: Likewise.
58401         * lib/readline.c: Likewise.
58402         * lib/rijndael-alg-fst.c: Likewise.
58403         * lib/rijndael-api-fst.c: Likewise.
58404         * lib/xgetdomainname.c: Likewise.
58405
58406 2006-10-28  Eric Blake  <ebb9@byu.net>
58407
58408         * lib/xstrndup.c: Assume config.h.
58409
58410 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58413         stat-macros.h is now for our own macros, whereas stat_h is for
58414         macros in the <sys/stat.h> name space.
58415         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58416         (STAT_MACROS_H): Remove.
58417         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58418         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58419         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58420         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58421         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58422         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58423         Move these macros to ...
58424         * lib/stat_.h: here.  Don't include stat-macros.h.
58425         * lib/canonicalize.c: Don't include stat-macros.h.
58426         * lib/chown.c: Likewise.
58427         * lib/euidaccess.c: Likewise.
58428         * lib/file-type.c: Likewise.
58429         * lib/filemode.c: Likewise.
58430         * lib/glob.c: Likewise.
58431         * lib/isapipe.c: Likewise.
58432         * lib/lchown.c: Likewise.
58433         * lib/lstat.c: Likewise.
58434         * lib/mkdir-p.c: Likewise.
58435         * lib/rmdir.c: Likewise.
58436         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58438         unless mkdir isn't declared, to speed up 'configure'.
58439         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58440         would define all the S_* symbols.
58441         * modules/canonicalize (Depends-on):
58442         Depend on sys_stat, not stat-macros.
58443         * modules/chown: Likewise.
58444         * modules/euidaccess: Likewise.
58445         * modules/filemode: Likewise.
58446         * modules/file-type: Likewise.
58447         * modules/glob: Likewise.
58448         * modules/isapipe: Likewise.
58449         * modules/lchown: Likewise.
58450         * modules/lstat: Likewise.
58451         * modules/mkancesdirs: Likewise.
58452         * modules/rmdir: Likewise.
58453         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58454         * modules/modechange: Likewise.
58455         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58456         (configure.ac): Remove gl_STAT_MACROS.
58457         * modules/sys_stat (Depends-on): Remove stat-macros.
58458
58459 2006-10-27  Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/signed.m4: Remove file.
58462         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58463         invocation.
58464         * modules/vasnprintf (Files): Remove m4/signed.m4.
58465
58466 2006-10-27  Bruno Haible  <bruno@clisp.org>
58467
58468         Update to GNU gettext 0.16.
58469         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58470         m4/inttypes-h.m4, m4/signed.m4.
58471         * m4/gettext.m4: Update to GNU gettext 0.16.
58472         * m4/intl.m4: New file, from GNU gettext.
58473         * m4/intldir.m4: New file, from GNU gettext.
58474         * config/srclist.txt: Update
58475
58476 2006-10-27  Eric Blake  <ebb9@byu.net>
58477
58478         * MODULES.html.sh: Document tempname.
58479         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58480         dependencies.
58481         (Files): Move lib/tempname.c...
58482         * modules/tempname: ...to this new module.
58483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58484         (gl_PREREQ_TEMPNAME): Move...
58485         * m4/tempname.m4: ...to this new file.
58486         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58487         * modules/sys_stat (Depends-on): Add stat-macros.
58488         * lib/stat_.h (includes): Pick up stat macros.
58489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58490         if stat macros are broken.
58491         * lib/tempname.c (includes): No need to include "stat-macros.h".
58492         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58493         (direxists, __path_search) [!_LIBC]: Don't compile these in
58494         gnulib; the tmpdir module covers that.
58495         * lib/tempname.h: New file.
58496
58497 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * COPYING: Explain how gnulib-tool converts licence headers.
58500         Almost all wording by Eric Blake.
58501
58502 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58503
58504         * lib/mbchar.h (is_basic_table): Make read-only.
58505         * lib/mbchar.c (is_basic_table): Likewise.
58506         Reported by John Darrington.
58507
58508 2006-10-25  Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/progname.h (set_program_name): Undefine before defining.
58511
58512 2006-10-25  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58515         false for non-gcc C++ compilers.
58516         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58517
58518 2006-10-24  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58521         iconv implementations like Irix iconv.
58522
58523 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * modules/vararrays: New file.
58526         * m4/vararrays.m4: New file, taken from diffutils.
58527         * MODULES.html.sh: New module vararrays.
58528
58529 2006-10-24  Karl Berry  <karl@gnu.org>
58530
58531         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58532         Don't call GNU Unix.
58533
58534 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58535
58536         * users.txt: Add Libtool.
58537
58538         Sync from Libtool:
58539
58540         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58543         to gnulib's policy of including config.h unconditionally.
58544
58545 2006-10-24  Bruno Haible  <bruno@clisp.org>
58546
58547         * modules/wcwidth (Files): Add m4/wint_t.m4.
58548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58549         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58550
58551 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58552
58553         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58554         to pacify GCC with some -W flags enabled.  Problem reported by
58555         Bruno Haible.
58556
58557 2006-10-24  Jim Meyering  <jim@meyering.net>
58558
58559         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58560         Reported by Karl Berry.
58561
58562 2006-10-23  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58565
58566 2006-10-24  Bruno Haible  <bruno@clisp.org>
58567
58568         * lib/gl_list.h: Use C comment style, not C++ comment style.
58569
58570 2006-10-23  Eric Blake  <ebb9@byu.net>
58571
58572         * lib/getaddrinfo.c (includes): Add missing include.
58573
58574 2006-10-23  Bruno Haible  <bruno@clisp.org>
58575             Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         Ability to rename obstack_free.
58578         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58579         obstack_free.
58580         (obstack_free): Invoke the __obstack_free macro.
58581         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58582
58583 2006-10-23  Bruno Haible  <bruno@clisp.org>
58584             Paul Eggert  <eggert@cs.ucla.edu>
58585
58586         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58587         __argc, __argv from the declaration. (They are defined as macros on
58588         mingw.)
58589
58590 2006-10-22  Bruno Haible  <bruno@clisp.org>
58591
58592         * doc/gnulib-intro.texi: New file.
58593         * doc/gnulib.texi: Include it.
58594
58595 2006-10-21  Bruno Haible  <bruno@clisp.org>
58596
58597         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58598         "Introduction", "Miscellanous Notes", "Particular Modules".
58599
58600 2006-10-21  Bruno Haible  <bruno@clisp.org>
58601
58602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58603         Change mostlyclean-local rule to avoid sh syntax error from bash
58604         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58605
58606 2006-10-23  Jim Meyering  <jim@meyering.net>
58607
58608         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58609         in place of snprintf.
58610
58611         * modules/inttostr (Files): Add lib/uinttostr.c.
58612         * lib/uinttostr.c (inttostr): New file/function.
58613         * lib/inttostr.h (uinttostr): Declare.
58614         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58615         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58616         Add uinttostr.
58617         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58618
58619 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         * lib/canonicalize.c (ELOOP): Define if not already defined.
58622         Problem reported by Bruno Haible in
58623         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58624
58625 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58628         Problem reported by Perry Smith and Ville Laurikari.
58629
58630         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58631         uses.
58632
58633 2006-10-19  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58636         for mingw.
58637
58638 2006-10-19  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58641         Needed for mingw.
58642
58643 2006-10-19  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58646
58647 2006-10-19  Bruno Haible  <bruno@clisp.org>
58648
58649         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58650         it.
58651
58652 2006-10-19  Bruno Haible  <bruno@clisp.org>
58653
58654         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58655         invocation.
58656
58657 2006-10-19  Bruno Haible  <bruno@clisp.org>
58658
58659         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58660         mountlist by default.
58661
58662 2006-10-16  Bruno Haible  <bruno@clisp.org>
58663
58664         * lib/c-strstr.c: Include c-strstr.h.
58665
58666 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58667
58668         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58669         in a slash.
58670
58671 2006-10-18  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/lock.h [C++]: Wrap definitions in extern "C".
58674
58675 2006-10-18  Bruno Haible  <bruno@clisp.org>
58676
58677         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58678         gl_LIBOBJS list.
58679
58680 2006-10-18  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58683
58684 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58685
58686         * lib/xstrtol.h: Include gettext.h.
58687         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58688         Problem reported by Eric Blake.
58689         * modules/xstrtol (Depends-on): Add gettext-h.
58690
58691 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58692
58693         * lib/strftime.c (advance): New macro.
58694         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58695         incomplete type, so you can't add 0 to it.  Problem and patch
58696         reported by Eelco Dolstra for dietlibc.
58697
58698 2006-10-18  Jim Meyering  <jim@meyering.net>
58699
58700         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58701         type for a local, and rename it: s/up/user_proc/.
58702
58703 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58704
58705         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58706         READ_UTMP_USER_PROCESS.
58707         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58708
58709 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58712         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58713
58714 2006-10-17  Eric Blake  <ebb9@byu.net>
58715
58716         * lib/sigprocmask.c (sigprocmask): Fix typo.
58717
58718         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58719
58720         * modules/clean-temp (Makefile.am): Don't add to make output...
58721         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58722         config.h.
58723
58724 2006-10-17  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58727         differently if DEFAULT_TEXT_DOMAIN is set.
58728
58729 2006-10-16  Bruno Haible  <bruno@clisp.org>
58730
58731         * lib/clean-temp.c: Include fwriteerror.h.
58732
58733 2006-10-16  Bruno Haible  <bruno@clisp.org>
58734
58735         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58736
58737 2006-10-16  Bruno Haible  <bruno@clisp.org>
58738
58739         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58740         * lib/sigprocmask.h: Include <sys/types.h>.
58741         (sigset_t): Use the system's definition if present.
58742
58743 2006-10-17  Eric Blake  <ebb9@byu.net>
58744
58745         * lib/xvasprintf.c (includes): Assume config.h.
58746         * lib/xasprintf.c (includes): Likewise.
58747
58748 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58751         at least as wide as intmax_t.
58752
58753 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58754
58755         (Imported from Automake.)
58756         * build-aux/gnupload: Update to version 1.1 of directive file.
58757
58758 2006-10-16  Eric Blake  <ebb9@byu.net>
58759
58760         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58761         match Automake 1.10a.
58762
58763 2006-10-14  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/sigprocmask: New file.
58766         * lib/sigprocmask.h: New file.
58767         * lib/sigprocmask.c: New file.
58768         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58769         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58770         request sigprocmask.o.
58771         (gl_PREREQ_SIGPROCMASK): New macro.
58772         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58773         (Depends-on): Add sigprocmask.
58774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58775         gt_SIGNALBLOCKING. Test for 'raise' only once.
58776         * lib/fatal-signal.c: Include sigprocmask.h.
58777         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58778         unblock_fatal_signals): Define always.
58779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58780         sigprocmask.
58781
58782 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         Sync from Automake.
58785         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58786         which incorrectly sets the mode of an existing destination
58787         directory.  In some cases the unpatched install-sh could do the
58788         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58789         system.  We hope this is rare in practice, but it's clearly worth
58790         fixing.  Problem reported by Alex Unleashed in
58791         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58792         Also, don't bother to check for -m bugs unless we're using -m;
58793         suggested by Stepan Kasal.
58794
58795 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58796
58797         Sync from Automake.
58798         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58799         `-c' flag, so they appear at the same position as in %FASTDEP%
58800         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58801         which ignores unknown options only after the first non-option.
58802         Bug report against M4 by Nelson H. F. Beebe.
58803
58804 2006-10-13  Jim Meyering  <jim@meyering.net>
58805
58806         Fix a bug in yesterday's change.
58807         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58808         p->fts_statp->st_dev would be used uninitialized.
58809         Ensures that we always call fts_stat on the very first entry.
58810         Miklos Szeredi reported that find -xdev stopped working.
58811
58812 2006-10-12  Bruno Haible  <bruno@clisp.org>
58813
58814         * gnulib-tool (func_get_automake_snippet): Append an automatically
58815         computed EXTRA_DIST augmentation.
58816         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58817         * modules/alloca-opt (Makefile.am): Likewise.
58818         * modules/allocsa (Makefile.am): Likewise.
58819         * modules/arcfour (Makefile.am): Likewise.
58820         * modules/arctwo (Makefile.am): Likewise.
58821         * modules/argmatch (Makefile.am): Likewise.
58822         * modules/argz (Makefile.am): Likewise.
58823         * modules/atexit (Makefile.am): Likewise.
58824         * modules/backupfile (Makefile.am): Likewise.
58825         * modules/byteswap (Makefile.am): Likewise.
58826         * modules/c-strtod (Makefile.am): Likewise.
58827         * modules/c-strtold (Makefile.am): Likewise.
58828         * modules/calloc (Makefile.am): Likewise.
58829         * modules/canon-host (Makefile.am): Likewise.
58830         * modules/canonicalize (Makefile.am): Likewise.
58831         * modules/chdir-long (Makefile.am): Likewise.
58832         * modules/chdir-safer (Makefile.am): Likewise.
58833         * modules/check-version (Makefile.am): Likewise.
58834         * modules/chown (Makefile.am): Likewise.
58835         * modules/cloexec (Makefile.am): Likewise.
58836         * modules/close-stream (Makefile.am): Likewise.
58837         * modules/closeout (Makefile.am): Likewise.
58838         * modules/crc (Makefile.am): Likewise.
58839         * modules/csharpexec (Makefile.am): Likewise.
58840         * modules/cycle-check (Makefile.am): Likewise.
58841         * modules/des (Makefile.am): Likewise.
58842         * modules/dev-ino (Makefile.am): Likewise.
58843         * modules/dirfd (Makefile.am): Likewise.
58844         * modules/dirname (Makefile.am): Likewise.
58845         * modules/dup2 (Makefile.am): Likewise.
58846         * modules/eealloc (Makefile.am): Likewise.
58847         * modules/error (Makefile.am): Likewise.
58848         * modules/euidaccess (Makefile.am): Likewise.
58849         * modules/exclude (Makefile.am): Likewise.
58850         * modules/exitfail (Makefile.am): Likewise.
58851         * modules/fcntl-safer (Makefile.am): Likewise.
58852         * modules/fcntl (Makefile.am): Likewise.
58853         * modules/file-type (Makefile.am): Likewise.
58854         * modules/fileblocks (Makefile.am): Likewise.
58855         * modules/filemode (Makefile.am): Likewise.
58856         * modules/filenamecat (Makefile.am): Likewise.
58857         * modules/fnmatch (Makefile.am): Likewise.
58858         * modules/fopen-safer (Makefile.am): Likewise.
58859         * modules/fpending (Makefile.am): Likewise.
58860         * modules/fprintftime (Makefile.am): Likewise.
58861         * modules/free (Makefile.am): Likewise.
58862         * modules/fsusage (Makefile.am): Likewise.
58863         * modules/ftruncate (Makefile.am): Likewise.
58864         * modules/fts (Makefile.am): Likewise.
58865         * modules/gc-arcfour (Makefile.am): Likewise.
58866         * modules/gc-des (Makefile.am): Likewise.
58867         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58868         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58869         * modules/gc-md4 (Makefile.am): Likewise.
58870         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58871         * modules/gc-sha1 (Makefile.am): Likewise.
58872         * modules/gc (Makefile.am): Likewise.
58873         * modules/getaddrinfo (Makefile.am): Likewise.
58874         * modules/getcwd (Makefile.am): Likewise.
58875         * modules/getdelim (Makefile.am): Likewise.
58876         * modules/getdomainname (Makefile.am): Likewise.
58877         * modules/getgroups (Makefile.am): Likewise.
58878         * modules/gethostname (Makefile.am): Likewise.
58879         * modules/gethrxtime (Makefile.am): Likewise.
58880         * modules/getline (Makefile.am): Likewise.
58881         * modules/getloadavg (Makefile.am): Likewise.
58882         * modules/getlogin_r (Makefile.am): Likewise.
58883         * modules/getndelim2 (Makefile.am): Likewise.
58884         * modules/getopt (Makefile.am): Likewise.
58885         * modules/getpagesize (Makefile.am): Likewise.
58886         * modules/getpass-gnu (Makefile.am): Likewise.
58887         * modules/getpass (Makefile.am): Likewise.
58888         * modules/getsubopt (Makefile.am): Likewise.
58889         * modules/gettime (Makefile.am): Likewise.
58890         * modules/gettimeofday (Makefile.am): Likewise.
58891         * modules/getugroups (Makefile.am): Likewise.
58892         * modules/getusershell (Makefile.am): Likewise.
58893         * modules/glob (Makefile.am): Likewise.
58894         * modules/group-member (Makefile.am): Likewise.
58895         * modules/hard-locale (Makefile.am): Likewise.
58896         * modules/hash (Makefile.am): Likewise.
58897         * modules/hmac-md5 (Makefile.am): Likewise.
58898         * modules/hmac-sha1 (Makefile.am): Likewise.
58899         * modules/human (Makefile.am): Likewise.
58900         * modules/idcache (Makefile.am): Likewise.
58901         * modules/imaxabs (Makefile.am): Likewise.
58902         * modules/imaxdiv (Makefile.am): Likewise.
58903         * modules/inet_ntop (Makefile.am): Likewise.
58904         * modules/inet_pton (Makefile.am): Likewise.
58905         * modules/intprops (Makefile.am): Likewise.
58906         * modules/inttostr (Makefile.am): Likewise.
58907         * modules/inttypes (Makefile.am): Likewise.
58908         * modules/isapipe (Makefile.am): Likewise.
58909         * modules/javaversion (Makefile.am): Likewise.
58910         * modules/lchmod (Makefile.am): Likewise.
58911         * modules/lchown (Makefile.am): Likewise.
58912         * modules/localcharset (Makefile.am): Likewise.
58913         * modules/long-options (Makefile.am): Likewise.
58914         * modules/lstat (Makefile.am): Likewise.
58915         * modules/malloc (Makefile.am): Likewise.
58916         * modules/mathl (Makefile.am): Likewise.
58917         * modules/mbchar (Makefile.am): Likewise.
58918         * modules/md2 (Makefile.am): Likewise.
58919         * modules/md4 (Makefile.am): Likewise.
58920         * modules/md5 (Makefile.am): Likewise.
58921         * modules/memcasecmp (Makefile.am): Likewise.
58922         * modules/memchr (Makefile.am): Likewise.
58923         * modules/memcmp (Makefile.am): Likewise.
58924         * modules/memcoll (Makefile.am): Likewise.
58925         * modules/memcpy (Makefile.am): Likewise.
58926         * modules/memmem (Makefile.am): Likewise.
58927         * modules/memmove (Makefile.am): Likewise.
58928         * modules/mempcpy (Makefile.am): Likewise.
58929         * modules/memrchr (Makefile.am): Likewise.
58930         * modules/memset (Makefile.am): Likewise.
58931         * modules/memxor (Makefile.am): Likewise.
58932         * modules/mkancesdirs (Makefile.am): Likewise.
58933         * modules/mkdir-p (Makefile.am): Likewise.
58934         * modules/mkdir (Makefile.am): Likewise.
58935         * modules/mkdtemp (Makefile.am): Likewise.
58936         * modules/mkstemp (Makefile.am): Likewise.
58937         * modules/mktime (Makefile.am): Likewise.
58938         * modules/modechange (Makefile.am): Likewise.
58939         * modules/mountlist (Makefile.am): Likewise.
58940         * modules/nanosleep (Makefile.am): Likewise.
58941         * modules/obstack (Makefile.am): Likewise.
58942         * modules/openat (Makefile.am): Likewise.
58943         * modules/pagealign_alloc (Makefile.am): Likewise.
58944         * modules/pathmax (Makefile.am): Likewise.
58945         * modules/physmem (Makefile.am): Likewise.
58946         * modules/poll (Makefile.am): Likewise.
58947         * modules/posixtm (Makefile.am): Likewise.
58948         * modules/posixver (Makefile.am): Likewise.
58949         * modules/putenv (Makefile.am): Likewise.
58950         * modules/quote (Makefile.am): Likewise.
58951         * modules/quotearg (Makefile.am): Likewise.
58952         * modules/raise (Makefile.am): Likewise.
58953         * modules/read-file (Makefile.am): Likewise.
58954         * modules/readline (Makefile.am): Likewise.
58955         * modules/readlink (Makefile.am): Likewise.
58956         * modules/readtokens (Makefile.am): Likewise.
58957         * modules/readutmp (Makefile.am): Likewise.
58958         * modules/realloc (Makefile.am): Likewise.
58959         * modules/regex (Makefile.am): Likewise.
58960         * modules/rename-dest-slash (Makefile.am): Likewise.
58961         * modules/rename (Makefile.am): Likewise.
58962         * modules/rijndael (Makefile.am): Likewise.
58963         * modules/rmdir (Makefile.am): Likewise.
58964         * modules/rpmatch (Makefile.am): Likewise.
58965         * modules/safe-read (Makefile.am): Likewise.
58966         * modules/safe-write (Makefile.am): Likewise.
58967         * modules/same-inode (Makefile.am): Likewise.
58968         * modules/same (Makefile.am): Likewise.
58969         * modules/save-cwd (Makefile.am): Likewise.
58970         * modules/savedir (Makefile.am): Likewise.
58971         * modules/setenv (Makefile.am): Likewise.
58972         * modules/settime (Makefile.am): Likewise.
58973         * modules/sha1 (Makefile.am): Likewise.
58974         * modules/sig2str (Makefile.am): Likewise.
58975         * modules/snprintf (Makefile.am): Likewise.
58976         * modules/stat-macros (Makefile.am): Likewise.
58977         * modules/stat-time (Makefile.am): Likewise.
58978         * modules/stdbool (Makefile.am): Likewise.
58979         * modules/stdint (Makefile.am): Likewise.
58980         * modules/stdlib-safer (Makefile.am): Likewise.
58981         * modules/stpcpy (Makefile.am): Likewise.
58982         * modules/stpncpy (Makefile.am): Likewise.
58983         * modules/strcase (Makefile.am): Likewise.
58984         * modules/strcasestr (Makefile.am): Likewise.
58985         * modules/strchrnul (Makefile.am): Likewise.
58986         * modules/strcspn (Makefile.am): Likewise.
58987         * modules/strdup (Makefile.am): Likewise.
58988         * modules/strerror (Makefile.am): Likewise.
58989         * modules/strftime (Makefile.am): Likewise.
58990         * modules/strndup (Makefile.am): Likewise.
58991         * modules/strnlen (Makefile.am): Likewise.
58992         * modules/strpbrk (Makefile.am): Likewise.
58993         * modules/strsep (Makefile.am): Likewise.
58994         * modules/strstr (Makefile.am): Likewise.
58995         * modules/strtod (Makefile.am): Likewise.
58996         * modules/strtoimax (Makefile.am): Likewise.
58997         * modules/strtok_r (Makefile.am): Likewise.
58998         * modules/strtol (Makefile.am): Likewise.
58999         * modules/strtoll (Makefile.am): Likewise.
59000         * modules/strtoul (Makefile.am): Likewise.
59001         * modules/strtoull (Makefile.am): Likewise.
59002         * modules/strtoumax (Makefile.am): Likewise.
59003         * modules/strverscmp (Makefile.am): Likewise.
59004         * modules/sys_socket (Makefile.am): Likewise.
59005         * modules/sys_stat (Makefile.am): Likewise.
59006         * modules/sysexits (Makefile.am): Likewise.
59007         * modules/time_r (Makefile.am): Likewise.
59008         * modules/timegm (Makefile.am): Likewise.
59009         * modules/timespec (Makefile.am): Likewise.
59010         * modules/tmpfile-safer (Makefile.am): Likewise.
59011         * modules/trim (Makefile.am): Likewise.
59012         * modules/unistd-safer (Makefile.am): Likewise.
59013         * modules/unlinkdir (Makefile.am): Likewise.
59014         * modules/unlocked-io (Makefile.am): Likewise.
59015         * modules/userspec (Makefile.am): Likewise.
59016         * modules/utime (Makefile.am): Likewise.
59017         * modules/utimecmp (Makefile.am): Likewise.
59018         * modules/utimens (Makefile.am): Likewise.
59019         * modules/vasnprintf (Makefile.am): Likewise.
59020         * modules/vasprintf (Makefile.am): Likewise.
59021         * modules/vsnprintf (Makefile.am): Likewise.
59022         * modules/xalloc (Makefile.am): Likewise.
59023         * modules/xgetcwd (Makefile.am): Likewise.
59024         * modules/xnanosleep (Makefile.am): Likewise.
59025         * modules/xreadlink (Makefile.am): Likewise.
59026         * modules/xstrtod (Makefile.am): Likewise.
59027         * modules/xstrtol (Makefile.am): Likewise.
59028         * modules/xstrtold (Makefile.am): Likewise.
59029         * modules/yesno (Makefile.am): Likewise.
59030         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59031
59032 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * modules/error (Makefile.am): Distribute files through
59035         EXTRA_DIST, not lib_SOURCES.
59036
59037 2006-10-12  Eric Blake  <ebb9@byu.net>
59038
59039         * modules/error (Makefile.am): Distribute files in /lib.
59040         * modules/obstack (Makefile.am): Likewise.
59041
59042 2006-10-12  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/acl (Makefile.am): Distribute all files in lib/ through
59045         EXTRA_DIST.
59046         * modules/arcfour (Makefile.am): Likewise.
59047         * modules/arctwo (Makefile.am): Likewise.
59048         * modules/argmatch (Makefile.am): Likewise.
59049         * modules/argz (Makefile.am): Likewise.
59050         * modules/atexit (Makefile.am): Likewise.
59051         * modules/backupfile (Makefile.am): Likewise.
59052         * modules/c-strtod (Makefile.am): Likewise.
59053         * modules/c-strtold (Makefile.am): Likewise.
59054         * modules/calloc (Makefile.am): Likewise.
59055         * modules/canon-host (Makefile.am): Likewise.
59056         * modules/canonicalize (Makefile.am): Likewise.
59057         * modules/chdir-long (Makefile.am): Likewise.
59058         * modules/chdir-safer (Makefile.am): Likewise.
59059         * modules/check-version (Makefile.am): Likewise.
59060         * modules/chown (Makefile.am): Likewise.
59061         * modules/cloexec (Makefile.am): Likewise.
59062         * modules/close-stream (Makefile.am): Likewise.
59063         * modules/closeout (Makefile.am): Likewise.
59064         * modules/crc (Makefile.am): Likewise.
59065         * modules/cycle-check (Makefile.am): Likewise.
59066         * modules/des (Makefile.am): Likewise.
59067         * modules/dirfd (Makefile.am): Likewise.
59068         * modules/dirname (Makefile.am): Likewise.
59069         * modules/dup2 (Makefile.am): Likewise.
59070         * modules/euidaccess (Makefile.am): Likewise.
59071         * modules/exclude (Makefile.am): Likewise.
59072         * modules/exitfail (Makefile.am): Likewise.
59073         * modules/fcntl-safer (Makefile.am): Likewise.
59074         * modules/file-type (Makefile.am): Likewise.
59075         * modules/fileblocks (Makefile.am): Likewise.
59076         * modules/filemode (Makefile.am): Likewise.
59077         * modules/filenamecat (Makefile.am): Likewise.
59078         * modules/fnmatch (Makefile.am): Likewise.
59079         * modules/fopen-safer (Makefile.am): Likewise.
59080         * modules/fpending (Makefile.am): Likewise.
59081         * modules/fprintftime (Makefile.am): Likewise.
59082         * modules/free (Makefile.am): Likewise.
59083         * modules/fsusage (Makefile.am): Likewise.
59084         * modules/ftruncate (Makefile.am): Likewise.
59085         * modules/fts (Makefile.am): Likewise.
59086         * modules/gc (Makefile.am): Likewise.
59087         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59088         * modules/getaddrinfo (Makefile.am): Likewise.
59089         * modules/getcwd (Makefile.am): Likewise.
59090         * modules/getdelim (Makefile.am): Likewise.
59091         * modules/getdomainname (Makefile.am): Likewise.
59092         * modules/getgroups (Makefile.am): Likewise.
59093         * modules/gethostname (Makefile.am): Likewise.
59094         * modules/gethrxtime (Makefile.am): Likewise.
59095         * modules/getline (Makefile.am): Likewise.
59096         * modules/getloadavg (Makefile.am): Likewise.
59097         * modules/getlogin_r (Makefile.am): Likewise.
59098         * modules/getopt (Makefile.am): Likewise.
59099         * modules/getpass (Makefile.am): Likewise.
59100         * modules/getpass-gnu (Makefile.am): Likewise.
59101         * modules/getsubopt (Makefile.am): Likewise.
59102         * modules/gettime (Makefile.am): Likewise.
59103         * modules/gettimeofday (Makefile.am): Likewise.
59104         * modules/getugroups (Makefile.am): Likewise.
59105         * modules/getusershell (Makefile.am): Likewise.
59106         * modules/glob (Makefile.am): Likewise.
59107         * modules/group-member (Makefile.am): Likewise.
59108         * modules/hard-locale (Makefile.am): Likewise.
59109         * modules/hash (Makefile.am): Likewise.
59110         * modules/hmac-md5 (Makefile.am): Likewise.
59111         * modules/hmac-sha1 (Makefile.am): Likewise.
59112         * modules/human (Makefile.am): Likewise.
59113         * modules/idcache (Makefile.am): Likewise.
59114         * modules/imaxabs (Makefile.am): Likewise.
59115         * modules/imaxdiv (Makefile.am): Likewise.
59116         * modules/inet_ntop (Makefile.am): Likewise.
59117         * modules/inet_pton (Makefile.am): Likewise.
59118         * modules/inttostr (Makefile.am): Likewise.
59119         * modules/isapipe (Makefile.am): Likewise.
59120         * modules/lchown (Makefile.am): Likewise.
59121         * modules/long-options (Makefile.am): Likewise.
59122         * modules/lstat (Makefile.am): Likewise.
59123         * modules/malloc (Makefile.am): Likewise.
59124         * modules/mathl (Makefile.am): Likewise.
59125         * modules/mbchar (Makefile.am): Likewise.
59126         * modules/md2 (Makefile.am): Likewise.
59127         * modules/md4 (Makefile.am): Likewise.
59128         * modules/md5 (Makefile.am): Likewise.
59129         * modules/memcasecmp (Makefile.am): Likewise.
59130         * modules/memchr (Makefile.am): Likewise.
59131         * modules/memcmp (Makefile.am): Likewise.
59132         * modules/memcoll (Makefile.am): Likewise.
59133         * modules/memcpy (Makefile.am): Likewise.
59134         * modules/memmem (Makefile.am): Likewise.
59135         * modules/memmove (Makefile.am): Likewise.
59136         * modules/mempcpy (Makefile.am): Likewise.
59137         * modules/memrchr (Makefile.am): Likewise.
59138         * modules/memset (Makefile.am): Likewise.
59139         * modules/memxor (Makefile.am): Likewise.
59140         * modules/mkancesdirs (Makefile.am): Likewise.
59141         * modules/mkdir (Makefile.am): Likewise.
59142         * modules/mkdir-p (Makefile.am): Likewise.
59143         * modules/mkdtemp (Makefile.am): Likewise.
59144         * modules/mkstemp (Makefile.am): Likewise.
59145         * modules/mktime (Makefile.am): Likewise.
59146         * modules/modechange (Makefile.am): Likewise.
59147         * modules/mountlist (Makefile.am): Likewise.
59148         * modules/nanosleep (Makefile.am): Likewise.
59149         * modules/openat (Makefile.am): Likewise.
59150         * modules/pagealign_alloc (Makefile.am): Likewise.
59151         * modules/physmem (Makefile.am): Likewise.
59152         * modules/poll (Makefile.am): Likewise.
59153         * modules/posixtm (Makefile.am): Likewise.
59154         * modules/posixver (Makefile.am): Likewise.
59155         * modules/putenv (Makefile.am): Likewise.
59156         * modules/quote (Makefile.am): Likewise.
59157         * modules/quotearg (Makefile.am): Likewise.
59158         * modules/raise (Makefile.am): Likewise.
59159         * modules/read-file (Makefile.am): Likewise.
59160         * modules/readline (Makefile.am): Likewise.
59161         * modules/readlink (Makefile.am): Likewise.
59162         * modules/readtokens (Makefile.am): Likewise.
59163         * modules/readutmp (Makefile.am): Likewise.
59164         * modules/realloc (Makefile.am): Likewise.
59165         * modules/regex (Makefile.am): Likewise.
59166         * modules/rename (Makefile.am): Likewise.
59167         * modules/rename-dest-slash (Makefile.am): Likewise.
59168         * modules/rijndael (Makefile.am): Likewise.
59169         * modules/rmdir (Makefile.am): Likewise.
59170         * modules/rpmatch (Makefile.am): Likewise.
59171         * modules/safe-read (Makefile.am): Likewise.
59172         * modules/safe-write (Makefile.am): Likewise.
59173         * modules/same (Makefile.am): Likewise.
59174         * modules/save-cwd (Makefile.am): Likewise.
59175         * modules/savedir (Makefile.am): Likewise.
59176         * modules/setenv (Makefile.am): Likewise.
59177         * modules/settime (Makefile.am): Likewise.
59178         * modules/sha1 (Makefile.am): Likewise.
59179         * modules/sig2str (Makefile.am): Likewise.
59180         * modules/snprintf (Makefile.am): Likewise.
59181         * modules/stdlib-safer (Makefile.am): Likewise.
59182         * modules/stpcpy (Makefile.am): Likewise.
59183         * modules/stpncpy (Makefile.am): Likewise.
59184         * modules/strcase (Makefile.am): Likewise.
59185         * modules/strcasestr (Makefile.am): Likewise.
59186         * modules/strchrnul (Makefile.am): Likewise.
59187         * modules/strcspn (Makefile.am): Likewise.
59188         * modules/strdup (Makefile.am): Likewise.
59189         * modules/strerror (Makefile.am): Likewise.
59190         * modules/strftime (Makefile.am): Likewise.
59191         * modules/strndup (Makefile.am): Likewise.
59192         * modules/strnlen (Makefile.am): Likewise.
59193         * modules/strpbrk (Makefile.am): Likewise.
59194         * modules/strsep (Makefile.am): Likewise.
59195         * modules/strstr (Makefile.am): Likewise.
59196         * modules/strtod (Makefile.am): Likewise.
59197         * modules/strtoimax (Makefile.am): Likewise.
59198         * modules/strtok_r (Makefile.am): Likewise.
59199         * modules/strtol (Makefile.am): Likewise.
59200         * modules/strtoll (Makefile.am): Likewise.
59201         * modules/strtoul (Makefile.am): Likewise.
59202         * modules/strtoull (Makefile.am): Likewise.
59203         * modules/strtoumax (Makefile.am): Likewise.
59204         * modules/strverscmp (Makefile.am): Likewise.
59205         * modules/time_r (Makefile.am): Likewise.
59206         * modules/timegm (Makefile.am): Likewise.
59207         * modules/tmpfile-safer (Makefile.am): Likewise.
59208         * modules/unistd-safer (Makefile.am): Likewise.
59209         * modules/unlinkdir (Makefile.am): Likewise.
59210         * modules/userspec (Makefile.am): Likewise.
59211         * modules/utime (Makefile.am): Likewise.
59212         * modules/utimecmp (Makefile.am): Likewise.
59213         * modules/utimens (Makefile.am): Likewise.
59214         * modules/vasnprintf (Makefile.am): Likewise.
59215         * modules/vasprintf (Makefile.am): Likewise.
59216         * modules/vsnprintf (Makefile.am): Likewise.
59217         * modules/xalloc (Makefile.am): Likewise.
59218         * modules/xgetcwd (Makefile.am): Likewise.
59219         * modules/xnanosleep (Makefile.am): Likewise.
59220         * modules/xreadlink (Makefile.am): Likewise.
59221         * modules/xstrtod (Makefile.am): Likewise.
59222         * modules/xstrtol (Makefile.am): Likewise.
59223         * modules/xstrtold (Makefile.am): Likewise.
59224         * modules/yesno (Makefile.am): Likewise.
59225
59226 2006-10-12  Jim Meyering  <jim@meyering.net>
59227
59228         * m4/getloadavg.m4: Revert the change below.
59229
59230         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59231         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59232         fail with a symlink, which is what coreutils' ./bootstrap now
59233         creates by default.
59234
59235 2006-10-12  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59238         mingw.
59239         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59240         MSVC and mingw explicitly.
59241
59242 2006-10-11  Simon Josefsson  <jas@extundo.com>
59243             Bruno Haible  <bruno@clisp.org>
59244
59245         Add support for multiple gnulib-tool invocations in the scope of a
59246         single configure.ac file.
59247         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59248         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59249         with the same contents as the _LIBADD variable.
59250         (func_emit_initmacro_start, func_emit_initmacro_end,
59251         func_emit_initmacro_done): New functions.
59252         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59253         gl_LIBOBJS and gl_LTLIBOBJS.
59254
59255 2006-10-11  Bruno Haible  <bruno@clisp.org>
59256
59257         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59258         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59259         autoreconf. Instead, invoke autopoint explicitly but move back the
59260         *.m4 files from gnulib.
59261
59262 2006-10-11  Bruno Haible  <bruno@clisp.org>
59263
59264         * gnulib-tool (func_usage): Make module names after --create-testdir
59265         optional.
59266         (func_create_testdir): If no module was specified, use nearly all
59267         modules.
59268
59269 2006-10-12  Jim Meyering  <jim@meyering.net>
59270
59271         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59272         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59273         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59274         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59275         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59276         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59277         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59278         (fts_set_stat_required): New function.
59279         (fts_open): Defer the calls to fts_stat, if possible or requested.
59280         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59281         into fts_stat itself.
59282         (fts_read): Perform any required (deferred) fts_stat call.
59283         (fts_build): Likewise, for the directory we're about to open and read.
59284         In the readdir loop, carefully decide whether each entry will require
59285         an eventual call to fts_stat, using dirent.d_type info if available.
59286         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59287         a command line argument into this function.  Update all callers.
59288         Map a return value of FTS_DOT to FTS_D for a command line argument.
59289         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59290         Thanks to Miklos Szeredi for his tenacity and for the initial
59291         bug report about "find" failing on a FUSE-based file system.
59292
59293         * lib/fts.c (fts_open): Use consistent indentation.
59294
59295 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59298         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59299         reported by Jim Meyering.  All uses of cache variables renamed
59300         to match Autoconf's.
59301         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59302         the other one.
59303
59304         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59305         Fix misspelling in diagnostic.
59306
59307 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59308
59309         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59310         defined.  Problem reported by Matthew Woehlke.
59311
59312         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59313         Add support for Tandem NonStop R series.
59314         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59315         Use new macro.
59316
59317         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59318         (has_trailing_slash): Omit size arg; all callers changed.
59319         Omit 'inline', since it doesn't help performance and we'd
59320         need to configure it.
59321         Don't count //, ///, etc. as having a trailing slash.
59322         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59323         (rpl_rename_dest_slash): On failure, use rename's errno rather
59324         than (in some cases) an incorrect or junk errno.
59325         Simplify code by removing need to compute length; this does
59326         cause it to make two passes instead of one over the file name,
59327         but it's worth it.
59328
59329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59330         change, since Autoconf's version may no longer be appropriate now
59331         that we are using CVS Autoconf's version.  Add support for Tandem.
59332
59333 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59334             Bruno Haible  <bruno@clisp.org>
59335
59336         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59337         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59338         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59339         gl_AC_TYPE_LONG_LONG.
59340
59341         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59342         instead of HAVE_LONG_LONG.
59343         * lib/printf-args.c (printf_fetchargs): Likewise.
59344         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59345         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59346         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59347         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59348         gl_AC_TYPE_LONG_LONG.
59349
59350 2006-10-11  Bruno Haible  <bruno@clisp.org>
59351
59352         * m4/longlong.m4: Add comments.
59353         * m4/ulonglong.m4: Likewise.
59354
59355 2006-10-10  Bruno Haible  <bruno@clisp.org>
59356
59357         Make it possible to #define stpcpy, strdup to aliases.
59358         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59359         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59360
59361 2006-10-10  Bruno Haible  <bruno@clisp.org>
59362
59363         Make it possible to #define gcd to an alias.
59364         * lib/gcd.c: Include config.h.
59365
59366 2006-10-10  Bruno Haible  <bruno@clisp.org>
59367
59368         Make it possible to #define c_isascii to an alias.
59369         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59370         defined. Undefine the macros before defining them, to avoid gcc
59371         warnings.
59372         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59373         define NO_C_CTYPE_MACROS early.
59374
59375 2006-10-10  Bruno Haible  <bruno@clisp.org>
59376
59377         Make it possible to #define set_program_name to an alias.
59378         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59379         ENABLE_RELOCATABLE early.
59380
59381 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59382
59383         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59384         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59385         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59386         More generally, don't assume that 64-bit signed int is available
59387         if unsigned int is, and vice versa.
59388         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59389         unsigned symbols, not on their signed counterparts.
59390         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59391         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59392         (UINT64_C, UINTMAX_C):
59393         Likewise.
59394         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59395         unsigned counterparts.
59396         (Have_long_long, Unsigned): New macros.
59397         (Int): Renamed from INT.
59398         (strtoimax): Use the new macros.
59399         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59400         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59401         * modules/inttypes (inttypes.h): Substitute
59402         HAVE_UNSIGNED_LONG_LONG_INT.
59403         * modules/stdint (stdint.h): Likewise.
59404         (Files): Add m4/ulonglong.m4.
59405
59406 2006-10-10  Bruno Haible  <bruno@clisp.org>
59407
59408         Fix a gcc -Wshadow warning.
59409         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59410         to 'bucket'.
59411         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59412         gl_linked_indexof_from_to): Likewise.
59413         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59414         Likewise.
59415         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59416         Likewise.
59417         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59418         Reported by Eric Blake.
59419
59420 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59421
59422         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59423         for NetBSD.  Problem reported by Bruno Haible.
59424
59425 2006-10-09  Jim Meyering  <jim@meyering.net>
59426
59427         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59428         Patch from Bruno Haible.
59429
59430 2006-10-09  Jim Meyering  <jim@meyering.net>
59431
59432         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59433         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59434         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59435
59436 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59437
59438         Don't include <config.h> twice; this doesn't work in some cases,
59439         e.g., when config.h has "#define intmax_t long long int" and
59440         we include <config.h>, <inttypes.h>, <config.h> in that order.
59441         Problem reported by Matthew Woehlke in:
59442         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59443         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59444         * lib/fts-cycle.c: Don't include config.h.
59445         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59446         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59447         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59448         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59449         inttypes.h.
59450         * lib/xstrtoumax.c: Likewise.
59451         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59452         __strtol and the like, so that this module is more like its siblings.
59453         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59454         Remove; no longer needed now that we assume gnulib inttypes.h.
59455
59456 2006-10-08  Bruno Haible  <bruno@clisp.org>
59457
59458         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59459         option.
59460
59461 2006-10-07  Jim Meyering  <jim@meyering.net>
59462
59463         * modules/inttypes (inttypes.h): Revert what seems to have been
59464         an inadvertent part of today's change: use "|", not "/" in the
59465         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59466
59467 2006-10-07  Bruno Haible  <bruno@clisp.org>
59468
59469         * modules/sublist: New file.
59470
59471 2006-10-07  Bruno Haible  <bruno@clisp.org>
59472
59473         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59474         * modules/argz (argz.h): Likewise.
59475         * modules/arpa_inet (arpa/inet.h): Likewise.
59476         * modules/byteswap (byteswap.h): Likewise.
59477         * modules/configmake (configmake.h): Likewise.
59478         * modules/fcntl (fcntl.h): Likewise.
59479         * modules/fnmatch (fnmatch.h): Likewise.
59480         * modules/getopt (getopt.h): Likewise.
59481         * modules/glob (glob.h): Likewise.
59482         * modules/inttypes (inttypes.h): Likewise.
59483         * modules/netinet_in (netinet/in.h): Likewise.
59484         * modules/poll (poll.h): Likewise.
59485         * modules/stdbool (stdbool.h): Likewise.
59486         * modules/stdint (stdint.h): Likewise.
59487         * modules/sys_select (sys/select.h): Likewise.
59488         * modules/sys_socket (sys/socket.h): Likewise.
59489         * modules/sys_stat (sys/stat.h): Likewise.
59490         * modules/sysexits (sysexits.h): Likewise.
59491         * modules/unistd (unistd.h): Likewise.
59492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59493         Add a "DO NOT EDIT" comment to the generated file.
59494         (func_import): Likewise for gnulib-comp.m4.
59495
59496 2006-10-07  Bruno Haible  <bruno@clisp.org>
59497
59498         * lib/gl_sublist.h: New file.
59499         * lib/gl_sublist.c: New file.
59500
59501 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59504         name (relative to the original working directory) and the file
59505         name component (relative to the temporary working directory).  All
59506         callers changed.
59507         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59508         * lib/mkdir-p.c (make_dir_parents): Likewise.
59509         * lib/mkdir-p.h (make_dir_parents): Likewise.
59510
59511 2006-10-06  Eric Blake  <ebb9@byu.net>
59512
59513         Define several macros for use by the clean-temp module.
59514         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59515         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59516         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59517
59518         * lib/clean-temp.h (close_stream_temp): New declaration.
59519         * lib/clean-temp.c (includes): Pull in headers according to what
59520         other modules are in use.
59521         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59522
59523 2006-10-06  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59526         instead of fopen, fwriteerror.
59527
59528 2006-10-06  Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59531         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59532         int.
59533         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59534         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59535         Return an error indicator.
59536         Suggested by Eric Blake.
59537
59538 2006-10-06  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59541         Reported by Eric Blake.
59542
59543 2006-10-06  Bruno Haible  <bruno@clisp.org>
59544
59545         * modules/closeout (Description): Mention stderr too.
59546
59547 2006-10-06  Bruno Haible  <bruno@clisp.org>
59548         and Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * lib/closeout.c (close_stdout): Also close stderr.
59551         * lib/closeout.h: Update comment.
59552
59553 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59556         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59557         * lib/dirchownmod.c: Include lchown.h.
59558         * lib/lchown.c: Don't include files that lchown.h now includes.
59559         Don't declare chown, since lchown.h now does that.
59560         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59561         (lchown): Define to rpl_chown if lchown is declared but
59562         does not exist.  Declare using a prototype if lchown is not
59563         declared.  Add a copyright notice.
59564         * lib/mkstemp.h: Include <unistd.h>.
59565         * lib/openat.c: Include lchown.h.
59566
59567         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59568         we now test for that separately.
59569         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59570         rather than O_NOFOLLOW, when testing whether it's possible to
59571         avoid a race condition reliably.
59572         * lib/savewd.c (savewd_chdir): Likewise.
59573
59574         Remove macros that are no longer needed now that stdint.h is
59575         reliable.
59576         * lib/fsusage.c (UINTMAX_MAX): Remove.
59577         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59578         * lib/utimecmp.c (SIZE_MAX): Remove.
59579
59580         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59581
59582         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59583         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59584         O_NOATIME works.
59585
59586 2006-10-05  Bruno Haible  <bruno@clisp.org>
59587
59588         * lib/gl_list.h (gl_sortedlist_search_from_to,
59589         gl_sortedlist_indexof_from_to): New declarations.
59590         (gl_list_implementation): New fields sortedlist_search_from_to,
59591         sortedlist_indexof_from_to.
59592         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59593         inline functions.
59594         * lib/gl_list.c (gl_sortedlist_search_from_to,
59595         gl_sortedlist_indexof_from_to): New functions.
59596         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59597         function.
59598         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59599         (gl_array_sortedlist_search_from_to): New function.
59600         (gl_array_list_implementation): Update.
59601         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59602         function.
59603         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59604         (gl_carray_sortedlist_search_from_to): New function.
59605         (gl_carray_list_implementation): Update.
59606         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59607         gl_linked_sortedlist_indexof_from_to): New functions.
59608         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59610         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59611         gl_tree_sortedlist_indexof_from_to): New functions.
59612         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59613         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59614         Update.
59615         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59616         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59617         Update.
59618
59619 2006-10-05  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59622         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59623         (struct gl_list_implementation): Add fields search_from_to,
59624         indexof_from_to. Remove fields search, indexof.
59625         (gl_list_search): Use the search_from_to method.
59626         (gl_list_search_from, gl_list_search_from_to): New functions.
59627         (gl_list_indexof): Use the indexof_from_to method.
59628         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59629         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59630         (gl_list_search_from, gl_list_search_from_to): New functions.
59631         (gl_list_indexof): Use the indexof_from_to method.
59632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59633         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59634         gl_array_indexof. Add start_index, end_index arguments.
59635         (gl_array_search_from_to): Renamed from gl_array_search. Add
59636         start_index, end_index arguments.
59637         (gl_array_remove, gl_array_list_implementation): Update.
59638         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59639         gl_carray_indexof. Add start_index, end_index arguments.
59640         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59641         start_index, end_index arguments.
59642         (gl_carray_remove, gl_carray_list_implementation): Update.
59643         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59644         gl_linked_search. Add start_index, end_index arguments.
59645         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59646         start_index, end_index arguments.
59647         (gl_linked_remove): Update.
59648         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59649         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59650         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59651         field to 'size_t'.
59652         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59653         gl_tree_search. Add start_index, end_index arguments.
59654         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59655         start_index, end_index arguments.
59656         (gl_tree_remove): Update.
59657         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59658         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59659         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59660         function.
59661         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59662         gl_tree_search. Add start_index, end_index arguments.
59663         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59664         start_index, end_index arguments.
59665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59666         Update.
59667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59668
59669 2006-10-05  Bruno Haible  <bruno@clisp.org>
59670
59671         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59672
59673         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59674         fwriteerror_temp): New declarations.
59675         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59676         (descriptors): New variable.
59677         (cleanup): First, close the descriptors.
59678         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59679         fclose_temp, fwriteerror_temp): New functions.
59680
59681 2006-10-04  Jim Meyering  <jim@meyering.net>
59682
59683         * lib/fts.c (fts_open): Tiny comment change.
59684
59685 2006-10-04  Bruno Haible  <bruno@clisp.org>
59686
59687         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59688         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59689         gl_LOCK_BODY.
59690         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59691         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59692         gl_LOCK_EARLY_BODY.
59693         (gl_LOCK): Require gl_LOCK_BODY.
59694
59695 2006-10-04  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59698         (gl_oset_search_atleast): New declaration.
59699         (struct gl_oset_implementation): Add field 'search_atleast'.
59700         (gl_oset_search_atleast): New inline function.
59701         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59702         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59703         (gl_array_oset_implementation): Update.
59704         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59705         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59706         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59707
59708 2006-10-04  Bruno Haible  <bruno@clisp.org>
59709
59710         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59711
59712 2006-10-03  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59715         from gl_avltreehash_list_implementation.
59716
59717 2006-10-03  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/gl_oset.c (gl_oset_add): Fix return type.
59720
59721 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59722
59723         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59724
59725 2006-10-02  Eric Blake  <ebb9@byu.net>
59726
59727         * modules/strnlen (Depends-on): Add extensions.
59728
59729 2006-10-02  Eric Blake  <ebb9@byu.net>
59730
59731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59732         definition in 2.60+.
59733
59734 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59735
59736         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59737         checks.
59738
59739 2006-10-02  Bruno Haible  <bruno@clisp.org>
59740
59741         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59742         to the AUTOMAKE_OPTIONS.
59743         Reported by Jim Meyering.
59744
59745 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59746
59747         Work around bug in Solaris 10 /proc file system:
59748         /proc/self/fd/NNN/.. isn't the parent directory of
59749         the directory whose file descriptor is NNN.  This needs to
59750         be worked around at run time, not compile time, since a
59751         program might be built on Solaris 8, where things work, and
59752         run on Solaris 10.
59753         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59754         to use the following interface instead:
59755         (OPENAT_BUFFER_SIZE): New macro.
59756         (openat_proc_name): New function.
59757         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59758         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59759         Likewise.
59760         * lib/openat-proc.c: New file.
59761         * modules/openat (Files): Add lib/openat-proc.c.
59762         (Depends-on): Add same-inode, stdbool.
59763         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59764
59765 2006-09-29  Bruno Haible  <bruno@clisp.org>
59766
59767         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59768         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59769         argument. Set stdout_closed before testing for ferror, not after.
59770         (fwriteerror, fwriteerror_no_ebadf): New functions.
59771
59772 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59773
59774         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59775
59776 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59777
59778         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59779         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59780
59781 2006-09-28  Jim Meyering  <jim@meyering.net>
59782
59783         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59784         Include <unistd.h>.
59785
59786 2006-09-28  Bruno Haible  <bruno@clisp.org>
59787
59788         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59789         * modules/linkedhash-list (Depends-on): Likewise.
59790         * modules/rbtreehash-list (Depends-on): Likewise.
59791
59792 2006-09-28  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/strndup.h: Simplify the redefinition of strndup.
59795         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59797
59798 2006-09-28  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59801         * lib/gl_linkedhash_list.c: Likewise.
59802         * lib/gl_rbtreehash_list.c: Likewise.
59803
59804 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59807         getaddrinfo.
59808
59809         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59810         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59811         it causes <stdio_ext.h> to cause a compile-time error.
59812         Problem reported by Nelson H. F. Beebe.
59813         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59814         of HAVE_DECL___PENDING.
59815
59816         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59818         declaration.
59819
59820 2006-09-27  Jim Meyering  <jim@meyering.net>
59821
59822         This file could end up with a definition for a function
59823         named __strndup, rather than rpl_strndup on a system with
59824         incomplete weak_alias support.
59825         * lib/strndup.c (strndup): Rename from __strndup.
59826         Remove #defines that used to map __strndup to strndup.
59827         Don't use K&R prototypes.
59828         Remove LIBC-related code, since this file is not sync'd with glibc.
59829         * lib/strndup.h: Revamp, accordingly.
59830         * m4/strndup.m4: Modernize.
59831
59832 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59833
59834         * modules/savewd (Depends-on): Add 'raise'.
59835         * lib/savewd.c: Include <signal.h>, for 'raise'.
59836
59837 2006-09-26  Jim Meyering  <jim@meyering.net>
59838
59839         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59840         when we detect Darwin 8.7.0's acl_get_file bug.
59841         Rearrange to perform the new (below) run-test while $LIBS
59842         contains any acl-related library.  Set USE_ACL at the end.
59843         (gl_ACL_GET_FILE): New function.
59844
59845 2006-09-26  Eric Blake  <ebb9@byu.net>
59846
59847         * lib/verror.c: Include <config.h> unconditionally.
59848
59849 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59850
59851         * modules/clock-time (Maintainer): Add self.
59852         * modules/getlogin_r (Depends-on): Add extensions.
59853
59854 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59855
59856         * modules/clock-time: New module.
59857         * modules/nanosleep (Depends-on): Add clock-time.
59858         * modules/gethrxtime (Depends-on): Likewise.
59859         * modules/gettime (Depends-on): Likewise.
59860         * modules/settime (Depends-on): Likewise.
59861
59862         * modules/fts-lgpl: Depend on openat.
59863         * modules/mkancesdirs: Depend on savewd.
59864         * modules/mkdir-p: Likewise.
59865
59866 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59867
59868         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59869
59870         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59871         `gl_have_arbitrary_file_name_length_limit' to
59872         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59873         actually works between configure runs.
59874
59875 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59876             Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59879
59880 2006-09-25  Jim Meyering  <jim@meyering.net>
59881
59882         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59883         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59884
59885 2006-09-25  Eric Blake  <ebb9@byu.net>
59886
59887         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59888         exec's in 2006-09-18 patch when shuffling fds.
59889
59890 2006-09-25  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59893         Reported by Jim Meyering.
59894
59895 2006-09-24  Jim Meyering  <jim@meyering.net>
59896
59897         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59898         compare a pointer against a literal "0".  That caused failures with
59899         at least HP-UX's hpcc.
59900
59901 2006-09-22  Simon Josefsson  <jas@extundo.com>
59902
59903         * modules/gc-sha1:
59904         * modules/gc-md4:
59905         * modules/gc-hmac-sha1:
59906         * modules/gc-hmac-md5:
59907         * modules/gc-des:
59908         * modules/gc-arcfour: Distribute more files.
59909
59910 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59911
59912         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59913         (gl_linked_iterator_from_to): Initialize struct completely.
59914         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59915         (gl_tree_iterator_from_to): Likewise
59916         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59917         * lib/gl_array_list.c [lint] (gl_array_iterator)
59918         (gl_array_iterator_from_to): Likewise.
59919         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59920         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59921         (gl_carray_iterator_from_to): Likewise.
59922
59923         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59924         * lib/md4.c (md4_process_block): Remove unused variable.
59925         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59926         parentheses for clarity.
59927
59928 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59929
59930         * modules/bison-i18n (Depends-on): Add gettext.
59931
59932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59933
59934         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59935         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59936         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59937         also add missing comma that caused broken test.
59938         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59939         stdlib.h, for `abort'.
59940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59941         variables.
59942         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59943         include unistd.h if present, for `rmdir'.
59944         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59945         variables.
59946         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59947         in the process include standard headers for prototypes.
59948         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59949         gets declared on GNU/Linux.
59950         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59951         unistd.h, for `rmdir'.
59952         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59953
59954         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59955         always true.
59956         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59957
59958         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59959
59960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59961
59962         * gnulib-tool (func_version): Create output all at once.  This
59963         may help avoid triggering unnecessary SIGPIPEs, and at any
59964         rate it doesn't hurt.
59965
59966 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59967             Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59970         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59971         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59972
59973         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59974         (gl_FUNC_VASPRINTF): Invoke it.
59975
59976 2006-09-22  Bruno Haible  <bruno@clisp.org>
59977
59978         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59979         getloadavg.c as first argument.
59980
59981 2006-09-22  Bruno Haible  <bruno@clisp.org>
59982
59983         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59984         at the beginning of the gl_INIT macro.
59985         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59986         gl_GETLOADAVG.
59987
59988 2006-09-22  Bruno Haible  <bruno@clisp.org>
59989
59990         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59991         module.
59992         Suggested by Ralf Wildenhues.
59993
59994 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         Import this patch from libc:
59997
59998         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59999
60000         * lib/regex_internal.c (re_string_reconstruct): Handle
60001         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60002         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60003         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60004         re_string_context_at.
60005
60006         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60007         now requires it.
60008         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60009         gl_REGEX now does it for us.
60010         (gl_REGEX): Add test taken from
60011         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60012
60013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60014         Check that large offsets work.  Modernize Autoconf usages.
60015         Prefer "yes" to mean a good thing rather than a bad.
60016         Don't put "#define mkstemp" in config.h, as this might interfere
60017         with standard system headers that "#define mkstemp mkstemp64".
60018
60019         * modules/mkstemp (Depends-on): Add extensions, so that
60020         mkstemp is visible on some platforms.
60021         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60022         (Include): Change to "mkstemp.h" from <stdlib.h>.
60023         (Files): Add mkstemp.h.
60024
60025         * lib/mkstemp.h: New file, since some standard headers
60026         #define mkstemp.
60027         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60028         Include "mkstemp.h".
60029         Make the _LIBC code resemble glibc original more,
60030         e.g., use K&R style.
60031         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60032         (mkstemp): Remove, since mkstemp.h does this for us.
60033         * lib/stdlib--.h: Include mkstemp.h.
60034
60035         Import this patch from libc:
60036
60037         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60038
60039         * lib/tempname.c (__gen_tempname): Change attempts_min
60040         into a macro.  Use preprocessor to decide how to initialize
60041         attempts [Coverity CID 67].
60042
60043 2006-09-20  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/mkdtemp.c: Import from libc.
60046         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60047                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60048                 attempts_min into a macro.  Use preprocessor to decide how to
60049                 initialize attempts [Coverity CID 67].
60050         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60051                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60052                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60053
60054 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60055
60056         * gnulib-tool (func_exit): New function, to allow to pass the
60057         exit status portably through the trap.  Use everywhere.
60058         (--help, --version): Signal a write error.
60059         (trap): catch SIGPIPE, for write errors.
60060         Exit at the end of the trap, with the correct exit status.
60061
60062 2006-09-19  Karl Berry  <karl@gnu.org>
60063
60064         * doc/gnulib.texi: note about the license texinfo files.
60065
60066 2006-09-19  Eric Blake  <ebb9@byu.net>
60067
60068         * gnulib-tool: Avoid space-tab.
60069
60070 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60073         that prevented coreutils 6.1 from building.  Problem reported
60074         by Petter Reinholdtsen.
60075
60076 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         * gnulib-tool (avoidlist): Fix typo that broke options like
60079         --avoid=lock that are used by coreutils bootstrap.
60080
60081 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60082
60083         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60084         more systematically.
60085
60086 2006-09-18  Jim Meyering  <jim@meyering.net>
60087
60088         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60089
60090 2006-09-18  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60093
60094 2006-09-18  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60097         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60098         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60099         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60100         * m4/gettext.m4: Require autoconf >= 2.52.
60101         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60102         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60103         of gl_cv_header_inttypes_h.
60104
60105 2006-09-18  Bruno Haible  <bruno@clisp.org>
60106
60107         * lib/javaversion.c: Include configmake.h.
60108
60109 2006-09-18  Bruno Haible  <bruno@clisp.org>
60110
60111         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60112         avoid that the while loops be executed in a subshell.
60113
60114 2006-09-18  Bruno Haible  <bruno@clisp.org>
60115
60116         * MODULES.html.sh (func_module): Break long lines.
60117         Suggested by Bruce Korb <bkorb@gnu.org>.
60118
60119 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60120
60121         Speed up by a factor of 1.12.
60122         * gnulib-tool (nl): New variable.
60123         (func_import): Rewrite include directive extraction to only read each
60124         directive once.
60125
60126 2006-09-17  Bruno Haible  <bruno@clisp.org>
60127
60128         * modules/javaversion (Makefile.am): Remove DEFS setting.
60129         (Depends-on): Add configmake, for PKGDATADIR definition.
60130
60131 2006-09-17  Bruno Haible  <bruno@clisp.org>
60132
60133         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60134
60135 2006-09-17  Bruno Haible  <bruno@clisp.org>
60136
60137         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60138         (func_modules_transitive_closure, func_modules_add_dummy,
60139         func_modules_to_filelist, func_import, func_create_testdir,
60140         func_create_megatestdir, ...): Use it wherever possible.
60141         Suggested by Ralf Wildenhues.
60142
60143 2006-09-16  Karl Berry  <karl@gnu.org>
60144
60145         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60146         to avoid sectioning errors.
60147         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60148         [ifinfo]: blank line after @center-ed titles.
60149         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60150         Spell FSF address consistently with others.
60151         (These changes approved by rms.)
60152
60153 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60154
60155         Speed up by a factor of 1.61.
60156         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60157         already checked module names again.
60158
60159 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60160
60161         Speed up by a factor of 1.13.
60162         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60163         for new_files, and the input to func_add_or_update.
60164
60165 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60166
60167         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60168         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60169
60170 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * modules/mkancesdirs (Depends-on): Add fcntl.
60173         * modules/savewd: New file.
60174         * MODULES.html.sh (File system functions): Add savewd.
60175
60176         * modules/configmake (Makefile.am): Add support for the
60177         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60178
60179 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * m4/savewd.m4: New file.
60182
60183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60184
60185         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60186         (dirchownmod): New arg FD.  All callers changed.
60187         Use FD rather than opening the directory ourself, as opening is
60188         now the caller's responsibility.
60189         * lib/dirchownmod.h: Likewise.
60190         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60191         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60192         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60193         (test_dir): Remove.
60194         (mkancesdirs): Return length of prefix of FILE that has already
60195         been made, or -2 if there is a child doing the work.  Redo
60196         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60197         ".", and treat ".." specially since it might stray back into
60198         already-created areas.  Use a subprocess if necessary.  New arg
60199         WD; all users changed.  MAKE_DIR function should now return 1
60200         if it creates a directory that is not readable.  Return -2 if
60201         a child process is spun off.
60202         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60203         Adjust signature to match code.
60204         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60205         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60206         all users changed.
60207         * lib/savewd.c, lib/savewd.h: New files.
60208
60209 2006-09-15  Jim Meyering  <jim@meyering.net>
60210
60211         * modules/rename-dest-slash: New module.
60212         * MODULES.html.sh (posix_compat): Add it here.
60213
60214         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60215
60216 2006-09-15  Jim Meyering  <jim@meyering.net>
60217
60218         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60219         file.
60220
60221         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60222
60223 2006-09-15  Jim Meyering  <jim@meyering.net>
60224
60225         * lib/rename-dest-slash.c (has_trailing_slash): Use
60226         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60227         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60228         test before testing whether SRC is a directory.
60229         Suggestions from Bruno Haible.
60230
60231         Avoid a warning about an unused variable.
60232         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60233         into the #ifdef block where it's used.
60234
60235         * lib/rename-dest-slash.c: New file.
60236
60237 2006-09-14  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/allocsa.c: Include <config.h> unconditionally.
60240         * lib/asnprintf.c: Likewise.
60241         * lib/asprintf.c: Likewise.
60242         * lib/c-strcasecmp.c: Likewise.
60243         * lib/c-strcasestr.c: Likewise.
60244         * lib/c-strncasecmp.c: Likewise.
60245         * lib/c-strstr.c: Likewise.
60246         * lib/classpath.c: Likewise.
60247         * lib/clean-temp.c: Likewise.
60248         * lib/concatpath.c: Likewise.
60249         * lib/copy-file.c: Likewise.
60250         * lib/csharpcomp.c: Likewise.
60251         * lib/csharpexec.c: Likewise.
60252         * lib/execute.c: Likewise.
60253         * lib/fatal-signal.c: Likewise.
60254         * lib/findprog.c: Likewise.
60255         * lib/fwriteerror.c: Likewise.
60256         * lib/gl_array_list.c: Likewise.
60257         * lib/gl_array_oset.c: Likewise.
60258         * lib/gl_avltree_list.c: Likewise.
60259         * lib/gl_avltree_oset.c: Likewise.
60260         * lib/gl_avltreehash_list.c: Likewise.
60261         * lib/gl_carray_list.c: Likewise.
60262         * lib/gl_linked_list.c: Likewise.
60263         * lib/gl_linkedhash_list.c: Likewise.
60264         * lib/gl_list.c: Likewise.
60265         * lib/gl_oset.c: Likewise.
60266         * lib/gl_rbtree_list.c: Likewise.
60267         * lib/gl_rbtree_oset.c: Likewise.
60268         * lib/gl_rbtreehash_list.c: Likewise.
60269         * lib/imaxabs.c: Likewise.
60270         * lib/imaxdiv.c: Likewise.
60271         * lib/javacomp.c: Likewise.
60272         * lib/javaexec.c: Likewise.
60273         * lib/javaversion.c: Likewise.
60274         * lib/linebreak.c: Likewise.
60275         * lib/localcharset.c: Likewise.
60276         * lib/lock.c: Likewise.
60277         * lib/mbchar.c: Likewise.
60278         * lib/mbswidth.c: Likewise.
60279         * lib/mkdtemp.c: Likewise.
60280         * lib/pipe.c: Likewise.
60281         * lib/printf-args.c: Likewise.
60282         * lib/printf-parse.c: Likewise.
60283         * lib/progname.c: Likewise.
60284         * lib/progreloc.c: Likewise.
60285         * lib/readlink.c: Likewise.
60286         * lib/sh-quote.c: Likewise.
60287         * lib/stpcpy.c: Likewise.
60288         * lib/stpncpy.c: Likewise.
60289         * lib/strcasecmp.c: Likewise.
60290         * lib/strcasestr.c: Likewise.
60291         * lib/strcspn.c: Likewise.
60292         * lib/striconv.c: Likewise.
60293         * lib/strncasecmp.c: Likewise.
60294         * lib/strnlen1.c: Likewise.
60295         * lib/strstr.c: Likewise.
60296         * lib/strtok_r.c: Likewise.
60297         * lib/tls.c: Likewise.
60298         * lib/tmpdir.c: Likewise.
60299         * lib/unicodeio.c: Likewise.
60300         * lib/unsetenv.c: Likewise.
60301         * lib/vasnprintf.c: Likewise.
60302         * lib/vasprintf.c: Likewise.
60303         * lib/wait-process.c: Likewise.
60304         * lib/xallocsa.c: Likewise.
60305         * lib/xsetenv.c: Likewise.
60306         * lib/xstriconv.c: Likewise.
60307
60308 2006-09-13  Simon Josefsson  <jas@extundo.com>
60309
60310         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60311         that internally, suggested by Ralf Wildenhues
60312         <Ralf.Wildenhues@gmx.de>.
60313
60314 2006-09-13  Simon Josefsson  <jas@extundo.com>
60315
60316         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60317         @LIBOBJS@.
60318         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60319
60320 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60321
60322         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60323         longer worry about uses that don't define HAVE_CONFIG_H.
60324         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60325         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60326         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60327         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60328         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60329         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60330         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60331         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60332         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60333         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60334         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60335         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60336         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60337         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60338         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60339         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60340         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60341         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60342         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60343         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60344         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60345         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60346         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60347         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60348         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60349         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60350         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60351         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60352         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60353         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60354         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60355         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60356         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60357         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60358         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60359         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60360         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60361         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60362         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60363         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60364         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60365         Likewise.
60366
60367 2006-09-13  Eric Blake  <ebb9@byu.net>
60368
60369         * lib/getopt.c: Fix typo in last commit.
60370
60371 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60372
60373         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60374         dgettext.
60375
60376 2006-09-12  Jim Meyering  <jim@meyering.net>
60377
60378         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60379         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60380         Reported by Nelson H. F. Beebe.
60381
60382 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60383
60384         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60385         program_invocation_name and program_invocation_short_name are
60386         initialized.
60387         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60388         and program_invocation_short_name to argp.h, so they are visible
60389         to user programs.
60390         * lib/argp.h: Likewise
60391
60392 2006-09-10  Bruno Haible  <bruno@clisp.org>
60393
60394         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60395         m4/inttypes_h.m4, m4/uintmax_t.m4.
60396
60397 2006-09-10  Bruno Haible  <bruno@clisp.org>
60398
60399         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60400         gl_AC_TYPE_UINTMAX_T.
60401
60402 2006-09-10  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60405
60406 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60407
60408         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60409         convention.  Text proposed by Bruno Haible.
60410         (struct argp_option): Document the use of N_() wrappers.
60411
60412         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60413         '\v', and translate the two parts separately, instead of feeding
60414         the whole string to gettext.  This allows to exclude
60415         '\v' from the strings visible to the translator by writing doc
60416         strings as N_("..") "\v" N_("..").
60417
60418 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * config/srclist.txt: Undo latest change; the bug was fixed.
60421
60422 2006-09-09  Bruno Haible  <bruno@clisp.org>
60423
60424         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60425         assignments if building a library without libtool.
60426         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60427         in func_emit_lib_Makefile_am.
60428         (func_import): When building a static library libfoo.a, arrange to
60429         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60430         (func_create_testdir): Likewise.
60431         * modules/gc (configure.ac, Makefile.am): If building statically,
60432         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60433         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60434         * modules/striconv (configure.ac, Makefile.am): Likewise.
60435         Based on a suggestion by Ralf Wildenhues.
60436
60437 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60440         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60441         Also:
60442
60443         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60444         Add year_2050_test to catch glibc bug 2821
60445         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60446
60447         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60448         Prefer #ifdef to #if.
60449
60450         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60451         Return from 'main' instead of calling 'exit'.
60452
60453 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60456         returned the maximum time_t value rather than (time_t) -1.
60457         Problem originally reported by William Bardwell
60458         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60459
60460         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60461         Moved to here ...
60462         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60463         ... from here.
60464
60465 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60466
60467         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60468         2821 is fixed.
60469
60470 2006-09-08  Jim Meyering  <jim@meyering.net>
60471
60472         Don't make generated files read-only.  That would bother too many
60473         people.  However, do retain the ability to work when targets are
60474         read-only: remove the destination and temporary files before writing
60475         them (when generated via sed or echo), or by using the -f option for
60476         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60477         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60478         * modules/byteswap, modules/configmake, modules/fcntl:
60479         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60480         * modules/localcharset, modules/netinet_in, modules/poll:
60481         * modules/stdbool, modules/stdint, modules/sys_select:
60482         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60483
60484 2006-09-08  Jim Meyering  <jim@meyering.net>
60485
60486         Avoid new build failure on FreeBSD 6.0.
60487         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60488         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60489         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60490
60491 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60492
60493         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60494
60495 2006-09-07  Jim Meyering  <jim@meyering.net>
60496
60497         Fix global typo in last change: use chmod u-w, not chmod u-x.
60498         Spotted by Paul Eggert and Bruce Korb.
60499         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60500         * modules/byteswap, modules/configmake, modules/fcntl:
60501         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60502         * modules/localcharset, modules/netinet_in, modules/poll:
60503         * modules/stdbool, modules/stdint, modules/sys_select:
60504         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60505
60506 2006-09-06  Jim Meyering  <jim@meyering.net>
60507
60508         Make generated files be read-only.
60509         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60510         Ensure that each generated file is now read-only.
60511         * modules/argz: Likewise.
60512         * modules/arpa_inet: Likewise.
60513         * modules/byteswap: Likewise.
60514         * modules/configmake: Likewise.
60515         * modules/fcntl: Likewise.
60516         * modules/fnmatch: Likewise.
60517         * modules/getopt: Likewise.
60518         * modules/glob: Likewise.
60519         * modules/inttypes: Likewise.
60520         * modules/netinet_in: Likewise.
60521         * modules/poll: Likewise.
60522         * modules/stdbool: Likewise.
60523         * modules/stdint: Likewise.
60524         * modules/sys_select: Likewise.
60525         * modules/sys_socket: Likewise.
60526         * modules/sys_stat: Likewise.
60527         * modules/sysexits: Likewise.
60528         * modules/localcharset: Same as above, but continue using temporary
60529         file named "t-$@" (why different?) rather than the "$@-t" used
60530         everywhere else.
60531
60532         * modules/sysexits (Makefile.am): Replace literal occurrences
60533         of "sysexit.h" more readable, and more consistent, "$@".
60534
60535 2006-09-06  Bruno Haible  <bruno@clisp.org>
60536
60537         * modules/striconv: New file.
60538         * modules/xstriconv: New file.
60539         * MODULES.html.sh (Internationalization functions): Add striconv,
60540         xstriconv.
60541
60542 2006-09-06  Bruno Haible  <bruno@clisp.org>
60543
60544         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60545         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60546         not using libtool correctly.
60547
60548 2006-09-06  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/striconv.h: New file.
60551         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60552         iconvstring.c.
60553         * lib/xstriconv.h: New file.
60554         * lib/xstriconv.c: New file.
60555
60556 2006-09-06  Bruno Haible  <bruno@clisp.org>
60557
60558         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60559         lib_..._LDFLAGS.
60560
60561 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60562
60563         * lib/argz_.h: Sync from Libtool.
60564
60565         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60566                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60567
60568         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60569
60570 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60571
60572         * modules/trim: New file.
60573
60574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60575
60576         * lib/trim.h: New file.
60577         * lib/trim.c: New file.
60578
60579 2006-09-05  Bruno Haible  <bruno@clisp.org>
60580
60581         * MODULES.html.sh (String handling): Add trim.
60582
60583 2006-09-04  Karl Berry  <karl@gnu.org>
60584
60585         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60586         until next release.
60587
60588 2006-09-03  Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60591         correctly.
60592
60593 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60596         not gl_GETLOADAVG.  Omit unneeded semicolons.
60597         Problems reported by Ralf Wildenhues in
60598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60599         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60600         at the end, which is the usual gnulib style.
60601
60602         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60603         of doing all the work ourselves.
60604         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60605         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60606
60607 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60608
60609         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60610         Problem reported by Ralf Wildenhues in
60611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60612
60613         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60614         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60615
60616 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60619         yesterday's patch by changing test -n to test -z.
60620
60621 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60622
60623         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60624         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60625         the former is now obsolescent.
60626
60627         * modules/chdir-long (Depends-on): Add fcntl.
60628
60629 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60632         obsolescent, and programs should use gnulib instead.
60633         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60634         but with prefixes changed.
60635
60636 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60639         or stdbool.h, because they might not exist while configuring.
60640
60641         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60642         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60643         does that for us.
60644         (O_DIRECTORY): Remove.
60645
60646 2006-08-31  Eric Blake  <ebb9@byu.net>
60647
60648         * gnulib-tool: Don't let emacs change spaces to TAB.
60649
60650 2006-08-31  Bruno Haible  <bruno@clisp.org>
60651
60652         * gnulib-tool: When calling func_import more than once, do it in a
60653         subshell.
60654         Reported by Eric Blake <ebb9@byu.net>.
60655
60656 2006-08-31  Bruno Haible  <bruno@clisp.org>
60657
60658         * gnulib-tool (nl): Remove variable.
60659         (sed_transform_lib_file): Use more robust test for config-h module.
60660         (func_import): Fix typo in 2006-08-25 patch.
60661
60662 2006-08-31  Bruno Haible  <bruno@clisp.org>
60663
60664         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60665         specified, augment Makefile.am variables instead of assigning them.
60666
60667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         Work around a bug in both the Linux and SunOS 64-bit kernels:
60670         nanosleep mishandles sleeps for longer than 2**31 seconds.
60671         Problem reported by Frank v Waveren in
60672         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60674         Check for nanosleep bug.
60675         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60676
60677 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         Work around a bug in both the Linux and SunOS 64-bit kernels:
60680         nanosleep mishandles sleeps for longer than 2**31 seconds.
60681         Problem reported by Frank v Waveren in
60682         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60683         * lib/nanosleep.c (BILLION): New constant.
60684         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60685         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60686         implementation.
60687
60688 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * modules/nanosleep (Depends-on): Add gettime.
60691
60692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60693         and Simon Josefsson  <jas@extundo.com>
60694         and Oskar Liljeblad  <oskar@osk.mine.nu>
60695
60696         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60697         * gnulib-tool (func_import): New license type 'unmodifiable license
60698         text'.
60699         * modules/fdl: Use it.  Longer description.
60700         * module/gpl, module/lgpl: New files.
60701
60702 2006-08-30  Jim Meyering  <jim@meyering.net>
60703
60704         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60705         shadowing the parameter.
60706
60707 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60708
60709         Sync from Libtool:
60710
60711         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60712
60713         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60714         sharing with gnulib.  Report by Eric Blake.
60715
60716 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * modules/isapipe: New file.
60719         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60720
60721 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * modules/configmake (Makefile.am): Add a comment, and omit
60724         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60725         by Bruno Haible.
60726
60727 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         * m4/isapipe.m4: New file.
60730
60731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/isapipe.c, lib/isapipe.h: New files.
60734
60735 2006-08-29  Jim Meyering  <jim@meyering.net>
60736
60737         * modules/configmake (Makefile.am): Make configmake.h depend on
60738         Makefile.  Otherwise, a stale configmake.h could hang around.
60739
60740 2006-08-29  Eric Blake  <ebb9@byu.net>
60741
60742         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60743         resolution of upstream bug 3044.
60744
60745 2006-08-29  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/localcharset (Depends-on): Add configmake.
60748         (Makefile.am): Remove setting of LIBDIR through DEFS.
60749
60750 2006-08-29  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60753         defined.
60754
60755 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * modules/fcntl: New file.
60758         * modules/chdir-safer (Depends-on): Add fcntl.
60759         * modules/fts: Likewise.
60760         * modules/mkdir-p: Likewise.
60761
60762         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60763         This undoes the most recent change, since we're now addressing the
60764         problem in a different way.
60765
60766         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60767         into output, since the output might be called Makefile.am even
60768         if $makefile_name is something different.
60769         (func_import): Use $makefile_am rather than
60770         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60771         empty.
60772
60773         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60774
60775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60776
60777         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60778         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60779         recent change to stdint.m4, since we're now addressing the problem in a
60780         different way.
60781
60782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * m4/fcntl_h.m4: New file.
60785
60786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         * lib/fcntl_.h: New file.
60789         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60790         the fcntl module.
60791         * lib/dirchownmod.c: Likewise.
60792         * lib/fts.c: Likewise.
60793
60794         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60795         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60796         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60797         just before including <inttypes.h>, to avoid circular inclusion.
60798
60799 2006-08-28  Jim Meyering  <jim@meyering.net>
60800
60801         * doc/visibility.texi: Actually read and correct the grammar of the
60802         sentence affected by yesterday's change.
60803
60804 2006-08-28  Eric Blake  <ebb9@byu.net>
60805
60806         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60807         needs wrapper.
60808
60809 2006-08-28  Eric Blake  <ebb9@byu.net>
60810
60811         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60812
60813 2006-08-28  Eric Blake  <ebb9@byu.net>
60814
60815         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60816
60817 2006-08-28  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/c-strstr: New file, from GNU gettext.
60820         * MODULES.html.sh (String handling): Add c-strstr.
60821
60822 2006-08-28  Bruno Haible  <bruno@clisp.org>
60823
60824         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60825         macros.
60826         Reported by Eric Blake.
60827
60828 2006-08-28  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60831         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60832         * lib/vasprintf.c: Include errno.h, limits.h.
60833         (EOVERFLOW): New fallback definition.
60834         (vasprintf): Test here whether the string length is > INT_MAX.
60835         * lib/vsnprintf.c: Include errno.h, limits.h.
60836         (EOVERFLOW): New fallback definition.
60837         (vsnprintf): Fix bug when generated string was too long for the buffer.
60838         Test here whether the string length is > INT_MAX.
60839
60840 2006-08-28  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/inttypes_.h (SCNX*): Remove definitions.
60843         Reported by Eric Blake.
60844
60845 2006-08-28  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/c-strstr.h: New file, from GNU gettext.
60848         * lib/c-strstr.c: New file, from GNU gettext.
60849
60850 2006-08-28  Bruno Haible  <bruno@clisp.org>
60851
60852         * gnulib-tool: Reorder some statements.
60853
60854 2006-08-28  Bruno Haible  <bruno@clisp.org>
60855
60856         * gnulib-tool: New option --makefile-name.
60857         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60858         $makefile_name.
60859         (func_import): Write $makefile_name to the cache file, and read it from
60860         there unless explicitly specified. Use $makefile_name as file name
60861         instead of Makefile.am. Adjust the recommendations accordingly.
60862
60863 2006-08-28  Bruno Haible  <bruno@clisp.org>
60864
60865         * gnulib-tool (func_verify_module): Check against misapplying patch.
60866
60867 2006-08-28  Bruno Haible  <bruno@clisp.org>
60868
60869         * gnulib-tool (func_relativize, func_relconcat): New functions.
60870         Give an error if --local-dir is given with --update.
60871         Remove trailing slashes from $local_gnulib_dir.
60872         (func_import): Store the relativized $local_gnulib_dir in
60873         gnulib-cache.m4, and read it from there if not specified explicitly.
60874
60875 2006-08-28  Bruno Haible  <bruno@clisp.org>
60876
60877         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60878         is the current directory. Respect also $local_gnulib_dir.
60879
60880 2006-08-28  Bruno Haible  <bruno@clisp.org>
60881             Simon Josefsson  <jas@extundo.com>
60882
60883         BeOS portability.
60884         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60885
60886 2006-08-27  Jim Meyering  <jim@meyering.net>
60887
60888         * doc/visibility.texi: Remove duplicate word: "pointer".
60889
60890 2006-08-26  Bruno Haible  <bruno@clisp.org>
60891
60892         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60893         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60894         (Makefile.am): Create inttypes.h from inttypes_.h.
60895         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60896
60897         * modules/imaxabs: New file.
60898
60899         * modules/imaxdiv: New file.
60900
60901 2006-08-26  Bruno Haible  <bruno@clisp.org>
60902
60903         * m4/inttypes.m4: New file.
60904         * m4/_inttypes_h.m4: Remove file.
60905         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60906         PRI_MACROS_BROKEN.
60907         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60908
60909         * m4/imaxabs.m4: New file.
60910
60911         * m4/imaxdiv.m4: New file.
60912
60913 2006-08-26  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/inttypes_.h: New file.
60916         * lib/inttypes.h: Remove file.
60917         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60918
60919         * lib/imaxabs.c: New file.
60920
60921         * lib/imaxdiv.c: New file.
60922
60923 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         New config-h module, so that "make" output needn't be cluttered
60926         by -DHAVE_CONFIG_H.
60927         * MODULES.html.sh (Support for building libraries and executables):
60928         Add config-h.
60929         * modules/config-h: New file.
60930         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60931         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60932         the config-h module is used.
60933
60934         New configmake module, so that "make" output needn't be cluttered
60935         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60936         * MODULES.html.sh (Support for building libraries and executables):
60937         Add configmake.
60938         * modules/configmake: New file.
60939
60940 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * m4/config-h.m4: New file.
60943
60944 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * config/srclist.txt: Add elisp-comp.
60947
60948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * MODULES.html.sh (Support for building libraries and executables):
60951         Add elisp-comp.
60952         * build-aux/elisp-comp: New file.
60953         * modules/elisp-comp: New file.
60954
60955 2006-08-24  Bruno Haible  <bruno@clisp.org>
60956
60957         * gnulib-tool (func_create_testdir): Use non-default values of
60958         sourcebase and m4base.
60959
60960 2006-08-24  Bruno Haible  <bruno@clisp.org>
60961
60962         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60963         HTML structure.
60964
60965 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * modules/openat (Depends-on): Add lchown.
60968
60969 2006-08-23  Bruno Haible  <bruno@clisp.org>
60970
60971         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60972         of gl_LOCK_EARLY instead of gl_LOCK.
60973
60974 2006-08-23  Bruno Haible  <bruno@clisp.org>
60975
60976         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60977         on OSF/1 to no.
60978         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60979
60980 2006-08-23  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60983         as unusable.
60984
60985         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60986         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60987         (gl_LOCK): New macro.
60988
60989 2006-08-22  Simon Josefsson  <jas@extundo.com>
60990
60991         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60992         to md5 module.
60993
60994 2006-08-22  Simon Josefsson  <jas@extundo.com>
60995
60996         * MODULES.html.sh: Add "Support for maintaining and release
60997         projects".
60998
60999         * build-aux/gnupload: New file, from coreutils.
61000
61001 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         Avoid the need for AC_LIBSOURCES in m4 macros.
61004         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61005         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61006         * modules/check-version (EXTRA_DIST): Add check-version.h.
61007         * modules/crc (EXTRA_DIST): Add crc.h.
61008         * modules/des (EXTRA_DIST): Add des.h.
61009         * modules/gc (EXTRA_DIST): Add gc.h.
61010         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61011         * modules/getline (EXTRA_DIST): Add getline.h.
61012         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61013         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61014         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61015         * modules/md2 (EXTRA_DIST): Add md2.h.
61016         * modules/md4 (EXTRA_DIST): Add md4.h.
61017         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61018         * modules/read-file (EXTRA_DIST): Add read-file.h.
61019         * modules/readline (EXTRA_DIST): Add readline.h.
61020         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61021         rijndael-api-fst.h.
61022
61023 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61024
61025         * m4/rijndael.m4 (gl_ARCFOUR):
61026         * m4/arctwo.m4 (gl_ARCTWO):
61027         * m4/check-version.m4 (gl_CHECK_VERSION):
61028         * m4/crc.m4 (gl_CRC):
61029         * m4/des.m4 (gl_DES):
61030         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61031         * m4/gc.m4 (gl_GC):
61032         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61033         * m4/getline.m4 (gl_FUNC_GETLINE):
61034         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61035         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61036         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61037         * m4/md2.m4 (gl_MD2):
61038         * m4/md4.m4 (gl_MD4):
61039         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61040         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61041         * m4/readline.m4 (gl_FUNC_READLINE):
61042         * m4/rijndael.m4 (gl_RIJNDAEL):
61043         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61044         to get the necessary .h files and whatnot.
61045
61046 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61049         gnulib rather than the other way around.
61050         * config/srclistvars.sh (COREUTILS): Remove.
61051
61052 2006-08-22  Jim Meyering  <jim@meyering.net>
61053
61054         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61055
61056         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61057
61058 2006-08-22  Eric Blake  <ebb9@byu.net>
61059
61060         * modules/regexprops-generic: New file.
61061         * MODULES.html.sh (Support for building documentation): List it.
61062
61063 2006-08-22  Eric Blake  <ebb9@byu.net>
61064
61065         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61066         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61067         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61068         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61069
61070 2006-08-22  Bruno Haible  <bruno@clisp.org>
61071
61072         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61073         and lib_LTLIBRARIES like the other lib_* variables.
61074
61075 2006-08-22  Bruno Haible  <bruno@clisp.org>
61076
61077         * build-aux/x-to-1.in: New file, from GNU gettext.
61078
61079 2006-08-22  Bruno Haible  <bruno@clisp.org>
61080
61081         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61082         <utmpx.h> exists.
61083
61084 2006-08-22  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61087         <utmpx.h> exists.
61088
61089 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         BeOS portability.
61092         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61093         exist.
61094         Problem reported by Bruno Haible.
61095
61096 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         Avoid the need for AC_LIBSOURCES in m4 macros.
61099         * modules/acl (EXTRA_DIST): Add acl.h.
61100         * modules/argmatch (Files): Add m4/argmatch.m4.
61101         (configure.ac): Add gl_ARGMATCH.
61102         (EXTRA_DIST): Renamed from lib_SOURCES, for
61103         consistency with the other modules.  Remove argmatch.c.
61104         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61105         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61106         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61107         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61108         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61109         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61110         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61111         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61112         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61113         * modules/closeout (EXTRA_DIST): Add closeout.h.
61114         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61115         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61116         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61117         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61118         dirname.h; remove basename.c and stripslash.c.
61119         * modules/exclude (EXTRA_DIST): Add exclude.h.
61120         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61121         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61122         * modules/file-type (EXTRA_DIST): Add file-type.h.
61123         * modules/filemode (EXTRA_DIST): Add filemode.h.
61124         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61125         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61126         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61127         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61128         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61129         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61130         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61131         * modules/getdate (EXTRA_DIST): Add getdate.c.
61132         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61133         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61134         * modules/getpass (EXTRA_DIST): Add getpass.h.
61135         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61136         * modules/group-member (EXTRA_DIST): Add group-member.h.
61137         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61138         * modules/hash (EXTRA_DIST): Add hash.h.
61139         * modules/human (EXTRA_DIST): Add human.h.
61140         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61141         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61142         * modules/lchown (EXTRA_DIST): Add lchown.h.
61143         * modules/long-options (EXTRA_DIST): Add long-options.h.
61144         * modules/lstat (EXTRA_DIST): Add lstat.h.
61145         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61146         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61147         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61148         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61149         * modules/memxor (EXTRA_DIST): Add memxor.h.
61150         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61151         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61152         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61153         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61154         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61155         * modules/physmem (EXTRA_DIST): Add physmem.h.
61156         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61157         * modules/posixver (EXTRA_DIST): Add posixver.h.
61158         * modules/quote (EXTRA_DIST): Add quote.h.
61159         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61160         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61161         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61162         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61163         regex_internal.h regexec.c.
61164         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61165         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61166         * modules/same (EXTRA_DIST): Add same.h.
61167         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61168         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61169         * modules/savedir (EXTRA_DIST): Add savedir.h.
61170         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61171         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61172         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61173         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61174         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61175         * modules/strdup (EXTRA_DIST): Add strdup.h.
61176         * modules/strftime (EXTRA_DIST): Add strftime.h.
61177         * modules/strndup (EXTRA_DIST): Add strndup.h.
61178         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61179         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61180         * modules/time_r (EXTRA_DIST): Add time_r.h.
61181         * modules/timespec (EXTRA_DIST): Add timespec.h.
61182         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61183         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61184         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61185         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61186         * modules/userspec (EXTRA_DIST): Add userspec.h.
61187         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61188         * modules/utimens (EXTRA_DIST): Add utimens.h.
61189         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61190         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61191         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61192         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61193         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61194         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61195         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61196         * modules/yesno (EXTRA_DIST): Add yesno.h.
61197
61198 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61201
61202         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61203         * m4/dev-ino.m4, same-inode.m4: Remove.
61204
61205         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61206         * m4/acl.m4 (AC_FUNC_ACL):
61207         * m4/backupfile.m4 (gl_BACKUPFILE):
61208         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61209         * m4/canon-host.m4 (gl_CANON_HOST):
61210         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61212         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61213         * m4/cloexec.m4 (gl_CLOEXEC):
61214         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61215         * m4/closeout.m4 (gl_CLOSEOUT):
61216         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61217         * m4/dirname.m4 (gl_DIRNAME):
61218         * m4/exclude.m4 (gl_EXCLUDE):
61219         * m4/exitfail.m4 (gl_EXITFAIL):
61220         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61221         * m4/file-type.m4 (gl_FILE_TYPE):
61222         * m4/filemode.m4 (gl_FILEMODE):
61223         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61224         * m4/fpending.m4 (gl_FUNC_FPENDING):
61225         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61226         * m4/fts.m4 (gl_FUNC_FTS):
61227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61228         * m4/getdate.m4 (gl_GETDATE):
61229         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61230         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61231         * m4/getpass.m4 (gl_FUNC_GETPASS):
61232         * m4/gettime.m4 (gl_GETTIME):
61233         * m4/getugroups.m4 (gl_GETUGROUPS):
61234         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61235         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61236         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61237         * m4/hash.m4 (gl_HASH):
61238         * m4/idcache.m4 (gl_IDCACHE):
61239         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61240         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61241         * m4/long-options.m4 (gl_LONG_OPTIONS):
61242         * m4/lstat.m4 (gl_FUNC_LSTAT):
61243         * m4/md5.m4 (gl_MD5):
61244         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61245         * m4/memcoll.m4 (gl_MEMCOLL):
61246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61247         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61248         * m4/memxor.m4 (gl_MEMXOR):
61249         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61250         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61251         * m4/modechange.m4 (gl_MODECHANGE):
61252         * m4/mountlist.m4 (gl_MOUNTLIST):
61253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61254         * m4/openat.m4 (gl_FUNC_OPENAT):
61255         * m4/pathmax.m4 (gl_PATHMAX):
61256         * m4/physmem.m4 (gl_PHYSMEM):
61257         * m4/posixtm.m4 (gl_POSIXTM):
61258         * m4/posixver.m4 (gl_POSIXVER):
61259         * m4/quote.m4 (gl_QUOTE):
61260         * m4/quotearg.m4 (gl_QUOTEARG):
61261         * m4/readtokens.m4 (gl_READTOKENS):
61262         * m4/readutmp.m4 (gl_READUTMP):
61263         * m4/regex.m4 (gl_REGEX):
61264         * m4/safe-read.m4 (gl_SAFE_READ):
61265         * m4/safe-write.m4 (gl_SAFE_WRITE):
61266         * m4/same.m4 (gl_SAME):
61267         * m4/save-cwd.m4 (gl_SAVE_CWD):
61268         * m4/savedir.m4 (gl_SAVEDIR):
61269         * m4/settime.m4 (gl_SETTIME):
61270         * m4/sha1.m4 (gl_SHA1):
61271         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61272         * m4/stat-macros.m4 (gl_STAT_MACROS):
61273         * m4/stat-time.m4 (gl_STAT_TIME):
61274         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61275         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61276         * m4/strdup.m4 (gl_FUNC_STRDUP):
61277         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61278         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61279         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61280         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61281         * m4/time_r.m4 (gl_TIME_R):
61282         * m4/timespec.m4 (gl_TIMESPEC):
61283         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61284         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61285         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61286         * m4/userspec.m4 (gl_USERSPEC):
61287         * m4/utimecmp.m4 (gl_UTIMECMP):
61288         * m4/utimens.m4 (gl_UTIMENS):
61289         * m4/xalloc.m4 (gl_XALLOC):
61290         * m4/xgetcwd.m4 (gl_XGETCWD):
61291         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61292         * m4/xreadlink.m4 (gl_XREADLINK):
61293         * m4/xstrtod.m4 (gl_XSTRTOD):
61294         * m4/yesno.m4 (gl_YESNO):
61295         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61296         to get the necessary .h files and whatnot.
61297
61298 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61299             Bruno Haible  <bruno@clisp.org>
61300
61301         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61302         /bin/sh understanding of '!' conditional negation.
61303
61304 2006-08-21  Jim Meyering  <jim@meyering.net>
61305
61306         * modules/openat (Depends-on): Really alphabetize.
61307
61308         * modules/acl (Depends-on): Add error and quote.
61309
61310         * check-module (find_included_lib_files): Add at-func.c to the
61311         ok-to-include-more-than-once white list.
61312
61313         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61314
61315 2006-08-21  Bruno Haible  <bruno@clisp.org>
61316
61317         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61318         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61319         Reported by Martin Lambers <marlam@marlam.de>.
61320
61321 2006-08-21  Bruno Haible  <bruno@clisp.org>
61322
61323         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61324         specify an installation location, don't emit a noinst_LIBRARIES or
61325         noinst_LTLIBRARIES assignment.
61326
61327 2006-08-21  Bruno Haible  <bruno@clisp.org>
61328
61329         BeOS portability.
61330         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61331         BeOS has mbrtowc() but no <wctype.h>.
61332
61333 2006-08-21  Bruno Haible  <bruno@clisp.org>
61334
61335         BeOS portability.
61336         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61337         exist.
61338
61339 2006-08-21  Bruno Haible  <bruno@clisp.org>
61340
61341         BeOS portability.
61342         * lib/mbchar.h: Include <wctype.h> only if it exists.
61343
61344 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         Remove files that are no longer needed by their respective modules.
61347         * m4/obstack.m4: Remove.
61348         * m4/strerror_r.m4: Remove.
61349         * m4/uint32_t.m4: Remove.
61350         * m4/uintptr_t.m4: Remove.
61351         * m4/ullong_max.m4: Remove.
61352         * m4/xstrtoimax.m4: Remove.
61353         * m4/xstrtoumax.m4: Remove.
61354
61355         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61356         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61357         dependencies now capture this.
61358
61359         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61360         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61361         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61362         * m4/human.m4 (gl_HUMAN): Likewise.
61363         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61364         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61365
61366         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61367
61368         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61369         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61370         stdint.
61371         * m4/human.m4 (gl_HUMAN): Likewise.
61372         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61373         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61374         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61375         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61376         * m4/xstrtol (gl_XSTRTOL): Likewise.
61377
61378         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61379         AC_TYPE_LONG_LONG_INT.
61380         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61381         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61382         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61383         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61384
61385         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61386         on stdbool.
61387
61388         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61389         (gl_PREREQ_XSTRTOUL): Remove.
61390
61391         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61392
61393         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61394         mode.
61395
61396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61397
61398         Add and change modules to make it easier for coreutils to use
61399         gnulib-tool.
61400         * modules/backupfile (Files): Remove m4/d-ino.m4.
61401         (Depends-on): Add d-ino.
61402         * modules/cycle-check (Depends-on): Add stdint.
61403         (lib_SOURCES): Add cycle-check.h.
61404         * modules/d-ino: New module.
61405         * modules/d-type: New module.
61406         * modules/error (Files): Remove m4/strerror_r.m4.
61407         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61408         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61409         m4/inttypes_h.m4, m4/uintmax_t.m4.
61410         (Depends-on): Add stdint.
61411         (lib_SOURCES): Add fsusage.h.
61412         * modules/getcwd (Files): Remove d-ino.m4.
61413         (Depends-on): Add d-ino.
61414         * modules/getndelim2 (Depends-on): Add stdint.
61415         * modules/glob (Files): Remove m4/d-type.m4.
61416         (Depends-on): Add d-type.
61417         * modules/host-os: New module.
61418         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61419         m4/inttypes_h.m4, m4/uintmax_t.m4.
61420         * Depends-on: Add stdint.
61421         (lib_SOURCES): Add human.h.
61422         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61423         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61424         m4/uintmax_t.m4, m4/ulonglong.m4.
61425         (Depends-on): Add stdint.
61426         (EXTRA_DIST): Add inttostr.h.
61427         * modules/lchmod: New module.
61428         * modules/link-follow: New module.
61429         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61430         (Depends-on): Add lchmod.
61431         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61432         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61433         (Depends-on): Add stdint.
61434         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61435         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61436         (Depends-on): Add stdint.
61437         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61438         * modules/perl: New module.
61439         * modules/regex (Depends-on): Add stdint.
61440         * modules/rmdir-errno: New module.
61441         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61442         m4/intmax_t.m4.
61443         (Depends-on): Add stdint.
61444         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61445         m4/uintmax_t.m4.
61446         (Depends-on): Add stdint.
61447         * modules/unlink-busy: New module.
61448         * modules/utimecmp (Depends-on): Add stdint.
61449         * modules/uptime: New module.
61450         * modules/winsz-ioctl: New module.
61451         * modules/winsz-termios: New module.
61452         * modules/xnanosleep (Depends-on): Add nanosleep.
61453         * modules/ullong_max: Remove.
61454         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61455         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61456         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61457         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61458         (Depends-on): Add inttypes.
61459         (lib_SOURCES): Add xstrtol.h.
61460         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61461         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61462         * MODULES.html.sh: Move 'assert' into the assert section.
61463         Move 'dummy' into the linking section.
61464         Remove ullong_max.
61465         Add section for compatibility checks for POSIX:2001 functions,
61466         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61467         winsz-ioctl, and winsz-termios into it.
61468         Add lchmod.
61469         Add top-level Misc section and put host-os, perl, and uptime
61470         into it.
61471
61472 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61475         now assume the stdint module.  Do not include inttypes.h.
61476         * lib/fsusage.h: Likewise.
61477         * lib/getndelim2.c: Likewise.
61478         * lib/human.h: Likewise.
61479         * lib/inttostr.h: Likewise.
61480         * lib/obstack.c: Likewise.
61481         * lib/regex_internal.h: Likewise.
61482         * lib/tempname.c: Likewise.
61483         * lib/utimecmp.c: Likewise.
61484         * lib/xstrtol.h: Likewise.
61485
61486         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61487
61488         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61489         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61490         * lib/xtime.h: Likewise.
61491
61492 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * modules/openat (Files): Add lib/fchmodat.c.
61495         Fixes problem reported by Jay Youngman.
61496
61497 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61498
61499         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61500         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61501
61502 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61503             Bruno Haible  <bruno@clisp.org>
61504
61505         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61506         and is a script that invokes bison. Tighten the code. Add comments.
61507
61508 2006-08-18  Jim Meyering  <jim@meyering.net>
61509
61510         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61511         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61512         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61513         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61514
61515 2006-08-18  Bruno Haible  <bruno@clisp.org>
61516
61517         * modules/bison-i18n: New file.
61518         * MODULES.html.sh (Internationalization functions): Add it.
61519
61520 2006-08-18  Bruno Haible  <bruno@clisp.org>
61521
61522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61523         sys/statvfs.h. When getmntinfo was found, check its declaration and
61524         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61525
61526 2006-08-18  Bruno Haible  <bruno@clisp.org>
61527
61528         * m4/bison-i18n.m4: New file, from bison.
61529
61530 2006-08-18  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61533         (ME_DUMMY): Treat "kernfs" as a dummy.
61534         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61535
61536 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         Update from coreutils.
61539
61540         2006-08-15  Jim Meyering  <jim@meyering.net>
61541
61542         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61543
61544         2006-01-17  Jim Meyering  <jim@meyering.net>
61545
61546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61547
61548         2006-01-11  Jim Meyering  <jim@meyering.net>
61549
61550         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61551         Check for the lchmod function.
61552
61553 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         Update from coreutils.
61556
61557         * lib/__fpending.h: Add copyright notice.
61558         * lib/fprintftime.h: Likewise.
61559         * lib/savedir.c: Use (C) in copyright notice.
61560         * lib/savedir.h: Likewise.
61561
61562         2006-08-15  Jim Meyering  <jim@meyering.net>
61563
61564         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61565         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61566         in support of the EXPECTED_ERRNO macro.
61567         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61568         definitions.  Instead, define the appropriate symbols and include
61569         "at-func.c".
61570         * lib/mkdirat.c (mkdirat): Likewise.
61571         * lib/fchmodat.c (fchmodat): Likewise.
61572         (ENOSYS): Remove definition.
61573         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61574         it.  Don't include "unistd--.h" -- it wasn't ever used.
61575
61576         2006-01-17  Jim Meyering  <jim@meyering.net>
61577
61578         Rewrite fts.c not to change the current working directory,
61579         by using openat, fstatat, fdopendir, etc..
61580
61581         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61582         (HAVE_OPENAT_SUPPORT): Define.
61583         [_LIBC] (fchdir): Don't undef or define; no longer used.
61584         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61585         Now, this `function' always succeeds, and consumes its file descriptor
61586         parameter -- so callers must not close such FDs.  Update callers.
61587         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61588         (diropen): Add parameter, SP.  Adjust all callers.
61589         Implement using diropen_fd, rather than open.
61590         (fts_open): Initialize new member, fts_cwd_fd.
61591         Remove fts_rft-setting code.
61592         (fts_close): Close fts_cwd_fd, if necessary.
61593         (__opendir2): Define in terms of opendir or opendirat,
61594         depending on whether the FST_NOCHDIR flag is set.
61595         (fts_build): Since fts_safe_changedir consumes its FD, and since
61596         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61597         and close the dup'd file descriptor upon failure.
61598         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61599         (fts_safe_changedir): Tweak semantics to reflect that this function
61600         now calls cwd_advance_fd and hence consumes its FD argument.
61601         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61602         [struct FTS] (fts_rft): Remove now-unused member.
61603         [struct FTS] (fts_cycle.state): Improve comment.
61604
61605         * lib/openat.c (openat_needs_fchdir): New function.
61606         * lib/openat.h (openat_needs_fchdir): Declare it.
61607
61608 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61611         Problem and fix reported by Pádraig Brady in
61612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61613
61614 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61617
61618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         * lib/memcoll.c (memcoll): Optimize for the common case where the
61621         arguments are bytewise equal.
61622
61623 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * doc/regexprops-generic.texi: Add a copyright notice.
61626
61627 2006-08-15  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/tmpdir (License): Change to LGPL.
61630
61631 2006-08-15  Bruno Haible  <bruno@clisp.org>
61632
61633         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61634         module.
61635
61636 2006-08-14  Simon Josefsson  <jas@extundo.com>
61637
61638         * config/srclist.txt: Add gnupload.
61639
61640 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61641
61642         Change copyright notice from LGPL 2 to GPL 2, since that's the
61643         standard form used in the gnulib repository.
61644         * tests/test-lock.c: Likewise.
61645         * tests/test-stdint.c: Likewise.
61646         * tests/test-tls.c: Likewise.
61647
61648         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61649         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61650         Add copyright notice.
61651
61652         * check-module: Add copyright notice.  Output a copyright
61653         notice if "--version" is specified.
61654         * modules/COPYING: New file.
61655         * tests/test-getaddrinfo.c: Add copyright notice.
61656         * tests/test-verify.c: Likewise.
61657
61658 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         Change copyright notice from LGPL 2 to GPL 2, since that's the
61661         standard form used in the gnulib repository.
61662         * lib/lock.c: LGPL -> GPL.
61663         * lib/lock.h: Likewise.
61664         * lib/strnlen1.c: Likewise.
61665         * lib/strnlen1.h: Likewise.
61666         * lib/tls.c: Likewise.
61667         * lib/tls.h: Likewise.
61668         * lib/tmpdir.c: Likewise.
61669
61670         * lib/TODO: Remove; this belongs only in coreutils.
61671
61672 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         Add copyright notices to long-enough files that lack them, since
61675         otherwise the files aren't clearly free.  Use the same notice that
61676         getdate.texi already uses.
61677         * doc/alloca-opt.texi: Add copyright notice.
61678         * doc/alloca.texi: Likewise.
61679         * doc/ctime.texi: Likewise.
61680         * doc/functions.texi: Likewise.
61681         * doc/gcd.texi: Likewise.
61682         * doc/gnulib-tool.texi: Likewise.
61683         * doc/inet_ntoa.texi: Likewise.
61684         * doc/visibility.texi: Likewise.
61685
61686         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61687         * doc/quote.texi: Add copyright notice.
61688
61689         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61690         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61691         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61692         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61693         is now obsolete, and give a pointer to the Sun list.
61694         Add copyright notice.
61695
61696 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         * config/srclistvars.sh: Add copyright notice.
61699
61700 2006-08-14  Eric Blake  <ebb9@byu.net>
61701
61702         Import the following change from libc:
61703
61704         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61705
61706         Upstream bug 2997.
61707         * lib/misc/error.c: Add space between program name and message if file
61708         name is missing.
61709
61710 2006-08-12  Karl Berry  <karl@gnu.org>
61711
61712         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61713         remove, these originate in gnulib now.
61714
61715 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61716
61717         * doc/Makefile (standards.info standards.html standards.dvi):
61718         Also depend on make-stds.texi.
61719
61720 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61723         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61724
61725         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61726         in wchar_t.  Problem reported by Eric Blake.
61727
61728         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61729         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61730         Also, help the compiler to keep LEN in a register.
61731
61732 2006-08-11  Eric Blake  <ebb9@byu.net>
61733
61734         * users.txt: Sort.  Add tar.
61735
61736 2006-08-11  Bruno Haible  <bruno@clisp.org>
61737
61738         * users.txt: New file.
61739
61740 2006-08-11  Bruno Haible  <bruno@clisp.org>
61741
61742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61743         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61744
61745 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * modules/snprintf (Depends-on): Remove minmax.
61748         (Maintainer): Add self and Bruno.
61749
61750 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61753         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61754         (EOVERFLOW): Define if the system does not.
61755         Do not include "minmax.h"; it wasn't used.
61756         (snprintf): Don't assume size_t promotes to an unsigned type.
61757         Fix bug when generated string was too long for the buffer: the
61758         buffer's contents are supposed to be the initial prefix of the
61759         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61760         exceeds INT_MAX; do the check ourselves.
61761
61762         Import the following changes from libc:
61763
61764         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61765
61766         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61767         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61768         set wc to the byte which couldn't be converted.
61769         (re_string_reconstruct): Don't clear valid_raw_len before calling
61770         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61771         tip_context using re_string_context_at.
61772
61773         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61774
61775         * lib/posix/regex.h: g++ still cannot handled [restrict].
61776
61777         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61778
61779         * lib/posix/regex.h: Remove special handling for VMS.
61780
61781 2006-08-10  Jim Meyering  <jim@meyering.net>
61782
61783         * modules/same-inode: New module.
61784         * modules/dev-ino: New module.
61785         * modules/cycle-check: Depend on these modules, rather than simply
61786         including their .h files.
61787         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61788         required via m4/cycle-check.m4.
61789         * modules/same: Depend on new same-inode module, rather than
61790         including same-inode.h.
61791         * modules/chdir-safer: New file.
61792
61793         * modules/chown (Depends-on): Add stat-macros.
61794
61795 2006-08-10  Jim Meyering  <jim@meyering.net>
61796
61797         * m4/cycle-check.m4: New file.
61798         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61799         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61800
61801 2006-08-10  Eric Blake  <ebb9@byu.net>
61802
61803         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61804         in from original proposal.
61805
61806 2006-08-10  Eric Blake  <ebb9@byu.net>
61807         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61808
61809         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61810         namespace.
61811
61812 2006-08-10  Bruno Haible  <bruno@clisp.org>
61813
61814         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61815         as well.
61816
61817 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         Sync from coreutils.
61820
61821         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61822
61823         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61824         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61825
61826 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61827
61828         * modules/restrict: Remove; no longer needed now that we assume
61829         Autoconf 2.59 or later.
61830         * MODULES.html.sh: Remove 'restrict'.
61831         * modules/argp (Depends-on): Remove 'restrict'.
61832         * modules/base64 (Depends-on): Likewise.
61833         * modules/gc (Depends-on): Likewise.
61834         * modules/getaddrinfo (Depends-on): Likewise.
61835         * modules/glob (Depends-on): Likewise.
61836         * modules/inet_ntop (Depends-on): Likewise.
61837         * modules/inet_pton (Depends-on): Likewise.
61838         * modules/memxor (Depends-on): Likewise.
61839         * modules/regex (Depends-on): Likewise.
61840         * modules/strtok_r (Depends-on): Likewise.
61841         * modules/time_r (Depends-on): Likewise.
61842
61843 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61846         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61847         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61848         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61849         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61850         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61851         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61852         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61853
61854         Merge from coreutils.
61855         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61856         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61858         * m4/time_r.m4 (gl_TIME_R): Likewise.
61859
61860 2006-08-09  Karl Berry  <karl@gnu.org>
61861
61862         * config/srclist.txt: no more gettext-tools, per Bruno.
61863
61864 2006-08-08  Eric Blake  <ebb9@byu.net>
61865
61866         * modules/verror: New module.
61867         * MODULES.html.sh: Document it.
61868
61869 2006-08-08  Eric Blake  <ebb9@byu.net>
61870
61871         * lib/verror.h, lib/verror.c: New files.
61872
61873 2006-08-08  Eric Blake  <ebb9@byu.net>
61874
61875         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61876         verror_at_line output complies with GNU Coding Standards even when
61877         file is NULL.
61878
61879 2006-08-07  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61882         versions of AIX.
61883         Reported by Ralf Wildenhues.
61884
61885 2006-08-07  Bruno Haible  <bruno@clisp.org>
61886
61887         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61888         in an AC_DEFUN. Needed so that the autoconf snippets can use
61889         AC_REQUIRE.
61890
61891 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61892
61893         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61894         Initialize pkgdata_DATA.
61895         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61896         overriding it.
61897
61898 2006-08-06  Eric Blake  <ebb9@byu.net>
61899
61900         * lib/error.h: Fold in some upstream changes from glibc.
61901         * lib/error.c: Likewise.
61902
61903 2006-08-04  Bruno Haible  <bruno@clisp.org>
61904
61905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61906         Make the mostlyclean-local rule depend on mostlyclean-generic.
61907         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61908
61909 2006-07-31  Bruno Haible  <bruno@clisp.org>
61910
61911         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61912         <stdlib.h>, <string.h>.
61913
61914 2006-07-30  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/readlink (License): Change to LGPL.
61917
61918 2006-07-30  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61921         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61922         set PKGDATADIR to point to it.
61923
61924 2006-07-30  Bruno Haible  <bruno@clisp.org>
61925
61926         * modules/csharpexec (configure.ac): Comment out macro invocation.
61927         * modules/javaexec (configure.ac): Likewise.
61928         * modules/javacomp-script (configure.ac): Likewise.
61929
61930         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61931
61932 2006-07-30  Bruno Haible  <bruno@clisp.org>
61933
61934         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61935         linked-list.
61936
61937 2006-07-30  Bruno Haible  <bruno@clisp.org>
61938
61939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61940
61941 2006-07-30  Bruno Haible  <bruno@clisp.org>
61942
61943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61944         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61945         get removed.
61946
61947 2006-07-29  Bruno Haible  <bruno@clisp.org>
61948
61949         Make it possible for gnulib-tool to work with locally modified or
61950         augmented gnulib repositories.
61951         * gnulib-tool (func_usage): Document --local-dir option.
61952         (local_gnulib_dir): New variable.
61953         Handle --local-dir option.
61954         (func_lookup_file): New function.
61955         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61956         (func_get_description, func_get_filelist, func_get_description,
61957         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61958         func_get_automake_snippet, func_get_include_directive,
61959         func_get_license, func_get_maintainer): Use func_lookup_file.
61960         (func_import, func_create_testdir): Use func_lookup_file.
61961
61962 2006-07-29  Bruno Haible  <bruno@clisp.org>
61963
61964         * modules/setenv (Depends-on): Add unistd.
61965
61966 2006-07-29  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61969
61970 2006-07-29  Bruno Haible  <bruno@clisp.org>
61971
61972         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61973
61974 2006-07-29  Bruno Haible  <bruno@clisp.org>
61975
61976         * gnulib-tool (import, update): If there is no Makefile.am, look at
61977         aclocal.m4, instead of bailing out.
61978
61979 2006-07-29  Bruno Haible  <bruno@clisp.org>
61980
61981         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61982         Categorize the options by when they are useful.
61983
61984 2006-07-29  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool (func_usage): Document option --no-libtool.
61987         Handle option --no-libtool.
61988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61989         for changed semantics of $libtool variable.
61990         (func_import): Likewise. If libtool is not used, show this through
61991         an option --no-libtool.
61992         (func_create_testdir): Update.
61993
61994 2006-07-29  Bruno Haible  <bruno@clisp.org>
61995
61996         * gnulib-tool (func_import): Extend error message about missing
61997         --doc-base.
61998
61999 2006-07-29  Bruno Haible  <bruno@clisp.org>
62000
62001         * gnulib-tool (func_import): Don't create the $docbase directory if
62002         there is no file to store there.
62003
62004 2006-07-29  Bruno Haible  <bruno@clisp.org>
62005
62006         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62007         relevant, look for configure.ac there, not in the current directory.
62008         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62009
62010 2006-07-29  Bruno Haible  <bruno@clisp.org>
62011
62012         * gnulib-tool (SORT): New variable.
62013         (func_usage): Undocument --assume-autoconf option.
62014         Remove --assume-autoconf option handling.
62015         (autoconf_minversion): Determine from the contents of configure.ac.
62016         (func_import): Remove autoconf_minversion handling.
62017         Suggested by Eric Blake.
62018
62019 2006-07-29  Bruno Haible  <bruno@clisp.org>
62020
62021         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62022
62023 2006-07-29  Bruno Haible  <bruno@clisp.org>
62024
62025         * config/srclist.txt (*setenv.[ch]): Remove rules.
62026
62027 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62028
62029         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62030
62031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62032
62033         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62034         arpa/inet.h.
62035
62036 2006-07-28  Simon Josefsson  <jas@extundo.com>
62037
62038         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62039         * modules/inet_pton (Depends-on): Likewise.
62040
62041 2006-07-28  Simon Josefsson  <jas@extundo.com>
62042
62043         * m4/netinet_in_h.m4: New file.
62044
62045 2006-07-28  Simon Josefsson  <jas@extundo.com>
62046
62047         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62048         #include's.
62049
62050 2006-07-28  Simon Josefsson  <jas@extundo.com>
62051
62052         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62053         #include's.
62054
62055 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62058         setgid on directories only if they set these bits.
62059         * lib/modechange.h: Remove obsolete comment about masks.
62060
62061 2006-07-28  Eric Blake  <ebb9@byu.net>
62062
62063         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62064         macro expansion.
62065
62066 2006-07-28  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62069
62070 2006-07-28  Bruno Haible  <bruno@clisp.org>
62071
62072         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62073
62074 2006-07-28  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62077         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62078         Define fallbacks.
62079         Avoids link error on FreeBSD 4.x.
62080         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62081
62082         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62083         encoding.
62084         * lib/mbswidth.c (iswcntrl): Likewise.
62085
62086 2006-07-27  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62089         test.
62090
62091 2006-07-27  Bruno Haible  <bruno@clisp.org>
62092
62093         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62094         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62095         defined.
62096
62097 2006-07-26  Eric Blake  <ebb9@byu.net>
62098
62099         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62100
62101 2006-07-26  Eric Blake  <ebb9@byu.net>
62102
62103         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62104         like mingw that lack mkstemp.
62105         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62106         avoid compilation warning on mingw.
62107
62108 2006-07-26  Bruno Haible  <bruno@clisp.org>
62109
62110         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62111         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62112         INT_FAST*_MIN, INTPTR_MIN.
62113
62114 2006-07-25  Bruno Haible  <bruno@clisp.org>
62115
62116         * modules/version-etc (Depends-on): Add stdarg.
62117
62118 2006-07-25  Bruno Haible  <bruno@clisp.org>
62119
62120         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62121         complex commands.
62122
62123 2006-07-25  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62126         defined in <stdarg.h> or config.h.
62127
62128 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62131         (gl_STDIO_SAFER): Remove.
62132
62133 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * MODULES.html.sh (File stream based Input/Output):
62136         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62137         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62138         * modules/fopen-safer, modules/tmpfile-safer: New files.
62139         * modules/stdio-safer: Remove.
62140
62141 2006-07-24  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/tmpdir: New file.
62144         * MODULES.html.sh (File system functions): Add it.
62145
62146 2006-07-24  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62149         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62150
62151 2006-07-24  Bruno Haible  <bruno@clisp.org>
62152
62153         * modules/clean-temp: New file.
62154
62155 2006-07-24  Bruno Haible  <bruno@clisp.org>
62156
62157         * m4/tmpdir.m4: New file, from GNU gettext.
62158
62159 2006-07-24  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/tmpdir.h: New file, from GNU gettext.
62162         * lib/tmpdir.c: New file, from GNU gettext.
62163
62164 2006-07-24  Bruno Haible  <bruno@clisp.org>
62165
62166         * lib/clean-temp.h: New file, from GNU gettext.
62167         * lib/clean-temp.c: New file, from GNU gettext.
62168
62169 2006-07-23  Eric Blake  <ebb9@byu.net>
62170
62171         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62172         (Depends-on): Add binary-io.
62173
62174 2006-07-23  Eric Blake  <ebb9@byu.net>
62175
62176         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62177
62178 2006-07-23  Eric Blake  <ebb9@byu.net>
62179
62180         * lib/tmpfile-safer.c: New file.
62181         * lib/stdio-safer.h (fopen_safer): Add prototype.
62182         * lib/stdio--.h (tmpfile): Make safer.
62183
62184 2006-07-23  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62187         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62188         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62189         gl_linked_remove_at): Use it.
62190
62191 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62192         and Simon Josefsson <jas@extundo.com>
62193
62194         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62195
62196         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62197
62198 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * modules/close-stream: New file.
62201         * modules/closeout (Description): Make it clear that it exits
62202         with a diagnostic on error.
62203         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62204         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62205
62206 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * m4/close-stream.m4: New file.
62209
62210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         * lib/close-stream.c, lib/close-stream.h: New files.
62213
62214 2006-07-22  Bruno Haible  <bruno@clisp.org>
62215
62216         Merge from GNU gettext 0.15.
62217
62218         2006-05-01  Bruno Haible  <bruno@clisp.org>
62219
62220                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62221
62222         2006-07-22  Bruno Haible  <bruno@clisp.org>
62223
62224                 * modules/javaversion: New file.
62225                 * MODULES.html.sh (Java): Add javaversion.
62226
62227         2006-03-12  Bruno Haible  <bruno@clisp.org>
62228
62229                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62230
62231         2005-12-04  Bruno Haible  <bruno@clisp.org>
62232
62233                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62234                 (untested).
62235
62236         2006-06-21  Bruno Haible  <bruno@clisp.org>
62237
62238                 Avoid warnings from recent versions of mcs.
62239                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62240                 -o, -L, -r any more. Use options documented since mcs-1.0
62241                 instead. Similarly for -g.
62242
62243         2005-12-04  Bruno Haible  <bruno@clisp.org>
62244
62245                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62246                 .resources, not .resource.
62247
62248         2005-07-09  Bruno Haible  <bruno@clisp.org>
62249
62250                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62251                 add a .dll suffix.
62252                 Reported by Mark Junker <mjscod@gmx.de>.
62253
62254         2006-07-22  Bruno Haible  <bruno@clisp.org>
62255
62256                 * modules/gettext: Upgrade to gettext-0.15.
62257                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62258                 m4/visibility.m4.
62259                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62260
62261 2006-07-22  Bruno Haible  <bruno@clisp.org>
62262
62263         Merge from GNU gettext 0.15.
62264
62265         2006-03-25  Bruno Haible  <bruno@clisp.org>
62266
62267                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62268
62269         2006-07-21  Bruno Haible  <bruno@clisp.org>
62270
62271                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62272                 "1.1".
62273
62274         2006-05-09  Bruno Haible  <bruno@clisp.org>
62275
62276                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62277                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62278                 for the conftestver execution.
62279
62280         2006-05-01  Bruno Haible  <bruno@clisp.org>
62281
62282                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62283                 optional target-version argument. Verify that the compiler
62284                 groks source of the specified source-version, or add -source
62285                 option as necessary. Verify that the compiler produces
62286                 bytecode in the specified target-version, or add -target and
62287                 -source options as necessary. Make the result of the test
62288                 available as variable CONF_JAVAC. Also log error output in
62289                 config.log.
62290
62291         2006-03-11  Bruno Haible  <bruno@clisp.org>
62292
62293                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62294
62295         2006-05-09  Bruno Haible  <bruno@clisp.org>
62296
62297                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62298                 CLASSPATH_SEPARATOR to a semicolon.
62299
62300         2006-03-12  Bruno Haible  <bruno@clisp.org>
62301
62302                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62303                 available as variable CONF_JAVA, for subsequent autoconf
62304                 tests. Also log error output in config.log.
62305
62306         2006-07-19  Bruno Haible  <bruno@clisp.org>
62307
62308                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62309                 that getline works on glibc2 systems. Needed to avoid trouble
62310                 in relocatable.c.
62311                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62312
62313         2005-12-04  Bruno Haible  <bruno@clisp.org>
62314
62315                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62316                 launcher (untested).
62317
62318         2005-12-04  Bruno Haible  <bruno@clisp.org>
62319
62320                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62321
62322         2006-07-22  Bruno Haible  <bruno@clisp.org>
62323
62324                 * gettext.m4: Update from GNU gettext-0.15.
62325                 * nls.m4: Likewise.
62326                 * po.m4: Likewise.
62327                 * inttypes-pri.m4: Likewise.
62328                 * inttypes-h.m4: Renamed from inttypes.m4.
62329                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62330
62331 2006-07-22  Bruno Haible  <bruno@clisp.org>
62332
62333         Merge from GNU gettext 0.15.
62334
62335         2005-07-05  Bruno Haible  <bruno@clisp.org>
62336
62337                 * printf-args.c (printf_fetchargs): Work around broken
62338                 definition of wint_t on mingw.
62339
62340         2005-02-12  Bruno Haible  <bruno@clisp.org>
62341
62342                 * xallocsa.h: Add extern "C" for C++.
62343
62344         2006-05-17  Bruno Haible  <bruno@clisp.org>
62345
62346                 Cygwin portability.
62347                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62348
62349         2006-04-30  Bruno Haible  <bruno@clisp.org>
62350
62351                 * progreloc.c: Include <mach-o/dyld.h> if available.
62352                 (find_executable): Use _NSGetExecutablePath when possible.
62353
62354         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62355
62356                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62357                 function.
62358
62359         2005-12-29  Bruno Haible  <bruno@clisp.org>
62360
62361                 * progreloc.c (set_program_name_and_installdir): Fix
62362                 compilation error.
62363
62364         2005-12-04  Bruno Haible  <bruno@clisp.org>
62365
62366                 Cygwin portability.
62367                 * progreloc.c: Include <windows.h> also on Cygwin.
62368                 (find_executable): Add support for Cygwin.
62369                 (set_program_name_and_installdir): Handle also platforms with
62370                 nonempty EXEEXT.
62371
62372         2006-07-11  Bruno Haible  <bruno@clisp.org>
62373
62374                 * javacomp.c: Fix a comment.
62375                 Reported by Jim Meyering.
62376
62377         2006-04-30  Bruno Haible  <bruno@clisp.org>
62378
62379                 * javacomp.h (compile_java_class): Add source_version,
62380                 target_version arguments.
62381                 * javacomp.c: Rewritten to choose only a compiler that
62382                 respects the specified source_version and target_version.
62383
62384         2006-06-27  Bruno Haible  <bruno@clisp.org>
62385
62386                 Assume correct S_ISDIR macro.
62387                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62388
62389         2006-07-22  Bruno Haible  <bruno@clisp.org>
62390
62391                 * javaversion.h: New file, from GNU gettext.
62392                 * javaversion.c: New file, from GNU gettext.
62393                 * javaversion.java: New file, from GNU gettext.
62394                 * javaversion.class: New file, from GNU gettext.
62395
62396         2006-05-17  Bruno Haible  <bruno@clisp.org>
62397
62398                 Cygwin portability.
62399                 * javaexec.c (execute_java_class): Test for jview program
62400                 also on Cygwin.
62401
62402         2006-04-09  Bruno Haible  <bruno@clisp.org>
62403
62404                 * fatal-signal.c: Don't include string.h.
62405                 (at_fatal_signal): Use a copying loop instead of memcpy.
62406
62407         2005-12-04  Bruno Haible  <bruno@clisp.org>
62408
62409                 * csharpexec.c: Add support for 'clix' launcher (untested).
62410                 (execute_csharp_using_sscli): New function.
62411                 (execute_csharp_program): Call it.
62412
62413         2006-06-21  Bruno Haible  <bruno@clisp.org>
62414
62415                 Avoid warnings from recent versions of mcs.
62416                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62417                 -o, -L, -r any more. Use options documented since mcs-1.0
62418                 instead. Similarly for -g.
62419
62420         2005-07-09  Bruno Haible  <bruno@clisp.org>
62421
62422                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62423                 add a .dll suffix.
62424                 Reported by Mark Junker <mjscod@gmx.de>.
62425
62426         2006-06-17  Bruno Haible  <bruno@clisp.org>
62427
62428                 * config.charset: Update for NetBSD 3.0.
62429
62430         2006-05-17  Bruno Haible  <bruno@clisp.org>
62431
62432                 Cygwin portability.
62433                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62434
62435         2006-05-16  Bruno Haible  <bruno@clisp.org>
62436
62437                 * localcharset.c [CYGWIN]: Include <windows.h>.
62438                 (get_charset_aliases): For Cygwin, return the same CPxxx
62439                 aliases list as under WIN32.
62440                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62441                 the environment variables. Fall back to GetACP().
62442
62443         2006-04-05  Bruno Haible  <bruno@clisp.org>
62444
62445                 * config.charset: Update Juan Manuel Guerrero's address.
62446
62447         2005-02-12  Bruno Haible  <bruno@clisp.org>
62448
62449                 * allocsa.h: Add extern "C" for C++.
62450
62451         2005-02-10  Bruno Haible  <bruno@clisp.org>
62452
62453                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62454                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62455
62456         2006-07-22  Bruno Haible  <bruno@clisp.org>
62457
62458                 * gettext.h: Update to GNU gettext-0.15.
62459
62460 2006-07-22  Bruno Haible  <bruno@clisp.org>
62461
62462         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62463         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62464         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62465
62466 2006-07-21  Eric Blake  <ebb9@byu.net>
62467
62468         * modules/stdlib-safer: New file.
62469         * MODULES.html.sh (File stream based Input/Output): Add
62470         stdlib-safer.
62471
62472 2006-07-21  Eric Blake  <ebb9@byu.net>
62473
62474         * lib/stdlib-safer.h: New file from coreutils, required by
62475         stdlib--.h.
62476
62477 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62480
62481 2006-07-20  Bruno Haible  <bruno@clisp.org>
62482
62483         * gnulib-tool: Recognize new option --assume-autoconf.
62484         (autoconf_minversion): New variable.
62485         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62486
62487 2006-07-20  Bruno Haible  <bruno@clisp.org>
62488
62489         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62490
62491 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62492
62493         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62494         Reindent and repaginate.
62495
62496 2006-07-19  Derek Price  <derek@ximbiot.com>
62497
62498         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62499         Correct grammar.
62500
62501 2006-07-17  Bruno Haible  <bruno@clisp.org>
62502
62503         * modules/list: New file.
62504         * modules/array-list: New file.
62505         * modules/carray-list, modules/carray-list-tests: New files.
62506         * modules/linked-list, modules/linked-list-tests: New files.
62507         * modules/avltree-list, modules/avltree-list-tests: New files.
62508         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62509         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62510         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62511         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62512         * modules/oset: New file.
62513         * modules/array-oset: New file.
62514         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62515         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62516         * tests/test-carray_list.c: New file.
62517         * tests/test-linked_list.c: New file.
62518         * tests/test-avltree_list.c: New file.
62519         * tests/test-rbtree_list.c: New file.
62520         * tests/test-linkedhash_list.c: New file.
62521         * tests/test-avltreehash_list.c: New file.
62522         * tests/test-rbtreehash_list.c: New file.
62523         * tests/test-avltree_oset.c: New file.
62524         * tests/test-rbtree_oset.c: New file.
62525         * MODULES.html.sh (Container data structures): New section.
62526
62527 2006-07-17  Bruno Haible  <bruno@clisp.org>
62528
62529         * m4/gl_list.m4: New file.
62530
62531 2006-07-17  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/gl_list.h: New file.
62534         * lib/gl_list.c: New file.
62535         * lib/gl_array_list.h: New file.
62536         * lib/gl_array_list.c: New file.
62537         * lib/gl_carray_list.h: New file.
62538         * lib/gl_carray_list.c: New file.
62539         * lib/gl_linked_list.h: New file.
62540         * lib/gl_linked_list.c: New file.
62541         * lib/gl_anylinked_list1.h: New file.
62542         * lib/gl_anylinked_list2.h: New file.
62543         * lib/gl_avltree_list.h: New file.
62544         * lib/gl_avltree_list.c: New file.
62545         * lib/gl_anyavltree_list1.h: New file.
62546         * lib/gl_anyavltree_list2.h: New file.
62547         * lib/gl_rbtree_list.h: New file.
62548         * lib/gl_rbtree_list.c: New file.
62549         * lib/gl_anyrbtree_list1.h: New file.
62550         * lib/gl_anyrbtree_list2.h: New file.
62551         * lib/gl_anytree_list1.h: New file.
62552         * lib/gl_anytree_list2.h: New file.
62553         * lib/gl_linkedhash_list.h: New file.
62554         * lib/gl_linkedhash_list.c: New file.
62555         * lib/gl_anyhash_list1.h: New file.
62556         * lib/gl_anyhash_list2.h: New file.
62557         * lib/gl_avltreehash_list.h: New file.
62558         * lib/gl_avltreehash_list.c: New file.
62559         * lib/gl_rbtreehash_list.h: New file.
62560         * lib/gl_rbtreehash_list.c: New file.
62561         * lib/gl_anytreehash_list1.h: New file.
62562         * lib/gl_anytreehash_list2.h: New file.
62563
62564         * lib/gl_oset.h: New file.
62565         * lib/gl_oset.c: New file.
62566         * lib/gl_array_oset.h: New file.
62567         * lib/gl_array_oset.c: New file.
62568         * lib/gl_avltree_oset.h: New file.
62569         * lib/gl_avltree_oset.c: New file.
62570         * lib/gl_rbtree_oset.h: New file.
62571         * lib/gl_rbtree_oset.c: New file.
62572         * lib/gl_anytree_oset.h: New file.
62573
62574 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * m4/mkancesdirs.m4: New file.
62577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62578         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62579         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62580         it.
62581
62582 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62585         * lib/mkancesdirs.h: New files.
62586         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62587         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62588         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62589         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62590         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62591         callers changed.  Revamp internals significantly, by not
62592         attempting to create directories that are temporarily more
62593         permissive than the final results.  Do not attempt to use
62594         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62595         This removes some race conditions, fixes some bugs, and simplifies
62596         things.  Use new dirchownmod function to do owner and mode changes.
62597         * lib/mkdir-p.h: Likewise.
62598         * lib/modechange.c (octal_to_mode): New function.
62599         (struct mode_change): New member mentioned.
62600         (make_node_op_equals): New arg mentioned.  All callers changed.
62601         (mode_compile): Keep track of which mode bits the user has explicitly
62602         mentioned.
62603         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62604         New arg PMODE_BITS, to keep track of which mode bits the user
62605         mentioned; it treats S_ISUID and S_ISGID speciall.
62606         All callers changed.
62607         * lib/modechange.h: Likewise.
62608
62609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62610
62611         * MODULES.html.sh: Add mkancestors.
62612         * modules/mkancesdirs: New module.
62613         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62614         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62615         The chdir-safer and afs files are now orphans; I'll remove them
62616         unless someone speaks up.
62617         Add lib/dirchownmod.c, lib/dirchownmod.h.
62618         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62619         Add lchown, mkancesdirs.
62620         (Maintainer): Add self.
62621
62622 2006-07-15  Karl Berry  <karl@gnu.org>
62623
62624         * gnulib-tool: help message wording/arrangement.
62625
62626 2006-07-14  Simon Josefsson  <jas@extundo.com>
62627
62628         * doc/gnulib.texi (Libtool and Windows): New section.
62629
62630 2006-07-12  Simon Josefsson  <jas@extundo.com>
62631
62632         * modules/gendocs (License): Fix license, approved by Karl.
62633
62634 2006-07-12  Eric Blake  <ebb9@byu.net>
62635
62636         * MODULES.html.sh: Add gendocs.
62637
62638 2006-07-11  Eric Blake  <ebb9@byu.net>
62639
62640         * modules/fdl: New module, to install doc/fdl.texi.
62641         * MODULES.html.sh: Add new section for documentation modules.
62642         * gnulib-tool: Avoid space-tab.
62643         (--doc-base): New option, to manage files from doc.
62644
62645 2006-07-11  Eric Blake  <ebb9@byu.net>
62646
62647         * m4/absolute-header.m4: Fix comments to match recent change.
62648
62649 2006-07-11  Eric Blake  <ebb9@byu.net>
62650
62651         * gnulib-tool: List --doc-base before --tests-base.
62652
62653 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62654
62655         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62656
62657 2006-07-11  Bruno Haible  <bruno@clisp.org>
62658
62659         * README: Mention where to put documentation.
62660
62661 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62662
62663         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62664
62665 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62668         to stdint.m4.
62669
62670 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62673         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62674         "no/such/file/stdint.h" when there is no such file, so that
62675         the resulting C code can be parsed by dodgy compilers.
62676         Problems reported by Bob Proulx.
62677
62678 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62679
62680         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62681         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62682         macros into the GNU _D_EXACT_NAMLEN.
62683         * lib/savedir.c:  Likewise.
62684         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62685
62686 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62687         and Paul Eggert  <eggert@cs.ucla.edu>
62688
62689         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62690         * m4/savedir.m4:
62691         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62692         macros into the GNU _D_EXACT_NAMLEN.
62693
62694 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62697         around the absolute name, to work around a problem with the HP-UX
62698         11.23 native C compiler, reported by Bob Proulx.
62699
62700 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * doc/maintain.texi, make-stds.texi: Sync from
62703         <http://savannah.gnu.org/projects/gnustandards>.
62704
62705 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62706
62707         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62708
62709 2006-07-09  Jim Meyering  <jim@meyering.net>
62710
62711         * m4/glob.m4: Remove a doubled word in a comment.
62712
62713 2006-07-09  Jim Meyering  <jim@meyering.net>
62714
62715         * lib/argp-pv.c: Remove a doubled word in a comment.
62716         * lib/check-version.c (check_version): Likewise.
62717         * lib/javacomp.c (compile_java_class): Likewise.
62718
62719 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62722         for the benefit of people using Autoconf 2.60.  If you want to
62723         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62724         (or m4/onceonly.m4, if pre-2.57) manually.
62725
62726 2006-07-08  Jim Meyering  <jim@meyering.net>
62727
62728         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62729         comment.
62730         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62731         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62732         comment.
62733
62734 2006-07-08  Jim Meyering  <jim@meyering.net>
62735
62736         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62737
62738 2006-07-07  Simon Josefsson  <jas@extundo.com>
62739
62740         * tests/test-crc.c: Change expected crc value, the test vector
62741         were probably computed using the old broken crc.c?
62742
62743 2006-07-06  Simon Josefsson  <jas@extundo.com>
62744
62745         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62746         now the canonical place for the M4 file).
62747
62748         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62749         from the sys_socket dependency now.
62750
62751         * modules/inet_pton (Files): Ditto.
62752
62753         * modules/inet_ntop (Files): Ditto.
62754
62755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62756
62757         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62758         not gl_PREREQ_GETUSERSHELL.
62759
62760 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62761
62762         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62763         with only one argument, for Autoconf 2.60.
62764         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62765         expand to nothing, so add a shell command to avoid syntax error.
62766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62767
62768 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62769
62770         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62771
62772 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62775         no longer needed.  Check for isblank decl.
62776         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62777         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62778         of existence.
62779
62780 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * lib/getloadavg.c: Use __VMS, not VMS.
62783         * lib/getopt.c: Likewise.
62784         * lib/getpagesize.h: Likewise.
62785         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62786         and probably does not work.
62787
62788 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/.cppi-disable: Add wcwidth.
62791         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62792         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62793         (ISGRAPH): Remove.  All uses changed to isgraph.
62794         (FOLD) [!defined _LIBC]: Remove special case.
62795         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62796         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62797         HAVE_ISBLANK.
62798         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62799         case.
62800
62801 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62802
62803         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62804         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62805         brackets.  Other minor changes to suppress some compiler
62806         warnings.
62807
62808 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62809         and Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62812         of invoking obsolescent AC_HEADER_DIRENT macro.
62813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62814         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62815         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62816         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62817         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62818         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62819         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62820         * m4/readdir.m4: Remove; no longer needed.
62821
62822 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62823         and Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62826         Don't worry about this obsolete case any more.
62827         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62828         directories.
62829         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62830         worry about this obsolete case any more.
62831         * lib/fts.c: Likewise.
62832         * lib/getcwd.c: Likewise.
62833         * lib/glob.h: Likewise.
62834         * lib/savedir.c: Likewise.
62835
62836 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62837
62838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62839         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62841         needed.
62842         All uses removed.
62843         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62844         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62845         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62846         needed.
62847         * m4/getdate.m4 (gl_GETDATE): Likewise.
62848         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62849         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62850         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62851         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62852         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62854         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62855         needed.
62856
62857 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62858
62859         * lib/memcasecmp.c: Include <limits.h>.
62860         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62861         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62862         Don't assume isdigit succeeds only on '0' through '9'.
62863
62864 2006-07-05  Eric Blake  <ebb9@byu.net>
62865
62866         * modules/getaddrinfo (Depends-on): Add snprintf.
62867
62868 2006-07-05  Eric Blake  <ebb9@byu.net>
62869
62870         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62871         to avoid 'header present but could not be compiled' on cygwin.
62872
62873 2006-07-05  Eric Blake  <ebb9@byu.net>
62874
62875         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62876         missing from netdb.h.
62877         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62878
62879 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62880
62881         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62882         no longer needed.
62883         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62884         * m4/getdate.m4 (gl_GETDATE): Likewise.
62885         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62886         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62887         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62888         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62889         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62890
62891 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62892
62893         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62894         All uses of is_space replaced by isspace.
62895         * lib/exit.h: Don't talk about STDC_HEADERS.
62896         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62897         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62898         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62899         replaced by isprint etc.
62900         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62901         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62902         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62903         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62904         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62905         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62906
62907 2006-07-05  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62910         the function exists, before testing against AIX.
62911         Reported by Martin Lambers <marlam@marlam.de>.
62912
62913 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62916         From Mark D. Baushke.
62917
62918 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62921         to the absolute name, not just one, to bypass Sun C 5.8's
62922         "warning: #include of /usr/include/... may be non-portable".
62923
62924 2006-07-04  Eric Blake  <ebb9@byu.net>
62925
62926         * modules/dirname-tests: New test module.
62927         * tests/test-dirname.c: New file, replacing dirname.c
62928         TEST_DIRNAME section that was recently deleted.
62929
62930 2006-07-04  Bruno Haible  <bruno@clisp.org>
62931
62932         Assume ANSI C header files and <ctype.h> functions.
62933         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62934         (mbsnwidth): Use isprint, iscntrl instead.
62935
62936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         Merge from coreutils.
62939         * MODULES.html.sh: Add xstrtold.
62940         * modules/xstrtold: New file.
62941         * modules/cycle-check (Files): Add lib/same-inode.h.
62942         * modules/dirname (Files): Add m4/double-slash-root.m4.
62943         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62944         * modules/mkdir-p (Files): Add lib/same-inode.h.
62945         * modules/same (Files): Add lib/same-inode.h.
62946
62947 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62950         This is to keep the terminology clean; POSIX talks about
62951         "absolute pathnames", not "full pathnames", but the GNU
62952         Coding Standards say to use "path" for something else;
62953         so use "absolute" to keep both sides happy.
62954         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62955         Set gl_absolute_header, not gl_full_header_path.
62956         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62957         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62958         All uses changed.
62959
62960         Merge from coreutils.
62961
62962         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62963
62964         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62965         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62966         want to require the building of c-strtod.o.
62967         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62968         needs -lm directly.
62969         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62970
62971         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62974         --as-needed option if available.  Problem reported by Albert Chin in
62975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62976         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62977         cc merely issues a bunch of annoying warnings for --as-needed
62978         (this problem was reported by Bob Proulx).  Also, try linking with
62979         -lm to detect a bug in binutils 2.16 (this problem was reported
62980         by Ralf Wildenhues).
62981
62982         2006-06-18  Jim Meyering  <jim@meyering.net>
62983
62984         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62985         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62986         macro.
62987         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62988         also check for glibc-2.4's abort-inducing bug.
62989
62990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62991         Low-probability clean-up should be to use rmdir to get rid of
62992         the just-created directory, not unlink.
62993
62994         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62995         configure fail, and request a bug report to inform us about it.
62996         Add a comment that, barring reports to the contrary, in 2007 we'll
62997         assume ftruncate is universally available.
62998
62999         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63002
63003         2006-03-12  Jim Meyering  <jim@meyering.net>
63004
63005         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63006         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63007         * m4/same.m4 (gl_SAME): Likewise.
63008         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63009
63010         2006-03-11  Eric Blake  <ebb9@byu.net>
63011
63012         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63013         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63014         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63015         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63016
63017 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63020         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63021         reported by Mark D. Baushke, one in
63022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63023
63024         Merge from coreutils.
63025
63026         * lib/.cppi-disable: Add stdint_.h.
63027         * lib/.cvsignore: Add stdint.h.
63028
63029         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63032         both double and long double versions.
63033         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63034         * lib/xstrtold.c: New file.
63035         * lib/xstrtod.h (xstrtold): New decl.
63036
63037         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63038
63039         * lib/filemode.c (setst): Remove.
63040         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63041         (arguably) clearer, and the generated code is a bit smaller on my
63042         Debian GNU/Linux stable x86 host.
63043
63044         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63047         Assume that filemode.h includes sys/types.h and sys/stat.h.
63048         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63049         (ftypelet): Reorder to put common cases first, for efficiency.
63050         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63051         to do 'M'.
63052         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63053         of 10, for compatibility with FreeBSD.  All callers changed.
63054         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63055         types that can't be deduced solely from st_mode.  First arg is now a
63056         const pointer.
63057         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63058         (strmode): Renamed from mode_string.
63059         (filemodestring): New decl.
63060         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63061         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63062         needed.
63063         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63064
63065         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63068         fsusage.h now does that.  Include fsusage.h first, to test interface.
63069         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63070         at most one method (the old code could have generated decls that
63071         didn't conform to C89, not that this was ever exercised).
63072         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63073
63074         2006-03-19  Jim Meyering  <jim@meyering.net>
63075
63076         Work even in a chroot where d_ino values for entries in "/"
63077         don't match the stat.st_ino values for the same names.
63078         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63079         number, iterate through all entries again, using lstat instead.
63080         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63081         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63082
63083         * lib/getcwd.c (__getcwd): Clarify a comment.
63084         Use memcpy in place of a call to strcpy.
63085
63086         2006-03-12  Jim Meyering  <jim@meyering.net>
63087
63088         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63089         matches that of the current directory (which we're about to chdir ".."
63090         out of), then save the dev-ino of the parent, instead.
63091
63092         * lib/same-inode.h (SAME_INODE): New file/macro.
63093         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63094         Include "same-inode.h", instead.
63095         * lib/same.c: Likewise.
63096         * lib/cycle-check.h: Include "same-inode.h".
63097         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63098         * lib/cycle-check.c (SAME_INODE): Remove definition.
63099         * lib/root-dev-ino.h: Include "same-inode.h".
63100
63101         2006-03-11  Eric Blake  <ebb9@byu.net>
63102
63103         * lib/same.c (same_name): s/base_name/last_component/
63104         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63105         * lib/filenamecat.c (file_name_concat): Likewise.
63106
63107         2006-03-11  Eric Blake  <ebb9@byu.net>,
63108                     Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63111         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63112         drive prefix.
63113         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63114         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63115         (last_component): New method.
63116         * lib/dirname.c (dir_len): Determine when drive letters need a
63117         subsequent slash.  Preserve // when it is special.
63118         (dir_name): Don't append dot when drive letter is absolute.
63119         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63120         * lib/basename.c (base_name): New semantics - malloc the result.
63121         Preserve // when it is special.  Preserve relative files that look
63122         like drive letters.
63123         (base_len): Preserve // when it is special.
63124         (last_component): New method, similar to old base_name semantics.
63125         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63126         base_name.  Strip redundant slashes from ///.
63127
63128 2006-07-03  Jim Meyering  <jim@meyering.net>
63129
63130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63131         macro is used before the first cycle_check call.
63132
63133 2006-07-03  Eric Blake  <ebb9@byu.net>
63134
63135         * modules/dirname (Depends-on): Add xstrndup.
63136
63137 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63140         test cases, so that config.log is a bit easier to follow.
63141
63142 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63145         both are 64 bits, since this seems to be the tradition, and this
63146         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63147         we ever run into a host that prefers long long to long in this
63148         case, we'll need another configure-time test.  Problem reported by
63149         Jim Meyering.
63150
63151 2006-07-02  Eric Blake  <ebb9@byu.net>
63152
63153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63154
63155 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * modules/inttypes (Depends-on): No longer depends on stdint.
63158         * modules/stdint (Description): Say more about assumptions.
63159         Say that the fast types might differ.  Say macros are used.
63160         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63161         (Makefile.am): Revise list of substituted symbols to match
63162         new stdint.m4.
63163         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63164         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63165         * tests/test-stdint.c (verify_same_types)
63166         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63167         the code conforms to C99/C89.
63168         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63169         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63170
63171 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63174         but fix a bug, by requiring at least 64 bits.
63175         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63176         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63177         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63178         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63179
63180         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63181         changes.  Make 2.59 a prerequisite.  Check and substitute for
63182         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63183         inttypes.h.  Do not use special include files; just use the
63184         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63185         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63186         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63187         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63188         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63189         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63190         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63191         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63192         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63193         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63194         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63195         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63196         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63197         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63198         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63199         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63200         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63201         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63202         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63203         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63204         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63205         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63206         not check for things that C99 does not require, e.g., int8_t.  If
63207         a test isn't needed unless <stdint.h> isn't working, and is
63208         unlikely to be needed for any other reason, then don't do it
63209         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63210         size_t, since we assume C89 freestanding at least.  Do not check
63211         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63212         the right thing even if the types are not defined.  Instead use:
63213         (gl_STDINT_TYPE_PROPERTIES): New macro.
63214         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63215         testing whether <sys/types.h> clashes, as Autoconf does this for
63216         us now.  All uses removed.
63217         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63218         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63219         (gl_CHECK_TYPE_SAME):
63220         Remove; no longer needed.
63221         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63222         exists, since we'll return 0 anyway in that case.
63223         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63224
63225 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63228         possible collision with system files.
63229         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63230         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63231         WCHAR_MIN and WCHAR_MAX in this case.
63232         (<stddef.h>): Do not include; no longer needed.
63233         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63234         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63235         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63236         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63237         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63238         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63239         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63240         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63241         !defined(__c99))]: Include in this case too, since it's harmless
63242         now.
63243         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63244         dangerous to do so.
63245         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63246         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63247         (_STDINT_MIN, _STDINT_MAX): New macros.
63248         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63249         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63250         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63251         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63252         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63253         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63254         macros, not typedefs; this simplifies things quite a bit.
63255         Use long int for all types narrower than int64_t.
63256         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63257         Define in terms of long long int or int64_t or long int,
63258         not int64_t or int32_t.  This saves some compile-time testing.
63259         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63260         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63261         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63262         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63263         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63264         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63265         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63266         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63267         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63268         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63269         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63270         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63271         undef any previous version and define our own version, for
63272         simplicity and consistency with the new macros for types.
63273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63275         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63276         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63277         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63278         @WINT_T_SUFFIX@ to keep things simple here.
63279         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63280         Simplify by assuming typical 8/16/32/64 host, since we're
63281         already doing that elsewhere anyway.
63282         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63283         and assume long long int is 64 bits if available.  This
63284         speeds up 'configure'.
63285
63286 2006-07-01  Eric Blake  <ebb9@byu.net>
63287
63288         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63289         Reported by Andreas Buening.
63290
63291 2006-07-01  Eric Blake  <ebb9@byu.net>
63292
63293         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63294
63295 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63296
63297         * lib/getaddrinfo.c: fixed typo
63298
63299 2006-06-29  Jim Meyering  <jim@meyering.net>
63300
63301         * modules/strftime (Maintainer): Add my name, since with the
63302         FPRINTFTIME changes strftime.c has forked from glibc.
63303
63304 2006-06-29  Eric Blake  <ebb9@byu.net>
63305
63306         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63307
63308 2006-06-29  Eric Blake  <ebb9@byu.net>
63309
63310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63311
63312 2006-06-29  Eric Blake  <ebb9@byu.net>
63313
63314         * lib/stat_.h: New file.
63315
63316 2006-06-29  Eric Blake  <ebb9@byu.net>
63317
63318         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63319         unused static function.
63320
63321 2006-06-29  Eric Blake  <ebb9@byu.net>
63322
63323         * doc/functions.texi (Function Portability): Document missing lstat
63324         on mingw.
63325
63326 2006-06-29  Eric Blake  <ebb9@byu.net>
63327
63328         * MODULES.html.sh: Add sys_stat.
63329         * modules/sys_stat: New module.
63330         * modules/mkstemp (Depends-on): Add sys_stat.
63331
63332 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63333
63334         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63335
63336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63337
63338         * m4/c-bs-a.m4: Removed.
63339
63340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63341
63342         * lib/strftime.c: Assume strftime() exists.
63343
63344 2006-06-29  Derek Price  <derek@ximbiot.com>
63345
63346         * modules/c-bs-a: Removed - \a is C89.
63347         * MODULES.html.sh: Remove c-bs-a.
63348
63349 2006-06-29  Bruno Haible  <bruno@clisp.org>
63350
63351         * modules/wcwidth (License): Change to LGPL.
63352
63353 2006-06-28  Simon Josefsson  <jas@extundo.com>
63354
63355         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63356         on _WIN32.
63357
63358         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63359         getnameinfo.
63360
63361 2006-06-28  Simon Josefsson  <jas@extundo.com>
63362
63363         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63364
63365 2006-06-28  Simon Josefsson  <jas@extundo.com>
63366
63367         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63368         functions there.  It will succeed on Windows XP, but on Windows
63369         2000 and (presumably) earlier, it will fail, and use the internal
63370         re-implementation.
63371         (use_win32_p): New function.
63372         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63373         Support AI_NUMERICSERV to disable getservbyname.
63374         (getnameinfo): New function, only supports
63375         NI_NUMERICHOST|NI_NUMERICSERV for now.
63376
63377         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63378         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63379         getnameinfo.
63380
63381 2006-06-28  Eric Blake  <ebb9@byu.net>
63382
63383         * modules/wcwidth: New file.
63384         * modules/mbchar (Depends-on): Add wcwidth.
63385         * modules/mbswidth (Depends-on): Add wcwidth.
63386         * MODULES.html.sh: Add wcwidth.
63387
63388 2006-06-28  Eric Blake  <ebb9@byu.net>
63389
63390         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63392
63393 2006-06-28  Eric Blake  <ebb9@byu.net>
63394
63395         * lib/xvasprintf.h: Fix comments.
63396
63397 2006-06-28  Eric Blake  <ebb9@byu.net>
63398
63399         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63400         * lib/mbswidth.c (wcwidth): Move from here...
63401         * lib/wcwidth.h: ...to this new file.
63402
63403 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63404
63405         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63406
63407         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63408         it's obsolete.
63409         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63410
63411 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63412
63413         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63414         Autoconf 2.60 says this stuff was obsolete.
63415
63416 2006-06-28  Bruno Haible  <bruno@clisp.org>
63417
63418         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63419
63420 2006-06-28  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63423         gt_TYPE_WCHAR_T.
63424
63425 2006-06-28  Bruno Haible  <bruno@clisp.org>
63426
63427         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63428         declaration for wcwidth.
63429         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63430
63431 2006-06-28  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63434         (mkdir): Define using _mkdir.
63435
63436 2006-06-28  Bruno Haible  <bruno@clisp.org>
63437
63438         * lib/getaddrinfo.h: Fix POSIX URL.
63439         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63440         _WIN32.
63441         (use_win32_p): Make static.
63442         (getaddrinfo): Reject service name if it is empty or does not consist
63443         solely of decimal digits, or if its value is > 65535.
63444         (getnameinfo): Remove useless casts.
63445
63446 2006-06-27  Simon Josefsson  <jas@extundo.com>
63447
63448         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63449         Eggert and Martin Lambers.
63450
63451 2006-06-27  Simon Josefsson  <jas@extundo.com>
63452
63453         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63454         Eggert and Martin Lambers.
63455
63456 2006-06-27  Bruno Haible  <bruno@clisp.org>
63457
63458         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63459         result to 0, not to empty.
63460         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63461
63462 2006-06-27  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63465
63466 2006-06-26  Simon Josefsson  <jas@extundo.com>
63467
63468         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63469         present.
63470
63471 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63474         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63476
63477 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63478
63479         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63480
63481 2006-06-26  Bruno Haible  <bruno@clisp.org>
63482
63483         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63484
63485 2006-06-26  Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63488
63489 2006-06-26  Bruno Haible  <bruno@clisp.org>
63490
63491         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63492         SGI C compiler in pre-C99 mode.
63493         Suggested by Mark D. Baushke and Larry Jones.
63494
63495 2006-06-26  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63498         WCHAR_MAX.
63499         Reported by Mark D. Baushke and Larry Jones.
63500
63501 2006-06-26  Bruno Haible  <bruno@clisp.org>
63502
63503         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63504         in pre-C99 mode.
63505         Suggested by Mark D. Baushke and Larry Jones.
63506
63507 2006-06-23  Simon Josefsson  <jas@extundo.com>
63508             Bruno Haible  <bruno@clisp.org>
63509
63510         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63511         Emit mostlyclean-local rule.
63512         (func_emit_tests_Makefile_am): Likewise.
63513         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63514
63515 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63516
63517         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63518
63519 2006-06-23  Bruno Haible  <bruno@clisp.org>
63520
63521         * tests/test-stdint.c: Update to match ISO C 99 Technical
63522         Corrigendum 1.
63523
63524 2006-06-23  Bruno Haible  <bruno@clisp.org>
63525
63526         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63527
63528 2006-06-23  Bruno Haible  <bruno@clisp.org>
63529
63530         * lib/stdint_.h: Treat IRIX like OpenBSD.
63531
63532 2006-06-23  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63535         ISO C 99 Technical Corrigendum 1.
63536
63537 2006-06-22  Simon Josefsson  <jas@extundo.com>
63538
63539         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63540         MinGW.
63541
63542 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63545         needed.  Some compiler complained about some of them.  Problem reported
63546         by Larry Jones in
63547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63548
63549 2006-06-21  Simon Josefsson  <jas@extundo.com>
63550
63551         * tests/test-getaddrinfo.c: New file.
63552
63553         * modules/getaddrinfo-tests: New file.
63554
63555         * MODULES.html.sh: Add inet_pton.
63556
63557         * modules/inet_pton: New file.
63558
63559 2006-06-21  Simon Josefsson  <jas@extundo.com>
63560
63561         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63562         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63563         of using the (limited) gnulib implementation on Windows XP.
63564
63565         * m4/inet_pton.m4: New file.
63566
63567 2006-06-21  Simon Josefsson  <jas@extundo.com>
63568
63569         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63570         variable.
63571
63572         * lib/socket_.h: Don't define WINVER.
63573
63574         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63575         slightly modified to work in gnulib.
63576
63577 2006-06-21  Simon Josefsson  <jas@extundo.com>
63578
63579         * doc/gnulib.texi (Windows sockets): Add.
63580
63581 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * lib/read-file.c (fread_file): Start with buffer allocation of
63584         0 bytes rather than 1 byte; this simplifies the code.
63585         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63586         code to free buffer and save/restore errno.
63587         (internal_read_file): Remove unused local.
63588
63589 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63590
63591         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63592         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63593         Problem reported by Denis Excoffier in
63594         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63595
63596 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63597
63598         * modules/sys_socket, modules/socklen: Include sys/types since
63599         FreeBSD 4.x's sys/socket.h needs it.
63600
63601 2006-06-19  Simon Josefsson  <jas@extundo.com>
63602
63603         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63604
63605 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63608
63609 2006-06-19  Bruno Haible  <bruno@clisp.org>
63610
63611         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63612         and FULL_PATH_INTTYPES_H in angle brackets.
63613         Reported by Mark D. Baushke <mdb@gnu.org>.
63614
63615 2006-06-17  Eric Blake  <ebb9@byu.net>
63616
63617         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63618         errno.
63619
63620 2006-06-17  Bruno Haible  <bruno@clisp.org>
63621
63622         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63623         <sys/inttypes.h>.
63624
63625 2006-06-17  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63628         whether errno is declared. Assume <errno.h> declares errno.
63629
63630 2006-06-17  Bruno Haible  <bruno@clisp.org>
63631
63632         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63633
63634 2006-06-17  Bruno Haible  <bruno@clisp.org>
63635
63636         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63637         problem on Solaris 2.5.1.
63638
63639 2006-06-16  Eric Blake  <ebb9@byu.net>
63640
63641         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63642         * lib/unicodeio.c [!defined errno]: Likewise.
63643         * lib/strtol.c [!defined errno]: Likewise.
63644         * lib/strtod.c [!defined errno]: Likewise.
63645
63646 2006-06-15  Eric Blake  <ebb9@byu.net>
63647
63648         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63649
63650 2006-06-15  Eric Blake  <ebb9@byu.net>
63651
63652         * config/srclist.txt (ssize_t.m4): Lose sync.
63653
63654 2006-06-15  Bruno Haible  <bruno@clisp.org>
63655
63656         * modules/stdint (Files): Include m4/full-header-path.m4,
63657         m4/size_max.m4, m4/wchar_t.m4.
63658         (Makefile.am): Many more substitutions.
63659         * modules/stdint-tests: New file.
63660         * tests/test-stdint.c: New file.
63661
63662 2006-06-15  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63665         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63666         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63667         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63668         gl_CHECK_TYPE_SAME): New macros.
63669
63670 2006-06-15  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63673
63674 2006-06-15  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/stdint_.h: Rewritten to be fully auto-configured.
63677         Fixes bug on HP-UX/IA64.
63678
63679 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * lib/getdate.y (__attribute__): Don't define if already defined.
63682         Problem reported by Larry Jones.
63683         * lib/utimens.c (__attribute__): Likewise.
63684
63685 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63688         reported by Andreas Schwab.
63689
63690 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63691             Bruno Haible  <bruno@clisp.org>
63692
63693         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63694         check for the declaration of strnlen and a run test that exposes the
63695         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63696         rpl_strndup.
63697
63698 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63699             Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63702
63703 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63704
63705         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63706         compile test, for Tru64 4.0D.
63707
63708 2006-05-28  Karl Berry  <karl@gnu.org>
63709
63710         * config/srclist.txt (printf-args.c): lose sync.
63711
63712 2006-05-26  Martin Lambers  <marlam@marlam.de>
63713
63714         * lib/getpass.c: Updates the test for the native W32 API, and adds
63715         missing includes, thus fixing compilation warnings.
63716
63717 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63718
63719         * lib/exclude.c (exclude_fnmatch): New function.
63720         (excluded_file_name): Call exclude_fnmatch.
63721         * lib/exclude.h (excluded_file_name): New prototype
63722
63723 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63724
63725         * lib/tempname.c (small_open, large_open): New macros.
63726         (__open, __open64) [!_LIBC]: Remove.
63727         (__gen_tempname): Use small_open and large_open instead of __open
63728         and __open64.  This fixes a portability bug on HP-UX 11.11i
63729         reported by Simon Wing-Tang in
63730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63731
63732 2006-05-24  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63735         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63736         Reported by Thorsten Maerz <torte@netztorte.de> via
63737         Aaron Stone <aaron@serendipity.cx>.
63738
63739 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63742         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63743         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63744         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63745         not really conditional on the cache.
63746         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63747
63748 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63751         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63752         (my_usleep): Don't mishandle maximum value.
63753
63754 2006-05-19  Jim Meyering  <jim@meyering.net>
63755
63756         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63757
63758 2006-05-17  Bruno Haible  <bruno@clisp.org>
63759
63760         Cygwin portability.
63761         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63762
63763 2006-05-17  Bruno Haible  <bruno@clisp.org>
63764
63765         * lib/stdint_.h: Fix recognition of Cygwin.
63766
63767 2006-05-15  Bruno Haible  <bruno@clisp.org>
63768
63769         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63770         on libtool patch by Ralf Wildenhues.
63771
63772 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63775         test for C99 conformance; (bool) 0.5 is an integer constant
63776         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63777         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63778
63779 2006-05-11  Simon Josefsson  <jas@extundo.com>
63780
63781         * m4/xvasprintf.m4: Fix obvious typo.
63782
63783 2006-05-11  Jim Meyering  <jim@meyering.net>
63784
63785         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63786         James Lemley.
63787
63788 2006-05-10  Simon Josefsson  <jas@extundo.com>
63789
63790         * lib/md4.c: Typo fix, update copyright years.
63791         (K1, K2): Don't use L because it turn computations into 64-bit on
63792         64-bit platforms.
63793
63794 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63797         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63798         unwanted sign propagation, e.g., on hosts with 64-bit int.
63799         There still are some problems with reeelly weird theoretical hosts
63800         (e.g., 33-bit int) but it's not worth worrying about now.
63801         * lib/sha1.c (rol): Likewise.
63802         (K1, K2, K3, K4): Remove unnecessary L suffix.
63803
63804 2006-05-10  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/des.c: Cast to avoid warnings.
63807
63808 2006-05-09  Bruno Haible  <bruno@clisp.org>
63809
63810         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63811         (Depends-on): Depend also on xsize, stdarg.
63812         (configure.ac): Add gl_XVASPRINTF.
63813
63814 2006-05-09  Bruno Haible  <bruno@clisp.org>
63815
63816         * m4/xvasprintf.m4: New file.
63817
63818 2006-05-09  Bruno Haible  <bruno@clisp.org>
63819
63820         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63821         (EOVERFLOW): Define fallback value.
63822         (xstrcat): New function.
63823         (xvasprintf): Recognize the special case of a string concatenation.
63824
63825 2006-05-08  Eric Blake  <ebb9@byu.net>
63826
63827         * gnulib-tool (func_version): Base copyright year on CVS date.
63828         (func_emit_copyright_notice): New function.
63829         (func_emit_lib_Makefile_am): Use it.
63830         (func_emit_tests_Makefile_am): Likewise.
63831         (func_import): Likewise.
63832
63833 2006-05-08  Bruno Haible  <bruno@clisp.org>
63834
63835         * modules/stdarg: New file.
63836         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63837
63838 2006-05-08  Bruno Haible  <bruno@clisp.org>
63839
63840         * m4/stdarg.m4: New file, from GNU gettext.
63841
63842 2006-05-08  Bruno Haible  <bruno@clisp.org>
63843
63844         * config/srclist.txt (build-aux/config.rpath): different from latest
63845         release.
63846
63847 2006-05-08  Bruno Haible  <bruno@clisp.org>
63848
63849         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63850
63851 2006-05-05  Jim Meyering  <jim@meyering.net>
63852
63853         * m4/warning.m4: New file, derived from bison's file by the same name.
63854
63855 2006-05-03  Bruno Haible  <bruno@clisp.org>
63856
63857         * lib/stdint_.h: Shorter URL.
63858         * lib/inttypes.h: Likewise.
63859
63860 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63863
63864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         * lib/verify.h: Document the internals better.  Most of this change
63867         was written by Bruno Haible.
63868
63869 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63870
63871         * doc/verify.texi: New file, partly based on a proposal by
63872         Bruno Haible.
63873
63874 2006-05-02  Bruno Haible  <bruno@clisp.org>
63875
63876         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63877         test from here...
63878         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63879
63880 2006-04-29  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63883         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63884
63885 2006-04-29  Bruno Haible  <bruno@clisp.org>
63886
63887         * gnulib-tool: Make --update option actually work.
63888
63889 2006-04-29  Bruno Haible  <bruno@clisp.org>
63890
63891         * doc/gcd.texi: New file.
63892         * doc/gnulib.texi: Include it.
63893
63894 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * lib/getdate.y (get_date): When adding relative date, start with the
63897         initial time, not with the result of the first mktime call.
63898
63899 2006-04-25  Bruno Haible  <bruno@clisp.org>
63900
63901         * gnulib-tool (func_import): Output the include directives in three
63902         blocks, sorted separately.
63903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63904
63905 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63908         to define main with arguments, for C++.  Reported by Eric Blake.
63909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63910         Prefer 'int main ()' to 'int main (void)', for C++.
63911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63913         for 'main', for C99 and C++.
63914
63915 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63918         Don't assume that exit status -1 is valid.
63919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63920         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63921         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63922         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63923         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63925         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63926         functions can be used without declaring them, or that you can
63927         exit with status -1.
63928         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63929
63930 2006-04-24  Karl Berry  <karl@gnu.org>
63931
63932         * config/srclist.txt (longdouble.m4): sync lost.
63933
63934 2006-04-24  Eric Blake  <ebb9@byu.net>
63935
63936         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63937
63938 2006-04-24  Bruno Haible  <bruno@clisp.org>
63939
63940         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63941         poll() implementation in AIX.
63942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63943
63944 2006-04-24  Bruno Haible  <bruno@clisp.org>
63945
63946         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63947         assigned exactly once.
63948
63949 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63950             Bruno Haible  <bruno@clisp.org>
63951
63952         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63953         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63954         for AM_CPPFLAGS.
63955
63956 2006-04-23  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/copy-file: Depend on unistd.
63959         * modules/execute: Likewise.
63960         * modules/fatal-signal: Likewise.
63961         * modules/findprog: Likewise.
63962         * modules/mkdtemp : Likewise.
63963         * modules/pipe: Likewise.
63964         * modules/wait-process: Likewise.
63965
63966 2006-04-23  Bruno Haible  <bruno@clisp.org>
63967
63968         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63969         condition was already detected.
63970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63971
63972 2006-04-23  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/copy-file.c: Include <unistd.h> unconditionally.
63975         * lib/execute.c: Likewise.
63976         * lib/fatal-signal.c: Likewise.
63977         * lib/findprog.c: Likewise.
63978         * lib/mkdtemp.c: Likewise.
63979         * lib/pipe.h: Likewise.
63980         * lib/pipe.c: Likewise.
63981         * lib/wait-process.h: Likewise.
63982
63983 2006-04-23  Bruno Haible  <bruno@clisp.org>
63984
63985         * gnulib-tool (func_usage): Fix --import description. Document
63986         --update.
63987         (func_import): Create temporary file in a temporary directory, if
63988         --dry-run is specified. Silence errors from 'grep' when there are no
63989         m4 files in $m4dir.
63990         (func_create_testdir): Silence errors from 'grep' when there are no
63991         m4 files in $m4dir.
63992         Reported by Karl Berry <karl@freefriends.org>.
63993
63994 2006-04-20  Bruno Haible  <bruno@clisp.org>
63995
63996         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63997         one argument, so that the code will be portable to Autoconf 2.60.
63998         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64000         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64001
64002 2006-04-19  Derek Price  <derek@ximbiot.com>
64003             Eric Blake  <ebb9@byu.net>
64004
64005         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64006         rather than "/full/path.h".  Update comment to match.  Shorten &
64007         generalize m4_translit call via AS_TR_CPP.
64008
64009 2006-04-19  Derek Price  <derek@ximbiot.com>
64010             Eric Blake  <ebb9@byu.net>
64011
64012         * lib/inttypes.h: Correct grammar in comment.
64013
64014 2006-04-18  Derek Price  <derek@ximbiot.com>
64015             Paul Eggert  <eggert@cs.ucla.edu>
64016
64017         * modules/inttypes: New file.
64018         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64019
64020 2006-04-18  Derek Price  <derek@ximbiot.com>
64021             Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64024         New files.
64025
64026 2006-04-18  Derek Price  <derek@ximbiot.com>
64027             Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * lib/inttypes.h: New file.
64030         * lib/strtoimax.c: Assume <inttypes.h>.
64031
64032 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64035         isn't mounted.  Problem reported by Kir Kolyshkin.
64036
64037 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64040         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64041         Derek R. Price.
64042         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64043         implementation.
64044
64045 2006-04-12  Eric Blake  <ebb9@byu.net>
64046
64047         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64048         is now done automatically by the corresponding Autoconf macro.
64049
64050 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64053         time_r.h.
64054
64055 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         Merge regex changes from libc, removing some of our
64058         POSIX-conformance changes that were rejected and redoing them in a
64059         less-intrusive way.
64060
64061         * lib/regcomp.c (re_compile_internal, init_dfa):
64062         Length arg is now size_t, not Idx.  All uses changed.
64063         (peek_token): Forward decl now says internal_function.
64064         (__re_error_msgid, __re_error_msgid_idx):
64065         Now static rather than extern with attribute_hidden.
64066         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64067         For some reason libc prefers K&R style defns for external functions.
64068         (regerror) [!defined _LIBC]: Likewise.
64069         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64070         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64071         (build_range_exp, build_collating_symbol):
64072         Use K&R-style defn.
64073         (re_compile_fastmap): Use '\0' to memset, not 0.
64074         (utf8_sb_map): Make the calculations more obvious.
64075         (init_dfa, parse_bracket_exp, build_charclass_op):
64076         Call calloc and cast result, as glibc does.
64077         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64078         (build_range_exp, build_collating_symbol):
64079         Now internal functions.
64080
64081         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64082
64083         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64084         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64085         Don't depend on VMS; depend on __VMS instead, for POSIX
64086         namespace cleanness.
64087         (regoff_t): Define to ssize_t, not long int.
64088
64089         Remove the REG_ macros named below.  Instead, make the old names
64090         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64091         __USE_GNU_REGEX.
64092         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64093         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64094         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64095         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64096         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64097         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64098         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64099         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64100         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64101         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64102         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64103         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64104         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64105         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64106         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64107         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64108         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64109         (REG_NREGS):
64110         Remove.  All uses replaced by the old RE_* names.
64111         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64112         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64113         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64114         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64115         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64116         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64117         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64118         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64119         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64120         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64121         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64122         Don't bother having these macros be independent of each others'
64123         values, since they no longer exist in the POSIX name space.
64124
64125         Rename the following member names back to their old names,
64126         unless !__USE_GNU_REGEX.  All uses changed back.
64127         (buffer): Renamed from re_buffer.
64128         (allocated): Renamed from re_allocated.
64129         (used): Renamed from re_used.
64130         (syntax): Renamed from re_syntax.
64131         (fastmap): Renamed from re_fastmap.
64132         (translate): Renamed from re_translate.
64133         (can_be_null): Renamed from re_can_be_null.
64134         (regs_allocated): Renamed from re_regs_allocated.
64135         (fastmap_accurate): Renamed from re_fastmap_accurate.
64136         (no_sub): Renamed from re_no_sub.
64137         (not_bol): Renamed from re_not_bol.
64138         (not_eol): Renamed from re_not_eol.
64139         (newline_anchor): Renamed from re_newline_anchor.
64140         (num_regs): Renamed from rm_num_regs.
64141         (start): Renamed from rm_start.
64142         (end): Renamed from rm_end.
64143
64144         (free_state): Move up a bit.
64145
64146         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64147         #define to be empty.
64148         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64149         when that is what is intended.
64150         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64151         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64152         (MAX): New macro.
64153         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64154         All uses changed back to re_malloc, etc.  It's now the caller's
64155         responsibility to check for overflow; all callers changed.
64156         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64157         (re_x2nrealloc): Remove.
64158         (free_state): Remove decl.
64159
64160         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64161         (re_set_registers, re_exec):
64162         Use K&R-style defn.
64163
64164         2006-01-31  Roland McGrath  <roland@redhat.com>
64165
64166         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64167         Reported by Mike Frysinger <vapier@gentoo.org>.
64168
64169         2006-01-15  Andreas Jaeger  <aj@suse.de>
64170
64171         [BZ #1950]
64172         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64173         build_wcs_upper_buffer change.
64174         (build_wcs_upper_buffer): Change return type.
64175
64176         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64177
64178         * lib/regex_internal.h: Include <stdint.h> if available.
64179
64180         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64181
64182         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64183
64184         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64185
64186         * lib/regcomp.c: Adjust for changed secondary hash function.
64187
64188         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64189
64190         * lib/regex.h: Pretty printing.
64191         Clean up namespace a bit.
64192
64193         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64194
64195         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64196         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64197
64198         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64199                     Ulrich Drepper  <drepper@redhat.com>
64200
64201         [BZ #1302]
64202         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64203         changed.
64204         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64205
64206         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64207
64208         [BZ #281]
64209         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64210         * lib/regcomp.c: Remove unnecessary uses of
64211         unsigned RE_TRANSLATE_TYPE.
64212         * lib/regex_internal.h: Likewise.
64213         * lib/regex_internal.c: Likewise.
64214         * lib/regexec.c: Likewise.
64215         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64216
64217         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64218
64219         * lib/regexec.c (find_recover_state): Remove unnecessary
64220         initialization.
64221         (transit_state_bkref): Make DFA a const pointer.
64222         (get_subexp): Likewise.
64223         (check_arrival): Likewise.
64224         (update_cur_sifted_state): Likewise.
64225         (re_search_internal): Likewise.
64226         (prune_impossible_nodes): Likewise.
64227         (acquire_init_state_context): Likewise.
64228         (proceed_next_node): Likewise.
64229         (set_regs): Likewise.
64230         (free_fail_stack_return): Likewise.
64231         (check_arrival_expand_ecl): Mark DFA parameter as const.
64232         (check_arrival_expand_ecl_sub): Likewise.
64233         (check_subexp_limits): Likewise.
64234         (sub_epsilon_src_nodes):  Likewise.
64235         (add_epsilon_src_nodes):  Likewise.
64236         (merge_state_array): Likewise.
64237         (update_regs): Likewise.
64238         (build_trtable): Likewise.
64239         (sift_states_backward): Mark MCTX parameter as const.
64240         (build_sifted_states): Likewise.
64241         (update_cur_sifted_state): Likewise.
64242         (sift_states_mkref): Likewise.
64243         (check_arrival_expand_ecl): Mark eclosure as const.
64244         (check_dst_limits_calc_pos_1): Likewise.
64245         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64246         pointer.
64247
64248         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64249
64250         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64251         (transit_state_sb): Likewise.
64252         (transit_state_mb): Likewise.
64253         (sift_states_iter_mb): Likewise.
64254         (check_arrival_add_next_nodes): Likewise.
64255         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64256         [_LIBC] (re_search_2_stub): Use mempcpy.
64257
64258         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64259         mbrtowc for very simple UTF-8 case.
64260
64261         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64262         a pointer-to-const.
64263         (re_acquire_state_context): Likewise.
64264         * lib/regex_internal.h: Adjust prototypes.
64265
64266         * lib/regex.c: Prevent using C++ compilers.
64267
64268         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64269         (re_acquire_state_context): Likewise.
64270
64271 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         * modules/regex (Depends-on): Add ssize_t.
64274
64275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64278         translation table.
64279
64280 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64283
64284 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64285             Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64288         <sys/types.h> and <inttypes.h>.
64289
64290 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64291
64292         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64293         `__error_t_defined', so argp.h will not typedef the former.
64294
64295 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64296
64297         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64298         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64299         glibc names.  Even if glibc is changed to conform to POSIX, the
64300         traditional names will be available anyway, since regex depends on
64301         the extensions module.  Also, fix a longstanding typo in the
64302         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64303         reported by Emanuele Giaquinta.  Also, change sense of cached
64304         variable, so that the message makes sense.
64305
64306 2006-03-24  Simon Josefsson  <jas@extundo.com>
64307
64308         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64309         including some doc fixes.
64310         (base64_encode_alloc): Fix +1 bug on allocation failures.
64311
64312 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64313
64314         * lib/base64.c (base64_encode): Do not read past end of array with
64315         unsanitized input on systems with CHAR_BIT > 8.
64316
64317 2006-03-24  Eric Blake  <ebb9@byu.net>
64318
64319         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64320
64321 2006-03-22  Karl Berry  <karl@gnu.org>
64322
64323         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64324         * config/srclistvars.sh (COREUTILS): new var.
64325
64326 2006-03-17  Jim Meyering  <jim@meyering.net>
64327
64328         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64329         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64330
64331 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64334         no longer needs it.  Instead, check that regoff_t is as least
64335         as wide as ptrdiff_t.
64336
64337         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64338         so that our regex.h stays compatible with the installed regex.
64339         This is helpful for installers who configure --without-included-regex.
64340         Problem reported by Emanuele Giaquinta.
64341
64342 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64345         Typedef to long int, not to off_, as POSIX will likely change
64346         in that direction.
64347
64348 2006-03-15  Eric Blake  <ebb9@byu.net>
64349
64350         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64351
64352 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64353
64354         * lib/argp-help.c (validate_uparams): Fix typo
64355         * lib/argp-parse.c (argp_default_options): Consistently begin help
64356         messages with a lowercase letter.
64357
64358 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64359
64360         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64361         overrun buffers and shouldn't be used (much as gets shouldn't be
64362         used).
64363         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64364
64365 2006-03-08  Simon Josefsson  <jas@extundo.com>
64366
64367         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64368         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64369
64370 2006-03-08  Simon Josefsson  <jas@extundo.com>
64371
64372         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64373         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64374
64375 2006-03-08  Simon Josefsson  <jas@extundo.com>
64376
64377         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64378         signal that configure disabled the device.
64379
64380 2006-03-08  Simon Josefsson  <jas@extundo.com>
64381
64382         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64383         languages.
64384
64385 2006-03-07  Simon Josefsson  <jas@extundo.com>
64386
64387         * modules/getopt (Depends-on): Add unistd.
64388
64389         * modules/unistd: New file.
64390
64391 2006-03-07  Simon Josefsson  <jas@extundo.com>
64392
64393         * modules/gc-random: New file.
64394
64395 2006-03-07  Simon Josefsson  <jas@extundo.com>
64396
64397         * m4/unistd_h.m4: New file.
64398
64399 2006-03-07  Simon Josefsson  <jas@extundo.com>
64400
64401         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64402         test to be side-effect free by storing the result in the cache
64403         variable gl_cv_lib_readline, and moving the assignment of
64404         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64405         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64406
64407 2006-03-07  Simon Josefsson  <jas@extundo.com>
64408
64409         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64410         error on missing devices (the functions will return an error).
64411
64412         * m4/gc.m4: Move random stuff to gc-random.m4
64413
64414 2006-03-07  Simon Josefsson  <jas@extundo.com>
64415
64416         * lib/unistd_.h: New file.
64417
64418 2006-03-07  Simon Josefsson  <jas@extundo.com>
64419
64420         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64421
64422 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64425         Problem reported by Juan Manuel Guerrero.
64426
64427 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64428
64429         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64430         the unistd module.
64431         * lib/getlogin_r.c: Likewise.
64432         * lib/getlogin_r.h: Likewise.
64433         * lib/glob.c: Likewise.
64434         * lib/pagealign_alloc.c: Likewise.
64435         * lib/unistd_.h: Remove; no longer needed.
64436
64437 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64440         Add unistd.
64441         * modules/c-stack (Depends-on): Add unistd.
64442         * modules/getlogin_r: Likewise.
64443         * modules/glob: Likewise.
64444         * modules/pagealign_alloc: Likewise.
64445         * modules/unistd (Files): Remove lib/unistd_.h.
64446         (EXTRA_DIST): Remove.
64447         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64448         need unistd_.h.
64449         (MOSTLYCLEANFILES): Remove unistd.h-t.
64450
64451 2006-03-03  Simon Josefsson  <jas@extundo.com>
64452
64453         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64454
64455 2006-03-03  Simon Josefsson  <jas@extundo.com>
64456
64457         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64458         libidn and bison.
64459
64460 2006-03-03  Simon Josefsson  <jas@extundo.com>
64461
64462         * build-aux/maint.mk: Add indent target.
64463
64464 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64465
64466         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64467         our replacement poll.h in any case, to avoid a differing
64468         declaration from a system header.  Seen on AIX.
64469
64470 2006-03-01  Simon Josefsson  <jas@extundo.com>
64471
64472         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64473         <kasal@ucw.cz>.
64474
64475 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         * modules/gettime (Depends-on): Add extensions module.
64478         * modules/nanosleep (Depends-on): Likewise.
64479         * modules/settime (Depends-on): Likewise.
64480
64481 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64484         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64485         pedantically.
64486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64487         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64488
64489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64490         not "==".  Reported by Ralf Wildenhues.
64491
64492 2006-03-01  Karl Berry  <karl@gnu.org>
64493
64494         * doc/Copyright/request-*: new files, synced from gnuorg.
64495
64496 2006-03-01  Karl Berry  <karl@gnu.org>
64497
64498         * config/srclist.txt (Copyright/*): new entries.
64499
64500 2006-02-28  Simon Josefsson  <jas@extundo.com>
64501
64502         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64503
64504 2006-02-27  Simon Josefsson  <jas@extundo.com>
64505
64506         * lib/base64.h: Indent #define's.  From Jim Meyering
64507         <jim@meyering.net>.
64508
64509 2006-02-27  Jim Meyering  <jim@meyering.net>
64510
64511         Revert the change of 2006-02-24, so these files can continue
64512         to be sync'd from gettext.
64513         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64514         of `config.h'.
64515
64516 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64517
64518         * modules/intprops: New file.
64519         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64520         Add intprops.
64521         * modules/getloadavg (Files): Remove lib/intprops.h.
64522         (Depends-on): Add intprops.
64523         * modules/human: Likewise.
64524         * modules/inttostr: Likewise.
64525         * modules/openat: Likewise.
64526         * modules/sig2str: Likewise.
64527         * modules/userspec: Likewise.
64528         * modules/utimecmp: Likewise.
64529         * modules/xnanosleep: Likewise.
64530         * modules/xstrtol: Likewise.
64531
64532 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64533
64534         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64535         * modules/lock-tests (TESTS): Use $(EXEEXT).
64536         * modules/tls-tests: Likewise.
64537         * modules/argp-tests: Likewise.
64538         (check_PROGRAMS): New var, replacing...
64539         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64540
64541 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64542
64543         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64544         `config.h'.
64545
64546 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64547
64548         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64549
64550 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64551
64552         Sync from coreutils.
64553         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64554         gl_CHDIR_SAFER.
64555
64556 2006-02-22  Jim Meyering  <jim@meyering.net>
64557
64558         Sync from coreutils.
64559         * m4/chdir-safer.m4: New file.
64560
64561 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64564         AT_FDCWD exceeds INT_MAX.
64565         * lib/openat.h (AT_FDCWD): Likewise.
64566
64567 2006-02-17  Eric Blake  <address@hidden>
64568
64569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64570
64571 2006-02-16  Simon Josefsson  <jas@extundo.com>
64572
64573         * modules/getaddrinfo (Depends-on): Add sys_socket.
64574
64575 2006-02-15  Simon Josefsson  <jas@extundo.com>
64576
64577         * build-aux/maint.mk: Add dsyntax-check rule.
64578
64579 2006-02-15  Eric Blake  <ebb9@byu.net>
64580
64581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64582         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64583         'present but cannot compile' warnings on cygwin.
64584         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64585         use ws2tcpip.h if sys/socket.h works.
64586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64587         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64588
64589 2006-02-14  Simon Josefsson  <jas@extundo.com>
64590
64591         * modules/maintainer-makefile (Files): Rename.
64592
64593         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64594         and (the local) Makefile.cfg to maint-cfg.mk.
64595
64596         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64597         to the latter.
64598
64599         * modules/maintainer-makefile: New module.
64600
64601         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64602         severaly stripped to make it possible to build it up from scratch
64603         with reliable tests.
64604
64605         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64606         fixes to permit overriding the default actions when configure and
64607         makefile are not available.
64608
64609 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         Sync from coreutils.
64612         * modules/lstat (Depends-on): Don't depend on xalloc.
64613         (License): Change from GPL to LGPL, since this is now simply a
64614         replacement for a libc function.
64615
64616 2006-02-14  Jim Meyering  <jim@meyering.net>
64617
64618         Sync from coreutils.
64619
64620         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64621         failure on deficient systems, and simplify gnulib lgpl dependencies.
64622         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64623         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64624
64625         * lib/xalloc-die.c: Remove unused definition of N_.
64626
64627 2006-02-14  Jim Meyering  <jim@meyering.net>
64628
64629         Sync from coreutils.
64630         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64631         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64632         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64633         double-quote uses of that variable, to accommodate the rare case in
64634         which getmntent is available in none of the libraries checked.  This
64635         happens at least on FreeBSD 5.0.
64636
64637 2006-02-13  Simon Josefsson  <jas@extundo.com>
64638
64639         * gnulib-tool (Usage): Fix --import, from
64640         karl@freefriends.org (Karl Berry).
64641
64642 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64643
64644         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64645
64646 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64647
64648         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64649         "autoupdate" on 2005-12-12.
64650
64651 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64652
64653         * modules/closeout (Depends-on): Remove atexit.
64654
64655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64658         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64659
64660 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64663         __EXTENSIONS__ if this causes compilation to fail.  Problem
64664         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64665         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64666
64667 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64670         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64672         All uses changed.
64673
64674 2006-01-26  Simon Josefsson  <jas@extundo.com>
64675
64676         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64677         prototype is visible on mingw32.
64678
64679         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64680         for mingw32.
64681
64682         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64683         mingw32).
64684
64685 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64686
64687         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64688         attempt to open for write; this always fails, at least on POSIX
64689         hosts.  This reinstates the 2006-01-09 change, which was
64690         inadvertently removed.
64691
64692 2006-01-26  Bruno Haible  <bruno@clisp.org>
64693
64694         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64695         Reported by Paul Eggert.
64696
64697 2006-01-26  Bruno Haible  <bruno@clisp.org>
64698             Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * lib/stdbool_.h (_Bool)
64701         [(! (defined __cplusplus || defined __BEOS__)
64702           && !defined __GNUC__
64703           && !(defined __HP_cc || defined __xlc__
64704                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64705                || defined __sgi))]:
64706         #define to signed char in these cases too; this simplifies
64707         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64708         etc., separately) and makes it more conservative.
64709
64710 2006-01-25  Simon Josefsson  <jas@extundo.com>
64711
64712         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64713         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64714         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64715
64716 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64717
64718         * lib/argp-namefrob.h: Bugfix. Remove stray #
64719
64720 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64721
64722         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64723         so that we test the test.
64724         Check for yet another HP-UX cc bug involving *bool |= bool.
64725
64726 2006-01-25  Karl Berry  <karl@gnu.org>
64727
64728         * config/srclist.txt (vasnprintf.c): sync lost.
64729
64730 2006-01-25  Jim Meyering  <jim@meyering.net>
64731
64732         Sync from the stable (b5) branch of coreutils:
64733
64734         * lib/fts.c (fts_children): Don't let close() clobber errno from
64735         failed fchdir().
64736
64737         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64738         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64739         a dangling symlink.  That can also happen at least for ELOOP.
64740         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64741         FYI, this bug predates the inclusion of fts.c in coreutils.
64742
64743         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64744         in their own block, so pre-c99 compilers don't object.
64745
64746         Avoid the double-free (first in fts_read, second in fts_close) that
64747         would occur when an `active' directory is made inaccessible (e.g.,
64748         via chmod a-x) during a traversal.
64749         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64750         before returning.  Reproduce this failure by
64751         mkdir -p a/b; cd a; chmod a-x . b
64752         Reported by Stavros Passas.
64753
64754 2006-01-25  Jim Meyering  <jim@meyering.net>
64755
64756         * lib/fileblocks.c: Remove more useless parentheses.
64757         * lib/readutmp.h: Likewise.
64758
64759 2006-01-25  Bruno Haible  <bruno@clisp.org>
64760
64761         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64762         warnings.
64763         Reported by Paul Eggert.
64764
64765 2006-01-25  Bruno Haible  <bruno@clisp.org>
64766
64767         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64768         rid of a trap command. For Solaris sh.
64769         Reported by Mark D. Baushke <mdb@gnu.org>.
64770
64771 2006-01-24  Simon Josefsson  <jas@extundo.com>
64772
64773         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64774         Bruno.
64775
64776 2006-01-24  Karl Berry  <karl@gnu.org>
64777
64778         * config/srclist.txt (argp-namefrob.h): sync lost.
64779
64780 2006-01-24  Jim Meyering  <jim@meyering.net>
64781
64782         * modules/openat (Files): Add lib/intprops.h.
64783         From Mark D. Baushke.
64784
64785 2006-01-24  Jim Meyering  <jim@meyering.net>
64786
64787         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64788         Reported by Mark D. Baushke.
64789
64790 2006-01-24  Jim Meyering  <jim@meyering.net>
64791
64792         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64793
64794 2006-01-24  Bruno Haible  <bruno@clisp.org>
64795
64796         * modules/strnlen (Maintainer): Change from glibc to all.
64797
64798 2006-01-24  Bruno Haible  <bruno@clisp.org>
64799
64800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64801         Patch by Paul Eggert.
64802
64803 2006-01-24  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64806         already has it.
64807         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64808         2005-11-26.
64809
64810         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64811         'signed char' to avoid problems with the built-in _Bool type.
64812         Reported by Paul Eggert on 2005-11-26.
64813
64814 2006-01-24  Bruno Haible  <bruno@clisp.org>
64815
64816         * gnulib-tool (func_import): Avoid constructing complicated sed
64817         expressions inside backquote.
64818         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64819
64820 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64821
64822         These changes imported from libc.
64823         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64824         test and two separate function calls.
64825         * lib/strndup.c (__strndup): Add libc_hidden_def.
64826
64827 2006-01-23  Simon Josefsson  <jas@extundo.com>
64828
64829         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64830         Remove the test_*_SOURCES variable: automake infers it by default.
64831         * modules/tls-tests: Likewise.
64832
64833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         Work around porting bugs reported by Dieter in
64836         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64837         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64838         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64839         Include "getopt.h" first, to check interface.
64840         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64841         !HAVE_DECL_GETENV.
64842         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64843         (__strndup): Revert to K&R-style function dfns, the glibc style.
64844         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64845         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64846         Include strnlen.h first, to get prototype properly.
64847         (strnlen): Renamed from __strnlen.
64848         Remove weak alias.
64849
64850 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64853
64854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * config/srclist.txt: Adjust to reflect glibc reorganization.
64857         This affects only comments.
64858
64859 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64860
64861          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64862          Reported by Bruce Korb <bkorb@gnu.org>.
64863
64864 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64867         to pacify gcc -Wswitch-default.
64868
64869 2006-01-22  Bruno Haible  <bruno@clisp.org>
64870
64871         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64872         temporary buffer for sprintf, take into account the precision also
64873         for 'd', 'i', 'u', 'o', 'x', 'X'.
64874
64875 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64876
64877         * modules/argp-tests: New module
64878         * tests/test-argp.c: New file
64879         * tests/test-argp-2.sh: New file
64880
64881 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64882
64883         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64884         (__argp_base_name): Removed
64885         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64886         typo.
64887         (__argp_base_name): Provide macro definition or extern declaration
64888         depending on the configuration
64889
64890 2006-01-20  Simon Josefsson  <jas@extundo.com>
64891
64892         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64893
64894 2006-01-20  Simon Josefsson  <jas@extundo.com>
64895
64896         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64897
64898 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64901         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64902         Suggested by Bruno Haible.
64903
64904 2006-01-20  Karl Berry  <karl@gnu.org>
64905
64906         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64907         until changes propagate, I guess.
64908
64909 2006-01-19  Simon Josefsson  <jas@extundo.com>
64910
64911         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64912
64913 2006-01-19  Simon Josefsson  <jas@extundo.com>
64914
64915         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64916
64917 2006-01-19  Simon Josefsson  <jas@extundo.com>
64918
64919         * gnulib-tool: Set check_PROGRAMS.
64920
64921         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64922         modules/des-tests, modules/gc-arcfour-tests,
64923         modules/gc-arctwo-tests, modules/gc-des-tests,
64924         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64925         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64926         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64927         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64928         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64929         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64930         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64931         test_*_SOURCES.
64932
64933 2006-01-18  Simon Josefsson  <jas@extundo.com>
64934
64935         * modules/socklen (Depends-on): Depend on sys_socket.
64936
64937 2006-01-18  Simon Josefsson  <jas@extundo.com>
64938
64939         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64940         modules/des-tests, modules/gc-arcfour-tests,
64941         modules/gc-arctwo-tests, modules/gc-des-tests,
64942         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64943         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64944         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64945         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64946         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64947         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64948         $(EXEEXT) to automake TESTS variable, for mingw32.
64949
64950 2006-01-17  Simon Josefsson  <jas@extundo.com>
64951
64952         * modules/socklen (Include): Need sys/socket.h.
64953
64954 2006-01-17  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/ssize_t (Include): Add <sys/types.h>.
64957
64958 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64961         it's not portable and it doesn't work with cross-compiles.
64962         Problem reported by Bruno Haible.  Fix missing-$ typo in
64963         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64964         -zignore from being used with Sun's C compiler.
64965
64966 2006-01-12  Simon Josefsson  <jas@extundo.com>
64967
64968         * lib/base64.c: Fix warning, reported by Bruno Haible
64969         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64970
64971 2006-01-12  Bruno Haible  <bruno@clisp.org>
64972
64973         * modules/ldd: New file.
64974         * build-aux/ldd.sh.in: New file.
64975         * MODULES.html.sh (Support for building libraries and executables): Add
64976         ldd.
64977
64978 2006-01-12  Bruno Haible  <bruno@clisp.org>
64979
64980         * m4/ldd.m4: New file.
64981
64982 2006-01-12  Bruno Haible  <bruno@clisp.org>
64983
64984         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64985         endless loop while replacing $auxdir with build-aux.
64986
64987 2006-01-11  Simon Josefsson  <jas@extundo.com>
64988
64989         * lib/stdint_.h (SIZE_MAX): Add missing (.
64990
64991 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64992
64993         Sync from coreutils.
64994         * lib/md5.c: Fix commentary typos.
64995         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64996         * lib/md5.h (__attribute__): Remove; unused.
64997         * lib/sha1.c: Fix commentary to match md5 better.
64998         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64999         so that we don't need to worry about alignment.  All uses changed.
65000         This merges the 2005-10-28 md5 change into sha1.
65001
65002 2006-01-11  Jim Meyering  <jim@meyering.net>
65003
65004         Sync from coreutils.
65005         * lib/md5.c (OP): Fix spacing.
65006
65007 2006-01-11  Bruno Haible  <bruno@clisp.org>
65008
65009         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65010         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65011         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65012
65013 2006-01-11  Bruno Haible  <bruno@clisp.org>
65014
65015         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65016         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65017         the "early" section as well.
65018
65019 2006-01-11  Bruno Haible  <bruno@clisp.org>
65020
65021         Avoid "ar: no archive members specified" error on MacOS X.
65022         * gnulib-tool (func_modules_add_dummy): New function.
65023         (func_import, func_create_testdir): Invoke it.
65024
65025 2006-01-11  Bruno Haible  <bruno@clisp.org>
65026
65027         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65028         with $auxdir in AC_CONFIG_FILES statements.
65029
65030 2006-01-11  Bruno Haible  <bruno@clisp.org>
65031
65032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65033         Initialize also noinst_HEADERS to empty.
65034
65035 2006-01-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65038         variables.
65039         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65040         autoreconf.
65041
65042 2006-01-11  Bruno Haible  <bruno@clisp.org>
65043
65044         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65045         overridable by the user.
65046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65047
65048 2006-01-10  Simon Josefsson  <jas@extundo.com>
65049
65050         * modules/sys_socket: New file.
65051
65052 2006-01-10  Simon Josefsson  <jas@extundo.com>
65053
65054         * m4/sys_socket_h.m4: New file.
65055
65056 2006-01-10  Simon Josefsson  <jas@extundo.com>
65057
65058         * lib/socket_.h: New file.
65059
65060 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * modules/readutmp (Maintainer): Add myself.
65063
65064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65067         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65068         People who are still concerned with buggy memcmp implementations
65069         can invoke gl_FUNC_MEMCMP themselves.
65070
65071 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         * lib/regex_internal.h (BITSET_WORD_BITS):
65074         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65075         preprocessor mishandles large unsigned values as if they were signed.
65076         Problem reported by Claudio Fontana in
65077         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65078
65079 2006-01-10  Jim Meyering  <jim@meyering.net>
65080
65081         Avoid the double-free (first in fts_read, second in fts_close) that
65082         would occur when an `active' directory is made inaccessible (e.g.,
65083         via chmod a-x) during a traversal.
65084         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65085         before returning.  Reproduce this failure by
65086         mkdir -p a/b; cd a; chmod a-x . b
65087         Reported by Stavros Passas.
65088
65089         Sync from coreutils.
65090         * lib/sha1.c: Tweak grammar in a comment.
65091
65092 2006-01-10  Jim Meyering  <jim@meyering.net>
65093
65094         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65095         Patch by Joerg Sonnenberger.
65096
65097 2006-01-10  Bruno Haible  <bruno@clisp.org>
65098
65099         * modules/readutmp: Depend on module free.
65100         * modules/strtok_r: Depend on module restrict.
65101
65102 2006-01-10  Bruno Haible  <bruno@clisp.org>
65103
65104         * modules/gettext (configure.ac): Add an invocation of
65105         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65106
65107 2006-01-10  Bruno Haible  <bruno@clisp.org>
65108
65109         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65110         Reported by Werner Lemberg <wl@gnu.org>.
65111
65112 2006-01-10  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/localcharset.c: Update from GNU gettext.
65115
65116 2006-01-10  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/argp.h (__const): Remove macro. Use const instead.
65119         * lib/argp-fmtstream.h (__const): Likewise.
65120         * lib/glob_.h (__const): Remove macro.
65121         * lib/glob-libc.h: Use const instead of __const.
65122
65123 2006-01-10  Bruno Haible  <bruno@clisp.org>
65124
65125         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65126         variable.
65127         Needed to avoid an automake error regarding the 'gettext' module.
65128
65129 2006-01-09  Simon Josefsson  <jas@extundo.com>
65130
65131         * modules/inet_ntop (Depends-on): Add restrict.
65132
65133 2006-01-09  Simon Josefsson  <jas@extundo.com>
65134
65135         * modules/gc-rijndael-tests (License): Put under LGPL.
65136
65137         * modules/gc-des-tests (License): Likewise.
65138
65139         * modules/gc-arcfour-tests (License): Likewise.
65140
65141         * modules/gc-arctwo-tests (License): Likewise.
65142
65143         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65144
65145         * modules/gc-hmac-sha1-tests (Files): Likewise.
65146
65147         * modules/gc-hmac-md5-tests (License): Likewise.
65148
65149         * modules/gc-sha1-tests (License): Likewise.
65150
65151         * modules/gc-md5-tests (License): Likewise.
65152
65153         * modules/gc-md4-tests (License): Likewise.
65154
65155         * modules/gc-md2-tests (License): Likewise.
65156
65157         * modules/gc-tests (License): Likewise.
65158
65159         * modules/des-tests (License): Likewise.
65160
65161         * modules/md4-tests (License): Likewise.
65162
65163         * modules/md2-tests (License): Likewise.
65164
65165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         Sync from coreutils:
65168
65169         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65170         * modules/lib-ignore: New file.
65171         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65172         chdir-safer.m4, lchmod.m4.
65173         * modules/openat: Add mkdirat.c, openat-priv.h.
65174
65175 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         Sync from coreutils.
65178         * m4/lib-ignore.m4: New file.
65179         * m4/lchmod.m4: New file.
65180
65181 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         Sync from coreutils.
65184         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65185         for write access: POSIX says that must fail.
65186         * lib/fts.c (diropen): Likewise.
65187         * lib/save-cwd.c (save_cwd): Likewise.
65188         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65189         well, for minor improvements on hosts that lack O_DIRECTORY.
65190         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65191         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65192         Fall back on chown if open failed with EACCES.
65193
65194         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65195         Report an error at compile-time if only a 1-second nominal clock
65196         resolution is found.
65197
65198         * lib/lchmod.h: New file.
65199         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65200         (make_dir_parents): Use lchown rather than chown, and
65201         lchmod rather than chmod.
65202
65203         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65204         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65205         "proc" reported by n0dalus.
65206
65207         * lib/mountlist.c: Include <limits.h>.
65208         (dev_from_mount_options)
65209         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65210         New function.  It no longer assumes "dev=" has the System V meaning
65211         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65212         (read_file_system_list)
65213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65214         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65215         dev= in that case.
65216
65217         * lib/posixtm.h (PDS_PRE_2000): New macro.
65218         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65219         allow_century.  All usages changed.  Reject dates outside the range
65220         1969-1999 if PDS_PRE_2000 is used.
65221
65222 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         Sync from coreutils.
65225         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65226         (Time of day items): Mention the possibility of leap seconds.
65227         Problem reported by Dr. David Alan Gilbert.
65228
65229 2006-01-09  Jim Meyering  <jim@meyering.net>
65230
65231         Sync from coreutils.
65232
65233         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65234
65235         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65236
65237         * lib/modechange.c (mode_compile): Reject an invalid mode string
65238         that starts with an octal digit.  From Andreas Gruenbacher.
65239
65240         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65241         and dup to open_safer and dup_safer, respectively.
65242         (openat_permissive): Fix typo in comment.
65243
65244         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65245         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65246         (_): Remove; no longer needed.
65247         (openat): Renamed from rpl_openat; no need for rpl_openat
65248         since openat.h renames openat for us.
65249         Replace most of the body with a call to openat_permissive,
65250         to avoid duplicate code.
65251         Port to (probably hypothetical) environments were mode_t is
65252         wider than int.
65253         (openat_permissive): Require mode arg, so that we can check
65254         types better.  Put it just after flags.  Change cwd failure
65255         indicator from pointer-to-bool to pointer-to-errno-value.
65256         All callers changed.
65257         Invoke openat_save_fail and/or openat_restore_fail if
65258         cwd_errno is null, so that openat can call us.
65259         (openat_permissive, fdopendir, fstatat, unlinkat):
65260         Simplify errno handling to avoid some duplicate code,
65261         as it's OK to set errno on success.
65262         * lib/openat.h: Revamp code so that function macros depend on
65263         __OPENAT_PREFIX only, not also on AT_FDCWD.
65264         (openat_ro): Remove.  Caller changed to use openat_permissive.
65265         (openat_permissive): Now a macro, if not a function.
65266         (openat_restore_fail, openat_save_fail): Now always functions,
65267         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65268
65269         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65270         and openat.c.
65271         * lib/mkdirat.c: Include openat-priv.h.
65272         Remove definitions of macros defined therein.
65273         * lib/openat.c: Likewise.
65274
65275         * lib/mkdirat.c (mkdirat): New file and function.
65276         * lib/openat.h (mkdirat): Declare.
65277
65278         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65279
65280         * lib/openat.h (openat_permissive): Declare.
65281         (openat_ro): Define.
65282
65283         * lib/openat.c (EXPECTED_ERRNO): New macro.
65284         (openat_permissive): New function -- used in remove.c rewrite.
65285         (all functions): Set errno just before returning, only if there
65286         was an actual failure.
65287         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65288
65289         Emulate openat-family functions using Linux's procfs, if possible.
65290         Idea and some code based on Ulrich Drepper's glibc changes.
65291
65292         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65293         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65294         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65295         before falling back on save_cwd and restore_cwd.
65296         (fdopendir, fstatat, unlinkat): Likewise.
65297
65298         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65299         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65300
65301         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65302         as second argument to va_arg.  Otherwise, some versions of gcc
65303         warn that `if this code is reached, the program will abort'.
65304
65305 2006-01-09  Jim Meyering  <jim@meyering.net>
65306
65307         Sync from coreutils.
65308         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65309         Require openat-priv.h.
65310
65311 2006-01-09  Bruno Haible  <bruno@clisp.org>
65312
65313         * modules/strnlen (Include): Use strnlen.h.
65314
65315 2006-01-09  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65318
65319 2006-01-09  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/sysexit_.h (EX_OK): New macro.
65322         Suggested by Martin Lambers <marlam@marlam.de>.
65323
65324 2006-01-09  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65327         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65328
65329 2006-01-09  Bruno Haible  <bruno@clisp.org>
65330
65331         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65332         numbers.
65333
65334 2006-01-09  Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65337         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65338         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65339         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65340
65341 2006-01-09  Bruno Haible  <bruno@clisp.org>
65342
65343         * build-aux/javacomp.sh.in: New file, moved from lib/.
65344         * modules/javacomp-script (Files): Update.
65345         (configure.ac): Add AC_CONFIG_FILES invocation.
65346         (EXTRA_DIST): Remove variable.
65347
65348         * build-aux/javaexec.sh.in: New file, moved from lib/.
65349         * modules/javaexec (Files): Update.
65350         (configure.ac): Add AC_CONFIG_FILES invocation.
65351         (EXTRA_DIST): Remove javaexec.sh.in.
65352
65353         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65354         * modules/csharpcomp-script (Files): Update.
65355         (configure.ac): Add AC_CONFIG_FILES invocation.
65356         (EXTRA_DIST): Remove variable.
65357
65358         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65359         * modules/csharpexec (Files): Update.
65360         (configure.ac): Add AC_CONFIG_FILES invocation.
65361         (EXTRA_DIST): Remove csharpexec.sh.in.
65362
65363 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65364
65365         Sync from coreutils.
65366
65367         Add POSIX ACL support
65368         * lib/acl.h (copy_acl, set_acl): Add declarations.
65369         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65370         systems other than Linux.
65371         (chmod_or_fchmod): New function: use fchmod when possible,
65372         and chmod otherwise.
65373         (file_has_acl): Add a POSIX ACL implementation, with a
65374         Linux-specific subcase.
65375         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65376         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65377         acls are unsupported.
65378         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65379         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65380         are unsupported.
65381
65382 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65383
65384         Sync from coreutils.
65385         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65386
65387 2006-01-07  Bruno Haible  <bruno@clisp.org>
65388
65389         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65390         gl_EARLY.
65391
65392 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65393
65394         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65395         Problem reported for Mingw by Mark Junker.
65396
65397 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * README: Gnulib normally doesn't generate a tarball.
65400
65401 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65404         long int, not int, for nanosecond counts, so that people who are
65405         used to POSIX struct timespec won't be surprised.  Reported by Jim
65406         Meyering.
65407
65408 2005-12-28  Bruno Haible  <bruno@clisp.org>
65409
65410         * build-aux/config.rpath: Update from GNU gettext.
65411
65412 2005-12-16  Jim Meyering  <jim@meyering.net>
65413
65414         * modules/fprintftime: New module.
65415         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65416
65417 2005-12-16  Jim Meyering  <jim@meyering.net>
65418
65419         * m4/fprintftime.m4: New file.
65420
65421 2005-12-16  Jim Meyering  <jim@meyering.net>
65422
65423         * lib/fprintftime.c, lib/fprintftime.h: New files.
65424
65425 2005-12-15  Simon Josefsson  <jas@extundo.com>
65426
65427         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65428         new m4/socklen.m4.
65429
65430 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65431
65432         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65433         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65434
65435 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65436
65437         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65438         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65439         struct uparams is valid. Fall back to the default values if it is
65440         not.
65441
65442 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65443
65444         * modules/argp (Files): Add argp-pin.c
65445         (Depends-on): dirname
65446         (lib_SOURCES): Add argp-pin.c
65447
65448 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65449
65450         * m4/argp.m4:  Check if program_invocation_name and
65451         program_invocation_short_name are declared and define appropriate
65452         macros if they are not.
65453
65454 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65455
65456         * lib/argp-help.c (__argp_base_name): New function
65457         (__argp_short_program_name): Rewrite using __argp_base_name
65458         * lib/argp-namefrob.h: Define program_invocation_name and
65459         program_invocation_short_name if requested
65460         (__argp_base_name): Add prototype
65461         * lib/argp-parse.c (argp_def): Use gettext wrappers
65462         (argp_default_parser): Use __argp_base_name
65463         * lib/argp-pin.c: New file. Defines program_invocation_name and
65464         program_invocation_short_name on systems that lack them.
65465
65466 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65469         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65470         porting problem reported by Georg Schwarz in
65471         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65472
65473 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65474
65475         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65476         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65477         porting problem reported by Georg Schwarz in
65478         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65479
65480 2005-12-05  Bruno Haible  <bruno@clisp.org>
65481
65482         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65483         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65484         Reported by Mark Junker <mjscod@gmx.de>.
65485
65486 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65489         Use implementation from Albert Chin, with some
65490         comments/corrections by Stepan Kasal and myself.
65491
65492 2005-12-02  Bruno Haible  <bruno@clisp.org>
65493
65494         * gnulib-tool (func_import): Accept GPLed build tool modules when
65495         --lgpl is given.
65496         * modules/csharpcomp-script: New file.
65497         * modules/csharpcomp: Depend on it.
65498         * modules/javacomp-script: New file.
65499         * modules/javacomp: Depend on it.
65500         Suggested by Simon Josefsson.
65501
65502 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65505         statement, to work around an HP-UX 10.20 compiler bug reported by
65506         Peter O'Gorman.
65507
65508 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * modules/savedir (Depends-on): Add openat.
65511
65512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65515         (uintmax_t) [defined uintmax_t]: Do not declare.
65516         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65517         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65518         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65519         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65520         sake of portability to weird hosts that C allows (though we don't
65521         know of any practical examples).
65522
65523         * lib/savedir.h (fdsavedir): New decl.
65524         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65525         contains most of the former guts of savedir.
65526         (savedir): Use savedirstream.
65527         Include "openat.h".
65528
65529 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65530
65531         * modules/obstack (Files): Add m4/ulonglong.m4.
65532         Problem reported by Davide Angelocola.
65533
65534 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65537         coreutils no longer futzes with rounding modes.
65538
65539 2005-11-14  Jim Meyering  <jim@meyering.net>
65540
65541         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65542         replacement of mkstemp.
65543
65544 2005-11-10  Simon Josefsson  <jas@extundo.com>
65545
65546         * lib/readline.c: Remove EOL.
65547
65548 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65549
65550         * modules/gethrxtime (Depends-on): Add gettime.
65551
65552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65555         or gettimeofday; no longer needed.
65556
65557 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65558
65559         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65560         time business.
65561         (gethrxtime) [! (HAVE_NANOUPTIME
65562         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65563         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65564         our own approximation.
65565
65566 2005-11-08  Eric Blake  <ebb9@byu.net>
65567
65568         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65569
65570 2005-11-08  Eric Blake  <ebb9@byu.net>
65571
65572         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65573
65574 2005-11-04  Bruno Haible  <bruno@clisp.org>
65575
65576         * gnulib-tool: Implement --update mode.
65577
65578 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         Fix porting problem reported by Theodoros V. Kalamatianos.
65581         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65582         Don't assume that futimes failing means we must fail.
65583
65584 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65587         variables to suggest the intended function of the PATH_MAX check.
65588
65589 2005-10-30  Kean Johnston  <jkj@sco.com>
65590
65591         Trivial changes to support SCO systems.
65592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65593         as PATH_MAX.
65594         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65595         where __ptr is null when no I/O is pending.
65596
65597 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65600         leave errno alone.  Problem reported by Dmitry V. Levin.
65601
65602 2005-10-28  Simon Josefsson  <jas@extundo.com>
65603
65604         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65605         Test more.
65606
65607         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65608
65609         * modules/md2, modules/md2-tests: New files.
65610
65611 2005-10-28  Simon Josefsson  <jas@extundo.com>
65612
65613         * m4/inet_ntop.m4: More tests.
65614
65615         * m4/gc-md2.m4, md2.m4: New file.
65616
65617 2005-10-28  Simon Josefsson  <jas@extundo.com>
65618
65619         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65620         "restrict" keywords, as per POSIX.  Protect the function
65621         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65622         Don't use K&R prototypes.  Check the sprintf return values.
65623         Re-define EAFNOSUPPORT if not present.  Indent.
65624
65625         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65626         suggested by Bruno Haible <bruno@clisp.org>.
65627
65628         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65629
65630         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65631
65632         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65633         libgcrypt).
65634
65635         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65636
65637         * lib/md2.h, lib/md2.c: New files.
65638
65639 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65642         errno alone.  Problem reported by Frederic Jolliton.
65643
65644 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         * modules/verify (License): Change from GPL to LGPL.  This is a
65647         tiny module and there are apparently near-equivalents that are
65648         under the BSD license.
65649
65650 2005-10-24  Simon Josefsson  <jas@extundo.com>
65651
65652         * modules/sha1: Relicense to LGPL.
65653
65654 2005-10-24  Simon Josefsson  <jas@extundo.com>
65655
65656         * lib/md4.h: Shrink buffer size, now that we changed the type.
65657
65658 2005-10-23  Simon Josefsson  <jas@extundo.com>
65659
65660         * gnulib-tool (func_import): Fix --tests-base.
65661
65662 2005-10-22  Simon Josefsson  <jas@extundo.com>
65663
65664         * modules/arcfour (Depends-on): Need stdint.
65665
65666 2005-10-22  Simon Josefsson  <jas@extundo.com>
65667
65668         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65669         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65670
65671 2005-10-22  Simon Josefsson  <jas@extundo.com>
65672
65673         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65674         suggested by Bruno Haible <bruno@clisp.org>.
65675
65676 2005-10-22  Simon Josefsson  <jas@extundo.com>
65677
65678         * lib/crc.h: Include stddef.h, for size_t.
65679
65680 2005-10-22  Simon Josefsson  <jas@extundo.com>
65681
65682         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65683         arcfour_context struct (simplify test vector testing in GNU
65684         Shishi).
65685
65686 2005-10-21  Simon Josefsson  <jas@extundo.com>
65687
65688         * modules/des, modules/des-tests: New files.
65689
65690         * modules/gc-des, modules/gc-des-tests: New files.
65691
65692         * tests/test-des.c, tests/test-gc-des.c: New file.
65693
65694 2005-10-21  Simon Josefsson  <jas@extundo.com>
65695
65696         * modules/arctwo, modules/arctwo-tests: New files.
65697
65698         * tests/test-arctwo.c: New file.
65699
65700         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65701
65702         * tests/test-gc-arctwo.c: New file.
65703
65704 2005-10-21  Simon Josefsson  <jas@extundo.com>
65705
65706         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65707         Bruno Haible <bruno@clisp.org>.
65708
65709         * m4/gc-des.m4: New file.
65710
65711 2005-10-21  Simon Josefsson  <jas@extundo.com>
65712
65713         * m4/arctwo.m4: New file.
65714
65715         * m4/gc-arctwo.m4: New file.
65716
65717 2005-10-21  Simon Josefsson  <jas@extundo.com>
65718
65719         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65720         block.
65721
65722 2005-10-21  Simon Josefsson  <jas@extundo.com>
65723
65724         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65725         <bruno@clisp.org>.
65726
65727         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65728
65729         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65730         Bruno Haible <bruno@clisp.org>.
65731
65732         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65733         <bruno@clisp.org>.
65734
65735 2005-10-21  Simon Josefsson  <jas@extundo.com>
65736
65737         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65738
65739 2005-10-21  Simon Josefsson  <jas@extundo.com>
65740
65741         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65742
65743 2005-10-21  Simon Josefsson  <jas@extundo.com>
65744
65745         * lib/des.h, lib/des.c: New files.
65746
65747         * lib/gc-gnulib.c: Support DES.c
65748
65749 2005-10-21  Simon Josefsson  <jas@extundo.com>
65750
65751         * lib/arctwo.h, lib/arctwo.c: New files.
65752
65753         * lib/gc-gnulib.c: Support ARCTWO.
65754
65755 2005-10-21  Simon Josefsson  <jas@extundo.com>
65756
65757         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65758         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65759
65760 2005-10-21  Simon Josefsson  <jas@extundo.com>
65761
65762         * gnulib-tool (func_import, func_create_testdir): Define automake
65763         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65764         Makefile.am snippet),
65765         suggested by Bruno Haible <bruno@clisp.org>.
65766
65767         * modules/gc (Makefile.am): Use it.
65768
65769 2005-10-21  Bruno Haible  <bruno@clisp.org>
65770
65771         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65772         patch.
65773
65774 2005-10-19  Simon Josefsson  <jas@extundo.com>
65775
65776         * tests/test-gc-rijndael.c: New file.
65777
65778         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65779
65780 2005-10-19  Simon Josefsson  <jas@extundo.com>
65781
65782         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65783         interface too.
65784
65785 2005-10-19  Simon Josefsson  <jas@extundo.com>
65786
65787         * tests/test-gc-arcfour.c: New file.
65788
65789         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65790
65791 2005-10-19  Simon Josefsson  <jas@extundo.com>
65792
65793         * modules/gc-md4, modules/gc-md4-tests: New file.
65794
65795         * tests/test-gc-md4.c: New file.
65796
65797 2005-10-19  Simon Josefsson  <jas@extundo.com>
65798
65799         * m4/gc-md4.m4: New file.
65800
65801 2005-10-19  Simon Josefsson  <jas@extundo.com>
65802
65803         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65804         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65805         <kasal@ucw.cz>.
65806
65807 2005-10-19  Simon Josefsson  <jas@extundo.com>
65808
65809         * m4/gc-arcfour.m4: New file.
65810
65811         * m4/gc-rijndael.m4: New file.
65812
65813 2005-10-19  Simon Josefsson  <jas@extundo.com>
65814
65815         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65816
65817 2005-10-19  Simon Josefsson  <jas@extundo.com>
65818
65819         * lib/gc-gnulib.c: Support ARCFOUR.
65820
65821 2005-10-19  Simon Josefsson  <jas@extundo.com>
65822
65823         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65824         support.
65825
65826         * lib/gc.h: Add ECB enum type.
65827
65828         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65829
65830 2005-10-18  Simon Josefsson  <jas@extundo.com>
65831
65832         * tests/test-md5.c: New file.
65833
65834         * modules/md5-tests: New file.
65835
65836 2005-10-18  Simon Josefsson  <jas@extundo.com>
65837
65838         * tests/test-md4.c: New file.
65839
65840         * modules/md4, modules/md4-tests: New files.
65841
65842 2005-10-18  Simon Josefsson  <jas@extundo.com>
65843
65844         * m4/md4.m4: New file.
65845
65846 2005-10-18  Simon Josefsson  <jas@extundo.com>
65847
65848         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65849
65850 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65851
65852         * gnulib-tool (func_create_testdir): Omit the second check whether
65853         BUILT_SOURCES in nonempty.
65854
65855 2005-10-17  Simon Josefsson  <jas@extundo.com>
65856
65857         * tests/test-rijndael.c: New file.
65858
65859 2005-10-17  Simon Josefsson  <jas@extundo.com>
65860
65861         * modules/sha1: Depend on stdint instead of md5.
65862
65863         * modules/md5: Depend on stdint, remove uint32_t.
65864
65865 2005-10-17  Simon Josefsson  <jas@extundo.com>
65866
65867         * modules/gc-sha1-tests: New file.
65868
65869         * tests/test-gc-sha1.c: New file.
65870
65871 2005-10-17  Simon Josefsson  <jas@extundo.com>
65872
65873         * m4/md5.m4: Remove call to uint32_t.m4.
65874
65875 2005-10-17  Simon Josefsson  <jas@extundo.com>
65876
65877         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65878
65879         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65880         md5.h.
65881
65882         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65883
65884         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65885
65886 2005-10-17  Simon Josefsson  <jas@extundo.com>
65887
65888         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65889
65890 2005-10-17  Simon Josefsson  <jas@extundo.com>
65891
65892         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65893
65894 2005-10-17  Simon Josefsson  <jas@extundo.com>
65895
65896         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65897
65898         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65899
65900 2005-10-17  Bruno Haible  <bruno@clisp.org>
65901
65902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65903         that it can also be used in a test.
65904
65905 2005-10-16  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65908         TESTS_ENVIRONMENT, so that individual tests can augment it.
65909
65910         * gnulib-tool (func_create_testdir): Use an intermediate target for
65911         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65912         macros, like $(ALLOCA_H), which cannot be passed through the command
65913         line.
65914
65915 2005-10-15  Simon Josefsson  <jas@extundo.com>
65916
65917         * modules/rijndael-tests: New file.
65918
65919         * modules/rijndael: New file.
65920
65921 2005-10-15  Simon Josefsson  <jas@extundo.com>
65922
65923         * m4/rijndael.m4: New file.
65924
65925 2005-10-15  Simon Josefsson  <jas@extundo.com>
65926
65927         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65928
65929         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65930
65931 2005-10-14  Simon Josefsson  <jas@extundo.com>
65932
65933         * tests/test-arcfour.c: New file.
65934
65935         * modules/arcfour, modules/arcfour-tests: New files.
65936
65937 2005-10-14  Simon Josefsson  <jas@extundo.com>
65938
65939         * m4/arcfour.m4: New file.
65940
65941 2005-10-14  Simon Josefsson  <jas@extundo.com>
65942
65943         * lib/arcfour.h, lib/arcfour.c: New files.
65944
65945 2005-10-14  Roland McGrath  <roland@redhat.com>
65946
65947         Import from libc.  [BZ #1331]
65948         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65949         macro argument.
65950         Reported by Matej Vela <vela@debian.org>.
65951
65952 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65955         include <wchar.h>; no longer needed.
65956
65957 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65960
65961 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65962         and  Ulrich Drepper  <drepper@redhat.com>
65963
65964         Import from libc.
65965         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65966         instead of inline stream orientation test and two separate
65967         function calls.  Pay no attention to USE_IN_LIBIO.
65968
65969 2005-10-13  Simon Josefsson  <jas@extundo.com>
65970
65971         * modules/gc-hmac-md5-tests: New file.
65972
65973         * tests/test-gc-hmac-sha1.c: New file.
65974
65975         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65976
65977         * modules/gc-hmac-md5-tests: New file.
65978
65979         * tests/test-gc-md5.c: New file.
65980
65981         * modules/gc-md5-tests: New file.
65982
65983 2005-10-13  Simon Josefsson  <jas@extundo.com>
65984
65985         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65986         Move memory allocation outside of loop.
65987
65988 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65991         intermediate directory is in a read-only file system.  Problem
65992         reported by Eric Blake.
65993
65994 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65995
65996         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65997
65998 2005-10-12  Simon Josefsson  <jas@extundo.com>
65999
66000         * tests/test-hmac-sha1.c: New file.
66001
66002         * modules/hmac-sha1-tests: New file.
66003
66004         * modules/hmac-sha1: New file.
66005
66006 2005-10-12  Simon Josefsson  <jas@extundo.com>
66007
66008         * modules/gc-sha1: New file.
66009
66010 2005-10-12  Simon Josefsson  <jas@extundo.com>
66011
66012         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66013
66014         * tests/test-gc-pbkdf2-sha1.c: New file.
66015
66016 2005-10-12  Simon Josefsson  <jas@extundo.com>
66017
66018         * modules/gc-md5, modules/gc-hmac-md5: New files.
66019
66020         * modules/gc (Files): Remove md5, memxor and hmac files.
66021
66022 2005-10-12  Simon Josefsson  <jas@extundo.com>
66023
66024         * m4/gc-pbkdf2-sha1.m4: New file.
66025
66026         * m4/gc-hmac-sha1.m4: New file.
66027
66028         * m4/gc-sha1: New file.
66029
66030         * m4/hmac-sha1.m4: New file.
66031
66032 2005-10-12  Simon Josefsson  <jas@extundo.com>
66033
66034         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66035
66036         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66037
66038 2005-10-12  Simon Josefsson  <jas@extundo.com>
66039
66040         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66041         suggested by Bruno Haible <bruno@clisp.org>.
66042
66043 2005-10-12  Simon Josefsson  <jas@extundo.com>
66044
66045         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66046
66047 2005-10-12  Simon Josefsson  <jas@extundo.com>
66048
66049         * lib/gc-pbkdf2-sha1.c: New file.
66050
66051         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66052
66053 2005-10-12  Simon Josefsson  <jas@extundo.com>
66054
66055         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66056
66057         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66058
66059 2005-10-12  Simon Josefsson  <jas@extundo.com>
66060
66061         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66062         GC_USE_HMAC_MD5, respectively.
66063
66064         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66065         (gc_md5): Fix typo.
66066
66067         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66068
66069         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66070
66071         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66072
66073 2005-10-12  Bruno Haible  <bruno@clisp.org>
66074
66075         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66076         Reported by Stepan Kasal <kasal@ucw.cz>.
66077
66078 2005-10-11  Simon Josefsson  <jas@extundo.com>
66079
66080         * tests/test-crc.c: New file.
66081
66082         * modules/crc, modules/crc-tests: New files.
66083
66084 2005-10-11  Simon Josefsson  <jas@extundo.com>
66085
66086         * m4/crc.m4: New file.
66087
66088 2005-10-11  Simon Josefsson  <jas@extundo.com>
66089
66090         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66091
66092         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66093
66094         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66095
66096 2005-10-11  Simon Josefsson  <jas@extundo.com>
66097
66098         * lib/crc.h, lib/crc.c: New files.
66099
66100         * lib/gc.h (gc_hash_buffer): Add doc.
66101
66102 2005-10-11  Bruno Haible  <bruno@clisp.org>
66103
66104         * modules/c-strcasestr: New file.
66105         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66106
66107 2005-10-11  Bruno Haible  <bruno@clisp.org>
66108
66109         * modules/c-strcase: New file.
66110         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66111
66112 2005-10-11  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/strcasecmp.c: Include limits.h.
66115         (strcasecmp): Avoid integer overflow on exotic platforms.
66116         * lib/strncasecmp.c: Include limits.h.
66117         (strncasecmp): Avoid integer overflow on exotic platforms.
66118         Reported by Paul Eggert.
66119
66120 2005-10-11  Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/c-strcasestr.h: New file, from GNU gettext.
66123         * lib/c-strcasestr.c: New file, from GNU gettext.
66124
66125 2005-10-11  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/c-strcase.h: New file, from GNU gettext.
66128         * lib/c-strcasecmp.c: New file, from GNU gettext.
66129         * lib/c-strncasecmp.c: New file, from GNU gettext.
66130
66131 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * modules/mempcpy (License): GPL -> LGPL.
66134         * modules/strchrnul (License): Likewise.
66135         * modules/sysexits (License): Likewise.
66136
66137 2005-10-08  Simon Josefsson  <jas@extundo.com>
66138
66139         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66140
66141 2005-10-07  Simon Josefsson  <jas@extundo.com>
66142
66143         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66144
66145 2005-10-06  Simon Josefsson  <jas@extundo.com>
66146
66147         * tests/test-hmac-md5.c: New file.
66148
66149         * modules/hmac-md5-tests: New file.
66150
66151         * modules/hmac-md5: New file.
66152
66153 2005-10-06  Simon Josefsson  <jas@extundo.com>
66154
66155         * m4/hmac-md5.m4: New file.
66156
66157         * m4/memxor.m4: Require gl_C_RESTRICT.
66158
66159 2005-10-06  Simon Josefsson  <jas@extundo.com>
66160
66161         * lib/memxor.c (memxor): Avoid casts and warnings.
66162
66163 2005-10-06  Simon Josefsson  <jas@extundo.com>
66164
66165         * lib/hmac-md5.c: New file.
66166
66167         * lib/hmac.h: New file.
66168
66169 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66172         promotes to int, not unsigned int, to catch the AIX 5.3
66173         compiler bug.
66174
66175 2005-10-05  Simon Josefsson  <jas@extundo.com>
66176
66177         * modules/memxor: New file.
66178
66179         * modules/iconv (Files): Move config.rpath to havelib, it is used
66180         there.
66181
66182         * modules/havelib (Files): Add config.rpath.
66183
66184 2005-10-05  Simon Josefsson  <jas@extundo.com>
66185
66186         * m4/memxor.m4: New file.
66187
66188 2005-10-05  Simon Josefsson  <jas@extundo.com>
66189
66190         * lib/memxor.c (memxor): Fix compiler error.
66191
66192         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66193         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66194
66195         * lib/memxor.h, lib/memxor.c: New files.
66196
66197         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66198         we assume all systems have it, suggested by Jim Meyering
66199         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66200         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66201         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66202         same reasons.
66203
66204 2005-10-05  Simon Josefsson  <jas@extundo.com>
66205
66206         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66207
66208 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66209
66210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66211         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66212         needed, since the source code now assumes these .h files.
66213
66214 2005-10-05  Derek Price  <derek@ximbiot.com>
66215
66216         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66217
66218 2005-10-05  Bruno Haible  <bruno@clisp.org>
66219
66220         * modules/stdint (License): Change to LGPL.
66221
66222 2005-10-04  Simon Josefsson  <jas@extundo.com>
66223
66224         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66225         D. Baushke" <mdb@gnu.org>.
66226
66227 2005-10-04  Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/verify.h (verify_true): Provide alternative definition for C++.
66230
66231 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66234         (SSIZE_MAX): New macro, if not already defined.
66235         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66236         than 2 GiB.
66237
66238 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         Sync from coreutils.
66241         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66242         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66243         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66244         ULLONG_MAX doesn't work with 2.7.2.1.
66245
66246 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66249         From Ben Pfaff.
66250
66251         * modules/exclude (Depends-on): Depend on verify.
66252         * modules/strtoimax (Depends-on): Likewise.
66253         * modules/utimecmp (Depends-on): Likewise.
66254
66255 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * lib/exclude.c: Include verify.h.
66258         (verify): Remove.  All callers changed to use verify.h's version.
66259         * lib/strtoimax.c: Likewise.
66260         * lib/utimecmp.c: Likewis.e
66261
66262         Sync from coreutils.
66263         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66264         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66265         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66266         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66267         bother returning ENOSYS if settimeofday or stime fails; just let
66268         them return whatever errno they want to return.
66269         * lib/utimens.c: Include unistd.h, for dup2.
66270         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66271         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66272
66273 2005-10-02  Jim Meyering  <jim@meyering.net>
66274
66275         Sync from coreutils.
66276         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66277         from glibc-2.2.5 that fails for read-only files.
66278
66279 2005-10-02  Jim Meyering  <jim@meyering.net>
66280
66281         Sync from coreutils.
66282         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66283         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66284         `#if HAVE_CONFIG_H'.
66285         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66286         Remove AT_FDCWD test.
66287         Do not consume the fd unless successful.
66288         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66289         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66290         block, so that we don't even try to compile it if settimeofday is
66291         available.  This works around a compilation failure on OSF1 V5.1,
66292         due to stime requiring a `long int*' while tv_sec is `int'.
66293
66294 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66295
66296         Sync from coreutils.
66297         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66298         against `yes', rather than just testing for nonempty.
66299
66300 2005-10-01  Simon Josefsson  <jas@extundo.com>
66301
66302         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66303         and Darwin.
66304
66305         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66306         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66307         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66308         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66309         Check if struct addrinfo is declared.
66310
66311 2005-10-01  Simon Josefsson  <jas@extundo.com>
66312
66313         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66314         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66315         AI_* and EAI_* definitions.  Protect function declarations.
66316
66317 2005-10-01  Jim Meyering  <jim@meyering.net>
66318
66319         Sync from coreutils.
66320
66321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66322         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66323         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66325         in the inet and nsl libraries.  Required on Solaris 5.7.
66326
66327 2005-10-01  Jim Meyering  <jim@meyering.net>
66328
66329         Sync from coreutils.
66330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66331         in the inet and nsl libraries.  Required on Solaris 5.7.
66332
66333 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66334
66335         * lib/getdelim.c (getdelim): Remove unused variables.
66336
66337 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66340         so that the code works even with ancient cpp.  Portability problem
66341         with GCC 2.7.2.1 reported by Thomas M.Ott.
66342
66343 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         * modules/regex (Depends-on): Add strcase.
66346
66347         * modules/gethostname (Licence): Change from GPL to LGPL, since
66348         gethostname.c is a trivial implementation of a standard library
66349         function.
66350         * modules/poll (License): Change from GPL to LGPL, since it's
66351         derived from LGPL code.
66352
66353 2005-09-27  Jim Meyering  <jim@meyering.net>
66354
66355         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66356         HAVE_CONFIG_H.
66357
66358         * lib/intprops.h (signed_type_or_expr__): Define.
66359         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66360         for unsigned types.
66361
66362 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * lib/verify.h (verify_expr): Remove, replacing with:
66365         (verify_true): New macro that returns true instead of void.
66366         (verify_type__): Remove.
66367         (verify): Use verify_true rather than verify_type__.
66368
66369 2005-09-26  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66372         is necessary.
66373         (lib_SOURCES): Remove mbchar.c.
66374         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66375         (Files): Add m4/mbrtowc.m4.
66376         * modules/mbiter: Likewise.
66377         * modules/mbuiter: Likewise.
66378
66379 2005-09-26  Bruno Haible  <bruno@clisp.org>
66380
66381         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66382         compile mbchar.c if they are not both present.
66383         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66384         * m4/mbiter.m4 (gl_MBITER): Likewise.
66385         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66386         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66387         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66388
66389 2005-09-25  Jim Meyering  <jim@meyering.net>
66390
66391         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66392         also uses socklen_t.
66393
66394 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * lib/utimens.c (ENOSYS): Define if not already defined.
66397         (futimens): Support having a null PATH if the file descriptor
66398         is nonnegative.
66399
66400         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66401         Remove.
66402         (__attribute): Define to empty unless GCC 3.1 or later.
66403         This works around a core dump on OpenBSD 3.4, which has GCC
66404         2.95.3, which dumps core when given __attribute__(()).  It also
66405         simplifies other tests, since we really don't want to bother with
66406         worrying about which ancient version of GCC supported what.
66407         Original problem reported by Yoann Vandoorselaere, with part of
66408         the fix suggested by Derek Price.
66409
66410 2005-09-24  Jim Meyering  <jim@meyering.net>
66411
66412         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66413         so we can once again use a positive bitfield width of 1 -- now we
66414         don't have to explain why we were using a bitfield width of 2.
66415
66416 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66419         and similarly for the other external symbols.  Problem reported
66420         by James Gallager.
66421
66422         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66423         bug reported by Jim Meyering.
66424
66425         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66427         not needed, since socklen is a prerequisite module.
66428
66429 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66432         Problem reported by Eric Blake.
66433         (getaddrinfo): Initialize se so that it's not garbage.
66434         Redo internal storage allocation so that it doesn't make unportable
66435         assumptions about alignment.
66436         Fix a memory leak.
66437
66438         * lib/utimens.c (futimens): Use futimesat if available.
66439         Prefer it to futimes since it doesn't have the futimes bug.
66440
66441         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66442         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66443         Instead, declare a function that returns a pointer to an array,
66444         and use verify_type__ to declare the size of the array.
66445         Problem and germ of a solution reported by Bruno Haible.
66446         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66447         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66448
66449 2005-09-23  Jim Meyering  <jim@meyering.net>
66450
66451         Sync from coreutils.
66452         Correct build failure (socklen_t not defined) on at least
66453         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66455
66456 2005-09-23  Jim Meyering  <jim@meyering.net>
66457
66458         * modules/getaddrinfo (Depends-on): Add socklen.
66459
66460 2005-09-23  Bruno Haible  <bruno@clisp.org>
66461
66462         * tests/test-verify.c: New file.
66463
66464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         Sync from coreutils.
66467
66468         * modules/argmatch (Depends-on): Add verify.
66469         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66470         unistd-safer.
66471         * modules/save-cwd (Depends-on): Likewise.
66472
66473         * modules/openat (Files): Add lib/openat-die.c.
66474         (Depends-on): Remove error, exitfail.
66475         Add dirname.
66476
66477         * modules/verify: New file.
66478         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66479         with "verify" module.
66480
66481 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         Sync from coreutils.
66484
66485         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66486         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66487         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66488         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66489         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66490         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66491         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66492         Don't bother checking for string.h, stdlib.h, unistd.h.
66493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66494         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66495         module's job.
66496         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66497         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66498
66499         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66500         (gl_GETDATE): Use it.
66501
66502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66503
66504 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         Sync from coreutils.
66507
66508         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66509         stat-time.h.
66510         * lib/argmatch.h: Include verify.h
66511         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66512         (ARGMATCH_ASSERT): Remove; unused.
66513         * lib/canonicalize.c: Assume STDC_HEADERS.
66514         * lib/exclude.c: Include "strcase.h".
66515         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66516         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66517         and stdio-safer.h.
66518         (getusershell): Call fopen, not fopen_safer.
66519         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66520         Do not include unistd-safer.h.
66521         (save_cwd): Don't call fd_safer; no longer needed
66522         now that we include fcntl--.h.
66523
66524         * lib/getdate.y (relative_time): New type.
66525         (RELATIVE_TIME_0): New constant.
66526         (parser_control): Use relative_time instead of doing it ourselves.
66527         (%union): Add new relative_time rel member.
66528         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66529         Now typeless.
66530         (relunit, relunit_snumber): Now of type rel.
66531         (zone, rel, relunit, get_date): Adjust to above changes.
66532
66533         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66534         Do not include unistd-safer.h.
66535         (getloadavg): Don't call fd_safer; no longer needed
66536         now that we include fcntl--.h.
66537
66538         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66539         (make_dir_parents): Treat ENOSYS like EEXIST.
66540
66541         Improve quality of diagnostics on restore_cwd failure.
66542         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66543         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66544         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66545         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66546         each time through the loop.  Do not diagnose restore_cwd failure;
66547         that is the caller's job (and perhaps the caller does not care).
66548
66549         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66550         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66551         If the file already exists but is not a directory, don't bother
66552         to try to make its parents.
66553         Close potential file descriptor leak if we can't chdir("/") (!).
66554         Don't always return true if chdir($PWD) fails; return true only
66555         if the requested action was done successfully (except for the
66556         chdir($PWD)).
66557         Don't log final directory unless we actually made it.
66558         Refactor to avoid duplicate code to fix up permissions.
66559         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66560
66561         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66562         to make it a bit faster and (I hope) clearer.
66563         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66564         Fix bug in formats like %2N.
66565
66566         * lib/verify.h: New file.
66567
66568 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         Sync from coreutils.
66571         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66572
66573 2005-09-22  Jim Meyering  <jim@meyering.net>
66574
66575         Sync from coreutils.
66576
66577         * m4/lstat.m4 (gl_FUNC_LSTAT):
66578         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66579         Remove obsolete comment.
66580         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66581         * m4/xstrtod.m4: Likewise.
66582
66583         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66584
66585 2005-09-22  Jim Meyering  <jim@meyering.net>
66586
66587         Sync from coreutils.
66588
66589         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66590
66591         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66592         the .tm_year member, since otherwise gcc-4.0 would now warn about
66593         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66594
66595         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66596         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66597
66598         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66599         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66600         when run in a time zone for which daylight savings time is in effect
66601         for the starting date.
66602
66603         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66604         stop us from restricting permissions of just-created absolute-named
66605         directories.
66606         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66607         to restore initial working directory.
66608         * lib/mkdir-p.c (make_dir_parents): New parameter:
66609         different_working_dir, to tell caller if/when we change the working
66610         directory and are unable to return to the initial one.
66611         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66612         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66613         `return false'.  This fixes a bug introduced on 2004-07-30.
66614
66615         * lib/openat.c (fdopendir): Be sure to close the supplied
66616         file descriptor before returning.  This makes our replacement
66617         implementation a little closer to Solaris's, where fdopendir
66618         ties the file descriptor to the returned DIR* pointer.
66619         * lib/openat.c (unlinkat): New function.
66620         * lib/openat.h (unlinkat): Add prototype.
66621         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66622         (openat_restore_fail): Rename from openat_restore_die.
66623         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66624
66625         Provide an alternative to exiting immediately upon save_cwd or
66626         restore_cwd failure.  Now, an application can arrange e.g.,
66627         to perform a longjump in that case.
66628         * lib/openat.c: Include dirname.h.
66629         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66630         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66631         and openat_restore_die rather than calling error directly.
66632         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66633
66634         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66635         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66636         define.
66637
66638         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66639         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66640                             int utc, int nanoseconds);
66641         Background:
66642         date should not have to allocate a megabyte of virtual memory to
66643         handle a format argument like +%1048575T.  When implemented with
66644         strftime, it must allocate such a buffer, use strftime to fill it
66645         in, print it, then free it.
66646         With fprintftime, it simply prints everything and exits.
66647         With no need for memory allocation, that's one fewer way to fail.
66648         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66649         optional field width, not before, so we accept %9:z, not %:9z.
66650         (my_strftime): Be sure to use L_('x') for literals.
66651
66652         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66653         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66654         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66655         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66656         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66657         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66658         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66659         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66660         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66661         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66662         * lib/xgethostname.c, lib/xreadlink.c:
66663         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66664
66665         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66666         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66667         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66668         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66669         and don't include <sys/file.h>).
66670
66671 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66672
66673         Sync from coreutils.
66674
66675         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66676         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66677         [!LDAV_DONE]: Avoid unused variable warning.
66678
66679 2005-09-21  Bruno Haible  <bruno@clisp.org>
66680
66681         * lib/unicodeio.h (unicode_to_mb): New declaration.
66682
66683 2005-09-20  Derek Price  <derek@ximbiot.com>
66684
66685         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66686         getaddrinfo.h.
66687
66688 2005-09-20  Bruno Haible  <bruno@clisp.org>
66689
66690         * gnulib-tool: Remove trailing slashes from the values specified for
66691         --source-base, --m4-base, --tests-base, --aux-dir.
66692         Suggested by Simon Josefsson <jas@extundo.com>.
66693
66694 2005-09-20  Bruno Haible  <bruno@clisp.org>
66695
66696         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66697         func_modules_to_filelist, func_import, func_create_testdir): Make all
66698         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66699         change when gnulib-tool is invoked in a different locale.
66700
66701 2005-09-19  Simon Josefsson  <jas@extundo.com>
66702
66703         * m4/socklen.m4: Fix typo.
66704
66705 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66706
66707         Use a consistent style for including <config.h>.
66708         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66709         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66710         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66711         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66712         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66713         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66714         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66715         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66716         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66717         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66718         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66719         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66720         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66721         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66722         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66723         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66724         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66725         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66726         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66727         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66728         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66729         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66730         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66731         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66732         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66733         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66734         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66735         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66736         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66737         lib/xstrtoumax.c, lib/yesno.c:
66738         Standardize inclusion of config.h.
66739         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66740         lib/inttostr.h:  Removed inclusion of config.h from header files.
66741         * lib/inttostr.c:  Adjusted in-tree users.
66742         * lib/timespec.h: Remove superfluous warning to include config.h.
66743         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66744         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66745         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66746         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66747         config.h with HAVE_CONFIG_H.
66748
66749 2005-09-19  Jim Meyering  <jim@meyering.net>
66750
66751         * modules/pathmax (License): Change to LGPL.
66752
66753 2005-09-19  Derek Price  <derek@ximbiot.com>
66754
66755         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66756
66757 2005-09-19  Bruno Haible  <bruno@clisp.org>
66758
66759         * gnulib-tool (import): Provide default for --tests-base.
66760
66761 2005-09-19  Bruno Haible  <bruno@clisp.org>
66762
66763         * doc/quote.texi: New file, extracted from gnulib.texi.
66764         * doc/ctime.texi: New file, extracted from gnulib.texi.
66765         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66766         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66767         * doc/gnulib.texi: Include them.
66768
66769 2005-09-18  Bruno Haible  <bruno@clisp.org>
66770
66771         Portability fix.
66772         * gnulib-tool (func_readlink): New function.
66773         (func_ln_if_changed): Use it.
66774
66775 2005-09-18  Bruno Haible  <bruno@clisp.org>
66776
66777         * gnulib-tool: Support --with-tests also with --import.
66778         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66779         (func_import): Use variables $testsbase and $inctests. Emit a
66780         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66781         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66782         SUBDIRS += $testsdir.
66783         (func_create_testdir): Update.
66784
66785 2005-09-18  Bruno Haible  <bruno@clisp.org>
66786
66787         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66788         instead of $dry_run.
66789         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66790         (func_ln_if_changed): Don't handle dry-run here.
66791         (func_import): In dry-run mode, detect more precisely which actions
66792         would be performed, and don't use "...ing" verbs.
66793
66794 2005-09-18  Bruno Haible  <bruno@clisp.org>
66795
66796         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66797         (func_import): Use join on two temporary files instead of three nested
66798         loops, in order to determine which files are new or old.
66799
66800 2005-09-18  Bruno Haible  <bruno@clisp.org>
66801
66802         * gnulib-tool (func_import): Comment out code that spits out the
66803         new files with --dry-run.
66804
66805 2005-09-18  Bruno Haible  <bruno@clisp.org>
66806
66807         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66808
66809 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/stat-time.h: New file.
66812         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66813         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66814         in a different way.
66815         (timespec_cmp): New function.
66816         * lib/utimecmp.c: Include stat-time.h.
66817         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66818         members exist, not on the obsolescent ST_MTIM_NSEC.
66819         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66820
66821 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66824
66825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * MODULES.html.sh (File system functions): Add stat-time.
66828         * modules/stat-time: New file.
66829         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66830         is now done in a different way, by the stat-time module.
66831         * modules/utimecmp (Depends-on): Add stat-time.
66832
66833 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/st_mtim.m4: Remove.  Superseded by...
66836         * m4/stat-time.m4: New file.
66837         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66838         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66839
66840 2005-09-15  Derek Price  <derek@ximbiot.com>
66841
66842         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66843
66844 2005-09-15  Derek Price  <derek@ximbiot.com>
66845
66846         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66847         * lib/regex_internal.c: Ditto, using this...
66848         (__GNUC_PREREQ): ...new macro.
66849         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66850         using...
66851         (__GNUC_PREREQ): ...this new macro.
66852
66853         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66854
66855 2005-09-15  Derek Price  <derek@ximbiot.com>
66856             Paul Eggert  <eggert@cs.ucla.edu>
66857
66858         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66859         changes, consolidating in...
66860         * lib/regex_internal.h: ...this file.
66861
66862 2005-09-13  Jim Meyering  <jim@meyering.net>
66863
66864         * lib/canon-host.c: Filter through gnu indent and reword comments
66865         slightly.
66866         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66867
66868 2005-09-13  Derek Price  <derek@ximbiot.com>
66869
66870         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66871         failure.
66872         Reported by Jim Meyering  <jim@meyering.net>.
66873
66874 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66875
66876         * lib/base64.c: Typo.
66877         (base64_encode): Put b64str in initialized data section.
66878
66879 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         Merge glibc and coreutils changes into gnulib, plus a few
66882         extra fixes.
66883         * lib/md5.c: Use #error rather than a string.
66884         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66885         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66886         (__attribute__): Define to empty for non recent-GCC.
66887         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66888         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66889         Renamed from their non-__ counterparts, with new macros replacing
66890         them if not _LIBC.  Add __THROW attribute.
66891         (rol): Remove.
66892         (struct md5_ctx): Align buffer if using GCC.
66893         * lib/sha1.h (struct sha1_ctx): Likewise.
66894         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66895         The old name was backwards.
66896         (NOTSWAP): Remove; not used.
66897         (rol): New macro, moved here from md5.h.
66898         (sha1_process_block): Remove a FIXME that doesn't make sense.
66899
66900 2005-09-12  Derek Price  <derek@ximbiot.com>
66901
66902         Return usable errors from canon-host.
66903         * lib/canon-host.h: New file.
66904         * lib/canon-host.c (canon_host): Wrap...
66905         (canon_host_r): ...this new function, which now relies exclusively on
66906         getaddrinfo.
66907         (ch_strerror): New function.
66908         (last_cherror): New global.
66909         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66910         interface.
66911         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66912         void *.
66913         (freeaddrinfo): Free ai->ai_canonname when set.
66914
66915 2005-09-12  Derek Price  <derek@ximbiot.com>
66916
66917         Make canon-host require getaddrinfo.
66918         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66919         AC_LIBSOURCE canon-host.h.  Call...
66920         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66921         gl_GETADDRINFO.
66922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66923
66924 2005-09-12  Derek Price  <derek@ximbiot.com>
66925
66926         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66927         LGPL.
66928         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66929
66930 2005-09-12  Derek Price  <derek@ximbiot.com>
66931
66932         * lib/gai_strerror.c: Include config.h when available.  Include
66933         getaddrinfo.h before other headers to test interface.
66934         Reported by Larry Jones <lawrence.jones@ugs.com>.
66935
66936 2005-09-12  Derek Price  <derek@ximbiot.com>
66937             Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * modules/glob (Files): Add glob-libc.h.
66940
66941 2005-09-12  Derek Price  <derek@ximbiot.com>
66942             Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66945         glob_.h, glob-libc.h.
66946         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66947
66948 2005-09-12  Derek Price  <derek@ximbiot.com>
66949             Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66952         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66953         protecting things that should be done only in gnulib contexts.
66954         * lib/glob_.h: New file, containing only the glob things needed for
66955         gnulib.
66956         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66957         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66958         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66959         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66960         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66961         and to respect the namespace rules better.
66962
66963 2005-09-08  Simon Josefsson  <jas@extundo.com>
66964
66965         * modules/socklen: New file.
66966
66967 2005-09-08  Simon Josefsson  <jas@extundo.com>
66968
66969         * m4/socklen.m4: New file.
66970
66971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66972
66973         * modules/utimens (Files): Add m4/utimbuf.m4, since
66974         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66975         Reported by Sergey Poznyakoff.
66976
66977 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66980         definitions, since that's the preferred style in glibc.
66981         Fix a minor spacing issue, and update copyright notice to match
66982         glibc's.
66983
66984 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66985
66986         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66987
66988 2005-09-06  Simon Josefsson  <jas@extundo.com>
66989
66990         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66991         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66992
66993 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66994
66995         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66996         warning.
66997
66998 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * config/srclist.txt: Add glibc bug 1302.
67001
67002 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         Change bitset word type from unsigned int to unsigned long int,
67005         as this has better performance on typical 64-bit hosts.
67006         Port bitset code to hosts with unusual word sizes.
67007         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67008         (build_collating_symbol):
67009         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67010         argument is a bitset.  This is merely a style issue, but it makes
67011         it clearer that an entire array is expected.
67012         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67013         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67014         Port to the case where bitset_word is not the same as unsigned int.
67015         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67016         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67017         Likewise.
67018         * lib/regexec.c (check_dst_limits_calc_pos_1,
67019         check_subexp_matching_top):
67020         (build_trtable, group_nodes_into_DFAstates):
67021         Likewise.
67022         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67023         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67024         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67025         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67026         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67027         * lib/regcomp.c (optimize_subexps, lower_subexp):
67028         Work even if bitset_word has holes in its bitwise representation.
67029         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67030         * lib/regexec.c (check_dst_limits_calc_pos_1,
67031         check_subexp_matching_top):
67032         Likewise.
67033         * lib/regex_internal.c (re_string_reconstruct):
67034         Don't assume UCHAR_MAX == 255.
67035         * lib/regex_internal.h (bitset_set_all): Likewise.
67036         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67037         All uses changed.
67038         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67039         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67040         All uses changed.
67041         (BITSET_WORD_MAX): New macro.
67042         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67043         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67044         (bitset_empty, bitset_copy):
67045         Prefer sizeof (bitset) to multiplying it out ourselves.
67046         (bitset_not_merge): Remove; unused.
67047         (bitset_contain): Return bool, not unsigned int with one bit on.
67048         All callers changed.
67049         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67050         alignment than re_node_set; do this by defining a new internal
67051         type struct dests_alloc and using it to allocate memory.
67052
67053 2005-09-05  Bruno Haible  <bruno@clisp.org>
67054
67055         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67056         links.
67057
67058 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67059
67060         * modules/size_max (Makefile.am): Add size_max.h
67061
67062 2005-09-04  Derek Price  <derek@ximbiot.com>
67063
67064         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67065
67066 2005-09-03  Simon Josefsson  <jas@extundo.com>
67067
67068         * gnulib-tool: Fix typo.
67069
67070 2005-09-03  Simon Josefsson  <jas@extundo.com>
67071
67072         * config/srclist.txt: Add glibc bug 1293.
67073
67074 2005-09-03  Derek Price  <derek@ximbiot.com>
67075
67076         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67077         From Larry Jones <lawrence.jones@ugs.com>.
67078
67079 2005-09-02  Simon Josefsson  <jas@extundo.com>
67080
67081         * modules/socklen: New file.
67082
67083 2005-09-02  Simon Josefsson  <jas@extundo.com>
67084
67085         * modules/havelib: New module.
67086
67087         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67088         Use havelib.
67089
67090 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         Check for arithmetic overflow when calculating sizes, to prevent
67093         some buffer-overflow issues.  These patches are conservative, in the
67094         sense that when I couldn't determine whether an overflow was possible,
67095         I inserted a run-time check.
67096         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67097         macros.
67098         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67099         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67100         (re_xnrealloc, re_x2nrealloc): New inline functions.
67101         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67102         parse_bracket_exp):
67103         (build_equiv_class, build_charclass): Check for arithmetic overflow
67104         in size expression calculations.
67105         * lib/regex_internal.c (re_string_realloc_buffers):
67106         (build_wcs_upper_buffer, re_node_set_add_intersect):
67107         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67108         (re_dfa_add_node, register_state): Likewise.
67109         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67110         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67111         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67112         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67113
67114 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67117         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67118
67119 2005-09-02  Bruno Haible  <bruno@clisp.org>
67120
67121         Support for lib vs. lib64 distinction on biarch platforms.
67122         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67123         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67125
67126 2005-09-02  Bruno Haible  <bruno@clisp.org>
67127
67128         * gnulib-tool (import): In the other first-use case, provide defaults
67129         as well.
67130
67131 2005-09-02  Bruno Haible  <bruno@clisp.org>
67132
67133         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67134         patches not yet found in the latest gettext release.
67135
67136 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67139         to avoid a collision with bits/local_lim.h in glibc.
67140         All uses changed.  Problem reported by Dmitry V. Levin in
67141         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67142
67143         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67144         bugs in int versus size_t comparisons.
67145         (re_string_context_at): Fix bug where the code assumed that
67146         Idx is signed.
67147
67148         Use bool where appropriate.
67149         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67150         All callers changed.
67151         (calc_eclosure_iter): Likewise, for ROOT arg.
67152         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67153         (build_charclass_op): Likewise, for NON_MATCH arg.
67154         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67155         (re_string_construct_common): Likewise, for ICASE arg.
67156         * lib/regexec.c (re_search_2_stub, re_search_stub):
67157         Likewise, for RET_LEN arg.
67158         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67159         (set_regs): Likewise, for FL_BACKTRACK arg.
67160         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67161         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67162         (calc_eclosure_iter, parse_bracket_exp):
67163         Use bool for internal variables that are booleans.
67164         * lib/regexec.c (re_search_internal, check_matching,
67165         proceed_next_node):
67166         (set_regs, build_sifted_states, sift_states_bkref):
67167         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67168         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67169         (find_collation_sequence_value):
67170         Likewise.
67171         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67172         (re_node_set_compare):
67173         Return bool, not int. All callers changed.
67174         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67175         (build_trtable, check_node_accept): Likewise.
67176         * lib/regex_internal.h: Include stdbool.h.
67177
67178         Fix bugs uncovered when converting to bool.
67179         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67180         failure instead of charging ahead blindly.
67181         * lib/regex_internal.c (register_state): Likewise.
67182         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67183         for freeing internal storage.
67184         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67185         bitset pieces used as boolean, to avoid undefined behavior
67186         on hosts that do int overflow checking.
67187
67188 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * config/srclist.txt: Add glibc bugs 1285-1287.
67191
67192 2005-09-01  Jim Meyering  <jim@meyering.net>
67193
67194         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67195         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67196         Require gl_STAT_MACROS, too.
67197
67198 2005-09-01  Bruno Haible  <bruno@clisp.org>
67199
67200         * gnulib-tool (import): In the first-use case, provide defaults.
67201
67202 2005-09-01  Bruno Haible  <bruno@clisp.org>
67203
67204         * gnulib-tool (func_import): Remove the .tmp files.
67205
67206 2005-09-01  Bruno Haible  <bruno@clisp.org>
67207
67208         * gnulib-tool (func_import): Fix handling of symbolic links.
67209
67210 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67213         old glibc regex code mishandles strings longer than 2**31 bytes.
67214         This patch fixes this when the regex code is used in gnulib
67215         (i.e., outside glibc).
67216
67217         This patch should not affect the use of the regex code inside
67218         glibc.  No doubt this problem also needs to be handled for glibc
67219         as well, but the result will be an incompatible change to the
67220         glibc ABI, and the old ABI will have to be supported too.  That
67221         can be the the subject for another patch.
67222
67223         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67224         governing whether the rest of this patch is active.  By default,
67225         the macro is disabled and the patch has no effect.
67226         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67227         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67228         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67229         (re_match_2, re_set_registers): Use the new types.
67230         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67231         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67232         New macros.
67233         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67234         (re_string_context_at, bin_tree_t, re_dfastate_t):
67235         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67236         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67237         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67238         (re_string_char_size_at, re_string_wchar_at):
67239         (re_string_elem_size_at):
67240         Use the new types and macros to port to 64-bit hosts.
67241         Use unsigned types for internal values, so that the code
67242         mostly works even for arrays larger than SSIZE_MAX.
67243         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67244         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67245         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67246         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67247         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67248         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67249         (calc_inveclosure, parse_dup_op, build_range_exp):
67250         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67251         (fetch_number, create_token_tree, mark_opt_subexp):
67252         Likewise.
67253         * lib/regex_internal.c (re_string_construct_common,
67254         create_ci_newstate):
67255         (create_cd_newstate, re_string_allocate, re_string_construct):
67256         (re_string_realloc_buffers, build_wcs_upper_buffer):
67257         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67258         (re_string_reconstruct, re_string_peek_byte_case):
67259         (re_string_fetch_byte_case, re_string_context_at):
67260         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67261         (re_node_set_init_copy, re_node_set_add_intersect):
67262         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67263         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67264         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67265         (re_acquire_state, re_acquire_state_context, register_state):
67266         Likewise.
67267         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67268         search_cur_bkref_entry):
67269         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67270         (re_search_internal, re_search_2_stub, re_search_stub)
67271         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67272         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67273         (update_cur_sifted_state, check_dst_limits):
67274         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67275         (check_subexp_limits, sift_states_bkref, merge_state_array):
67276         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67277         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67278         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67279         (expand_bkref_cache, check_node_accept_bytes):
67280         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67281         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67282         (acquire_init_state_context, check_halt_node_context):
67283         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67284         (sift_states_backward, clean_state_log_if_needed):
67285         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67286         (find_recover_state, transit_state_sb, transit_state_mb):
67287         (transit_state_bkref, build_trtable, match_ctx_clean):
67288         Likewise.
67289         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67290         to work around an assumption that REG_MISSING is negative.
67291
67292         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67293         (seek_collating_symbol_entry) [defined _LIBC]:
67294         (lookup_collation_sequence_value) [defined _LIBC]:
67295         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67296         Use prototypes rather than old-style function definitions.
67297         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67298         (transit_state_sb) [0]:
67299         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67300
67301         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67302         rm_eo.
67303
67304         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67305         (optimize_subexps, lower_subexp):
67306         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67307         since the signed shift might overflow.  Use 1u<<31 instead.
67308         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67309         Likewise.
67310         * lib/regexec.c (check_dst_limits_calc_pos_1,
67311         check_subexp_matching_top): Likewise.
67312
67313         * lib/regcomp.c (optimize_subexps, lower_subexp):
67314         Use CHAR_BIT rather than 8, for clarity.
67315         * lib/regexec.c (check_dst_limits_calc_pos_1):
67316         (check_subexp_matching_top): Likewise.
67317         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67318         have to worry about portability issues when shifting it left.
67319         Remove no-longer-needed test for table_size > 0.
67320         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67321         in a word, as the resulting behavior is undefined.
67322         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67323         in one case, a <= should have been an <, and in another case the
67324         whole test was missing.
67325         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67326         the standard name CHAR_BIT.
67327         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67328         this is not true on one's complement and signed-magnitude hosts.
67329
67330         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67331         next_last_offset.
67332         (struct re_dfa_t): Remove unused member states_alloc.
67333         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67334
67335 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67336
67337         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67338         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67339         and large-file glibc and in 32-bit large-file Solaris.
67340
67341 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67344         lengths fit in regoff_t; this isn't true if regoff_t is the same
67345         width as size_t.
67346         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67347         (= START + RANGE) instead of RANGE.  This avoids overflow
67348         problems when regoff_t is the same width as size_t.
67349         All callers changed.
67350         (re_search_2_stub): Check for overflow when adding the
67351         sizes of the two strings.
67352         (re_search_stub): Check for overflow when adding START
67353         to RANGE; if it occurs, substitute the extreme value.
67354
67355 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67358
67359 2005-08-31  Jim Meyering  <jim@meyering.net>
67360
67361         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67362         a pointer-to-const.
67363         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67364         (register_state): Likewise.
67365         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67366         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67367         (group_nodes_into_DFAstates): Likewise.
67368
67369 2005-08-31  Jim Meyering  <jim@meyering.net>
67370
67371         * check-module: Add a FIXME comment.
67372
67373 2005-08-31  Eric Blake  <ebb9@byu.net>
67374
67375         * modules/unistd-safer (Files): Add unistd--.h.
67376         * modules/stdio-safer (Files): Add stdio--.h.
67377
67378 2005-08-31  Derek Price  <derek@ximbiot.com>
67379
67380         * lib/getdelim.c (getdelim): Return EOF on EOF.
67381         Reported by Larry Jones <lawrence.jones@ugs.com>.
67382
67383 2005-08-31  Bruno Haible  <bruno@clisp.org>
67384
67385         Avoid unnecessary diffs in the generated lib/Makefile.am.
67386         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67387         the generated files.
67388         (func_import): Don't set cmd.
67389
67390 2005-08-31  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/strstr.c: Include <stddef.h>, for NULL.
67393         * lib/strcasestr.c: Likewise.
67394         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67395
67396 2005-08-31  Bruno Haible  <bruno@clisp.org>
67397
67398         * gnulib-tool: New option --macro-prefix.
67399         (func_import): Use macro_prefix.
67400         (import): Handle option --macro-prefix.
67401
67402 2005-08-31  Bruno Haible  <bruno@clisp.org>
67403
67404         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67405         Also use new variables cached_lgpl, cached_libtool.
67406
67407 2005-08-31  Bruno Haible  <bruno@clisp.org>
67408
67409         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67410         always instantiating them.
67411
67412 2005-08-31  Bruno Haible  <bruno@clisp.org>
67413
67414         * gnulib-tool (func_import): Read the previous cached settings
67415         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67416         earlier added by gnulib but are now dropped. Warn when a gnulib file
67417         overwrites a non-gnulib file.
67418
67419 2005-08-31  Bruno Haible  <bruno@clisp.org>
67420
67421         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67422         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67423         projects that don't keep autogenerated files in CVS. Put into
67424         actioncmd only the specified modules, not the transitive closure.
67425
67426 2005-08-31  Bruno Haible  <bruno@clisp.org>
67427
67428         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67429         Create directories that shall be filled.
67430         (import): Don't look for gl_* macros in configure.ac. Recurse across
67431         all directories containing a gnulib-cache.m4 files, if meaningful.
67432
67433 2005-08-31  Bruno Haible  <bruno@clisp.org>
67434
67435         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67436         (import): Set seen_libtool when we see gl_LIBTOOL.
67437
67438 2005-08-31  Bruno Haible  <bruno@clisp.org>
67439
67440         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67441         declaration macro definitions from generated gnulib.m4.
67442
67443 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67444
67445         * lib/iconvme.h: Add prototype for iconv_alloc.
67446
67447 2005-08-29  Simon Josefsson  <jas@extundo.com>
67448
67449         * lib/iconvme.c: Fix errno.
67450
67451 2005-08-29  Bruno Haible  <bruno@clisp.org>
67452
67453         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67454         that it works when the directory contains spaces.
67455
67456 2005-08-29  Bruno Haible  <bruno@clisp.org>
67457
67458         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67459
67460 2005-08-29  Bruno Haible  <bruno@clisp.org>
67461
67462         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67463         Emit more advice.
67464
67465 2005-08-29  Bruno Haible  <bruno@clisp.org>
67466         and Stepan Kasal  <kasal@ucw.cz>
67467
67468         * check-module: If more parameters are given, check each of them
67469         separately; add more exceptions, as noted by Jim Meyering.
67470         (check_module): New procedure.
67471         (%exempt_header): Now contains all exceptions.
67472
67473 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67474
67475         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67476
67477 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67478
67479         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67480
67481 2005-08-28  Bruno Haible  <bruno@clisp.org>
67482
67483         * m4/gnulib-tool.m4: New file.
67484
67485 2005-08-27  Jim Meyering  <jim@meyering.net>
67486
67487         * modules/unistd-safer (Files): Add pipe-safer.c.
67488         * modules/fcntl-safer (Files): Add creat-safer.c.
67489
67490 2005-08-27  Jim Meyering  <jim@meyering.net>
67491
67492         * m4/stdlib-safer.m4: New file.  From coreutils.
67493         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67495         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67496         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67497         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67498
67499 2005-08-27  Jim Meyering  <jim@meyering.net>
67500
67501         * lib/fopen-safer.c: Merge minor changes from coreutils.
67502         * lib/dup-safer.c: Likewise.
67503         * lib/fd-safer.c: Likewise.
67504
67505         Merge from coreutils.
67506         * lib/stdio--.h: New file.
67507         * lib/stdlib--.h: New file.
67508         * lib/mkstemp-safer.c: New file.
67509
67510         GNU tar needs these.
67511         * lib/pipe-safer.c: New file.
67512         * lib/creat-safer.c: New file.
67513         * lib/fcntl--.h (creat): Define to creat_safer.
67514         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67515         * lib/unistd--.h (pipe): Define to pipe_safer.
67516         * lib/unistd-safer.h: Declare pipe_safer.
67517
67518 2005-08-26  Simon Josefsson  <jas@extundo.com>
67519
67520         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67521         Haible <bruno@clisp.org>.
67522
67523 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/regex_internal.h: Remove all references to
67526         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67527         or better.
67528         (bitset_not, bitset_merge, bitset_not_merge):
67529         (bitset_mask, re_string_allocate, re_string_construct):
67530         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67531         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67532         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67533         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67534         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67535         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67536         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67537         (re_acquire_state_context):
67538         Remove unnecessary forward decls.
67539         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67540         Put __attribute at function definition,
67541         now that the function decl has been removed.
67542         * lib/regex_internal.c (re_string_peek_byte_case):
67543         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67544         Likewise.
67545
67546 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67547
67548         * m4/regex.m4: Add AC_PREREQ(2.50).
67549         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67550
67551 2005-08-25  Simon Josefsson  <jas@extundo.com>
67552
67553         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67554         __fsetlocking.
67555
67556 2005-08-25  Simon Josefsson  <jas@extundo.com>
67557
67558         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67559         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67560         GLIBC specific code.
67561
67562 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         Make regex safe for g++.  This fixes one real bug (an "err"
67565         that should have been "*err").  g++ problem reported by
67566         Sam Steingold.
67567         * lib/regex_internal.h (re_calloc): New macro, consistent with
67568         re_malloc etc.  All callers of calloc changed to use re_calloc.
67569         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67570         not int.  All callers changed.
67571         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67572         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67573         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67574         (find_recover_state): Change "err" to "*err"; this fixes what
67575         appears to be a real bug.
67576         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67577         versus int.
67578
67579 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * modules/regex (Depends-on): Add malloc, since the code
67582         assumes that !malloc(0) means failure.
67583
67584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67587
67588         alloca modernization/simplification for regex.
67589         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67590         needs to be at the start of the file, and can be moved into
67591         regex_internal.h and simplified.
67592         * lib/regex_internal.h: Include <alloca.h>.
67593         (__libc_use_alloca) [!defined _LIBC]: New macro.
67594         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67595         now works outside glibc.
67596
67597 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * config/srclist.txt: Add glibc bugs 1241, 1245.
67600
67601 2005-08-25  Jim Meyering  <jim@meyering.net>
67602
67603         * lib/open-safer.c: Include <config.h>.
67604         Otherwise, we'd lose LARGEFILE support in any file using
67605         e.g. "fcntl--.h"
67606
67607 2005-08-25  Bruno Haible  <bruno@clisp.org>
67608
67609         * m4/minmax.m4: Require autoconf 2.52.
67610         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67611         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67612         alternatives of translit over the alphabet.
67613         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67614
67615 2005-08-24  Simon Josefsson  <jas@extundo.com>
67616
67617         * tests/test-getpass.c: New file.
67618
67619 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67622         for GNU regex features.
67623
67624 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67627         * lib/regex.h (regerror): Likewise.
67628
67629         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67630         requires this.  (The code never needed it.)
67631
67632         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67633         All uses of recently-renamed identifiers changed to use the new,
67634         POSIX-compliant names.  The code will build and run just fine
67635         without these changes, but it's better to eat our own dog food
67636         and use the standard-conforming names.
67637
67638         * lib/regex.h: Fix a multitude of POSIX name space violations.
67639         These changes have an effect only for programs that define
67640         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67641         do not change anything for programs compiled in the normal way.
67642         Also, there is no effect on the ABI.
67643
67644         (_REGEX_SOURCE): New macro.
67645         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67646         defined and _GNU_SOURCE is not; this fixes a name space violation.
67647
67648         Rename the following macros to obey POSIX requirements.
67649         The old names are still visible as macros if _REGEX_SOURCE is defined.
67650         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67651         RE_BACKSLASH_ESCAPE_IN_LISTS.
67652         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67653         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67654         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67655         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67656         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67657         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67658         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67659         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67660         (REG_INTERVALS): renamed from RE_INTERVALS.
67661         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67662         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67663         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67664         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67665         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67666         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67667         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67668         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67669         RE_UNMATCHED_RIGHT_PAREN_ORD.
67670         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67671         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67672         (REG_DEBUG): renamed from RE_DEBUG.
67673         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67674         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67675         unusual, since we can't clash with the POSIX REG_ICASE.
67676         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67677         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67678         (REG_NO_SUB): renamed from RE_NO_SUB.
67679         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67680         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67681         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67682         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67683         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67684         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67685         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67686         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67687         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67688         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67689         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67690         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67691         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67692         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67693         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67694         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67695         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67696         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67697         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67698         (REG_FIXED): Renamed from REGS_FIXED.
67699         (REG_NREGS): Renamed from RE_NREGS.
67700
67701         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67702         of other REG_* macros, since POSIX says the user is allowed to
67703         #undef these macros selectively.
67704
67705         (reg_errcode_t): Update comment stating what other tables need
67706         to be consistent.
67707
67708         Rename the following enum values to obey POSIX requirements.
67709         The old names are still visible as macros.
67710         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67711         is not defined, since GNU is supposed to be a superset of POSIX as
67712         much as possible, and since we want reg_errcode_t to be a signed
67713         type for implementation consistency.
67714         (_REG_NOERROR): Renamed from REG_NOERROR.
67715         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67716         (_REG_BADPAT): Renamed from REG_BADPAT.
67717         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67718         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67719         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67720         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67721         (_REG_EBRACK): Renamed from REG_EBRACK.
67722         (_REG_EPAREN): Renamed from REG_EPAREN.
67723         (_REG_EBRACE): Renamed from REG_EBRACE.
67724         (_REG_BADBR): Renamed from REG_BADBR.
67725         (_REG_ERANGE): Renamed from REG_ERANGE.
67726         (_REG_ESPACE): Renamed from REG_ESPACE.
67727         (_REG_BADRPT): Renamed from REG_BADRPT.
67728         (_REG_EEND): Renamed from REG_EEND.
67729         (_REG_ESIZE): Renamed from REG_ESIZE.
67730         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67731         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67732         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67733         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67734         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67735
67736         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67737         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67738         changed.  But support the old name if the new one is not defined
67739         and if _REGEX_SOURCE.
67740
67741         Change the following member names in struct re_pattern_buffer.
67742         The old names are still supported if !_REGEX_SOURCE.
67743         The new names are always supported, regardless of _REGEX_SOURCE.
67744         (re_buffer): Renamed from buffer.
67745         (re_allocated): Renamed from allocated.
67746         (re_used): Renamed from used.
67747         (re_syntax): Renamed from syntax.
67748         (re_fastmap): Renamed from fastmap.
67749         (re_translate): Renamed from translate.
67750         (re_can_be_null): Renamed from can_be_null.
67751         (re_regs_allocated): Renamed from regs_allocated.
67752         (re_fastmap_accurate): Renamed from fastmap_accurate.
67753         (re_no_sub): Renamed from no_sub.
67754         (re_not_bol): Renamed from not_bol.
67755         (re_not_eol): Renamed from not_eol.
67756         (re_newline_anchor): Renamed from newline_anchor.
67757
67758         Change the following member names in struct re_registers.
67759         The old names are still supported if !_REGEX_SOURCE.
67760         The new names are always supported, regardless of _REGEX_SOURCE.
67761         (rm_num_regs): Renamed from num_regs.
67762         (rm_start): Renamed from start.
67763         (rm_end): Renamed from end.
67764
67765         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67766         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67767         Prepend __ to parameter names.
67768
67769         Undo yesterday's changes.
67770
67771 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67774         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67775         lib/regex.c.
67776
67777 2005-08-24  Jim Meyering  <jim@meyering.net>
67778
67779         Sync from coreutils.
67780         * m4/fcntl-safer.m4: New file.
67781
67782         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67783         and object files for this module.
67784
67785 2005-08-24  Jim Meyering  <jim@meyering.net>
67786
67787         Sync from coreutils.
67788         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67789
67790 2005-08-24  Jim Meyering  <jim@meyering.net>
67791
67792         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67793         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67794
67795 2005-08-24  Jim Meyering  <jim@meyering.net>
67796
67797         * modules/fcntl-safer: New module.
67798         * modules/fts (Depends-on): Add fcntl-safer.
67799         * MODULES.html.sh (File descriptor based Input/Output):
67800         Add fcntl-safer.
67801
67802 2005-08-24  Bruno Haible  <bruno@clisp.org>
67803
67804         Support for unit test modules.
67805         * modules/README: Mention tests modules.
67806         * modules/TEMPLATE-TESTS: New file.
67807         * gnulib-tool: New options --extract-tests-module, --with-tests and
67808         --tests-base (unused for the moment).
67809         (testsbase, inctests): New variables.
67810         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67811         (func_verify_module): Exclude TEMPLATE-TESTS.
67812         (func_verify_nontests_module, func_verify_tests_module): New functions.
67813         (func_get_dependencies): Add implicit dependency for tests modules.
67814         (func_get_tests_module): New function.
67815         (func_modules_transitive_closure): When --with-tests was specified,
67816         include the unit tests as well, unless explicitly avoided.
67817         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67818         (func_emit_tests_Makefile_am): New function.
67819         (func_create_testdir): When --with-tests was specified, emit a
67820         tests/ directory.
67821         * MODULES.html.sh (Future developments): Update.
67822
67823 2005-08-24  Bruno Haible  <bruno@clisp.org>
67824
67825         * modules/tls-tests: New file.
67826         * tests/test-tls.c: New file, from GNU gettext.
67827
67828 2005-08-24  Bruno Haible  <bruno@clisp.org>
67829
67830         * modules/lock-tests: New file.
67831         * tests/test-lock.c: New file, from GNU gettext.
67832
67833 2005-08-24  Bruno Haible  <bruno@clisp.org>
67834
67835         * lib/lock.h: Add multiple inclusion guard.
67836         * lib/tls.h: Add multiple inclusion guard.
67837
67838 2005-08-24  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool: Add support for the --aux-dir option to
67841         --create-testdir, --create-megatestdir, --test, --megatest.
67842         (func_create_testdir, func_create_megatestdir): Optionally emit a
67843         AC_CONFIG_AUX_DIR directive.
67844         (create-testdir, create-megatestdir, test, megatest): Provide a
67845         default value for $auxdir.
67846
67847 2005-08-24  Bruno Haible  <bruno@clisp.org>
67848
67849         * gnulib-tool (import): Use compound statement instead of subshell
67850         where possible.
67851
67852 2005-08-24  Bruno Haible  <bruno@clisp.org>
67853
67854         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67855
67856 2005-08-24  Bruno Haible  <bruno@clisp.org>
67857
67858         * gnulib-tool (func_version): Update.
67859
67860 2005-08-24  Bruno Haible  <bruno@clisp.org>
67861
67862         * gnulib-tool (func_import, func_create_testdir,
67863         func_create_megatestdir): Quote all autoconf macro arguments.
67864
67865 2005-08-24  Bruno Haible  <bruno@clisp.org>
67866
67867         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67868         option --force, because --force causes the aclocal.m4 of each
67869         subdirectory to be newer than the corresponding config.h.in.
67870
67871 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67872
67873         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67874         All contents moved to gl_REGEX.
67875         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67876         assume that it does.
67877
67878 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         * lib/regex.h (REG_NOSYS)
67881         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67882         Define, since POSIX requires it as of 2001.
67883         (_REG_ENOSYS)
67884         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67885         New private symbol, used to keep the enum signed in all cases.
67886         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67887         Youngman in
67888         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67889
67890         * lib/regex_internal.c (re_string_skip_chars, register_state):
67891         (calc_state_hash):
67892         Remove forward decls; no longer needed now that we use prototypes.
67893         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67894         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67895         (clean_state_log_if_needed): Likewise.
67896
67897 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * config/srclist.txt: Add glibc bugs 1231-1233.
67900
67901 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         Fix problems reported by Sam Steingold in
67904         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67905         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67906         assumed that reg_errcode_t is a signed type, which is not
67907         necessarily true if _XOPEN_SOURCE is not defined.
67908         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67909         since some compilers warn about it otherwise.
67910
67911 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67914         (init_word_char, create_initial_state, duplicate_node_closure):
67915         (fetch_token, peek_token_bracket, build_range_exp):
67916         (build_collating_symbol): Remove forward decls; no longer needed
67917         now that we use prototypes.
67918
67919         * lib/regcomp.c:
67920         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67921         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67922         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67923         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67924         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67925         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67926         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67927         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67928         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67929         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67930         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67931         (build_charclass, build_charclass_op, fetch_number, create_tree):
67932         (create_token_tree, mark_opt_subexp, duplicate_tree):
67933         Use prototypes rather than old-style definitions.
67934
67935         * lib/regex_internal.c:
67936         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67937         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67938         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67939         (re_string_reconstruct, re_string_peek_byte_case):
67940         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67941         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67942         (re_node_set_init_copy, re_node_set_add_intersect):
67943         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67944         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67945         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67946         (re_acquire_state, re_acquire_state_context, register_state):
67947         (create_ci_newstate, create_cd_newstate, free_state):
67948         Likewise.
67949         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67950         re_search_2):
67951         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67952         (re_search_internal, prune_impossible_nodes):
67953         (acquire_init_state_context, check_matching, static):
67954         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67955         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67956         (update_regs, sift_states_backward, build_sifted_states):
67957         (clean_state_log_if_needed, merge_state_array):
67958         (update_cur_sifted_state, add_epsilon_src_nodes):
67959         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67960         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67961         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67962         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67963         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67964         (check_arrival, check_arrival_add_next_nodes):
67965         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67966         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67967         (check_node_accept_bytes, check_node_accept, extend_buffers):
67968         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67969         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67970         (sift_ctx_init):
67971         Likewise.
67972
67973         * lib/regex_internal.h:
67974         (re_string_allocate, re_string_construct, re_string_reconstruct):
67975         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67976         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67977         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67978         (re_string_context_at, re_string_peek_byte_case):
67979         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67980         is defined, since we now use prototypes always.
67981
67982         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67983         C89 or better.  All uses removed.
67984
67985 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * config/srclist.txt: Add glibc bugs 1220-1227.
67988
67989 2005-08-20  Jim Meyering  <jim@meyering.net>
67990
67991         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67992         of unused local, dfa.
67993
67994 2005-08-20  Bruno Haible  <bruno@clisp.org>
67995
67996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67997
67998 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68001         (re_node_set_insert_last, re_dfa_add_node):
68002         Rename local variables to avoid GCC shadowing warnings.
68003
68004 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68007         [defined lint]: Suppress bogus uninitialized-variable warnings.
68008
68009         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68010         and let the caller return REG_ESPACE if out of space.  This
68011         removes an uninitialied-variable warning with GCC 4.0.1, and also
68012         avoids taking the address of a local variable.  All callers
68013         changed.
68014
68015 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68018         $LIBCSRC/posix/regexec.c.
68019         Add glibc bug 1217 for regcomp.c.
68020
68021 2005-08-19  Jim Meyering  <jim@meyering.net>
68022
68023         * lib/regexec.c (proceed_next_node): Redo local variables to
68024         avoid GCC shadowing warnings.
68025
68026 2005-08-18  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/strstr.c (strstr): Fix return value in multibyte case.
68029         * lib/strcasestr.c (strcasestr): Likewise.
68030
68031 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68034
68035 2005-08-17  Jim Meyering  <jim@meyering.net>
68036
68037         Make the %s format (seconds since the epoch) work for a negative
68038         number and when used with a zero-padded field width, e.g. %015s.
68039
68040         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68041         label so that it precedes the code to set `digits'.  Otherwise,
68042         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68043         print `00-22'.  Now, it prints `-0022', as it should.
68044
68045 2005-08-17  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/strstr (Files): Add m4/mbrtowc.m4.
68048         (Depends-on): Add mbuiter.
68049
68050 2005-08-17  Bruno Haible  <bruno@clisp.org>
68051
68052         * modules/strcasestr: New file.
68053         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68054         strcasestr.
68055
68056 2005-08-17  Bruno Haible  <bruno@clisp.org>
68057
68058         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68059
68060 2005-08-17  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/mbuiter: New file.
68063         * MODULES.html.sh (Extended multibyte and wide character utilities):
68064         Add mbuiter.
68065
68066 2005-08-17  Bruno Haible  <bruno@clisp.org>
68067
68068         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68069         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68070
68071 2005-08-17  Bruno Haible  <bruno@clisp.org>
68072
68073         * m4/strcasestr.m4: New file.
68074
68075 2005-08-17  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68078         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68079
68080 2005-08-17  Bruno Haible  <bruno@clisp.org>
68081
68082         * lib/strcasestr.h: New file.
68083         * lib/strcasestr.c: New file.
68084
68085 2005-08-17  Bruno Haible  <bruno@clisp.org>
68086
68087         * lib/strcasecmp.c: Use mbuiter.h.
68088
68089 2005-08-17  Bruno Haible  <bruno@clisp.org>
68090
68091         * lib/mbuiter.h: New file.
68092
68093 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68096         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68097         and gl_GETOPT are both invoked via different paths (as happens
68098         with GNU tar CVS because it uses both argp and getopt), the former
68099         wins.
68100
68101 2005-08-16  Bruno Haible  <bruno@clisp.org>
68102
68103         * modules/tls: New file.
68104         * MODULES.html.sh (Multithreading): Add tls.
68105
68106 2005-08-16  Bruno Haible  <bruno@clisp.org>
68107
68108         * modules/strnlen1: New file.
68109         * MODULES.html.sh (String handling): Add strnlen1.
68110
68111 2005-08-16  Bruno Haible  <bruno@clisp.org>
68112
68113         * modules/strcase (Files): Add m4/mbrtowc.m4.
68114         (Depends-on): Add strnlen1, mbchar.
68115
68116 2005-08-16  Bruno Haible  <bruno@clisp.org>
68117
68118         * modules/mbiter: New file.
68119         * MODULES.html.sh (Extended multibyte and wide character utilities):
68120         Add mbiter.
68121
68122 2005-08-16  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/mbfile: New file.
68125         * MODULES.html.sh (Extended multibyte and wide character utilities):
68126         Add mbfile.
68127
68128 2005-08-16  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/mbchar: New file.
68131         * MODULES.html.sh (Extended multibyte and wide character utilities):
68132         New section.
68133
68134 2005-08-16  Bruno Haible  <bruno@clisp.org>
68135
68136         * m4/tls.m4: New file, from GNU gettext.
68137
68138 2005-08-16  Bruno Haible  <bruno@clisp.org>
68139
68140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68141         always.
68142         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68143
68144 2005-08-16  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/mbiter.m4: New file.
68147
68148 2005-08-16  Bruno Haible  <bruno@clisp.org>
68149
68150         * m4/mbfile.m4: New file.
68151
68152 2005-08-16  Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/mbchar.m4: New file.
68155
68156 2005-08-16  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/tls.h: New file, from GNU gettext.
68159         * lib/tls.c: New file, from GNU gettext.
68160
68161 2005-08-16  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/strnlen1.h: New file.
68164         * lib/strnlen1.c: New file.
68165
68166 2005-08-16  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68169         (mbi_init): Update.
68170         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68171         NUL byte, not after it.
68172
68173 2005-08-16  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/strcase.h (strcasecmp): Add note in comments.
68176         * lib/strncasecmp.c: Use code from strcasecmp.c.
68177         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68178         (strcasecmp): Work correctly in multibyte locales.
68179
68180 2005-08-16  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/mbiter.h: New file.
68183
68184 2005-08-16  Bruno Haible  <bruno@clisp.org>
68185
68186         * lib/mbfile.h: New file.
68187
68188 2005-08-16  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/mbchar.h: New file.
68191         * lib/mbchar.c: New file.
68192
68193 2005-08-16  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68196         the valid ones. Makes the comparison operations transitive:
68197         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68198         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68199
68200 2005-08-15  Simon Josefsson  <jas@extundo.com>
68201
68202         * modules/ssize_t (License): Change to 'unlimited'.
68203
68204         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68205
68206 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68209         Add comments for each pending glibc patch.
68210
68211 2005-08-15  Bruno Haible  <bruno@clisp.org>
68212
68213         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68214         __cplusplus is defined.
68215
68216 2005-08-14  Jim Meyering  <jim@meyering.net>
68217
68218         Sync from coreutils.
68219
68220         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68221         Use the hash-table-based cycle-detection code not just when
68222         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68223         Reported by James Youngman in
68224         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68225         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68226         FTS_TIGHT_CYCLE_CHECK.
68227         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68228         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68229         once again.
68230         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68231         * lib/fts.c (fd_safer): Remove decl.
68232         Include fcntl--.h rather than unistd-safer.h
68233         (fts_safe_changedir): Don't call fd_safer; no longer needed
68234         now that we include fcntl--.h.
68235
68236 2005-08-12  Simon Josefsson  <jas@extundo.com>
68237
68238         * modules/getndelim2: Use ssize_t module.
68239         * modules/getnline: Likewise.
68240         * modules/safe-read: Likewise.
68241         * modules/xreadlink: Likewise.
68242
68243         * modules/ssize_t: New file.
68244
68245 2005-08-12  Simon Josefsson  <jas@extundo.com>
68246
68247         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68248
68249 2005-08-12  Simon Josefsson  <jas@extundo.com>
68250
68251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68252         ssize_t.
68253
68254 2005-08-12  Simon Josefsson  <jas@extundo.com>
68255
68256         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68257         readline, getdelim and check_version.
68258         (Support for systems lacking ISO C 99: Sizes of integer types):
68259         Add size_max.
68260
68261 2005-08-12  Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68264
68265 2005-08-11  Simon Josefsson  <jas@extundo.com>
68266
68267         * modules/readline: New file.
68268
68269         * modules/strnlen (Files): Add strnlen.h.
68270
68271 2005-08-11  Simon Josefsson  <jas@extundo.com>
68272
68273         * m4/readline.m4: New file.
68274
68275 2005-08-11  Simon Josefsson  <jas@extundo.com>
68276
68277         * lib/readline.h, readline.c: New file.
68278
68279 2005-08-11  Simon Josefsson  <jas@extundo.com>
68280
68281         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68282         gl_AVOID.
68283
68284 2005-08-11  Bruno Haible  <bruno@clisp.org>
68285
68286         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68287
68288 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68289
68290         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68291
68292 2005-08-10  Simon Josefsson  <jas@extundo.com>
68293
68294         * tests/test-iconvme.c: New file.
68295
68296 2005-08-10  Simon Josefsson  <jas@extundo.com>
68297
68298         * m4/strnlen.m4: New file.
68299
68300         * m4/strndup.m4: Don't check for strnlen declaration, done in
68301         strnlen.m4.
68302
68303 2005-08-10  Simon Josefsson  <jas@extundo.com>
68304
68305         * lib/strndup.c: Use strnlen.h.
68306
68307         * lib/strnlen.h: New file.
68308
68309 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68310
68311         * README: Typos.
68312
68313 2005-08-02  Simon Josefsson  <jas@extundo.com>
68314
68315         * modules/readline: New file.
68316
68317 2005-08-02  Simon Josefsson  <jas@extundo.com>
68318
68319         * modules/getdelim: New file.
68320
68321         * modules/getline: Rewrite, don't use getndelim2.
68322
68323 2005-08-02  Simon Josefsson  <jas@extundo.com>
68324
68325         * m4/getline.m4: Separate out getdelim stuff into separate module.
68326
68327         * m4/getdelim.m4: New file.
68328
68329 2005-08-02  Simon Josefsson  <jas@extundo.com>
68330
68331         * lib/getline.h, getline.c: Rewrite.
68332
68333         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68334
68335 2005-07-31  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/lock.h (gl_lock_initializer): New macro.
68338         (gl_lock_define_initialized): Use it.
68339         (gl_rwlock_initializer): New macro.
68340         (gl_rwlock_define_initialized): Use it.
68341         (gl_recursive_lock_initializer): New macro.
68342         (gl_recursive_lock_define_initialized): Use it.
68343
68344 2005-07-30  Karl Berry  <karl@gnu.org>
68345
68346         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68347         Report from Ben Pfaff, regarding getopt.
68348
68349 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68352         normal way.
68353         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68354         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68355         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68356         (gl_GETOPT): Use the new macros.  Most of the implementation
68357         is moved to the new macros.  This is for programs like Emacs
68358         that don't want all the functionality of gl_GETOPT.
68359
68360 2005-07-26  Bruno Haible  <bruno@clisp.org>
68361
68362         * m4/lock.m4: Update from GNU gettext.
68363
68364 2005-07-26  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/lock.h: Update from GNU gettext.
68367         * lib/lock.c: Update from GNU gettext.
68368
68369 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68372         obsolescent AC_TRY_RUN.  Include the default includes files, for
68373         'exit'.
68374
68375 2005-07-24  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/visibility: New file.
68378         * MODULES.html.sh (Misc): Add visibility.
68379
68380 2005-07-24  Bruno Haible  <bruno@clisp.org>
68381
68382         * m4/visibility.m4: New file.
68383
68384 2005-07-24  Bruno Haible  <bruno@clisp.org>
68385
68386         * doc/visibility.texi: New file.
68387
68388 2005-07-22  Bruno Haible  <bruno@clisp.org>
68389
68390         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68391         $(ALLOCA_H), redundant through BUILT_SOURCES.
68392         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68393         redundant through BUILT_SOURCES.
68394         * modules/byteswap (Makefile.am): Remove explicit dependency on
68395         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68396         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68397         $(FNMATCH_H), redundant through BUILT_SOURCES.
68398         * modules/getopt (Makefile.am): Remove explicit dependency on
68399         $(GETOPT_H), redundant through BUILT_SOURCES.
68400         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68401         redundant through BUILT_SOURCES.
68402         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68403         redundant through BUILT_SOURCES.
68404         * modules/stdbool (Makefile.am): Remove explicit dependency on
68405         $(STDBOOL_H), redundant through BUILT_SOURCES.
68406         * modules/stdint (Makefile.am): Remove explicit dependency on
68407         $(STDINT_H), redundant through BUILT_SOURCES.
68408         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68409         Remove explicit dependency on $(SYSEXITS_H).
68410         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68411
68412 2005-07-18  Simon Josefsson  <jas@extundo.com>
68413
68414         * lib/check-version.c (check_version): Accept identical versions too.
68415
68416 2005-07-18  Bruno Haible  <bruno@clisp.org>
68417
68418         * modules/lock: New file.
68419         * MODULES.html.sh (Multithreading): New section.
68420
68421 2005-07-18  Bruno Haible  <bruno@clisp.org>
68422
68423         * m4/lock.m4: New file, from GNU gettext.
68424
68425 2005-07-18  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/lock.h: New file, from GNU gettext.
68428         * lib/lock.c: New file, from GNU gettext.
68429
68430 2005-07-18  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/lock.h (gl_once_t): New type.
68433         (gl_once_define, gl_once): New macros.
68434         * lib/lock.c (fresh_once): New variable.
68435         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68436         functions.
68437
68438 2005-07-16  Simon Josefsson  <jas@extundo.com>
68439
68440         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68441         workaround, suggested by Bruno.
68442
68443 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * modules/xalloc (Depends-on): Add xalloc-die.
68446         * modules/xvasprintf (Depends-on): Add xalloc-die.
68447
68448 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68451         with a minor change.
68452
68453 2005-07-15  Bruno Haible  <bruno@clisp.org>
68454
68455         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68456         When using lib/poll.c, define poll as rpl_poll.
68457
68458 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * modules/argp (Depends-on): Remove unlocked-io.
68461
68462 2005-07-14  Derek Price  <derek@ximbiot.com>
68463
68464         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68465         for glob symlink bug.
68466
68467 2005-07-14  Bruno Haible  <bruno@clisp.org>
68468
68469         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68470         Instead, test for *_unlocked function declarations directly.
68471
68472 2005-07-11  Simon Josefsson  <jas@extundo.com>
68473
68474         * modules/size_max: New file.
68475
68476         * modules/xsize: Depend on size_max module for size_max.m4.
68477
68478 2005-07-11  Simon Josefsson  <jas@extundo.com>
68479
68480         * lib/size_max.h: New file.
68481
68482 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68485         copyright symbol and the year.
68486         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68487         (version_etc_va): Use parameterized copyright notice.
68488         Reword to conform to the current GNU coding standards.
68489
68490 2005-07-11  Karl Berry  <karl@gnu.org>
68491
68492         * doc/gnulib.texi (Quoting): new node.
68493         (Initial import): more info, from Patrice.
68494
68495 2005-07-11  Bruno Haible  <bruno@clisp.org>
68496
68497         * gnulib-tool (func_usage): Document option --avoid.
68498         (Command line options): Handle --avoid.
68499         (func_acceptable): New function.
68500         (func_modules_transitive_closure): Use it.
68501
68502 2005-07-11  Bruno Haible  <bruno@clisp.org>
68503
68504         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68505         Reported by Jim Meyering.
68506
68507 2005-07-10  Bruno Haible  <bruno@clisp.org>
68508
68509         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68510         Needed when size_t is smaller than 'unsigned int'.
68511         Reported by Paul Eggert.
68512
68513 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68514
68515         * modules/argp (Depends-on): Add unlocked-io
68516
68517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68518
68519         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68520         block of defines.
68521
68522 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68525         fix now.
68526
68527 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68528         and Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68531         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68532
68533 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68534
68535         * modules/regex (Files): Add lib/regex_internal.c,
68536         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68537         (Depends-on): Add extensions.
68538         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68539
68540 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68541
68542         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68543         pathconf.
68544         * m4/same.m4 (gl_SAME): Likewise.
68545         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68546
68547         * m4/regex.m4: Adjust to new libc regex implementation.
68548         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68549         all the .c and .h parts of (the new) regex.
68550         Quote the m4 stuff better.
68551         Check for RE_ICASE bug of old gnulib.
68552         Check for REG_STARTEND of recent libc.
68553         Rename local variables from jm_* to gl_*.
68554         Quote operand of "test -f".
68555         Say "recent enough" version of libc, not "version 2".
68556         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68557         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68558         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68559         Remove check for btowc, isascii.
68560         Require AM_LANGINFO_CODESET.
68561
68562 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * lib/regex.c, regex.h: Sync from libc.
68565         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68566         * lib/regexec.c:
68567         New files, synced from libc, except that regex_internal.h
68568         currently has a small porting fix.
68569
68570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68573         regex_internal.c, regexec.c.
68574         Add regex_internal.h too, but as a comment, since the libc version
68575         is currently broken in gnulib mode.
68576
68577 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         Support programs like Emacs that use gnulib but not gettext.
68580         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68581         * modules/gettext-h: New file.
68582         * modules/gettext (Files): Remove lib/gettext.h.
68583         (Depends-on): Add gettext-h.
68584         (Makefile.am): Remove lib_SOURCES.
68585         * modules/argmatch, modules/c-stack, modules/closeout:
68586         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68587         * modules/execute, modules/file-type, modules/getaddrinfo:
68588         * modules/getopt, modules/human, modules/javacomp:
68589         * modules/javaexec, modules/mkdir-p, modules/obstack:
68590         * modules/openat, modules/pagealign_alloc, modules/pipe:
68591         * modules/quotearg, modules/regex, modules/rpmatch:
68592         * modules/unicodeio, modules/userspec, modules/version-etc:
68593         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68594         * modules/xsetenv:
68595         Depend on gettext-h, not gettext.
68596
68597 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * gnulib-tool (func_import): Add support for 'public domain' license.
68600         * modules/alloca, modules/atexit, modules/memmove:
68601         Now public domain, not GPL.
68602         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68603         * modules/realloc, modules/strerror, modules/strtod:
68604         Now LGPL, not GPL.
68605
68606 2005-07-05  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68609         autoconf CVS. Needed for mingw.
68610
68611 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         Remove the dependency of the strftime module on the tzset module.
68614         * modules/strftime (Depends-on): Remove dependency on tzset.
68615
68616 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         Remove the dependency of the strftime module on the tzset module.
68619         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68620         gl_FUNC_TZSET_CLOBBER.
68621
68622 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         Remove the dependency of the strftime module on the tzset module.
68625         * lib/strftime.c (my_strftime)
68626         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68627         Copy the input structure, to work around some of the bug with
68628         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68629         Solaris releases, you should also use the tzset module, but we won't
68630         require it as a dependency any more since we don't want LGPLed code
68631         to depend on GPLed code.
68632
68633 2005-07-02  Jim Meyering  <jim@meyering.net>
68634
68635         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68636         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68637         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68638         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68639
68640 2005-07-02  Jim Meyering  <jim@meyering.net>
68641
68642         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68643
68644 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68647         declares only 'struct timespec;' (!).
68648
68649 2005-07-01  Jim Meyering  <jim@meyering.net>
68650
68651         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68652         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68653         * lib/save-cwd.c, tempname.c:
68654         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68655         and don't include <sys/file.h>).
68656
68657 2005-06-29  Jim Meyering  <jim@meyering.net>
68658
68659         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68660         type name.  Use the variable name instead.
68661         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68662         Likewise.
68663
68664 2005-06-28  Simon Josefsson  <jas@extundo.com>
68665
68666         * modules/check-version (Files): Add check-version.m4.
68667
68668 2005-06-28  Simon Josefsson  <jas@extundo.com>
68669
68670         * m4/check-version.m4: New file, suggested by Jim Meyering
68671         <jim@meyering.net>.
68672
68673 2005-06-28  Simon Josefsson  <jas@extundo.com>
68674
68675         * lib/check-version.h, lib/check-version.c: New files.
68676
68677 2005-06-28  Simon Josefsson  <jas@extundo.com>
68678
68679         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68680         collision with global variable.  Better indentation.  Don't
68681         increment buffer pointer beyond buffer end.  Based on comments
68682         from Paul Eggert <eggert@cs.ucla.edu>.
68683
68684         * lib/base64.h: Indent.
68685
68686 2005-06-28  Simon Josefsson  <jas@extundo.com>
68687
68688         * doc/gnulib.texi (Library version handling): New section.
68689
68690 2005-06-28  Jim Meyering  <jim@meyering.net>
68691
68692         * check-module (find_included_lib_files): Hard-code another
68693         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68694         but modules/fts-lgpl (correctly) does not list those files.
68695
68696         * modules/canonicalize (Files): Add lib/pathmax.h.
68697
68698 2005-06-25  Simon Josefsson  <jas@extundo.com>
68699
68700         * modules/check-version: New file.
68701
68702 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68705         initializer of struct addrinfo, as an indication that we don't
68706         care how many members the structure has.
68707
68708 2005-06-24  Derek Price  <derek@ximbiot.com>
68709         and Bruno Haible  <bruno@clisp.org>
68710
68711         Remove stat module & update lstat.
68712         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68713         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68714         * m4/stat.m4: Remove this file.
68715
68716 2005-06-24  Derek Price  <derek@ximbiot.com>
68717         and Bruno Haible  <bruno@clisp.org>
68718
68719         Remove stat module & update lstat.
68720         * lib/stat.c: Remove this file...
68721         (slash_aware_lstat): ...moving this content and its support...
68722         * lib/lstat.c (rpl_lstat): ...into here.
68723         * lib/lstat.h: New file.
68724
68725 2005-06-24  Derek Price  <derek@ximbiot.com>
68726         and Bruno Haible  <bruno@clisp.org>
68727
68728         Remove stat module & update lstat.
68729         * config/srclist.txt (libc sources): Remove stat.
68730
68731 2005-06-24  Derek Price  <derek@ximbiot.com>
68732         and Bruno Haible  <bruno@clisp.org>
68733
68734         Remove stat module & update lstat.
68735         * MODULES.html.sh (stat): Remove.
68736         * MODULES.html: Regenerated.
68737         * modules/lstat (Description): Correct function name.
68738         (Files): Add "lstat.h".
68739         (Depends-on): Remove stat, add xalloc, stat-macros.
68740         * modules/stat: Remove this file.
68741         (Include): Add "lstat.h", remove <sys/stat.h>.
68742
68743 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68746         (ranged_convert): Don't save conversion in a temporary struct.
68747         This causes a warning with GCC 4.0.0, and anyway in the typical
68748         case it's not worth the extra 100 bytes or so of code.
68749         (ranged_convert, __mktime_internal): When calling a function via a
68750         pointer P, use P () rather than (*P) (), as we now assume C89 or
68751         better.
68752
68753 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68756         "who -r" failed to give output.  Problem reported by Tim Waugh.
68757
68758         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68759         (xcalloc): Use it to avoid needless tests.
68760         Problem reported by Jim Meyering.
68761
68762 2005-06-20  Derek Price  <derek@ximbiot.com>
68763
68764         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68765         unnecessary for Autoconfs > 2.59c.
68766
68767 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68768
68769         * lib/argp.h (__option_is_short): Check upper limit of
68770         __key. Isprint() requires its argument to have the value
68771         of an unsigned char or EOF.
68772
68773 2005-06-16  Jim Meyering  <jim@meyering.net>
68774
68775         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68776         when either N or S is zero.
68777
68778 2005-06-16  Derek Price  <derek@ximbiot.com>
68779
68780         * m4/bison.m4: Declare YACC & YFLAGS precious.
68781
68782 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68785         multibyte string or pattern, fall back on unibyte matching.
68786         Problem reported by James Youngman.
68787
68788 2005-06-08  Bruno Haible  <bruno@clisp.org>
68789
68790         * modules/csharpcomp: New file.
68791         * MODULES.html.sh (C#): Add csharpcomp.
68792
68793 2005-06-08  Bruno Haible  <bruno@clisp.org>
68794
68795         * m4/csharpcomp.m4: New file, from GNU gettext.
68796
68797 2005-06-08  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/csharpcomp.h: New file, from GNU gettext.
68800         * lib/csharpcomp.c: New file, from GNU gettext.
68801         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68802
68803 2005-06-08  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68806         warning on mingw.
68807
68808 2005-06-07  Derek Price  <derek@ximbiot.com>
68809
68810         Sync from CVS.
68811         * lib/glob_.h: Indent nested #ifdef.
68812
68813 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         Sync from coreutils.
68816         Use "file name" when talking about file names, instead of "filename"
68817         or "path", as per the GNU coding standards.
68818         * lib/mkdir-p.c: Renamed from makepath.c.
68819         (make_dir_parents): Renamed from make_path.  All callers changed.
68820         * lib/mkdir-p.h: Likewise.  All includers changed.
68821         * lib/filenamecat.c: Renamed from path-concat.c.
68822         (file_name_concat): Renamed from path_concat.  All callers changed.
68823         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68824         * lib/filenamecat.h: Likewise.  All includers changed.
68825         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68826         in comments or local variable names.
68827         * lib/basename.c: Likewise.
68828         * lib/canonicalize.c, canonicalize.h: Likewise.
68829         * lib/dirname.c, dirname.h: Likewise.
68830         * lib/euidaccess.c: Likewise.
68831         * lib/exclude.c: Likewise
68832         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68833         * lib/fsusage.c, fsuage.h: Likewise.
68834         * lib/fts.c, fts_.h: Likewise.
68835         * lib/getcwd.c: Likewise.
68836         * lib/getloadavg.c: Likewise.
68837         * lib/mkstemp.c: Likewise.
68838         * lib/mountlist.c, mountlist.h: Likewise.
68839         * lib/openat.c, openat.h: Likewise.
68840         * lib/readlink-stub.c: Likewise.
68841         * lib/readutmp.c, readutmp.h: Likewise.
68842         * lib/rename.c: Likewise.
68843         * lib/rmdir.c: Likewise.
68844         * lib/same.c: Likewise.
68845         * lib/savedir.c: Likewise.
68846         * lib/stripslash.c: Likewise.
68847         * lib/tempname.c: Likewise.
68848         * lib/xreadlink.c: Likewise.
68849         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68850         All uses changed.
68851         * lib/exclude.h: Likewise.
68852
68853         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68854         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68855         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68856         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68857         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68858         files have been getting away with it for years (MORE/BSD 4.3
68859         is extinct now).
68860         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68861         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68862
68863         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68864         Define to 256, not 255, as per modern POSIX.
68865
68866 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         Sync from coreutils.
68869         Use "file name" when talking about file names, instead of "filename"
68870         or "path", as per the GNU coding standards.
68871         * MODULES.html.sh: mkdir-p renamed from makepath.
68872         filenamecat renamed from path-concat.
68873         * modules/filenamecat: Renamed from modules/path-concat.
68874         (Files): filenamecat.h and filenamecat.c renamed from
68875         path-concat.h and path-concat.c.
68876         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68877         (Include): filenamecat.h, not path-concat.h.
68878         * modules/mkdir-p: Renamed from modules/makepath.
68879         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68880         makepath.c.
68881         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68882         (Include): mkdir-p.h, not makepath.h.
68883
68884 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         Sync from coreutils.
68887         * m4/mkdir-p.m4: Renamed from makepath.m4.
68888         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68889         Rename files from makepath.c to mkdir-p.c, and from
68890         makepath.h to mkdir-p.h.
68891         * m4/filenamecat.m4: Renamed from path-concat.m4.
68892         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68893         Rename files from path-concat.c to filenamecat.c,
68894         and from path-concat.h to filenamecat.h.
68895         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68896         "file name" in local variables or comments.
68897         * m4/rename.m4: Likewise.
68898
68899 2005-06-01  Bruno Haible  <bruno@clisp.org>
68900
68901         * modules/csharpexec: New file.
68902         * MODULES.html.sh (C#): New section.
68903
68904 2005-06-01  Bruno Haible  <bruno@clisp.org>
68905
68906         * m4/csharp.m4: New file, from GNU gettext.
68907         * m4/csharpexec.m4: New file, from GNU gettext.
68908
68909 2005-06-01  Bruno Haible  <bruno@clisp.org>
68910
68911         * lib/csharpexec.h: New file, from GNU gettext.
68912         * lib/csharpexec.c: New file, from GNU gettext.
68913         * lib/csharpexec.sh.in: New file, from GNU gettext.
68914
68915 2005-05-31  Derek Price  <derek@ximbiot.com>
68916             Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         Sync from cvs.
68919         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68920
68921 2005-05-31  Derek Price  <derek@ximbiot.com>
68922             Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         Sync from cvs.
68925         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68926
68927 2005-05-29  Derek Price  <derek@ximbiot.com>
68928
68929         * config/srclist.txt (glob_.h, glob.c): Add these files.
68930
68931 2005-05-29  Derek Price  <derek@ximbiot.com>
68932
68933         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68934         * modules/glob: New file.
68935         * modules/getlogin_r: Add link to POSIX spec in description.
68936
68937 2005-05-29  Derek Price  <derek@ximbiot.com>
68938             Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         * m4/glob.m4: New file.
68941
68942 2005-05-29  Derek Price  <derek@ximbiot.com>
68943             Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         * lib/glob_.h, lib/glob.c: New files.
68946
68947 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68950         * modules/fts-lgpl (Depends-on): Remove gettext.
68951
68952 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68955         and don't require gt_INTTYPES_PRI.
68956
68957 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68960
68961         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68962         the configuration hassle isn't worth it.
68963         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68964         (LONGEST_MODIFIER, PRIuMAX): Remove.
68965
68966 2005-05-27  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68969
68970 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68973         _POSIX_PTHREAD_SEMANTICS for Solaris.
68974
68975 2005-05-25  Derek Price  <derek@ximbiot.com>
68976
68977         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68978
68979 2005-05-25  Derek Price  <derek@ximbiot.com>
68980             Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68983         * lib/getlogin_r.c, getlogin_r.h: New files.
68984
68985 2005-05-25  Bruno Haible  <bruno@clisp.org>
68986             Derek Price  <derek@ximbiot.com>
68987
68988         * lib/getlogin_r.h: Simplify API documentation.
68989
68990 2005-05-23  Derek Price  <derek@ximbiot.com>
68991
68992         * modules/minmax (Files): Add m4/minmax.m4.
68993         (configure.ac): Add gl_MINMAX.
68994
68995 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68998         so that unistd-safer.h (GPL'ed code) need not be included.
68999
69000 2005-05-22  Bruno Haible  <bruno@clisp.org>
69001
69002         * m4/minmax.m4: New file.
69003         Based on a patch by Derek Price <derek@ximbiot.com>.
69004
69005 2005-05-22  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69008         (INT64_MIN): Fix definition.
69009         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69010
69011         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69012         NEED_SIGNED_INT_TYPES.
69013
69014         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69015         HAVE_SYSTEM_INTTYPES.
69016
69017 2005-05-22  Bruno Haible  <bruno@clisp.org>
69018
69019         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69020         Also include <sys/param.h> if it defines MIN, MAX.
69021         Based on a patch by Derek Price <derek@ximbiot.com>.
69022
69023 2005-05-21  Jim Meyering  <jim@meyering.net>
69024
69025         * modules/fts (Files): Add m4/inttypes-pri.m4.
69026         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69027
69028 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         New fts module.
69031         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69032         (setup_dir, free_dir): New functions.
69033         (enter_dir, leave_dir): Define trivial
69034         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69035         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69036         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69037         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69038         Move to fts-cycle.c.
69039         (fts_open): Use setup_dir.
69040         (fts_close): Use free_dir.
69041         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69042         This adds a label and some gotos, but the alternatives were messier.
69043         Check for memory allocation failure when entering a dir.
69044         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69045         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69046         (FTS): New member fts_cycle, that is a union that contains the
69047         old active_dir_ht and cycle_state.  All uses changed to mention
69048         fts_cycle.ht and fts_cycle.state.
69049         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69050         fts.c, with the following changes:
69051         (setup_dir, free_dir): New functions.
69052         (enter_dir): Now returns bool.  Return true if successful, false
69053         if memory exhausted.  All callers changed.
69054         Do not bother partly cleaning up on
69055         memory allocation failure; that is free_dir's job.
69056         However, free ad if hash_insert fails, to avoid memory leak.
69057         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69058         fts->fts_options to see which union member to use.
69059
69060 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69063         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69064
69065 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69068
69069 2005-05-20  Jim Meyering  <jim@meyering.net>
69070
69071         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69072         Now a macro, to pacify GCC.
69073
69074 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69075
69076         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69077         of -1.
69078
69079 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69080
69081         * lib/chown.c (rpl_chown): Return -1 on failure.
69082
69083 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69086         Don't check for stddef.h.
69087         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69088         don't use its results.
69089         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69090         since we include them unconditionally.  Don't require
69091         AM_STDBOOL_H, since stdbool is a prerequisite.
69092         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69093         since we assume C89 or better.
69094         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69095         as we don't use their results.
69096         Don't check for fchdir, memmove, memset, strrchr, as we use
69097         them unconditionally.
69098         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69099         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69100
69101 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69104         Include <stddef.h> unconditionally, since we assume C89 now.
69105         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69106         * lib/fts.c: Include fts_.h first, to check interface.
69107         Do not include intprops.h; no longer needed.
69108         Include cycle-check.h and hash.h, since fts_.h no longer does.
69109         Remove unnecessary casts of closedir to void.
69110         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69111         decide whether to decrement nlinks.
69112         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69113         (FTS): Use struct hash_table * instead of Hash_table, so that
69114         we no longer need to include hash.h here.
69115
69116 2005-05-18  Jim Meyering  <jim@meyering.net>
69117
69118         * modules/dirfd (License): Change to LGPL.  Most of the code
69119         is already in the public domain.
69120
69121 2005-05-18  Jim Meyering  <jim@meyering.net>
69122
69123         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69124         Reported by Yoann Vandoorselaere.
69125
69126 2005-05-17  Jim Meyering  <jim@meyering.net>
69127
69128         * m4/fts.m4: New file, from coreutils.
69129
69130 2005-05-17  Jim Meyering  <jim@meyering.net>
69131
69132         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69133
69134 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         Sync from coreutils.
69137         * m4/unlinkdir.m4: New file.
69138
69139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         Sync from coreutils.
69142         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69143         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69144         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69145         White space changes only.
69146         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69147         special.
69148         * lib/yesno.c: Include getline.h, not ctype.h.
69149         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69150         Use getline to remove arbitrary restriction on response length.
69151
69152 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         * config/srclist-update: Spell out "Street" in FSF postal
69155         mail address; this is the style the FSF seems to prefer.
69156
69157         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69158         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69159         this updates FSF postal mail address.
69160
69161         Sync from coreutils.
69162         * modules/unlinkdir: New file.
69163         * modules/yesno (Depends-on): Add getline.
69164         * MODULES.html.sh (File system functions): Add unlinkdir.
69165
69166 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69169         lib/strsep.h:
69170         Change the initial comment to refer to GPL, not LGPL.
69171         gnulib-tool will change it to LGPL as needed.
69172
69173         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69174         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69175         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69176         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69177         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69178         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69179         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69180         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69181         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69182         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69183         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69184         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69185         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69186         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69187         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69188         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69189         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69190         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69191         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69192         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69193         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69194         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69195         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69196         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69197         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69198         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69199         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69200         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69201         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69202         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69203         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69204         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69205         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69206         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69207         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69208         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69209         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69210         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69211         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69212         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69213         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69214         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69215         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69216         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69217         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69218         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69219         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69220         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69221         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69222         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69223         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69224         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69225         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69226         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69227         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69228         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69229         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69230         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69231         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69232         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69233         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69234         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69235         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69236         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69237         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69238         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69239         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69240         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69241         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69242         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69243         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69244         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69245         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69246         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69247         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69248         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69249         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69250         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69251         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69252         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69253         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69254         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69255         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69256         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69257         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69258         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69259         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69260         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69261         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69262         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69263         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69264         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69265         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69266         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69267         lib/yesno.c, lib/yesno.h:
69268         Update FSF postal mail address.
69269
69270 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69273         tests/test-memmem.c, tests/test-stpncpy.c:
69274         Update FSF postal mail address.
69275
69276 2005-05-13  Bruno Haible  <bruno@clisp.org>
69277
69278         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69279         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69280         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69281         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69282         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69283         Add support for 64-bit integers in the MSVC compiler.
69284
69285 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69286
69287         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69288
69289 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69290
69291         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69292
69293 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * doc/getdate.texi (General date syntax): Don't say that date
69296         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69297         Problem reported by Nic Ferrier.
69298
69299 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69300
69301         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69302         specified in ai_socktype. Fix invalid ai_protocol
69303         check. ai_protocol is usually set to 0 or depending on
69304         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69305         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69306         ai_socktype / ai_protocol in the returned addrinfo structure.
69307
69308 2005-05-10  Simon Josefsson  <jas@extundo.com>
69309
69310         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69311         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69312
69313 2005-05-10  Karl Berry  <karl@gnu.org>
69314
69315         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69316         (from http://www.gnu.org/licenses).
69317         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69318         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69319         fdl.texi suffices.
69320
69321 2005-05-10  Karl Berry  <karl@gnu.org>
69322
69323         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69324         (COPYING.DOC): remove.
69325
69326         * config/srclist-update: new FSF address.
69327
69328 2005-05-10  Derek Price  <derek@ximbiot.com>
69329
69330         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69331         possible.
69332
69333 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69334             Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/inet_ntop: New file.
69337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69338         inet_ntop.
69339
69340 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69341             Bruno Haible  <bruno@clisp.org>
69342
69343         * m4/inet_ntop.m4: New file.
69344
69345 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69346             Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/inet_ntop.h: New file.
69349         * lib/inet_ntop.c: New file, from glibc with modifications.
69350
69351 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * modules/time_r (License): Change to LGPL.
69354         * modules/extensions (License): Change to LGPL.  Actually,
69355         the license is more permissive than that, but currently gnulib-tool
69356         doesn't know how to handle more-permissive licenses.
69357
69358         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69359         Problem reported by Dave Love.
69360
69361 2005-05-08  Jim Meyering  <jim@meyering.net>
69362
69363         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69364         blank.
69365
69366 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         * modules/argmatch (Depends-on): Add stdbool.
69369         * modules/backupfile (Depends-on): Likewise.
69370         * modules/chdir-long (Depends-on): Likewise.
69371         * modules/closeout (Depends-on): Likewise.
69372         * modules/cycle-check (Depends-on): Likewise.
69373         * modules/dirname (Depends-on): Likewise.
69374         * modules/fnmatch (Depends-on): Likewise.
69375         * modules/fsusage (Depends-on): Likewise.
69376         * modules/fwriteerror (Depends-on): Likewise.
69377         * modules/getcwd (Depends-on): Likewise.
69378         * modules/getloadavg (Depends-on): Likewise.
69379         * modules/hard-locale (Depends-on): Likewise.
69380         * modules/makepath (Depends-on): Likewise.
69381         * modules/mountlist (Depends-on): Likewise.
69382         * modules/nanosleep (Depends-on): Likewise.
69383         * modules/posixtm (Depends-on): Likewise.
69384         * modules/quotearg (Depends-on): Likewise.
69385         * modules/readtokens (Depends-on): Likewise.
69386         * modules/readtokens0 (Depends-on): Likewise.
69387         * modules/readutmp (Depends-on): Likewise.
69388         * modules/save-cwd (Depends-on): Likewise.
69389         * modules/strftime (Depends-on): Likewise.
69390         * modules/userspec (Depends-on): Likewise.
69391         * modules/utimecmp (Depends-on): Likewise.
69392         * modules/xgetcwd (Depends-on): Likewise.
69393         * modules/xnanosleep (Depends-on): Likewise.
69394         * modules/xstrtod (Depends-on): Likewise.
69395         * modules/yesno (Depends-on): Likewise.
69396
69397 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69400         needless checks.
69401
69402 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         Merge from coreutils.  Among other things,
69405         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69406         * lib/fd-safer.c: New file.
69407         * lib/fcntl-safer.h, open-safer.c: Remove.
69408         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69409         * lib/dup-safer.c: Include unistd-safer.h first.
69410         Don't include errno.h.
69411         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69412         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69413         * lib/file-type.c: Rely on file-type.h change.
69414         * lib/getloadavg.c: Include unistd-safer.h.
69415         (getloadavg): Use safer open.
69416         * lib/getusershell.c: Include "stdio-safer.h".
69417         (getusershell): Use safer fopen.
69418         * lib/long-options.c (long_options): Use NULL rather than 0.
69419         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69420         'free'.
69421         * lib/modechange.c: Likewise.
69422         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69423         (MODE_DONE): New constant.
69424         (struct mode_change): Remove 'next' member.
69425         (make_node_op_equals): New function; like the old one of the
69426         same name, except it allocates an array.
69427         (mode_compile, mode_create_from_ref): Use it.
69428         (mode_compile): Allocate result as an array, not a linked list.
69429         Parse octal string ourself, so that we catch mistakes like "+0".
69430         (mode_adjust): Arg is an array, not a linked list.
69431         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69432         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69433         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69434         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69435         Remove.  This is now stat-macros.h's job.
69436         (talloc): Remove.  All callers replaced by xalloc, so that
69437         our invokers don't have to worry about reporting memory failures.
69438         (make_node_op_equals): Remove.
69439         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69440         New constants.
69441         (struct mode_change): Moved here from modechange.h.
69442         (mode_append_entry): Remove.
69443         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69444         apps to have incorrect behavior.  Use simpler algorithm for head
69445         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69446         Detect more invalid usages rather than having somewhat-random behavior.
69447         Don't insert an "a=" action, as that leads to incorrect behavior.
69448         (mode_compile, mode_create_from_ref): Return NULL on error instead
69449         of an enum, since now there's only one way to have an error.  All
69450         callers changed.
69451         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69452         at the correct time.  Simplify calculation of "+u" and its ilk.
69453         Don't mishandle "+X".
69454         (mode_free): Remove "register" and localize decls.
69455         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69456         (struct mode_change): Move to modechange.c; callers don't
69457         need to see this stuff.
69458         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69459         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69460         (mode_change, mode_adjust): Reflect the new signatures noted above.
69461         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69462         that might redefine system include files.
69463         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69464         (my_usleep): Use NULL rather than (void *) 0.
69465         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69466         Use siginterrupt to specify that system calls should be interrupted.
69467         (rpl_nanosleep): Move initialization of suspended closer to call of
69468         my_usleep.
69469         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69470         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69471         (desirable_utmp_entry): New function.
69472         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69473         using x2nrealloc, to simplify logic.
69474         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69475         size calculation.  Do not assume utmp file is a regular file.
69476         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69477         (READ_UTMP_CHECK_PIDS): New constant.
69478         * lib/save-cwd.c: Include unistd-safer.h.
69479         (save_cwd): Use fd_safer.
69480         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69481         [!_LIBC] Include "stat-macros.h" instead.
69482         * lib/unistd-safer.h (fd_safer): New decl.
69483
69484 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * modules/getloadavg (Depends-on): Add unistd-safer.
69487         * modules/getusershell (Depends-on): Add stdio-safer.
69488         * modules/lstat (Depends-on): Remove xalloc.
69489         * modules/mkstemp (Depends-on): Add stat-macros.
69490         * modules/modechange (Depends-on): Remove xstrtol.
69491         Add stat-macros, xalloc.
69492         * modules/save-cwd (Depends-on): Add unistd-safer.
69493         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69494         * modules/unistd-safer (Files): Add lib/fd-safer.c
69495         (Makefile.am): Remove lib_SOURCES.
69496
69497         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69498         Remove fcntl-safer; unistd-safer supersedes it.
69499
69500 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69503         AC_HEADER_STAT.
69504         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69505         (gl_PREREQ_CHOWN): Remove.
69506         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69507         it.  Don't require AC_HEADER_STAT.
69508         (gl_PREREQ_LSTAT): Remove.
69509         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69510         Don't require AC_HEADER_STAT.
69511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69512         (gl_PREREQ_RMDIR): Remove.
69513         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69514         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69515         the stat-macros module a prerequisite.
69516         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69517         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69518         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69519         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69520         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69521         variable names.
69522         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69523         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69524         variable prefixes.
69525         * m4/fcntl-safer.m4: Remove.
69526         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69527         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69528         Invoke gl_PREREQ_FD_SAFER.
69529         (gl_PREREQ_FD_SAFER): New macro.
69530         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69531         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69532         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69533         Remove duplicate call to AC_LIBOBJ(readutmp).
69534         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69535
69536         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69537         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69538
69539 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * MODULES.html.sh (Misc): Add byteswap.
69542
69543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69544
69545         * modules/getcwd (Depends-on): Add extensions.
69546         * modules/openat (Depends-on): Likewise.
69547
69548 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69549
69550         * modules/byteswap: New file.
69551
69552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69553
69554         * m4/byteswap.m4: New file.
69555
69556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69557
69558         * lib/byteswap_.h: New file.
69559
69560 2005-04-25  Karl Berry  <karl@gnu.org>
69561
69562         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69563
69564 2005-04-25  Albert Chin  <china@thewrittenword.com>
69565
69566         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69567         Toolkit C bug.
69568
69569 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69570
69571         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69572         (func_ln_if_changed): Remove forcibly for no error message
69573         in case file does not exist.
69574
69575 2005-04-19  Simon Josefsson  <jas@extundo.com>
69576
69577         * gnulib-tool (Options): Make --symlink mean --symbolic.
69578
69579 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69580
69581         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69582
69583 2005-04-16  Simon Josefsson  <jas@extundo.com>
69584
69585         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69586
69587 2005-04-15  Simon Josefsson  <jas@extundo.com>
69588
69589         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69590
69591 2005-04-15  Simon Josefsson  <jas@extundo.com>
69592
69593         * gnulib-tool: Rename --symlink to --symbolic.
69594
69595 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69596
69597         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69598         symbolic links to files instead of copying/moving.  Add --aux-dir,
69599         specifying directory relative --dir where auxiliary build tools
69600         are placed.
69601
69602 2005-04-14  Bruno Haible  <bruno@clisp.org>
69603
69604         * modules/allocsa (License): Change to LGPL.
69605         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69606
69607 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69610         that "UTC +1 second" continues to work.  Problem reported
69611         by Dmitry V. Levin.
69612         (relunit_snumber): New rule.
69613         (relunit): Use it.
69614
69615 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * lib/getdate.y (universal_time_zone_table): New constant.
69618         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69619         universal_time_zone_table.
69620         (lookup_zone): Prefer universal_time_zone_table to
69621         local_time_zone_table, so that "GMT" time stamps are allowed in
69622         London during the summer.  Problem reported by Ian Abbott.
69623
69624 2005-04-12  Jim Meyering  <jim@meyering.net>
69625
69626         * lib/human.c (humblock): Set *options even when returning due to
69627         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69628         warning from gcc-4.
69629
69630 2005-04-09  Jim Meyering  <jim@meyering.net>
69631
69632         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69633         -Wuninitialized: initialize tm0.tm_year.
69634
69635 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69638         count, since there's no maximum.  All uses changed.
69639         Add member dsts_seen.
69640         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69641         not being INT_MAX.
69642         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69643         Use pc_rels_seen to decide whther a date is absolute.
69644
69645         * lib/getdate.y (number): Don't overwrite year.
69646         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69647         check.
69648
69649 2005-04-02  Simon Josefsson  <jas@extundo.com>
69650
69651         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69652         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69653
69654 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69655
69656         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69657         where no absolute path name can be longer than PATH_MAX.
69658
69659 2005-03-27  Jim Meyering  <jim@meyering.net>
69660
69661         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69662
69663 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69666         "one's complement" -> "ones' complement" in comment, as per Knuth.
69667         "value of type" -> "type or expression" in comment.
69668         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69669
69670 2005-03-26  Jim Meyering  <jim@meyering.net>
69671
69672         Comment nits.
69673         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69674         Correct typos: s/or/of/.
69675
69676 2005-03-26  Jim Meyering  <jim@meyering.net>
69677
69678         * modules/check-include-files: Move to ../ and rename to...
69679         * check-module: ...this.
69680
69681 2005-03-25  Jim Meyering  <jim@meyering.net>
69682
69683         * modules/xvasprintf (Files): Add xalloc.h.
69684
69685 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * modules/gettext (Files): config/config.rpath ->
69688         build-aux/config.rpath
69689         * modules/iconv (Files): Likewise.
69690         Problem reported by Oskar Liljeblad.
69691
69692 2005-03-23  Jim Meyering  <jim@meyering.net>
69693
69694         * modules/check-include-files: New script to check for
69695         missing dependencies, multiple includes, etc.
69696
69697         * modules/c-strtold (Depends-on): Add xalloc.
69698         * modules/c-strtod (Depends-on): Add xalloc.
69699         * modules/hash (Depends-on): Add xalloc.
69700         (Files): Remove lib/xalloc.h.
69701
69702         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69703         * modules/userspec (Files): Add lib/inttostr.h.
69704
69705 2005-03-23  Jim Meyering  <jim@meyering.net>
69706
69707         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69708
69709 2005-03-22  Jim Meyering  <jim@meyering.net>
69710
69711         * modules/stat-macros: New module.
69712         * modules/canonicalize, modules/euidaccess, modules/file-type,
69713         * modules/filemode, modules/lchown, modules/makepath,
69714         * modules/rmdir, modules/stat: Depend on new stat-macros module
69715         rather than listing lib/stat-macros.h manually.
69716         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69717
69718 2005-03-22  Jim Meyering  <jim@meyering.net>
69719
69720         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69721
69722 2005-03-22  Bruno Haible  <bruno@clisp.org>
69723
69724         * config/srclist.txt: Replace target directory 'config' with
69725         'build-aux'.
69726         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69727         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69728         ../build-aux/.
69729
69730 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * modules/chdir-long (Depends-on): Add mempcpy.
69733
69734         * modules/acl, modules/backupfile, modules/c-strtod,
69735         modules/c-strtold, modules/canon-host, modules/canonicalize,
69736         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69737         modules/exclude, modules/exitfail, modules/file-type,
69738         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69739         modules/getdate, modules/getline, modules/getpagesize,
69740         modules/getpass, modules/getugroups, modules/group-member,
69741         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69742         modules/inttostr, modules/long-options, modules/makepath,
69743         modules/md5, modules/memcasecmp, modules/memcoll,
69744         modules/modechange, modules/mountlist, modules/path-concat,
69745         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69746         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69747         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69748         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69749         modules/strftime, modules/strndup, modules/strverscmp,
69750         modules/timespec, modules/unlocked-io, modules/userspec,
69751         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69752         modules/yesno:
69753         Remove lib_SOURCES line from Makefile.am section, as this is now
69754         done automatically by the corresponding Autoconf macro.
69755
69756 2005-03-21  Jim Meyering  <jim@meyering.net>
69757
69758         Changes imported from coreutils.
69759
69760         * lib/cycle-check.c: Don't include xalloc.h.
69761
69762         * lib/path-concat.c: Don't include assert.h.
69763         (path_concat): Remove assertion that would have triggered
69764         for ABASE starting with more than one slash.
69765         Reported by Andreas Schwab.
69766
69767         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69768         properly when ABASE is an absolute file name.
69769         Correct the description of this function.
69770         Include <assert.h>.
69771         Add an assertion and a test driver.
69772         This fixes a bug introduced on 2004-07-02.
69773         Andreas Schwab reported the resulting failure of cp --parents:
69774         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69775
69776 2005-03-21  Jim Meyering  <jim@meyering.net>
69777
69778         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69780
69781 2005-03-21  Jim Meyering  <jim@meyering.net>
69782         and  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69785         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69786         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69787         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69788         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69789         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69790         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69791         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69792         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69793         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69794         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69795         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69796         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69797         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69798         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69799         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69800         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69801         for these modules.
69802
69803 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69806         (which shouldn't happen), generate nothing instead of returning 0
69807         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69808
69809 2005-03-16  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69812         HAVE_LONGLONG_64BIT.
69813
69814 2005-03-16  Bruno Haible  <bruno@clisp.org>
69815
69816         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69817         HAVE_LONGLONG_64BIT.
69818
69819 2005-03-16  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69822         HAVE_LONGLONG_64BIT.
69823
69824 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69827         reliably distinguish strftime failure from empty output on POSIX
69828         hosts.
69829
69830 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69833         (iconv_string): Don't guess a size-zero buffer, as that might cause
69834         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69835         result would be 'too large', where 'too large' is (heuristically)
69836         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69837         overflow concerns.  This will prevent some unwanted malloc failures
69838         when the inputs are very large.
69839
69840 2005-03-15  Karl Berry  <karl@gnu.org>
69841
69842         * config/srclist.txt (config.rpath): from gettext.
69843         * config/config.rpath: update.
69844
69845 2005-03-15  Bruno Haible  <bruno@clisp.org>
69846
69847         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69848         to 'negate'.
69849
69850         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69851         variable.
69852
69853         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69854         results.
69855
69856 2005-03-14  Simon Josefsson  <jas@extundo.com>
69857
69858         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69859         <fx@gnu.org>.
69860
69861 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69864         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69865         intprops.h.
69866         * lib/strtol.c: Likewise.
69867
69868 2005-03-14  Jim Meyering  <jim@meyering.net>
69869
69870         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69871         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69872         to be nonzero so that we (and caller) can detect the difference
69873         between a valid zero-length expansion and an error return, even
69874         when the underlying strftime fails before writing anything into
69875         that location.
69876
69877 2005-03-14  Bruno Haible  <bruno@clisp.org>
69878
69879         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69880         Update from GNU gettext 0.14.3.
69881
69882 2005-03-10  Jim Meyering  <jim@meyering.net>
69883
69884         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69885
69886 2005-03-10  Jim Meyering  <jim@meyering.net>
69887
69888         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69889         so that this module works on systems without fchdir.
69890
69891 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         Factor int-properties macros into a single file, except for
69894         glibc-related files.
69895         * lib/intprops.h: New file.
69896         * lib/getloadavg.c: Include it instead of limits.h.
69897         (INT_STRLEN_BOUND): Remove.
69898         * lib/human.c: Include intprops.h.
69899         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69900         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69901         302/1000.
69902         * lib/inttostr.h: Include intprops.h instead of limits.h.
69903         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69904         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69905         for consistency with intprops.h.
69906         (time_t_is_integer, twos_complement_arithmetic): Use them.
69907         * lib/sig2str.h: Include <signal.h>, intprops.h.
69908         (INT_STRLEN_BOUND): Remove.
69909         * lib/strftime.c (TYPE_SIGNED): Remove.
69910         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69911         * lib/strtol.c: Adjust comments to match intprops.h.
69912         * lib/userspec.c: Include intprops.h.
69913         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69914         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69915         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69916         instead of rolling our own expressions.
69917         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69918
69919         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69920         instead of int.
69921         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69922         the right thing even if adding 1900 would overflow.  Similarly
69923         for tm_mon + 1 and tm_yday + 1.
69924         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69925         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69926         (DO_SIGNED_NUMBER): New macro.
69927         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69928
69929 2005-03-07  Bruno Haible  <bruno@clisp.org>
69930
69931         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69932
69933 2005-03-07  Bruno Haible  <bruno@clisp.org>
69934
69935         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69936
69937 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69938
69939         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69940         (func_import): Only replace files via --import when they have actually
69941         changed.
69942
69943 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69944
69945         * m4/mmap-anon.m4: New file.
69946         * m4/pagealign_alloc.m4: New file.
69947
69948 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69949             Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/pagealign_alloc: New file.
69952         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69953
69954 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69955             Bruno Haible  <bruno@clisp.org>
69956
69957         * lib/pagealign_alloc.h: New file.
69958         * lib/pagealign_alloc.c: New file.
69959
69960 2005-03-03  Bruno Haible  <bruno@clisp.org>
69961
69962         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69963         Use an all-permissive copyright notice, recommended by RMS.
69964
69965 2005-03-02  Bruno Haible  <bruno@clisp.org>
69966
69967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69968         of AIX, the replacement has to be done only after <string.h> is
69969         included, therefore not in config.h. stpncpy.h does the replacement,
69970         and stpncpy.c uses it.
69971
69972 2005-03-02  Bruno Haible  <bruno@clisp.org>
69973
69974         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69975         stpncpy.c uses it.
69976
69977 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69980         The workaround isn't strictly needed for POSIX conformance, and
69981         it's too much of a pain to configure and maintain.  We'll ask
69982         people to fix their kernels instead.
69983         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69984         (NANOSLEEP_BUG_WORKAROUND): Remove.
69985         (xnanosleep): Remove the workaround.
69986
69987 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69990         Reported by Derek Price.
69991         (Include): Add "timespec.h".
69992
69993         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69994
69995 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69998         to detect nanosleep bug.
69999
70000 2005-03-01  Bruno Haible  <bruno@clisp.org>
70001
70002         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70003
70004 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * modules/gethrxtime: New file.
70007         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70008         (Depends-on): Add gethrxtime.
70009         (configure.ac): Add gl_XNANOSLEEP.
70010         (Makefile.am): Remove lib_SOURCES line.
70011
70012 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70015         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70016
70017 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70018
70019         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70020         * lib/timespec.h (gettime): Return void, since it always
70021         succeeds now.  All uses changed.
70022         * lib/gettime.c (gettime): Likewise.
70023         [HAVE_NANOTIME]: Prefer nanotime.
70024         Assume gettimeofday succeeds, as POSIX requires.
70025         Assime time () succeeds, since other code already does.
70026         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70027         (timespec_subtract): Remove.
70028         (NANOSLEEP_BUG_WORKAROUND): New constant.
70029         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70030         things considerably.  Use it only on GNU/Linux hosts, since the
70031         workaround shouldn't be needed elsewhere.
70032
70033 2005-02-24  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/gettext (Files): Add m4/glibc2.m4.
70036
70037 2005-02-24  Bruno Haible  <bruno@clisp.org>
70038
70039         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70040         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70041         * m4/progtest.m4:
70042         Update from GNU gettext 0.14.2.
70043         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70044
70045 2005-02-24  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70048         * lib/config.charset: Update from GNU gettext 0.14.2.
70049
70050 2005-02-24  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/gettext.h: Update from GNU gettext 0.14.2.
70053
70054 2005-02-23  Simon Josefsson  <jas@extundo.com>
70055
70056         * m4/iconvme.m4: New file.
70057
70058 2005-02-23  Jim Meyering  <jim@meyering.net>
70059
70060         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70061         change.
70062         Thanks to Bruno Haible for catching it.
70063
70064 2005-02-22  Simon Josefsson  <jas@extundo.com>
70065
70066         * modules/iconvme: New file.
70067
70068         * MODULES.html.sh: Add iconvme.
70069
70070 2005-02-22  Simon Josefsson  <jas@extundo.com>
70071
70072         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70073
70074 2005-02-22  Simon Josefsson  <jas@extundo.com>
70075
70076         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70077
70078 2005-02-22  Jim Meyering  <jim@meyering.net>
70079
70080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70081         s/ifndef/ifdef/.
70082
70083 2005-02-20  Neil Conway  <neilc@samurai.com>
70084
70085         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70086         returned by OSX/Darwin if the specified buffer is not large
70087         enough for the hostname.
70088
70089 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70090
70091         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70092         pass it to _help, otherwise the latter coredumps trying to
70093         dereference state.root_argp.
70094
70095 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * modules/chdir-long (Depends-on): Add memrchr.
70098         * modules/memrchr (Files): Add lib/memrchr.h.
70099         (Include): "memrchr.h".
70100
70101 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70104
70105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * lib/memrchr.h: New file.
70108         * lib/chdir-long.c: Include it.
70109         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70110         Don't bother including stddef.h.
70111
70112 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70115         inclusion.
70116         Include <sys/types.h>, for dev_t.
70117         (ME_DUMMY, ME_REMOTE): Move from here....
70118         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70119         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70120         Dmitry V. Levin.
70121         Include mountlist.h first, to test the interface.
70122
70123 2005-01-29  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/progname.c (program_name): Initialize.
70126         Needed when linking statically on MacOS X.
70127
70128 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         Sync from coreutils.
70131         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70132         (Depends-on): Add c-strtod.
70133         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70134
70135 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70136
70137         Sync from coreutils.
70138         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70139
70140         Remove files that are specific to coreutils.
70141         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70142
70143 2005-01-28  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/javacomp: New file.
70146         * MODULES.html.sh (Java): Add javacomp.
70147
70148 2005-01-28  Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/javacomp.m4: New file, from GNU gettext.
70151
70152 2005-01-28  Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/javacomp.sh.in: New file, from GNU gettext.
70155         * lib/javacomp.h: New file, from GNU gettext.
70156         * lib/javacomp.c: New file, from GNU gettext.
70157
70158 2005-01-26  Simon Josefsson  <jas@extundo.com>
70159
70160         * lib/gai_strerror.c: Use GPL in header.
70161
70162 2005-01-26  Bruno Haible  <bruno@clisp.org>
70163
70164         * modules/javaexec: New file.
70165         * MODULES.html.sh (Java): Add javaexec.
70166
70167 2005-01-26  Bruno Haible  <bruno@clisp.org>
70168
70169         * m4/javaexec.m4: New file, from GNU gettext.
70170
70171 2005-01-26  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/javaexec.sh.in: New file, from GNU gettext.
70174         * lib/javaexec.h: New file, from GNU gettext.
70175         * lib/javaexec.c: New file, from GNU gettext.
70176
70177 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70178
70179         * modules/lchown (Depends-on): Remove lchown.h
70180
70181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70182
70183         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70184         must be defined if the header file was not found, in order
70185         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70186
70187 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70188
70189         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70190         initializers for struct pentry_state.
70191         (__argp_error): Check return value of __asprintf
70192         (__argp_failure): Translate error message
70193
70194         * lib/argp-parse.c: Removed braces around the expansion of N_()
70195
70196 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70197
70198         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70199         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70200         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70201         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70202         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70203         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70204         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70205         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70206         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70207         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70208         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70209         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70210         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70211         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70212         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70213         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70214         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70215         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70216         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70217         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70218         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70219         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70220         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70221         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70222         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70223         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70224         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70225         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70226         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70227         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70228         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70229         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70230         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70231         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70232         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70233         Use an all-permissive copyright notice, recommended by RMS.
70234
70235 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * modules/chdir-long (Depends-on): Remove mempcpy.
70238
70239 2005-01-21  Jim Meyering  <jim@meyering.net>
70240
70241         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70242         same value as for Solaris 9.
70243
70244         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70245         component length.  This included changing the parameter to be
70246         of type `char *' rather than `char const *'.
70247         * lib/chdir-long.h (chdir_long): Update prototype.
70248
70249         * lib/openat.c (fdopendir, fstatat): New functions.
70250         * lib/openat.h: Include headers required for use of DIR and struct
70251         stat.
70252         [AT_SYMLINK_NOFOLLOW]: Define.
70253         (fdopendir, fstatat): Add prototypes.
70254
70255 2005-01-21  Bruno Haible  <bruno@clisp.org>
70256
70257         * modules/classpath: New file.
70258         * MODULES.html.sh (Java): Add classpath.
70259
70260 2005-01-21  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/classpath.h: New file, from GNU gettext.
70263         * lib/classpath.c: New file, from GNU gettext.
70264
70265 2005-01-20  Simon Josefsson  <jas@extundo.com>
70266
70267         * modules/version-etc-fsf: New file.
70268
70269 2005-01-20  Simon Josefsson  <jas@extundo.com>
70270
70271         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70272         * lib/version-etc.c: Remove version_etc_copyright.
70273         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70274         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70275
70276 2005-01-20  Simon Josefsson  <jas@extundo.com>
70277
70278         * lib/base64.h (isbase64): Add.
70279
70280         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70281         using a unsigned prototype, don't inline.
70282         (base64_decode): Use it.
70283
70284 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70285
70286         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70287         it.
70288
70289 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * lib/save-cwd.c (save_cwd): Remove code to support the case
70292         where fchdir is missing or flaky.
70293
70294 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70297
70298 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70301         AC_LIBSOURCES now does this.
70302         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70303         with new ullong_max module.
70304
70305 2005-01-19  Bruno Haible  <bruno@clisp.org>
70306
70307         * modules/sh-quote: New file.
70308         * MODULES.html.sh (Executing programs): Add sh-quote.
70309
70310 2005-01-19  Bruno Haible  <bruno@clisp.org>
70311
70312         * lib/sh-quote.h: New file, from GNU gettext.
70313         * lib/sh-quote.c: New file, from GNU gettext.
70314
70315 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         Merge from coreutils.
70318         * m4/ullong_max.m4: New file.
70319         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70320         (gl_MACROS): Assume localeconv exists.
70321
70322 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         Merge changes from coreutils, as described below in several
70325         changelogs dated today.
70326
70327         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70328         (O_DIRECTORY): Remove; not needed here, since "." must be
70329         a directory.  All uses removed.
70330         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70331         universal on Suns, and we also need to test for IRIX.
70332         Revamp code to use 'if' rather than '#if'.
70333         Avoid unnecessary comparison of cwd->desc to 0.
70334
70335         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70336         for known valid error numbers rather than observed invalid ones.
70337
70338 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * modules/ullong_max: New file.
70341
70342         * modules/chdir-long, modules/openat: New files.
70343         * modules/save-cwd (Depends-on): Depend on chdir-long.
70344         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70345
70346 2005-01-18  Jim Meyering  <jim@meyering.net>
70347
70348         Merge from coreutils.
70349         * m4/chdir-long.m4, m4/openat.m4: New files.
70350         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70351         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70352         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70353         is sane and DOES follow symlinks.  Besides, testing 20 different
70354         systems found no broken chown implementations.
70355         Prompted by a change in rsync's copy of this macro.
70356         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70357
70358         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70359
70360         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70361         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70362         NULL-means-set-to-current-time semantics.
70363         Remove temporary file immediately, rather than waiting
70364         for configure's at-exit trap code to do it.
70365
70366 2005-01-18  Jim Meyering  <jim@meyering.net>
70367
70368         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70369
70370         * lib/utimens.c (futimens): Account for the fact that futimes
70371         can also fail with errno == ENOSYS or errno == ENOENT.
70372         Patch from Dmitry V. Levin.
70373
70374         Change the name of the robust chdir function from chdir to chdir_long.
70375         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70376         (restore_cwd): Use chdir_long, not chdir.
70377         * lib/chdir-long.c: Renamed from chdir.c.
70378         * lib/chdir-long.h: Renamed from chdir.h.
70379         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70380         Hurd.
70381
70382 2005-01-18  Bruno Haible  <bruno@clisp.org>
70383
70384         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70385         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70386         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70387         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70388         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70389         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70390         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70391         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70392         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70393         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70394         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70395         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70396         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70397         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70398         Use an all-permissive copyright notice, recommended by RMS.
70399
70400 2005-01-18  Bob Proulx  <bob@proulx.com>
70401
70402         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70403         simplify offsetof() macro construct to avoid compile failure with
70404         native HP-UX 11.0 ANSI C compiler.
70405
70406 2005-01-17  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70409         redundant because stpncpy.m4 takes care of it.
70410
70411 2005-01-17  Bruno Haible  <bruno@clisp.org>
70412
70413         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70414
70415 2005-01-17  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70418         used.
70419
70420 2005-01-17  Bruno Haible  <bruno@clisp.org>
70421
70422         * lib/fwriteerror.h (fwriteerror): Change specification to include
70423         fclose.
70424         * lib/fwriteerror.c: Include <stdbool.h>.
70425         (fwriteerror): At the end, close the file stream. Record whether
70426         stdout was already closed.
70427
70428 2005-01-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * lib/execute.c (environ): Declare if needed.
70431         * lib/pipe.c (environ): Likewise.
70432         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70433
70434 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70435
70436         * modules/argp: Depend on vsnprintf
70437
70438 2005-01-10  Jim Meyering  <jim@meyering.net>
70439
70440         * modules/closeout (Depends-on): Add atexit.
70441
70442 2005-01-06  Bruno Haible  <bruno@clisp.org>
70443
70444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70445
70446 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70449         definitions to be after all include files, to avoid collisions.
70450         Problem reported by Bob Proulx.
70451
70452 2005-01-04  Jim Meyering  <jim@meyering.net>
70453
70454         Changes imported from coreutils.
70455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70456         as the mkstemp template, use a temporary directory and an
70457         8.3-friendly template to avoid trouble on systems like DJGPP.
70458         Reported by Juan M. Guerrero via Stepan Kasal.
70459         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70460         close. Remove the temporary directory right away, rather than waiting
70461         for configure's at-exit trap code to do it.
70462         Suggestion from Stepan Kasal.
70463
70464 2005-01-01  Simon Josefsson  <jas@extundo.com>
70465
70466         * gnulib-tool: Print #include directives when --import'ing.
70467
70468 2004-12-28  Simon Josefsson  <jas@extundo.com>
70469
70470         * tests/test-base64.c: Include required header files.  Remove
70471         unused variables.
70472
70473 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * modules/error (Depends-on): Remove gettext.
70476
70477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70480         not needed.  This removes a dependency on the gettext module.
70481         [defined _LIBC]: Do not include <libintl.h>; not needed.
70482
70483 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70486         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70487
70488 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70491         HAVE_DECL_STRTOLD.
70492
70493 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * modules/getdate (Depends-on): Remove alloca-opt.
70496
70497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70498
70499         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70500
70501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * lib/argp-parse.c: Include <stddef.h>.
70504         (alignof, alignto): New macros.
70505         (parser_init): Don't assume that void * is aligned sufficiently
70506         for struct option.
70507
70508         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70509         need to extend the stack.
70510         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70511         large.
70512
70513 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70514
70515         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70516
70517 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70520         (2004-10-24) change.  Apparently this was a false alarm.
70521
70522         * modules/getdate: Depend on alloca-opt, not alloca.
70523
70524 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70527         Remove now-obsolete comment about AIX.
70528         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70529         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70530         (YYMAXDEPTH): New macro.
70531
70532 2004-12-18  Simon Josefsson  <jas@extundo.com>
70533
70534         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70535
70536 2004-12-18  Bruno Haible  <bruno@clisp.org>
70537
70538         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70539
70540 2004-12-18  Bruno Haible  <bruno@clisp.org>
70541
70542         * lib/fatal-signal.c (fatal_signals): Make non-const.
70543         (init_fatal_signals): New function.
70544         (uninstall_handlers, install_handlers): Ignore signals that were set to
70545         SIG_IGN.
70546         (at_fatal_signal): Call init_fatal_signals.
70547         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70548         SIG_IGN.
70549         Reported by Paul Eggert.
70550
70551 2004-12-18  Bruno Haible  <bruno@clisp.org>
70552
70553         * doc/alloca.texi: New file.
70554         * doc/alloca-opt.texi: New file.
70555
70556 2004-12-17  Jim Meyering  <jim@meyering.net>
70557
70558         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70559         Otherwise, install-sh could exit with improper exit status when
70560         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70561
70562 2004-12-16  Simon Josefsson  <jas@extundo.com>
70563
70564         * tests/test-base64.c: Add license.
70565
70566 2004-12-15  Stepan Kasal  <address@hidden>
70567
70568         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70569
70570 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * modules/getcwd (Files): Add m4/d-ino.m4.
70573         Suggested by Mark D. Baushke.
70574
70575 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/getdate.y (textint): New member "negative".
70578         (time_zone_hhmm): New function.
70579         Expect 14 shift-reduce conflicts, not 13.
70580         (o_colon_minutes): New rule.
70581         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70582         (yylex): Set the "negative" member of signed numbers.
70583
70584 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * doc/getdate.texi (Time of day items, Time zone items):
70587         Describe new formats +00:00, UTC+00:00.
70588
70589 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70592         spurious "-l"s.  Problem reported by Stepan Kasal.
70593
70594 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70597         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70598
70599 2004-12-04  Simon Josefsson  <jas@extundo.com>
70600
70601         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70602         Vandoorselaere <yoann@prelude-ids.org>.
70603
70604 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         Changes imported from coreutils.
70607         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70608         exist.
70609         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70610
70611 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         Changes imported from coreutils.
70614         * lib/hard-locale.c: Assume <locale.h> exists.
70615         Include "strdup.h".
70616         (GLIBC_VERSION): New macro.
70617         (hard_locale): Assume setlocale exists.
70618         Rewrite to avoid #ifdef.
70619         Use strdup rather than malloc + strcpy.
70620         * lib/human.c: Assume <locale.h> exists.
70621         (human_readable): Assume localeconv exists.
70622
70623 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70624
70625         * modules/hard-locale (Depends-on): Add strdup.
70626
70627 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70628
70629         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70630         convert T2, not T.  (Imported from libc.)
70631
70632 2004-11-30  Simon Josefsson  <jas@extundo.com>
70633
70634         * modules/restrict (License): Change to LGPL.
70635
70636 2004-11-30  Simon Josefsson  <jas@extundo.com>
70637
70638         * m4/restrict.m4: Add copyright and copying conditions.
70639
70640 2004-11-30  Simon Josefsson  <jas@extundo.com>
70641
70642         * m4/base64.m4: New file.
70643
70644 2004-11-30  Simon Josefsson  <jas@extundo.com>
70645
70646         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70647         base64.
70648
70649         * tests/test-base64.c: New file.
70650
70651         * modules/base64: New file.
70652
70653 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70656         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70657
70658         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70659
70660 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70663         (__getcwd.c): Don't restore errno; glibc doesn't.
70664         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70665         first, falling back to our code only if its results look suspicious.
70666         Ensure that the resulting buffer is only as large as necessary.
70667
70668         * lib/readutmp.c: Include readutmp.h first.
70669         Include <errno.h>, since readutmp.h no longer does that.
70670         * lib/readutmp.h: Don't include <errno.h>,
70671         <sys/param.h>, <time.h>; not needed to establish interface.
70672         (errno): Remove decl.
70673         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70674         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70675         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70676
70677 2004-11-28  Simon Josefsson  <jas@extundo.com>
70678
70679         * lib/base64.h, base64.c: New file.
70680
70681 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70682
70683         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70684
70685 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70688         (Depends-on): Remove pathmax, same.  Add mempcpy.
70689         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70690         (Makefile.am): Append getcwd.h to lib_SOURCES.
70691         (Include): Add getcwd.h.
70692         (Maintainer): Change from Jim Meyering to "all, glibc",
70693         since getdate now uses intended-for-glibc code.
70694         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70695         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70696
70697 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70700         HP's ANSI C compiler.
70701         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70702         Declaring int functions causes warnings on some modern systems and
70703         shouldn't be needed to compile on ancient ones.
70704         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70705         defined.
70706
70707         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70708         with the following changes.
70709         (__set_errno): Parenthesize properly.
70710         Include <stdbool.h>.
70711         (MIN, MAX, MATCHING_INO): New macros.
70712         (__getcwd): Define with prototype, not K&R form.
70713         Use heuristics to allocate default buffer on stack if possible.
70714         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70715         behavior, and to avoid the PATH_MAX limit when computing
70716         ../../../../...
70717         Use MATCHING_INO to compare inode number to file.
70718         Check for arithmetic overflow in size calculations.
70719         Fix bug in reallocation of dot array that caused getcwd to fail
70720         on directories nested deeper than 75.
70721         Be more careful about saving errno on error.
70722         Do not use realloc; use only free+malloc, as this is a bit
70723         more flexible and avoids a needless copy operation.
70724         Do not inspect st_dev and st_ino for symbolic links; POSIX
70725         doesn't specify the latter.
70726         Check for closedir errors.
70727         Avoid needless casts.
70728         Use "#ifdef weak_alias" around weak_alias, to be like other
70729         glibc code.
70730         The following changes to getcwd.c have effect only when used in
70731         gnulib; they have no effect inside glibc proper.
70732         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70733         as alloca isn't used.
70734         (alloca, __alloca): Likewise.
70735         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70736         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70737         unconditionally, as gnulib assumes C89 or better.
70738         Do not include <sys/param.h>.
70739         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70740         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70741         better.
70742         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70743         Include <dirent.h> in a way that is compatible with modern Autoconf.
70744         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70745         New macros, if not already defined.
70746         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70747         Use "_LIBC", not "defined _LIBC", for consistency.
70748         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70749         a mempcpy module.
70750         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70751         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70752         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70753         credit only to Jim Meyering and adjust the copyright dates.
70754         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70755         <stdlib.h>, <unistd.h>, "pathmax.h".
70756         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70757         (INITIAL_BUFFER_SIZE): Remove.
70758         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70759
70760 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70763         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70764         Use the _ONCE methods, for efficiency.
70765         Check for fcntl.h.  In test program, include <errno.h>
70766         and <fcntl.h> if available.  Remove old K&R cruft from
70767         test program.  Check for common errors in GNU/Linux,
70768         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70769         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70770         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70771         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70772         name accordingly.
70773         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70774         accommodate new getcwd.c.
70775         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70776         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70777         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70778         that's all we need now.
70779
70780 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70781
70782         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70783         argp-parse.c depends on getopt internals, that means we should
70784         always use our getopt, to be on the safe side.
70785         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70786         order not to spoil the result of an eventual previous invocation
70787         of gl_GETOPT_SUBSTITUTE.
70788
70789 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70790
70791         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70792         redefinition warnings. To avoid them, include the defines
70793         in `#if !defined __need_getopt ... #endif'. The only place
70794         where __getopt_argv_const is used is in definitions
70795         of getopt_long and getopt_long_only below, which are as well
70796         protected by `#ifndef __need_getopt'.
70797         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70798         __need_getopt after including <stdio.h> and <unistd.h> These
70799         headers might have defined it.
70800
70801 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70804
70805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70808         (futimens): New function, which uses futimes if available.
70809         (futimens, utimens): Support timespec==NULL, with same semantics
70810         as utime and utimens.
70811         * lib/utimens.h (futimens): New decl.
70812
70813 2004-11-23  Jim Meyering  <jim@meyering.net>
70814
70815         * lib/getopt_.h: Remove trailing blanks.
70816
70817 2004-11-23  Jim Meyering  <jim@meyering.net>
70818
70819         * lib/__fpending.c: Add comment.
70820
70821 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * modules/canonicalize (Depends-on): Add xreadlink.
70824         Problem reported by James Youngman.
70825
70826 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70829         New macros.
70830         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70831         optopt): Use them instead of invoking ## directly; otherwise, the
70832         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70833
70834 2004-11-19  Bruno Haible  <bruno@clisp.org>
70835
70836         * lib/strtok_r.c: Move comments from here...
70837         * lib/strtok_r.h: ... to here.
70838
70839 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70842         implementations that mishandle size_t overflow.
70843
70844 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70847         might fail.  Problem reported by Yoann Vandoorselaere.
70848         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70849         implementations that mishandle size_t overflow.
70850
70851 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * modules/canon-host (Depends-on): Add strdup.
70854
70855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70858
70859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * lib/canon-host.c: Include "strdup.h".
70862         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70863         Use strdup instead of malloc/strcpy to duplicate strings.
70864
70865         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70866         (human_space_before_unit): New constant.
70867         * lib/human.c (human_readable): Support it.
70868
70869         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70870         (xgetcwd): Set errno correctly when failing.
70871         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70872         the failure is actually due to a PATH_MAX problem.
70873
70874         Further getopt changes to make it more likely that glibc will
70875         buy the changes back.
70876         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70877         (getopt): Use it, so to preserve glibc semantic
70878         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70879         when compiling for libc.
70880         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70881         (getopt_long, getopt_long_only): Use it.
70882
70883         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70884         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70885         (getopt): Argv is now char * const *, as per standard.
70886         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70887         not char *__getopt_argv_const *.
70888         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70889         _getopt_long_only_r): Likewise.
70890         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70891         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70892         _getopt_long_r, _getopt_long_only_r): Likewise.
70893         * lib/getopt_.h (__getopt_argv_const): Remove.
70894         (getopt): Argv is now char * const *, as per standard.
70895
70896         * lib/getdate.y (tORDINAL): New token.
70897         (day, relunit): Allow it for relative times.
70898         (relative_time_table): Use tORDINAL for ordinals.
70899
70900 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70903         Document that "second" isn't allowed as an ordinal number.
70904
70905 2004-11-16  Jim Meyering  <jim@meyering.net>
70906
70907         * modules/closeout (Depends-on): Add fpending.
70908
70909 2004-11-15  Jim Meyering  <jim@meyering.net>
70910
70911         * lib/closeout.c: Include "__fpending.h" once again.
70912         Include <stdbool.h>.
70913         (close_stdout): Don't fail just because stdout was closed initially,
70914         since some programs don't write to stdout in the normal course of
70915         operation (other than --version and --help), and we don't want this
70916         function to make e.g. `touch file >&-' fail.
70917         But do fail if it was closed and someone has tried to write to it.
70918         E.g., `printf foo >&-' must fail.
70919
70920 2004-11-13  Jim Meyering  <jim@meyering.net>
70921
70922         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70923
70924 2004-11-12  Simon Josefsson  <jas@extundo.com>
70925
70926         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70927         small doc fix is still pending.
70928
70929 2004-11-11  Simon Josefsson  <jas@extundo.com>
70930
70931         * modules/strtok_r: New file.
70932
70933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70934         strtok_r.
70935
70936 2004-11-11  Simon Josefsson  <jas@extundo.com>
70937
70938         * m4/strtok_r.m4: New file.
70939
70940         * m4/getopt.m4: Replace opterr.
70941
70942 2004-11-11  Simon Josefsson  <jas@extundo.com>
70943
70944         * lib/strtok_r.h, strtok_r.c: New file.
70945
70946 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70949         of replacing opterr, getopt, etc.  This should handle the
70950         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70951
70952 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70955         we can stop lying to compilers about the constness of argv when we
70956         are compiled outside glibc.
70957         (getopt, getopt_long, getopt_long_only): Use it.
70958         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70959         _getopt_internal, getopt): Likewise.
70960         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70961         _getopt_long_only_r): Likewise.
70962         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70963         _getopt_long_r, _getopt_long_only_r): Likewise.
70964
70965         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70966         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70967         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70968         the other external symbols.
70969         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70970         declaration, since the above renaming now works around collisions.
70971
70972 2004-11-11  Jim Meyering  <jim@meyering.net>
70973
70974         * lib/linebreak.c: Remove trailing blanks.
70975         * lib/alloca_.h: Likewise.
70976         * lib/acosl.c: Likewise.
70977         * lib/euidaccess.c: Likewise.
70978         * lib/allocsa.h: Likewise.
70979
70980 2004-11-10  Simon Josefsson  <jas@extundo.com>
70981
70982         * m4/getaddrinfo.m4: New file.
70983
70984 2004-11-10  Simon Josefsson  <jas@extundo.com>
70985
70986         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70987
70988 2004-11-10  Simon Josefsson  <jas@extundo.com>
70989
70990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70991         getaddrinfo.
70992
70993         * modules/getaddrinfo: New file.
70994
70995 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70998
70999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * lib/mktime.c (SHR): New macro, which is a portable
71002         substitute for >> that should work even on Crays.
71003         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71004         Problem reported by Mark D. Baushke in
71005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71006         * lib/getdate.y (SHR): Likewise.
71007         (tm_diff): Use it.
71008         * lib/strftime.c (SHR): Likewise.
71009         (tm_diff): Use it.
71010         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71011         quote_these_too, so that right shifts are well defined.  All uses
71012         changed.
71013
71014 2004-11-10  Jim Meyering  <jim@meyering.net>
71015
71016         Ensure that no close failure goes unreported.
71017         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71018         return early when it seems there's nothing to flush.
71019         Don't include __fpending.h.
71020
71021 2004-11-10  Jim Meyering  <jim@meyering.net>
71022
71023         * modules/closeout (Depends-on): Remove fpending.
71024
71025 2004-11-10  Jim Meyering  <jim@meyering.net>
71026
71027         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71028
71029 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71032         gl_FUNC_STRFTIME.
71033         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71034         and AC_REQUIRE when possible, to avoid duplicate checks.
71035         Check for <wchar.h>.
71036
71037 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71040
71041 2004-11-09  Bruno Haible  <bruno@clisp.org>
71042
71043         * m4/sockpfaf.m4: New file.
71044
71045 2004-11-05  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71048         Reported by Mark D. Baushke <mdb@cvshome.org>.
71049
71050 2004-11-04  Bruno Haible  <bruno@clisp.org>
71051
71052         2004-09-11  Bruno Haible  <bruno@clisp.org>
71053                 * allocsa.valgrind: New file.
71054         2004-02-06  Bruno Haible  <bruno@clisp.org>
71055                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71056                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71057                 Reported by Christopher Seip <chris.seip@hp.com>.
71058
71059 2004-11-04  Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71062         (Makefile.am): Distribute it.
71063
71064 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71067         with errno == ERANGE if the buffer is too small.
71068         Problem reported by Mark D. Baushke.
71069
71070 2004-11-03  Albert Chin  <china@thewrittenword.com>
71071             Paul Eggert  <eggert@cs.ucla.edu>
71072
71073         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71074         equivalent, substitute $ac_type for equivalent type rather than
71075         blindly using uint32_t *always* which won't work if uint32_t is not
71076         available.  Define _UINT32_T to work around typedef of uint32_t if
71077         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71078         2.5.1.
71079
71080 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/jm-macros.m4: Sync from coreutils.
71083         (gl_MACROS): Check for mbrlen, for pathchk.
71084         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71085
71086 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * lib/xreadlink.c (MAXSIZE): New macro.
71089         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71090         size does not exceed MAXSIZE.  Avoid cast.
71091         As suggested by Mark D. Baushke in
71092         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71093         if readlink fails with buffer size just under MAXSIZE, try again
71094         with MAXSIZE.
71095
71096 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71097
71098         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71099
71100 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71101         and  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71104         (get_date): Overparenthesize to avoid GCC warning.
71105
71106 2004-11-02  Bruno Haible  <bruno@clisp.org>
71107
71108         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71109         returns void.
71110
71111 2004-11-02  Bruno Haible  <bruno@clisp.org>
71112
71113         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71114         function returns void.
71115
71116 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71119         fflush_unlocked, flockfile, funlockfile, funlockfile,
71120         fputs_unlocked, putc_unlocked.
71121
71122 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71125         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71126         already declared.
71127
71128 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * modules/getdate (Files): Add doc/getdate.texi.
71131         (Depends-on): Add setenv, xalloc.
71132
71133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         * lib/getdate.y: Add support for TZ="foo" within a date string.
71136         Fix some bugs near time_t boundaries.  Reject dates with
71137         out-of-range components, e.g., "Sept 31".
71138         Include <stdlib.h>, "setenv.h", "xalloc.h".
71139         (ISDIGIT_LOCALE): Remove; unused.
71140         Note that the TZ and time functions used here are not reentrant.
71141         (mktime_ok, get_tz): New functions.
71142         (TZBUFSIZE): New constant.
71143         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71144         This requires that we sometimes generate our own TZ="XXX..." setting.
71145
71146 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         * doc/getdate.texi: New file, from coreutils with modifications for
71149         the new TZ parsing.
71150
71151 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71152
71153         * lib/mktime.c (not_equal_tm): Remove redundant check.
71154
71155 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * modules/regex (lib_SOURCES): Add regex.c.
71158         Reported by James Youngman in
71159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71160
71161 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * lib/getdate.y: Use Bison 1.875 features, and some minor
71164         code cleanups.  This change does not affect semantics.
71165         Don't include <stdlib.h>; no longer needed.
71166         Don't include unlocked-io.h; only the "#if TEST" code uses
71167         stdio, and performance isn't crucial there.
71168         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71169         Bison 1.875 features as described below.
71170         All uses of "PC." replaced by "pc->".
71171         (YYSTYPE): Add a forward declaration.
71172         (yylex, yyerror): Use full prototypes in forward decls.
71173         Use "%pure-parser" rather than obsolescent "%pure_parser".
71174         Use %parse-param and %lex-param instead of obsolescent
71175         YYPARSE_PARAM and YYLEX_PARAM.
71176         (meridian_table, month_and_day_table, time_units_table,
71177         relative_time_table, time_zone_table, military_table,
71178         lookup_zone, lookup_word, get_date):
71179         Use NULL instead of 0 where appropriate.
71180         (to_hour): Avoid abort (), to avoid a dependency on
71181         stdlib.h.
71182         (yyerror, yylex): Now accepts parser_control * arg.
71183         (main) [TEST]: Use '\0' rather than 0 for char.
71184
71185 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71188
71189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71192         It's now the caller's responsibility to handle the case where
71193         !HAVE_GETPAGESIZE && !defined getpagesize.
71194
71195         * lib/mktime.c (leapyear): Arg is long int, not int.
71196
71197 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71198
71199         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71200
71201 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71204         missing.  Problem reported by James Youngman.
71205
71206 2004-10-16  Simon Josefsson  <jas@extundo.com>
71207
71208         * gnulib-tool: Fix comments.  Fix parse problem.
71209         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71210
71211 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71214         implementation of getopt_long.  Problem reported by Alexander Taler in:
71215         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71216
71217 2004-10-15  Bruno Haible  <bruno@clisp.org>
71218
71219         * gnulib-tool: Untabify. Initialize supplied_libname.
71220         (func_usage): More homogenous output.
71221         (func_modules_transitive_closure, func_modules_to_filelist,
71222         func_emit_lib_Makefile_am): New functions.
71223         (func_import): New function, extracted from big case statement. Use
71224         func_get_license, func_modules_transitive_closure,
71225         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71226         opt_lgpl. Don't use test -a, as it's not portable.
71227         (func_create_testdir): Use func_modules_transitive_closure,
71228         func_modules_to_filelist, func_emit_lib_Makefile_am.
71229
71230 2004-10-15  Bruno Haible  <bruno@clisp.org>
71231
71232         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71233
71234 2004-10-15  Bruno Haible  <bruno@clisp.org>
71235
71236         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71237         the portions belonging to each module.
71238         Suggested by Derek Robert Price <derek@ximbiot.com>.
71239
71240 2004-10-12  Simon Josefsson  <jas@extundo.com>
71241
71242         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71243         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71244         to real functions.
71245
71246 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71247
71248         * modules/vsnprintf: New file.
71249
71250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71251
71252         * m4/vsnprintf.m4: New file.
71253
71254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71255
71256         * lib/vsnprintf.h: New file.
71257         * lib/vsnprintf.c: New file.
71258
71259 2004-10-11  Bruno Haible  <bruno@clisp.org>
71260
71261         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71262         vsnprintf.
71263
71264 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71267
71268 2004-10-07  Bruno Haible  <bruno@clisp.org>
71269
71270         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71271         fits into the provided buffer.
71272
71273 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * lib/diacrit.c, diacrit.h: Add GPL notice.
71276
71277         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71278         notice.
71279         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71280         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71281         This avoids a potential constant-folding bug.
71282
71283 2004-10-05  Bruno Haible  <bruno@clisp.org>
71284
71285         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71286         for the declaration of strsep.
71287
71288 2004-10-05  Bruno Haible  <bruno@clisp.org>
71289
71290         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71291
71292 2004-10-04  Simon Josefsson  <jas@extundo.com>
71293
71294         * modules/memmem: New file.
71295         * tests/test-memmem.c: New file.
71296         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71297
71298 2004-10-04  Simon Josefsson  <jas@extundo.com>
71299
71300         * m4/memmem.m4: New file.
71301
71302 2004-10-04  Simon Josefsson  <jas@extundo.com>
71303
71304         * lib/memmem.h: New file.
71305         * lib/memmem.c: New file, taken from glibc.
71306
71307 2004-10-04  Simon Josefsson  <jas@extundo.com>
71308
71309         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71310         '#ifdef USE_UNLOCKED_IO'.
71311
71312 2004-10-04  Simon Josefsson  <jas@extundo.com>
71313
71314         * config/srclist.txt: Add memmem from glibc.
71315
71316 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71319
71320         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71321         modules/exclude, modules/getdate, modules/getline,
71322         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71323         modules/getusershell, modules/linebuffer, modules/md5,
71324         modules/mountlist, modules/posixtm, modules/readtokens,
71325         modules/readutmp, modules/regex, modules/sha1,
71326         modules/version-etc, modules/yesno:
71327         Remove dependency on unlocked-io.
71328
71329 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71332
71333         * m4/unlocked-io.m4: Add copyright notice.
71334         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71335
71336 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71339         * lib/xmalloc.c (xmemdup): Likewise.
71340         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71341         XFREE): Remove these long-obsolescent macros.
71342         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71343         * lib/xstrdup.c: Remove.
71344
71345         * lib/regex.c (re_comp): Cast gettext return value to char *,
71346         Problem reported by Martin Neitzel via Mark D. Baushke.
71347
71348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71351         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71352         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71353         regex.c, sha1.c, version-etc.c, yesno.c:
71354         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71355         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71356         the includer's responsibility.
71357
71358         Sync from coreutils.
71359
71360         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71361         points to the start of a string, as the C Standard says the
71362         resulting behavior is undefined.
71363
71364         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71365         simple -> simple_backups, numbered_existing ->
71366         numbered_existing_backups, numbered -> numbered_backups
71367         to avoid shadowing problems.  All uses changed.
71368         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71369         * lib/backupfile.c (check_extension, numbered_backup):
71370         Rename locals to avoid shadowing 'basename'.
71371         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71372         once.
71373
71374         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71375         * lib/.cvsignore: Add getopt.h.
71376
71377 2004-10-04  Bruno Haible  <bruno@clisp.org>
71378
71379         * modules/README: New file.
71380         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71381         not a module.
71382
71383 2004-10-02  Jim Meyering  <jim@meyering.net>
71384
71385         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71386
71387 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71388
71389         * modules/strsep: New file.
71390
71391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71392
71393         * m4/strsep.m4: New file.
71394
71395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71396
71397         * lib/strsep.h: New file.
71398         * lib/strsep.c: New file.
71399
71400 2004-10-01  Simon Josefsson  <jas@extundo.com>
71401
71402         * lib/snprintf.c (snprintf): Handle size==0.
71403
71404 2004-10-01  Simon Josefsson  <jas@extundo.com>
71405             Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71408         (snprintf): Declare 'args'.
71409
71410 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/snprintf.c: Remove comments as to why each header is needed.
71413
71414 2004-10-01  Bruno Haible  <bruno@clisp.org>
71415
71416         * MODULES.html.sh: Add strsep.
71417
71418 2004-09-30  Simon Josefsson  <jas@extundo.com>
71419
71420         * modules/snprintf: New file.
71421
71422 2004-09-30  Simon Josefsson  <jas@extundo.com>
71423
71424         * m4/snprintf.m4: New file.
71425
71426 2004-09-30  Simon Josefsson  <jas@extundo.com>
71427
71428         * lib/snprintf.h, lib/snprintf.c: New files.
71429
71430 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71431
71432         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71433         (hol_entry_help): Never translate an empty string.
71434         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71435         * lib/argp.h (OPTION_NO_TRANS): New option.
71436
71437 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * modules/argp (Maintainer): Replace Simon Josefsson
71440         by Sergey Poznyakoff.
71441
71442 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71445         changes merged back into glibc.
71446
71447 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71450
71451 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71452
71453         * lib/xvasprintf.c: Include xalloc.h.
71454         (xvasprintf): Use xalloc_die, not xmalloc_die.
71455
71456 2004-09-29  Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/alloca-opt: New file, derived from modules/alloca.
71459         * modules/allocsa: Depend on alloca-opt instead of alloca.
71460         * modules/setenv: Likewise.
71461         * modules/vasnprintf: Likewise.
71462         * MODULES.html.sh: Add alloca-opt.
71463
71464 2004-09-28  Simon Josefsson  <jas@extundo.com>
71465
71466         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71467         LGPL, and to replace license template from GPL to LGPL.
71468
71469 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * modules/dummy: Change license to LGPL.
71472
71473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71476
71477 2004-09-24  Simon Josefsson  <jas@extundo.com>
71478
71479         * modules/minmax (License): Change from GPL to LGPL.
71480
71481 2004-09-23  Simon Josefsson  <jas@extundo.com>
71482
71483         * gnulib-tool (--import): Typo.
71484
71485 2004-09-23  Simon Josefsson  <jas@extundo.com>
71486
71487         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71488
71489 2004-09-22  Bruno Haible  <bruno@clisp.org>
71490
71491         * modules/*: Add 'License' field.
71492         * gnulib-tool: Accept --extract-license option.
71493         (func_get_license): New function.
71494
71495 2004-09-21  Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71498         Reported by Simon Josefsson.
71499
71500 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71501
71502         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71503         gl_AC_TYPE_LONG_LONG.
71504
71505 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71508
71509 2004-09-18  Simon Josefsson  <jas@extundo.com>
71510         and  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71513         calls with autoreconf.  Define GL_LIB.
71514
71515 2004-09-14  Karl Berry  <karl@gnu.org>
71516
71517         * config/srclist.txt: unsync setenv.c, sigh.
71518
71519 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71522         Problem reported by Bruno Haible in:
71523         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71524
71525 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         * config/srclist.txt: Comment out argp-pvh.c.
71528
71529 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71532         in case some system header has #define'd it.  Problem reported by
71533         Soeren D. Schulze in
71534         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71535
71536 2004-09-09  Karl Berry  <karl@gnu.org>
71537
71538         * regex.[ch]: delete from the root.  These were supposed to be
71539                 synced with emacs cvs, but this has not happened for about
71540                 a year, and anyway nothing else uses emacs regex.[ch].
71541                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71542                 lib/regex[.ch] is untouched.
71543
71544 2004-09-09  Bruno Haible  <bruno@clisp.org>
71545
71546         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71547
71548 2004-09-09  Bruno Haible  <bruno@clisp.org>
71549
71550         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71551         modifications.
71552         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71553
71554 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71555
71556         * modules/xvasprintf: New file.
71557         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71558
71559 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71560
71561         * lib/xvasprintf.h: New file.
71562         * lib/xvasprintf.c: New file.
71563         * lib/xasprintf.c: New file.
71564
71565 2004-09-08  Bruno Haible  <bruno@clisp.org>
71566
71567         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71568
71569 2004-09-08  Bruno Haible  <bruno@clisp.org>
71570
71571         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71572         length is > INT_MAX.
71573         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71574         more.
71575
71576 2004-09-08  Bruno Haible  <bruno@clisp.org>
71577
71578         * lib/stdint_.h: New file, taken from GNU clisp.
71579
71580 2004-09-08  Bruno Haible  <bruno@clisp.org>
71581             Oskar Liljeblad  <oskar@osk.mine.nu>
71582
71583         * modules/stdint: New file.
71584         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71585
71586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         Import from coreutils.
71589         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71590         strings on unbounded length.  alloca's performance benefits aren't
71591         that important here.
71592         (V_STRDUP): Remove.
71593         (parse_with_separator): New function, with most of the internals
71594         of the old parse_user_spec.  Allow user to omit both user and group,
71595         for compatibility with FreeBSD.
71596         Clone only the user name, not the entire spec.
71597         Do not set *uid, *gid unless entirely successful.
71598         Avoid memory leak in some failing cases.
71599         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71600         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71601         (parse_user_spec): Rewrite to use parse_with_separator.
71602
71603 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * modules/userspec: Don't depend on alloca.
71606
71607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71610
71611 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71614         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71615         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71616
71617 2004-08-16  Simon Josefsson  <jas@extundo.com>
71618
71619         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71620         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71621         Add --dry-run for --import.
71622         Let user provided command line parameters override configure.ac
71623         settings.
71624
71625 2004-08-12  Simon Josefsson  <jas@extundo.com>
71626
71627         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71628         as discussed with Paul Eggert in threads rooted at
71629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71630         and
71631         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71632         Before, the test was empty, and relied on ELIDE_CODE in source
71633         code.)
71634         (gl_PREREQ_GETOPT): New macro.
71635         (gl_GETOPT): Use them.
71636
71637 2004-08-12  Simon Josefsson  <jas@extundo.com>
71638
71639         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71640         * lib/getopt_.h: Renamed from getopt.h.
71641
71642 2004-08-12  Simon Josefsson  <jas@extundo.com>
71643
71644         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71645         Change default library name from libfoo to libgnu.
71646         Now, if you have a configure.ac that says:
71647                 gl_SOURCE_BASE(gl)
71648                 gl_M4_BASE(gl/m4)
71649                 gl_MODULES(error getopt etcetera)
71650                 gl_INIT
71651         you can import all you need by running:
71652                 ../gnulib/gnulib-tool --import
71653
71654         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71655         (Makefile.am): Rewrite, use logic from argz.
71656         (Include): Use <getopt.h> instead of "getopt.h".
71657
71658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * modules/argp (Files): Add m4/unlocked-io.m4.
71661         (Depends-on): Add extensions.
71662
71663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71666         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71667         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71668         Check for program_invocation_name, program_invocation_short_name,
71669         flockfile, funlockfile, features.h, _getopt_long_only_r.
71670
71671 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71674         its complicated substitute.
71675         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71676         and program_invocation_name.
71677         (__argp_basename) [!_LIBC]: Remove; the only use was
71678         replaced by its body.
71679         (__argp_short_program_name): Change condition from
71680         !defined __argp_short_program_name to
71681         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71682         to match argp-namefrob.h.
71683         (__argp_failure): Don't assume strerror_r returns char *.
71684         * lib/argp-parse.c (N_): Define unconditionally.
71685         (argp_default_options): Fill out initializers with 0 to avoid
71686         gcc warnings.
71687
71688 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71691         getopt1.c.
71692
71693 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         Merge from coreutils.
71696
71697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71698
71699         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71700         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71701
71702 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         Merge from coreutils.
71705
71706         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71707         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71708         for Reliant Unix 5.43.
71709
71710         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71711         (union fooround): Use uintmax_t, not long int.
71712         The rest is a merge from libc:
71713         [defined _LIBC]: Include <shlib-compat.h>.
71714         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71715
71716         * lib/settime.c (settime): Recode to avoid warning with
71717         Sun Forte C 6U2.
71718
71719         * lib/strverscmp.c: Convert to UTF-8.
71720
71721 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71724         m4/uintmax_t.m4.
71725
71726 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * modules/xalloc-die: New file.
71729         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71730
71731         * modules/md5 (Files): Add m4/uint32_t.m4.
71732         * modules/sha1: Renamed from modules/sha.
71733         (Files):
71734         Rename lib/sha.h to lib/sha1.h.
71735         Rename lib/sha.c to lib/sha1.c.
71736         Rename m4/sha.m4 to m4/sha1.m4.
71737         (lib_SOURCES): Likewise.
71738         (configure.ac): Rename gl_SHA to gl_SHA1.
71739         (Include): sha.h -> sha1.h.
71740
71741 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71744         * m4/sha1.m4: Renamed from sha.m4.
71745         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71746
71747 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * lib/obstack.h (obstack_empty_p):
71750         Don't assume that chunk->contents is suitably aligned.
71751         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71752         Likewise. Problem reported by Benno in
71753         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71754
71755         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71756         readable.  This could be improved further but it'd take some work.
71757
71758 2004-08-08  Simon Josefsson  <jas@extundo.com>
71759
71760         * modules/xgethostname (Depends-on): Remove exit and error (not
71761         used).
71762
71763         * modules/getpass-gnu: Add getpass.h.
71764         (Depends-on): Add stdbool.
71765         * modules/getpass: Add getpass.h.
71766
71767 2004-08-08  Simon Josefsson  <jas@extundo.com>
71768
71769         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71770         Check getpass declaration.
71771
71772 2004-08-08  Simon Josefsson  <jas@extundo.com>
71773
71774         * lib/xgethostname.c: Don't include error.h (not used).
71775
71776         * lib/getpass.h: Add.
71777         * lib/getpass.c: Include getpass.h first.
71778
71779 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * lib/xalloc-die.c: New file.
71782         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71783         All uses removed.
71784         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71785         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71786         xalloc-die.c.
71787         (_, N_, xalloc_die): Move to xalloc-die.c.
71788         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71789         so that we needn't mess with xalloc_msg_memory_exhausted.
71790
71791         * lib/sha1.h: Renamed from sha.h.
71792         (SHA1_H): Renamed from _SHA_H.
71793         (sha1_ctx): Renamed from sha_ctx.
71794         (sha1_init_ctx): Renamed from sha_init_ctx.
71795         (sha1_process_block): Renamed from sha_process_block.
71796         (sha1_process_bytes): Renamed from sha_process_bytes.
71797         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71798         (sha1_read_ctx): Renamed from sha_read_ctx.
71799         (sha1_stream): Renamed from sha_stream.
71800         (sha1_buffer): Renamed from sha_buffer.
71801         * lib/sha1.c: Likewise; renamed from sha.c.
71802         Do not include <sys/types.h>.
71803         Include <stddef.h> rather than <stdlib.h>.
71804
71805 2004-08-08  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71808         FILESYSTEM_PREFIX_LEN.
71809         * lib/progreloc.c: Likewise.
71810         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71811
71812 2004-08-06  Simon Josefsson  <jas@extundo.com>
71813
71814         * modules/progname (Depends-on): Don't depend on stdbool.
71815
71816 2004-08-06  Simon Josefsson  <jas@extundo.com>
71817
71818         * modules/getsubopt: New file.
71819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71820         getsubopt.
71821
71822 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         More merge from coreutils.
71825
71826         * m4/utimens.m4, m4/utimecmp.m4: New files.
71827         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71828         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71829         prereq.m4, sha.m4: Import changes from coreutils.
71830
71831 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         More merge from coreutils.
71834         * modules/raise, modules/readtokens0, modules/utimens:
71835         * modules/utimecmp, module/xnanosleep: New files.
71836         * modules/strftime: Add lib/strftime.h.
71837         Change include from <time.h> to "strftime.h".
71838         * modules/yesno: Add lib/yesno.h.
71839         * modules/backupfile: Remove lib/addext.c.
71840         * modules/euidaccess: Add stat-macros.h.
71841         * modules/canonicalize, modules/euidaccess,
71842         modules/filemode, modules/lchown, modules/makepath,
71843         modules/rmdir, modules/stat: Likewise.
71844
71845 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         Merge from tar.
71848         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71849         SIZE_MAX is a valid preprocessor constant.
71850         (__argp_basename): Change from "#ifndef _LIBC"
71851         to "#ifndef __argp_short_program_name", so that
71852         we don't compile these functions for tar.
71853
71854         More merges from coreutils.
71855         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71856         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71857         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71858         * lib/addext.c: Remove; no longer needed.
71859         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71860         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71861         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71862         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71863         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71864         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71865         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71866         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71867         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71868         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71869         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71870         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71871         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71872         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71873         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71874         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71875         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71876         Import changes from coreutils.
71877
71878 2004-08-05  Simon Josefsson  <jas@extundo.com>
71879
71880         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71881
71882 2004-08-05  Simon Josefsson  <jas@extundo.com>
71883
71884         * m4/getsubopt.m4: New file.
71885
71886 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         Merge from coreutils.
71889
71890         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71891         * m4/getcwd-path-max.m4: New files.
71892
71893         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71894         FILESYSTEM_PREFIX_LEN ->
71895         FILE_SYSTEM_PREFIX_LEN.
71896         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71897         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71898         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71899         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71900
71901         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71902         prerequisite modules now handle the DOS stuff.
71903         Don't check for unistd.h.
71904
71905 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71906
71907         Merge from coreutils.
71908
71909         * lib/.gdb-history: Remove; this doesn't belong here.
71910
71911         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71912         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71913         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71914         * lib/getcwd.c: New files.
71915
71916         * lib/dirname.h: Include <stdbool.h>.
71917         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71918         for consistency with POSIX terminology.  All uses changed.
71919         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71920         (strip_trailing_slashes): Use bool for booleans.
71921         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71922
71923         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71924         sometimes returns a positive errno value even when it succeeds.
71925         (print_errno_message) [!LIBC]: Fall back on strerror if
71926         __strerror_r fails.
71927
71928         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71929         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71930         (longest_relative_suffix): New function.
71931         (path_concat): Use it.  Assume first argument is not NULL.
71932         Port to DOS.  Omit redundant separators.
71933         Report an error instead of returning NULL.
71934         Use mempcpy instead of memcpy.
71935         (xpath_concat): Remove: not declared or used.
71936
71937         * lib/same.h: Include <stdbool.h>
71938         (same_name): Return bool, not int.
71939         * lib/same.c (same_name): Likewise.
71940         (errno): Don't declare; we assume C89 or better now.
71941
71942         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71943         if not already defined.
71944
71945         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71946         * lib/dup-safer.c (errno): Likewise.
71947
71948 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         Merge from coreutils.
71951         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71952         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71953         * modules/path-concat: Don't depend on strdup.
71954
71955 2004-08-03  Simon Josefsson  <jas@extundo.com>
71956
71957         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71958         * lib/progname.h: Don't include stdbool.h.
71959
71960 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71963         * MODULES.html.sh (func_all_modules): Remove fatal.
71964
71965 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71968
71969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71972         working.
71973
71974 2004-08-02  Simon Josefsson  <jas@extundo.com>
71975
71976         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71977         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71978         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71979
71980 2004-08-01  Simon Josefsson  <jas@extundo.com>
71981
71982         * lib/xgetdomainname.c: Include stdlib.h, for free().
71983
71984 2004-07-19  Bruno Haible  <bruno@clisp.org>
71985
71986         * MODULES.html.sh (func_all_modules): Add dummy.
71987
71988 2004-07-16  Simon Josefsson  <jas@extundo.com>
71989
71990         * modules/dummy: New file.
71991
71992 2004-07-16  Simon Josefsson  <jas@extundo.com>
71993
71994         * lib/dummy.c: New file.
71995
71996 2004-07-16  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/backupfile.h: Add extern "C" for C++.
71999         * lib/closeout.h: Likewise.
72000         * lib/copy-file.h: Likewise.
72001         * lib/findprog.h: Likewise.
72002         * lib/full-write.h: Likewise.
72003         * lib/pathname.h: Likewise.
72004         * lib/progname.h: Likewise.
72005         * lib/stpcpy.h: Likewise.
72006         * lib/stpncpy.h: Likewise.
72007         * lib/strcase.h: Likewise.
72008         * lib/strstr.h: Likewise.
72009         * lib/xalloc.h: Likewise.
72010
72011         * lib/mbswidth.h: Add extern "C" for C++.
72012         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72013
72014 2004-07-13  Robert Millan  <robertmh@gnu.org>
72015
72016         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72017
72018 2004-07-09  Simon Josefsson  <jas@extundo.com>
72019
72020         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72021         failed without this.)
72022
72023 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * modules/chown (Files): Add lib/fchown-stub.c, since
72026         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72027
72028 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * lib/fchown-stub.c: New file.
72031
72032 2004-06-24  Jim Meyering  <jim@meyering.net>
72033
72034         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72035
72036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * modules/argz: Omit "#include".
72039
72040         * MODULES.html.sh (func_all_modules): Add calloc, to match
72041         2004-06-01 addition of calloc module.
72042
72043 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * m4/argz.m4: New file, which is autoupdated from libtool.
72046
72047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72050         libtool.
72051
72052 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * config/srclist-update: Don't insist on "USA." before the
72055         close-comment, as libtool omits the period and puts the */ on a
72056         separate line.
72057         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72058         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72059
72060 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72061
72062         * modules/argz: New file.
72063         * MODULES.html.sh (func_all_modules): Add argz.
72064
72065 2004-06-12  Jim Meyering  <jim@meyering.net>
72066         and  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * modules/hash (Files): Add lib/xalloc.h.
72069         * modules/pipe (Depends-on): Add wait-process.
72070         * modules/stat (Depends-on): Add xalloc.
72071         * modules/userspec (Files): Add lib/userspec.h.
72072         * modules/xstrto
72073
72074         Upgrade from gettext-0.13.
72075         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72076         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72077         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72078
72079 2004-06-10  Jim Meyering  <jim@meyering.net>
72080
72081         * lib/calloc.c: New file.
72082
72083 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * lib/getdate.y (yylex): Allow space between sign and number.
72086         Problem reported by Dan Jacobson.
72087
72088 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         Merge from coreutils CVS.
72091
72092         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72093         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72094         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72095         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72096         xstrtol.m4: Fix copyright date and/or serial number.
72097
72098         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72099         See if we need an fchown replacement.
72100         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72101         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72102         and use the replacement function if we detect either defect.
72103
72104         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72105         gl_UTIMECMP.
72106
72107 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72108         and  Jim Meyering  <jim@meyering.net>
72109
72110         Merge from coreutils CVS.
72111
72112         * lib/stat-macros.h: New file, with contents from file-type.h
72113         and coreutils' system.h.
72114         * lib/file-type.c: Include "stat-macros.h".
72115         * lib/file-type.h (file_type): Move all macro definitions to new file,
72116         stat-macros.h.
72117
72118         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72119         Wrap old code with this conditional.
72120         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72121         function that does not dereference symlinks.
72122         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72123
72124         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72125         dependency problems.
72126         (xreadlink): Accept new arg SIZE, for efficiency.
72127         All decls and uses changed.
72128         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72129
72130         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72131         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72132
72133         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72134         sysexits.h.
72135
72136 2004-06-01  Jim Meyering  <jim@meyering.net>
72137
72138         * m4/calloc.m4: New file.
72139
72140 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72143         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72144         Also, fix a typo in a diagnostic.
72145
72146 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72149         or AC_FUNC_REALLOC.
72150
72151 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72154         macros to be defined.
72155         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72156         the allocator returns NULL because the requested size is zero.
72157
72158 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72161         var.  Add comment explaining why libc still defines it.  This
72162         merges the following patch from glibc:
72163         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72164
72165 2004-05-20  Andreas Schwab  <schwab@suse.de>
72166
72167         * m4/free.m4: Replace free if it not known to work, not the other
72168         way round.
72169
72170 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72173         present in glibc since revision 1.1 of this file.
72174         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72175         obstack_alignment_mask, obstack_alloc, obstack_base,
72176         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72177         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72178         obstack_grow0, obstack_init, obstack_int_grow,
72179         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72180         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72181         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72182         nonexistent functions.
72183
72184 2004-05-18  Karl Berry  <karl@gnu.org>
72185
72186         * config/srclist.txt: break link for vasnprintf.c.
72187
72188 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         Port obstack to the AS/400, where pointers are 16 bytes wide and
72191         you cannot cast an integer to a valid pointer.  This patch is
72192         currently waiting to be integrated into glibc; see
72193         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72194
72195         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72196         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72197         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72198         (struct obstack): temp member is now a union of a pointer and
72199         an integer, instead of an integer.  All integer uses changed.
72200         This does not affect the physical layout of struct obstack,
72201         except on hosts (like the AS/400) where the size or alignment of
72202         void * is greater than that of ptrdiff_t.
72203         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72204         __STDC__)]: Store temporary in pointer member of union, not
72205         integer member.
72206         * lib/obstack.c: Include <stddef.h>, for offsetof.
72207         (struct fooalign): Remove; it doesn't need a name.
72208         (union fooround): Change double to long double, and add void *.
72209         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72210         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72211         not a macro.  Hence the values are always int; so remove all
72212         casts-to-int in uses.
72213
72214 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72217         we can get this patch merged into glibc.
72218
72219 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72220             Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * m4/argp: Depend on alloca.
72223
72224 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72225             Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72228         freecoding.
72229
72230 2004-05-17  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72233         precision that consists of a '.' followed by an empty digit string.
72234         Patch by Tor Lillqvist <tml@iki.fi>.
72235
72236 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72239         for backward compatibility with older code.  We need our own
72240         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72241         it under some other name, and our alloca.h will define it.
72242
72243 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72244             Derek Price  <derek@ximbiot.com>
72245
72246         * lib/alloca.c: Include <alloca.h>, to get our interface.
72247         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72248         include <alloca.h> first.  Use C89 prototype for alloca; this
72249         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72250         Use #elif for simplicity, since we can assume C89 now.
72251         Don't try to source the system alloca.h since it will not be found
72252         and to prevent recursively including its replacement.
72253         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72254         * lib/regex.c: Likewise.
72255
72256 2004-05-16  Derek Price  <derek@ximbiot.com>
72257             Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         getline cleanup.  This changes the getndelim2 API: both order of
72260         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72261         no delimiter).
72262
72263         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72264         interface does that.
72265         (getline): Always use getdelim, so that we don't have two
72266         copies of this code.
72267         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72268         if available.
72269         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72270         (GETNDELIM2_MAXIMUM): New macro.
72271         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72272         instead of the old practice of delim2==0.  All callers changed.
72273         Return -1 on overflow, instead of returning junk.
72274         Do not set *linesize unless allocation succeeds.
72275         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72276         that we include sys/types.h.
72277         * lib/getnline.h: Likewise.
72278         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72279         (getndelim2): Reorder arguments.
72280         * lib/getnline.c (getnline, getndelim):
72281         Don't discard the NMAX argument.
72282         (getnline): Invoke getndelim, to avoid code duplication.
72283         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72284         of (size_t) -1 by callers of the getnline family.
72285
72286 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72289         Check for gettimeofday.
72290         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72291         Check for settimeofday, stime.
72292
72293 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * lib/nanosleep.c (suspended): Change its type from int to
72296         sig_atomic_t volatile.
72297         (first_call): Make it private to rpl_nanosleep, and have it
72298         be zero initially as that's a bit faster.
72299         (my_usleep): Round up fractional times instead of truncating them,
72300         as this is the usual meaning for 'sleep'.
72301
72302         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72303         doesn't work.
72304         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72305         (ENOSYS): Define if not defined.
72306         (settime): Fall back on stime if it exists and settimeofday fails.
72307         But don't bother with fallbacks if a method fails with errno == EPERM.
72308
72309 2004-05-11  Jim Meyering  <jim@meyering.net>
72310
72311         Prior to this change, the save_cwd caller required read access to the
72312         current directory on most systems (ones with the fchdir function).
72313
72314         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72315         fails, try write-only, and finally, resort to using xgetcwd.
72316
72317 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * lib/obstack.c, obstack.h: Import changes from libc.
72320
72321 2004-04-28  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72324         also implicitly appends .exe to executables.
72325         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72326         accepts Windows pathnames.
72327         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72328         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72329         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72330         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72331         Reported by Derek Robert Price <derek@ximbiot.com>.
72332
72333 2004-04-21  Karl Berry  <karl@gnu.org>
72334
72335         * config/srclist.txt (localcharset.c): break sync.
72336
72337 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72338
72339         * m4/host-os.m4: Add a copyright notice.
72340
72341 2004-04-20  Jim Meyering  <jim@meyering.net>
72342
72343         Change UTILS_ to gl_ in AC_DEFINE'd names.
72344         Change utils_- and jm_-prefixed variables, too.
72345         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72346         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72348
72349         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72350         Don't emit trailing blanks.
72351         Also rename jm_-prefixed variables to have gl_ prefix.
72352
72353         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72354         Also rename jm_-prefixed variables to have gl_ prefix.
72355
72356         * m4/jm-macros.m4: Reflect the renamings.
72357         * m4/prereq.m4: Likewise.
72358
72359 2004-04-20  Jim Meyering  <jim@meyering.net>
72360
72361         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72362         memory.
72363
72364 2004-04-20  Jim Meyering  <jim@meyering.net>
72365             Bruno Haible  <bruno@clisp.org>
72366
72367         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72368         memory when realloc fails.
72369
72370 2004-04-19  Jim Meyering  <jim@meyering.net>
72371
72372         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72373         now that readutmp.c may call `free (0)'.
72374
72375 2004-04-19  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72378         * m4/inttypes_h.m4: Likewise.
72379         * m4/stdint_h.m4: Likewise.
72380         * m4/intmax_t.m4: Likewise.
72381         * m4/uintmax_t.m4: Likewise.
72382
72383 2004-04-18  Jim Meyering  <jim@meyering.net>
72384
72385         * m4/prereq.m4: Don't forbid jm_ prefix.
72386
72387         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72388         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72389         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72390         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72391         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72392         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72393         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72394         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72395         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72396         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72397         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72398         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72399         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72400         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72401         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72402         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72403         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72404         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72405         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72406
72407 2004-04-18  Jim Meyering  <jim@meyering.net>
72408
72409         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72410         failure, don't leak memory and do call END_UTMP_ENT.
72411
72412 2004-04-16  Jim Meyering  <jim@meyering.net>
72413
72414         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72415         coreutils' stat program.
72416         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72417
72418 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72419
72420         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72421         C89.
72422         (CHAR_BIT): Remove, since we assume C89.
72423         Include <stdint.h> if available, as per current Autoconf CVS advice.
72424
72425 2004-03-31  Jim Meyering  <jim@meyering.net>
72426
72427         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72428         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72429         * m4/xalloc.m4: Likewise.
72430
72431 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72432
72433         Merge from coreutils.
72434
72435         * m4/inttostr.m4: New file.
72436         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72437         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72438         Require gl_CLOCK_TIME.
72439         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72440
72441 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72442
72443         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72444         not bool, to be more consistent with Unix conventions.
72445         Suggested by Bruno Haible.
72446
72447         Merge from coreutils.
72448
72449         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72450         * lib/umaxtostr.c: New files.
72451
72452         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72453         the usual <time.h> dance.
72454         (get_date): Change signature to support fractional time stamps.
72455         All callers changed.
72456         * lib/getdate.y: Include "getdate.h" first, as we can now
72457         assume C89 and don't need to worry about 'const'.
72458         Similarly, include "unlocked-io.h" near start, not in middle.
72459         Include <limits.h>.
72460         (textint.value): Use long int rather than int.
72461         (textint.digits): Use size_t rather than int.
72462         (BILLION, LOG10_BILLION): New constants.
72463         (parser_control): New member rel_ns.  Members day_ordinal,
72464         time_zone, month, day, hour, minutes, rel_year, rel_month,
72465         rel_day, rel_hour, rel_minutes, rel_seconds
72466         are now long int, not int.  Member seconds is now struct timespec,
72467         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72468         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72469         not int.
72470         (%union.intval): Now long int, not int.
72471         New member timespec.
72472         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72473         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72474         (spec): Now is a timespec or an item list.
72475         (timespec, items): New nonterminals.
72476         (time, rel, relunit, number, get_date):
72477         Add support for fractional seconds.
72478         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72479         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72480         (to_hour): First arg is now long int, not int.
72481         (to_year): Returns long int, not int.
72482         Don't treat year -70 like 70.
72483         (tm_diff): Returns long int, not int.
72484         (lookup_word): Use bool instead of int when appropriate.
72485         (yylex): Use size_t for count, not int.
72486         Detect overflow when parsing large integer constants.
72487         Add support for fractions.
72488         (get_date): Make pointers 'const' if possible.
72489         Use more-portable code to detect integer overflow.
72490         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72491         Don't use ctime; it's not reliable if the year has >4 digits.
72492
72493         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72494         This is for compatibility with BSD.
72495
72496         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72497         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72498         From coreutils' system.h.
72499
72500         * lib/userspec.c: Don't include "posixver.h".
72501         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72502         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72503         compatible extension.  Simplify code by removing a boolean int
72504         that was always nonzero if a string was nonnull.
72505
72506 2004-03-30  Jim Meyering  <jim@meyering.net>
72507
72508         Merge from coreutils.
72509
72510         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72511         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72512         on some systems one must include <grp.h> before it.
72513         Reported by Christian Krackowizer.
72514
72515 2004-03-30  Jim Meyering  <jim@meyering.net>
72516
72517         Merge from coreutils.
72518
72519         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72520
72521         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72522         an empty input stream.
72523
72524         * lib/readtokens.c: Include <stdbool.h>.
72525         (readtoken): Use `size_t' rather than int/long.
72526         All callers adjusted.
72527         Use `bool' rather than `int' where appropriate.
72528         Use memset rather than an explicit loop.
72529         Use x2nrealloc rather than xrealloc.
72530         Allow the use of `\0' as a delimiter.
72531         (readtokens): Likewise.
72532         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72533
72534 2004-03-30  Jim Meyering  <jim@meyering.net>
72535
72536         * m4/realloc.m4: Remove file, since now it does no more than
72537         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72538         the `configure.ac' section of module/realloc.
72539         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72540
72541 2004-03-30  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72544         nonnull.
72545
72546 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72547
72548         Merge changes to getloadavg.c from coreutils and Emacs.
72549
72550         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72551         Define to an expression, not to the empty string.
72552         Include cloexec.h and xalloc.h.
72553         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72554         Use set_cloexec_flag rather than rolling our own.
72555         * lib/cloexec.c, lib/cloexec.h: New files.
72556
72557 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72558
72559         * m4/cloexec.m4: New file.
72560
72561 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72562
72563         * lib/getopt.h: Sync with libc CVS.
72564
72565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72566             Bruno Haible  <bruno@clisp.org>
72567
72568         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72569         mbswidth.
72570
72571 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72572             Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/mbswidth.h: Include <wchar.h> only if
72575         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72576         <wchar.h>.
72577         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72578
72579 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72580
72581         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72582         Sync with libc CVS.
72583         * lib/getopt_int.h: New file, also synced from libc.
72584
72585 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72586
72587         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72588         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72589         Bring back getopt.c, getopt.h, getopt1.c.
72590
72591 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72592
72593         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72594         All uses changed.  Check for sa_sigaction member; this fixes
72595         a bug first reported by Jason Andrade in
72596         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72597
72598 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72599
72600         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72601         '#if' expressions.  Unlike the code it replaces, it does not
72602         depend on (defined _SC_PAGESIZE).  However, it does depend on
72603         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72604         first reported by Jason Andrade in
72605         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72606
72607 2004-02-25  Simon Josefsson  <jas@extundo.com>
72608
72609         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72610
72611 2004-02-25  Simon Josefsson  <jas@extundo.com>
72612
72613         * lib/strdup.h: New file.
72614         * lib/strdup.c: Include it.
72615         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72616         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72617
72618 2004-02-23  Karl Berry  <karl@gnu.org>
72619
72620         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72621         (from fencepost.gnu.org:/gd/gnuorg).
72622
72623 2004-02-23  Karl Berry  <karl@gnu.org>
72624
72625         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72626         * config/srclist.txt: add maintain/standards documents.
72627
72628 2004-02-18  Bruno Haible  <bruno@clisp.org>
72629
72630         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72631         Reported by Derek Robert Price <derek@ximbiot.com>.
72632
72633 2004-02-16  Karl Berry  <karl@gnu.org>
72634
72635         * config/mkinstalldirs, install-sh: update from automake.
72636
72637 2004-02-06  Karl Berry  <karl@gnu.org>
72638
72639         * m4/po.m4: update from gettext 0.14.1.
72640
72641 2004-02-06  Karl Berry  <karl@gnu.org>
72642
72643         * lib/config.charset: update from gettext 0.14.1.
72644
72645 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72646
72647         Add comments and code, prompted by suggestions from Bruno Haible
72648         for sh-quote.
72649         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72650         describing the enum quoting_style values.
72651         * lib/quotearg.c (quotearg_alloc): New function.
72652         (quotearg_buffer_restyled): Treat lone { and } as special.
72653         Treat = as special.  Work around bug with older shells
72654         that "see" a '\' that is really the 2nd byte of a multibyte char.
72655         Quote empty string with shell_quoting_style.
72656
72657 2004-02-03  Bruno Haible  <bruno@clisp.org>
72658
72659         * m4/pipe.m4: New file, from GNU gettext.
72660
72661 2004-02-03  Bruno Haible  <bruno@clisp.org>
72662
72663         * lib/pipe.h: New file, from GNU gettext.
72664         * lib/pipe.c: New file, from GNU gettext.
72665
72666 2004-01-27  Bruno Haible  <bruno@clisp.org>
72667
72668         * m4/execute.m4: New file, from GNU gettext.
72669
72670 2004-01-27  Bruno Haible  <bruno@clisp.org>
72671
72672         * lib/execute.h: New file, from GNU gettext.
72673         * lib/execute.c: New file, from GNU gettext.
72674         * lib/w32spawn.h: New file, from GNU gettext.
72675
72676 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72677
72678         Merge from diffutils.
72679
72680         * lib/file-type.c (file_type): Add typed memory objects.
72681         * lib/file-type.h (S_TYPEISTMO): New macro.
72682
72683         * lib/c-stack.h (c_stack_action): Remove argv argument.
72684         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72685         (die): Don't calculate message unless segv_action returns.
72686         (get_stack_location, min_address_from_argv, max_address_from_argv,
72687         volatile stack_base, volatile_stack_size): Remove.
72688         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72689         that every segmentation violation is a stack overflow.  (Ouch!)
72690         See Debian bug 136249 (still outstanding) for more info about why
72691         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72692
72693 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72694
72695         Exit-status fix from coreutils.
72696
72697         Use exit_failure consistently in place of EXIT_FAILURE,
72698         so that program exit statuses are consistent on failure.
72699
72700         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72701         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72702         * lib/argmatch.h: Comment fix to match the above.
72703         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72704         Now a macro referring to exit_failure, instead of a separate
72705         variable.  Include "exitfail.h" to get it.
72706         * lib/xstrtol.h: Include "exitfail.h".
72707         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72708
72709         * lib/long-options.c (parse_long_options): Use prototype
72710         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72711         for clarity.
72712
72713 2004-01-21  Jim Meyering  <jim@meyering.net>
72714
72715         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72716         so as not to conflict with a different-sized __mktime_internal
72717         function in GNU libc.
72718         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72719         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72720
72721 2004-01-20  Karl Berry  <karl@gnu.org>
72722
72723         * config/config.guess: update from config.
72724
72725         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72726
72727 2004-01-20  Bruno Haible  <bruno@clisp.org>
72728
72729         Safer stack allocation.
72730         * lib/setenv.c: Include allocsa.h.
72731         (alloca): Remove fallback definition.
72732         (freea): Remove macro.
72733         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72734         instead of freea.
72735
72736 2004-01-20  Bruno Haible  <bruno@clisp.org>
72737
72738         * m4/eealloc.m4: New file, from GNU gettext.
72739
72740 2004-01-20  Bruno Haible  <bruno@clisp.org>
72741
72742         * m4/allocsa.m4: New file, from GNU gettext.
72743
72744 2004-01-20  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/xallocsa.h: New file, from GNU gettext.
72747         * lib/xallocsa.c: New file, from GNU gettext.
72748
72749 2004-01-20  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72752
72753 2004-01-20  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72756         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72757         specially.
72758
72759 2004-01-20  Bruno Haible  <bruno@clisp.org>
72760
72761         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72762         patch.
72763
72764 2004-01-20  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72767
72768 2004-01-20  Bruno Haible  <bruno@clisp.org>
72769
72770         * lib/eealloc.h: New file.
72771
72772 2004-01-20  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/binary-io.h: Avoid warnings on Cygwin.
72775
72776 2004-01-20  Bruno Haible  <bruno@clisp.org>
72777
72778         * lib/allocsa.h: New file, from GNU gettext.
72779         * lib/allocsa.c: New file, from GNU gettext.
72780
72781 2004-01-18  Karl Berry  <karl@gnu.org>
72782
72783         * doc/gpl.texi, doc/lgpl.texi: new files.
72784
72785 2004-01-18  Karl Berry  <karl@gnu.org>
72786
72787         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72788         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72789
72790 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72791
72792         Merge from coreutils.
72793
72794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72795         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72796         (gl_DEFAULT_POSIX2_VERSION): Move
72797         the documentation from 'configure' into 'config.hin',
72798         so that 'configure --help' isn't burdened by it and
72799         we don't have to worry about its formatting there.
72800         Reword the documentation so that it's more succinct
72801         and can be run together into a single paragraph.
72802         * m4/same.m4 (gl_SAME): Check for pathconf.
72803
72804 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72805
72806         Merge from coreutils.
72807
72808         * lib/posixver.c: Include posixver.h.
72809
72810         * lib/same.c: Include <stdbool.h>, <limits.h>.
72811         (_POSIX_NAME_MAX): Define if not defined.
72812         (MIN): New macro.
72813         (same_name): If file names are silently truncated, report
72814         that the file names are the same if they are the same after
72815         the silent truncation.
72816
72817         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72818         conversion function.
72819         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72820         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72821         longer needed.
72822
72823 2004-01-15  Jim Meyering  <jim@meyering.net>
72824
72825         Merge from coreutils.
72826
72827         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72828         if no library is required.
72829         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72830         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72831         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72832         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72833         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72834         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72835         value, $ac_cv_search_crypt, if it's "none required".
72836         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72837         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72838         not gl_FUNC_GETLOADAVG.
72839         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72840         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72841
72842 2004-01-15  Jim Meyering  <jim@meyering.net>
72843
72844         Merge from coreutils.
72845
72846         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72847         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72848         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72849
72850         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72851         optional configure-time default.
72852
72853         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72854
72855         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72856
72857 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72858
72859         Merge from coreutils.
72860
72861         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72862         value, $ac_cv_search_nanosleep, if it's "none required".
72863
72864 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72865
72866         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72867         with like-named macro in fnmatch.c.
72868         (EXT): Use an internal constant instead.
72869
72870         Merge fnmatch patches from glibc.
72871         * lib/fnmatch.c (mbsinit): Remove define.
72872         Add libc_hidden_ver (__fnmatch, fnmatch).
72873         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72874         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72875
72876 2004-01-14  Karl Berry  <karl@gnu.org>
72877
72878         * config/install-sh: update from automake.
72879
72880 2004-01-13  Karl Berry  <karl@gnu.org>
72881
72882         * config/install-sh: update from automake.
72883
72884 2004-01-09  Karl Berry  <karl@gnu.org>
72885
72886         * config/install-sh: update from automake.
72887
72888 2004-01-05  Karl Berry  <karl@gnu.org>
72889
72890         * config/config.{sub,guess}: update from config.
72891
72892 2003-12-31  Karl Berry  <karl@gnu.org>
72893
72894         * config/depcomp: update from automake.
72895
72896 2003-12-14  Karl Berry  <karl@gnu.org>
72897
72898         * lib/config.charset: update from gettext-runtime.
72899
72900 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72901
72902         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72903         Bug reported by Alfred M. Szmidt.
72904
72905 2003-12-03  Bruno Haible  <bruno@clisp.org>
72906
72907         * m4/gettext.m4: Upgrade from gettext-0.13.
72908         * m4/po.m4: Upgrade from gettext-0.13.
72909         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72910         * m4/intmax.m4: New file, from gettext-0.13.
72911         * m4/printf-posix.m4: New file, from gettext-0.13.
72912
72913 2003-11-29  Karl Berry  <karl@gnu.org>
72914
72915         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72916
72917 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72918             Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/printf-parse.h: Don't include sys/types.h.
72921         (ARG_NONE): New macro.
72922         (char_directive): Change type of *arg_index fields to size_t.
72923         * lib/printf-parse.c: Don't include sys/types.h.
72924         (SSIZE_MAX): Remove macro.
72925         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72926         Remove unnecessary overflow check.
72927         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72928         fields.
72929
72930 2003-11-25  Bruno Haible  <bruno@clisp.org>
72931
72932         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72933
72934 2003-11-25  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72937         gt_TYPE_SSIZE_T.
72938
72939 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72940
72941         * modules/alloca: Remove dependency on xalloc.
72942
72943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72944
72945         * lib/alloca.c: Remove dependency on xalloc module.
72946         (xalloc_die): Remove.
72947         (memory_full) [!defined emacs]: New macro.
72948         [!defined emacs]: Don't include xalloc.h.
72949         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72950         address arithmetic overflows.  Change datatypes a bit to avoid
72951         unnecessary casts.
72952
72953 2003-11-22  Jim Meyering  <jim@meyering.net>
72954
72955         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72956         s/size/size_t/.
72957
72958 2003-11-21  Karl Berry  <karl@gnu.org>
72959
72960         * config/config.{sub,guess}: update from config.
72961
72962 2003-11-18  Karl Berry  <karl@gnu.org>
72963
72964         * config/config.{sub,guess}: update from config.
72965
72966         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72967
72968 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72969
72970         * README: Mention that S+T cannot overflow if S is the size of
72971         an existing object and T is sufficiently small.
72972
72973 2003-11-17  Jim Meyering  <jim@meyering.net>
72974
72975         On systems without utime and without a utimes function capable of
72976         dealing with a NULL struct utimbuf* argument, this utime replacement
72977         could -- in unusual circumstances -- leak a file descriptor.
72978         * lib/utime.c: Include <unistd.h> and <errno.h>.
72979         (utime_null): Be sure to close `fd' and to preserve errno.
72980         Reported by Geoff Collyer via Arnold Robbins.
72981
72982 2003-11-17  Bruno Haible  <bruno@clisp.org>
72983
72984         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72985         (Depends-on): Add xsize.
72986
72987 2003-11-17  Bruno Haible  <bruno@clisp.org>
72988
72989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72990
72991 2003-11-17  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/vasnprintf.c (alloca): Remove fallback definition.
72994         (freea): Remove definition.
72995         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72996         Reported by Paul Eggert.
72997
72998 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72999             Bruno Haible  <bruno@clisp.org>
73000
73001         Protect against address arithmetic overflow.
73002         * lib/printf-args.h: Include stddef.h.
73003         (arguments): Change type of field 'count' to size_t.
73004         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73005         'unsigned int' where appropriate.
73006         * lib/printf-parse.h: Include sys/types.h.
73007         (char_directive): Change type of *arg_index fields to ssize_t.
73008         (char_directives): Change type of fields 'count', max_*_length to
73009         size_t.
73010         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73011         (SSIZE_MAX): Define fallback value.
73012         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73013         instead of 'int' where appropriate. Check a_allocated, d_allocated
73014         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73015         * lib/vasnprintf.c: Include xsize.h.
73016         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73017         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73018         overflow. Avoid wraparound when converting a width or precision from
73019         decimal to binary.
73020
73021 2003-11-16  Bruno Haible  <bruno@clisp.org>
73022
73023         Update from GNU gettext.
73024         * lib/printf-parse.c: Generalize to it can be compiled for wide
73025         strings.
73026         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73027         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73028         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73029         SNPRINTF): New macros.
73030         Don't include <alloca.h> if the file is used inside libintl.
73031         (local_wcslen): New function, for Solaris 2.5.1.
73032         (VASNPRINTF): Use it instead of wcslen.
73033
73034 2003-11-16  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/xsize.h (xmax): New function.
73037         (xsum, xsum3, xsum4): Declare as "pure" functions.
73038
73039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73040
73041         * modules/xalloc (Files): Undo latest change, since xalloc.h
73042         no longer needs SIZE_MAX or PTRDIFF_MAX.
73043
73044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73045
73046         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73047         gl_PTRDIFF_MAX.
73048
73049 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73050
73051         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73052         "return", to pacify some unknown compiler.  Problem reported
73053         by Joerg Schilling.
73054
73055 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73056
73057         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73058         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73059         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73060         heuristic is just as accurate as far as we know, and it removes a
73061         dependency on size_max.m4 and ptrdiff_max.m4.
73062
73063 2003-11-11  Bruno Haible  <bruno@clisp.org>
73064
73065         * modules/xsize (Files): Add m4/size_max.m4.
73066         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73067
73068 2003-11-11  Bruno Haible  <bruno@clisp.org>
73069
73070         * m4/size_max.m4: New file.
73071         * m4/ptrdiff_max.m4: New file.
73072         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73074         (gl_XALLOC): Invoke it.
73075
73076 2003-11-11  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73079         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73080         defined.
73081
73082 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73083
73084         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73085         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73086         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73087         From Bruno Haible.
73088         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73089         not (size_t) -1, since it's defined here.
73090
73091 2003-11-09  Karl Berry  <karl@gnu.org>
73092
73093         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73094
73095 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73096
73097         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73098         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73099         Reject sizes of exactly SIZE_MAX bytes.
73100         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73101         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73102
73103 2003-11-05  Bruno Haible  <bruno@clisp.org>
73104
73105         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73106         SIZE_MAX defined in <limits.h> on Solaris.
73107
73108 2003-11-04  Jim Meyering  <jim@meyering.net>
73109
73110         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73111         variable names, rather than @VAR@.
73112         * modules/poll: Likewise.
73113
73114 2003-11-04  Bruno Haible  <bruno@clisp.org>
73115
73116         * modules/xsize: New file.
73117         * modules/linebreak: Depend on xsize.
73118         * MODULES.html.sh (func_all_modules): Add xsize.
73119
73120 2003-11-04  Bruno Haible  <bruno@clisp.org>
73121
73122         * m4/xsize.m4: New file.
73123
73124 2003-11-04  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/xsize.h: New file.
73127         * lib/linebreak.c: Include xsize.h.
73128         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73129         argument for overflow.
73130         Suggested by Paul Eggert.
73131
73132 2003-11-03  Karl Berry  <karl@gnu.org>
73133
73134         * config/config.{guess,sub}: update from config.
73135
73136 2003-11-03  Jim Meyering  <jim@meyering.net>
73137
73138         * modules/userspec (lib_SOURCES): Add userspec.h.
73139         (Include): Add "userspec.h".
73140         Improve description.
73141
73142 2003-11-03  Jim Meyering  <jim@meyering.net>
73143
73144         * lib/userspec.c: Include "userspec.h".
73145         * lib/userspec.h: New file.
73146
73147 2003-11-03  Bruno Haible  <bruno@clisp.org>
73148
73149         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73150
73151 2003-11-03  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73154         available, to avoid (extremely rare) race condition.
73155         Suggested by Paul Eggert.
73156
73157 2003-11-02  Karl Berry  <karl@gnu.org>
73158
73159         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73160
73161 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73162
73163         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73164         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73165         (read_filesystem_list): Set and use me_type_malloced.
73166         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73167         whatever the type happens to be), for brevity and consistency.
73168         Check for size calculation overflow on Alphas running OSF/1.
73169
73170 2003-10-31  Jim Meyering  <jim@meyering.net>
73171
73172         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73173
73174         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73175
73176 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73177             Bruno Haible  <bruno@clisp.org>
73178
73179         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73180         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73181
73182 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73183
73184         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73185         netbsd*-gnu*.  Suggested by Robert Millan.
73186
73187 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73188
73189         * modules/group-member: Depend on stdbool.
73190
73191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73192
73193         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73194
73195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73196
73197         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73198         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73199         after the 'gnu' in these cases.  This fixes some bugs in the
73200         previous change, and is based on suggestions by Robert Millan.
73201
73202 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73203
73204         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73205         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73206         no longer needed.
73207         * lib/quotearg.c (quotearg_n_options): Use it.
73208         * lib/group-member.c: Include <stdbool.h>.
73209         (free_group_info): Arg is now const *; don't free arg.
73210         (get_group_info): Now returns bool and accepts struct group_info *,
73211         rather than returning a malloc'ed struct group_info *.
73212         All uses changed.  Check for overflow in internal size calculation.
73213
73214         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73215         rather than xmalloc/xrealloc.
73216         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73217         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73218         conformance bug: the old code used a pointer after freeing the
73219         storage that it addressed.
73220         * lib/hash.c (hash_initialize): Simplify the code by using
73221         xalloc_oversized rather than doing it by hand.
73222         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73223         the buffer preserved.  Use free and xmalloc instead.
73224         * lib/quotearg.c (quotearg_n_options): Likewise.
73225         Use a simpler test for size overflow.  Don't use xalloc_oversized
73226         because unsigned int might be wider than size_t (!); this suggests
73227         that we should switch from unsigned int to size_t for slot numbers.
73228
73229 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73230
73231         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73232         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73233         NetBSD kernels.  Requested by Richard Stallman.
73234
73235 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73236
73237         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73238         to allocate the returned structure.  Do not allocate a subarray,
73239         as x2nrealloc will do that.
73240         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73241         instead of xnrealloc.
73242         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73243
73244 2003-10-27  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/stdbool_.h: Better support for BeOS.
73247
73248 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73249
73250         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73251         now uses inline.
73252
73253 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73254
73255         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73256         callers that want to do their own size-overflow checking.  Include
73257         <stdbool.h>, since xalloc_oversized returns bool.
73258         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73259         to use xalloc_oversized.
73260
73261         Add two functions x2realloc, x2nrealloc, for programs that grow
73262         arrays dynamically by doubling their sizes.
73263         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73264         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73265         New functions.
73266
73267         Port to C99 semantics for 'inline' of external functions.
73268         Bug reported by Bruno Haible.
73269         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73270         with the old contents of xnmalloc.
73271         (xnmalloc, xmalloc): Use it.
73272         (xnrealloc_inline): New static inline function,
73273         with the old contents of xnrealloc.
73274         (xnrealloc, xrealloc): Use it.
73275
73276         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73277         that.
73278
73279 2003-10-26  Karl Berry  <karl@gnu.org>
73280
73281         * config/srclist.txt (COPYING.DOC): no longer available from
73282         /gd/gnuorg; don't know where the ultimate source is.
73283
73284 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73285
73286         Fix several address-calculation bugs in the hash modules,
73287         plus some minor code cleanup.
73288
73289         * lib/hash.h: Include <stdbool.h>, for bool.
73290         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73291         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73292         hash_get_n_entries, hash_get_max_bucket_length,
73293         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73294         hash_rehash): Use size_t rather than unsigned.
73295         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73296         hash_get_n_buckets_used, hash_get_n_entries,
73297         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73298         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73299         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73300         Likewise.
73301         (SIZE_MAX): Define if not defined.
73302         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73303         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73304         hash_print):
73305         Use const * when possible.
73306         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73307         (check_tuning): Fix bug: if tuning parameters were very close to
73308         0 or 1, rounding errors could have caused subscript violations.
73309         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73310         (hash_initialize): Add 'fail:' label
73311         to free table and return NULL, and use it to simplify code.
73312         Use calloc rather than clearing the storage ourself.
73313         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73314         buffer size calculations.
73315         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73316         Include <stddef.h>, for size_t.
73317         * lib/hash-pjw.c (hash_pjw): Likewise.
73318         Switch to method described by Bruno Haible.
73319         Include <limits.h>, for CHAR_BIT.
73320         (SIZE_BITS): New macro.
73321
73322 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73323
73324         * m4/getline.m4 (AM_FUNC_GETLINE):
73325         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73326         hosts.  Problem reported by Derek Robert Price in
73327         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73328         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73329         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73330
73331 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73332
73333         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73334         ceiling the allocation at NMAX bytes rather than silently
73335         discarding input bytes before NMAX is reached.  This makes
73336         a difference only if NMAX exceeds SIZE_MAX / 2.
73337
73338         * lib/obstack.c: Merge from glibc.
73339         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73340         Add libc_hidden_def (_obstack_newchunk).
73341         (_obstack_free) [! defined _LIBC]: Remove.
73342         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73343         a clone of the function body.
73344         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73345         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73346
73347         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73348         glibc.
73349         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73350         arg to memcpy.
73351
73352         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73353         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73354         Don't use lvalue casts, as GCC plans to remove support for them
73355         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73356         was also present in the non-GCC version, indicating that this
73357         code had always been buggy and had never been widely used.
73358         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73359         Use the fast variant of each macro, rather than copying the
73360         definiens of the fast variant; that way, we'll be more likely to
73361         catch future bugs in the fast variants.
73362
73363 2003-10-20  Bruno Haible  <bruno@clisp.org>
73364
73365         * modules/wait-process: New file.
73366         * MODULES.html.sh (func_all_modules): Add wait-process.
73367
73368 2003-10-20  Bruno Haible  <bruno@clisp.org>
73369
73370         * m4/wait-process.m4: New file.
73371
73372 2003-10-20  Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/wait-process.h: New file, from GNU gettext.
73375         * lib/wait-process.c: New file, from GNU gettext.
73376
73377 2003-10-19  Jim Meyering  <jim@meyering.net>
73378
73379         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73380         HPUX 10.20.
73381
73382 2003-10-18  Karl Berry  <karl@gnu.org>
73383
73384         * config/config.guess: update from config.
73385
73386 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73387
73388         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73389         (getgroups): First arg is int, not size_t.
73390         Don't let 'free' mangle errno.
73391
73392 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73393
73394         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73395
73396 2003-10-16  Karl Berry  <karl@gnu.org>
73397
73398         * config/config.{guess,sub}: update from config.
73399
73400 2003-10-16  Jim Meyering  <jim@meyering.net>
73401
73402         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73403         memcpy.
73404
73405 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73406
73407         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73408         (SIZE_MAX): Remove.
73409         (new_exclude, add_exclude_file): Initial size no longer needs to
73410         be a power of 2.
73411         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73412         our own address arithmetic overflow checking.
73413
73414         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73415         (fnmatch): Do not alloca more than 2000 wide characters;
73416         instead, use malloc for large buffers.
73417         Check for address arithmetic overflow, and return -1
73418         with errno set to ENOMEM in that case.
73419         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73420         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73421         instead, return -1.  Check for address arithmetic overflow.
73422
73423 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73424
73425         Handle invalid suffixes and overflow independently, so that
73426         callers can treat them independently as needed.  Fix some bugs in
73427         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73428         suffix for a human-readable blocksize.  The major caller-visible
73429         change is the addition of a new
73430         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73431         that both overflow and suffix chars were found.
73432
73433         * lib/human.c (humblock): Don't check separately for invalid suffix
73434         char; that is xstrtoumax's job (now that its bug is fixed).
73435         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73436         INTMAX_MAX]: New macros.
73437         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73438         TYPE_MAXIMUM): New macros.
73439         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73440         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73441         if overflow occurs, as it's what __strtol does and it's more useful
73442         in practice.
73443         (__xstrtol): If __strtol reports some error other than ERANGE,
73444         reflect it to the caller as LONGINT_INVALID.  If it reports
73445         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73446         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73447         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73448         value.
73449         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73450         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73451         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73452         [defined UINTMAX_MAX]: New macros.
73453
73454 2003-10-14  Bruno Haible  <bruno@clisp.org>
73455
73456         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73457
73458 2003-10-14  Bruno Haible  <bruno@clisp.org>
73459
73460         * m4/sig_atomic_t: New file, from GNU gettext.
73461         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73462
73463 2003-10-14  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73466         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73467         Also use volatile where needed.
73468
73469 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73470
73471         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73472         Change maintainer from Bruno Haible to 'all'.
73473
73474 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73475
73476         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73477
73478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73479
73480         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73481         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73482         and define in terms of the other primitives.
73483         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73484         (SIZE_MAX): Define if not already defined.
73485         (array_size_overflow): New function.
73486         (xalloc_die): Abort instead of exiting if 'error' returns.
73487         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73488         (xmalloc, xrealloc): Use them.
73489         (xcalloc): Check for address arithmetic overflow.
73490         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73491         a bit faster than strcpy.
73492
73493 2003-10-10  Simon Josefsson  <jas@extundo.com>
73494
73495         * modules/argp (Depends-on): Add restrict and strcase.
73496
73497 2003-10-10  Simon Josefsson  <jas@extundo.com>
73498
73499         * m4/argp.m4: Add AC_C_INLINE.
73500
73501 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73502
73503         Merge getpass from libc, plus a few fixes.
73504
73505         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73506         Include <stdbool.h>.
73507         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73508         __fsetlocking to empty.
73509         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73510         do include <bits/libc-lock.h>.
73511         Do not include <fcntl.h>; not needed.
73512         [_LIBC]: Include <wchar.h>.
73513         (NOTCANCEL_MODE): New macro.
73514         (flockfile, funlockfile) [_LIBC]: New macros.
73515         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73516         [!_LIBC]: New macros.
73517         (call_fclose): New function.
73518         (getpass): Use it.  Save tty stream separately; this simplifies the
73519         code and makes it more reliable if stdin happens to equal stdout.
73520         Invoke __fsetlocking on tty.
73521         Handle thread cancellation if needed.
73522         Namespace cleanup (use __tcgetattr, __getline).
73523         Use bool for Booleans.
73524         [USE_IN_LIBIO]: Handle wide streams.
73525         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73526         stream might go where.
73527
73528         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73529         doesn't have to include <stdio.h> before us.
73530         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73531         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73532         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73533         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73534         if not declared, so that we can use getpass.c code from libc without
73535         rewriting it.
73536         (flockfile, ftrylockfile, funlockfile): New macros.
73537
73538 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73539
73540         * modules/getpass: Depend on stdbool.
73541
73542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73543
73544         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73545
73546 2003-10-07  Karl Berry  <karl@gnu.org>
73547
73548         * config/config.{guess,sub}: update from config.
73549
73550 2003-10-06  Jim Meyering  <jim@meyering.net>
73551             Bruno Haible  <bruno@clisp.org>
73552
73553         This lets translators provide better translations for the
73554         "Written by ..." part of --version output.
73555         * lib/version-etc.h: Include stdarg.h.
73556         (version_etc_copyright): Declare as readonly.
73557         (version_etc): Make this function variadic with a NULL-terminated list
73558         of author name strings.
73559         (version_etc_va): New declaration.
73560         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73561         (version_etc_copyright): Declare as readonly.
73562         (version_etc_va): New function. Provide a different translatable string
73563         for each possible number of authors < 10. Abbreviate when there are 10
73564         authors or more.
73565         (version_etc): Make this function variadic. Call version_etc_va.
73566         Suggestion from Gary V. Vaughan.
73567
73568         * lib/long-options.h (parse_long_options): Change prototype: the
73569         authors string is moved to the end and becomes variadic.
73570         * lib/long-options.c: Include stdarg.h.
73571         (parse_long_options): Make this function variadic, too.
73572         Call version_etc_va, not version_etc.
73573
73574 2003-10-06  Bruno Haible  <bruno@clisp.org>
73575
73576         * modules/version-etc-2: Remove file.
73577         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73578
73579 2003-10-06  Bruno Haible  <bruno@clisp.org>
73580
73581         * modules/fatal-signal: New file.
73582         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73583
73584 2003-10-06  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/fatal-signal.m4: New file.
73587         * m4/signalblocking.m4: New file, from GNU gettext.
73588
73589 2003-10-06  Bruno Haible  <bruno@clisp.org>
73590
73591         * lib/version-etc-2.h: Remove file.
73592         * lib/version-etc-2.c: Remove file.
73593
73594 2003-10-06  Bruno Haible  <bruno@clisp.org>
73595
73596         * lib/fatal-signal.h: New file, from GNU gettext.
73597         * lib/fatal-signal.c: New file, from GNU gettext.
73598
73599 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73600
73601         * README: Rework advice for preventing empty .o files.
73602         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73603         not <sys/types.h>.
73604
73605 2003-10-04  Karl Berry  <karl@gnu.org>
73606
73607         * lib/argp*: update from libc.
73608
73609 2003-10-04  Karl Berry  <karl@gnu.org>
73610
73611         * config/config.{guess,sub}: update from config.
73612
73613 2003-10-02  Bruno Haible  <bruno@clisp.org>
73614
73615         * modules/lchown (Include): Add lchown.h.
73616         * modules/time_r (Include): Use "..." syntax.
73617         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73618
73619 2003-10-01  Simon Josefsson  <jas@extundo.com>
73620
73621         * MODULES.html.sh (func_all_modules): Move gethostname from section
73622         'based on' to section 'lacking' POSIX:2001.
73623
73624 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73625
73626         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73627         to output mode on the same stream.
73628
73629 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73630
73631         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73632         Fix arg typo in previous patch.
73633
73634 2003-09-28  Jim Meyering  <jim@meyering.net>
73635
73636         * lib/error.c: Correct cpp indentation.
73637
73638 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73639
73640         * modules/free: New file.
73641
73642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73643
73644         * m4/free.m4: New file.
73645
73646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73647
73648         * lib/minmax.h (MIN, MAX)
73649         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73650         Omit the special code that used __typeof__, since we worry that
73651         it could be more trouble than it's worth.  See:
73652         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73653         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73654
73655         * lib/free.c: New file.
73656
73657 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73658
73659         Trivial fixes to Makefile.am parts of module listings.
73660         * modules/strstr: Append strstr.h to lib_SOURCES.
73661         * modules/strcase: Likewise, for strcase.h.
73662
73663 2003-09-27  Karl Berry  <karl@gnu.org>
73664
73665         * config/mkinstalldirs: update from automake.
73666
73667 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73668
73669         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73670         (error_tail): Do not loop, reallocating temporary buffer, since
73671         the output cannot contain more wide characters than the input
73672         contains bytes, the size must be big enough already.  This avoids
73673         one potential size overflow calculation.  Check for size overflow
73674         when calculating temporary buffer size.  Free temporary buffer
73675         when done, if it was allocated with malloc; this plugs a memory
73676         leak.  Remove casts from void * to pointers, that are no longer
73677         needed now that we're assuming C89 or better.
73678
73679         Merge error changes from glibc.
73680
73681         * lib/error.c, error.h: Update copyright notice header to match glibc.
73682         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73683         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73684         Disable cancellation while printing error.
73685         * lib/error.h: Prepend __ to parameter names.
73686
73687 2003-09-26  Jim Meyering  <jim@meyering.net>
73688
73689         * lib/error.c (error_tail): Move some declarations
73690         into inner scope where the local variables are used.
73691
73692 2003-09-26  Bruno Haible  <bruno@clisp.org>
73693
73694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73695         stpncpy().
73696         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73697
73698 2003-09-26  Bruno Haible  <bruno@clisp.org>
73699
73700         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73701         (stpncpy): Define as alias for gnu_stpncpy.
73702         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73703
73704 2003-09-25  Simon Josefsson  <jas@extundo.com>
73705
73706         * lib/xgetdomainname.h: New file.
73707         * lib/xgetdomainname.c: New file.
73708
73709 2003-09-25  Simon Josefsson  <jas@extundo.com>
73710             Bruno Haible  <bruno@clisp.org>
73711
73712         * modules/getdomainname: New file.
73713         * modules/xgetdomainname: New file.
73714         * MODULES.html.sh (func_all_modules): Add getdomainname,
73715         xgetdomainname.
73716
73717 2003-09-25  Simon Josefsson  <jas@extundo.com>
73718             Bruno Haible  <bruno@clisp.org>
73719
73720         * m4/getdomainname.m4: New file.
73721
73722 2003-09-25  Simon Josefsson  <jas@extundo.com>
73723             Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/getdomainname.h: New file.
73726         * lib/getdomainname.c: New file.
73727
73728 2003-09-25  Karl Berry  <karl@gnu.org>
73729
73730         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73731
73732 2003-09-25  Karl Berry  <karl@gnu.org>
73733
73734         * config/install-sh: update from automake.
73735
73736 2003-09-25  Bruno Haible  <bruno@clisp.org>
73737
73738         * modules/version-etc-2: New file, from modules/version-etc with
73739         modifications.
73740         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73741
73742 2003-09-25  Bruno Haible  <bruno@clisp.org>
73743
73744         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73745         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73746
73747 2003-09-24  Simon Josefsson  <jas@extundo.com>
73748
73749         * modules/xgethostname: Add xgethostname.h.
73750
73751 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73752
73753         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73754         the buffer associated with the argument.  Bug reported by
73755         Simon Josefsson.
73756
73757 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73758
73759         * README: Document assumptions that 'int' is at least 32 bits
73760         wide, that integer arithmetic is 2's complement without overflow,
73761         that there are no holes in integer values, that adding sizes of
73762         two nonoverlapping objects can't overflow, and that all-bits-zero
73763         yields scalar zero.  Fix spelling and capitalization typos.
73764
73765 2003-09-19  Karl Berry  <karl@gnu.org>
73766
73767         * lib/argp.h: update from libc.
73768
73769 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73770
73771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73772         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73773         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73774
73775 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73776
73777         * gnulib-tool: Use "test -h", not "test -L", for portability
73778         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73779         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73780         (sed_extract_prog): Issue s commands one-by-one, rather than
73781         using \| in one s command.
73782
73783 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73784
73785         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73786         input error, instead of returning NULL the next time we are called
73787         (and therefore losing track of errno).
73788
73789 2003-09-16  Bruno Haible  <bruno@clisp.org>
73790
73791         * gnulib-tool (func_create_testdir): Warn about duplicated
73792         dependencies.
73793
73794 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73795
73796         * modules/argmatch, modules/fatal, modules/obstack,
73797         modules/xalloc, modules/xgethostname: Sort dependencies by
73798         importance, not alphabetically.
73799
73800 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73801
73802         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73803         fails, so that the caller gets the proper errno.
73804
73805         * lib/readutmp.c (read_utmp): Likewise.
73806         Check for fstat error.  Close stream and free storage
73807         when failing.
73808
73809 2003-09-14  Karl Berry  <karl@gnu.org>
73810
73811         * config/srclist.txt (strdup.c): disable for c89 changes.
73812
73813 2003-09-14  Jim Meyering  <jim@meyering.net>
73814
73815         * lib/getloadavg.c: Correct cpp indentation.
73816         * lib/strdup.c: Likewise.
73817         * lib/vasnprintf.c: Likewise.
73818
73819 2003-09-14  Bruno Haible  <bruno@clisp.org>
73820
73821         * modules/fwriteerror: New file.
73822         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73823
73824 2003-09-14  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/fwriteerror.h: New file.
73827         * lib/fwriteerror.c: New file.
73828
73829 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73830
73831         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73832         modules/xgethostname, modules/xalloc: Depend on exit.
73833
73834 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73835
73836         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73837
73838         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73839         and AC_MINIX, too, so that their extensions are available.
73840
73841         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73842         This macro has been superseded by gl_BACKUPFILE.
73843
73844         More patches to assume C89 or better.
73845
73846         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73847
73848         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73849         unconditionally.
73850         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73851         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73852         Include <string.h>, <stdlib.h> unconditionally.
73853         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73854         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73855         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73856         headers or for string.h.
73857         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73858         or strtoul.
73859
73860         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73861         headers.
73862         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73863         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73864         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73865         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73866         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73867         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73868         memcpy, memset.
73869         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73870         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73871         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73872         strtol.
73873         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73874         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73876         strtoul.
73877
73878 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73879
73880         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73881         * lib/obstack.c [!defined _LIBC]: Likewise.
73882         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73883         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73884         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73885
73886         More changes to assume C89 or better.
73887
73888         * lib/error.c (error_tail): Assume vprintf.
73889
73890         * lib/argmatch.c (getenv): Remove decl.
73891         * lib/progreloc.c (get_full_program_name): Define via prototype.
73892         * lib/setenv.c (clearenv): Likewise.
73893         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73894         needed.
73895         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73896         (malloc, memcpy): Remove decls.
73897         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73898         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73899         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73900         (memcpy): Remove macro.
73901         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73902         (__P): Remove.  All uses removed.
73903         (PTR): Remove.  All uses changed to void *.
73904         (CHAR_BIT, NULL): Remove.
73905         (spaces, zeros, memset_space, memset_zero)
73906         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73907         Remove.
73908         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73909         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73910         Define with prototype.
73911         Remove now-unnecessary prototype decl.
73912         (extra_args_spec): Assume ANSI C.  All uses changed.
73913         (extra_args_spec_iso): Remove.
73914         (my_strftime, emacs_strftimeu): Define via prototype.
73915         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73916         unconditionally.
73917         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73918         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73919         (strtoul, strtol): Remove decls.
73920         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73921         LONG_MAX): Remove.
73922         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73923         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73924         (LOCALE_PARAM_PROTO): New macro.
73925         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73926         (INTERNAL (strtol), strtol): Define with a prototype.
73927         (PARAMS): Remove.  All uses removed.
73928         * lib/tempname.c: Include <string.h> unconditionally.
73929         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73930         * lib/xgethostname.c (main): Define with a prototype.
73931         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73932         Include <stdlib.h> unconditionally.
73933         (calloc, malloc, realloc, free): Remove decls.
73934         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73935         Include <stdlib.h> unconditionally.  Sort include file names.
73936         (strtod): Remove.
73937         (xstrtod): Define with a prototype.
73938         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73939         (strtol, strtoul): Remove decls.
73940
73941 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73942
73943         More patches to assume C89 or better.
73944         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73945         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73946         string.h, memchr, STDC_HEADERS.
73947
73948 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73949
73950         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73951         Include <stdlib.h>, <string.h> unconditionally.
73952         Remove now-unnecessary cast to char *.
73953         * lib/strnlen.c: Include <string.h> unconditionally.
73954         * lib/yesno.c (yesno): Define with a prototype.
73955
73956 2003-09-11  Bruno Haible  <bruno@clisp.org>
73957
73958         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73959
73960 2003-09-10  Jim Meyering  <jim@meyering.net>
73961
73962         * lib/error.c: Correct indentation of cpp directives.
73963
73964 2003-09-10  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73967         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73968         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73969         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73970         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73971         <stdlib.h> and <string.h> checks.
73972         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73973         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73974
73975 2003-09-10  Bruno Haible  <bruno@clisp.org>
73976
73977         * lib/strcspn.c: Include <string.h> unconditionally.
73978         * lib/strpbrk.c: Include <string.h> unconditionally.
73979         * lib/strstr.c: Include <string.h> unconditionally.
73980         * lib/unicodeio.c: Include <string.h> unconditionally.
73981         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73982         * lib/unsetenv.c: Likewise.
73983         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73984         * lib/yesno.c: Include <stdlib.h> unconditionally.
73985         (rpmatch): Add prototype.
73986
73987 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73988
73989         More patches to assume C89 or better.
73990         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73991         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73992         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73993         or for string.h.
73994         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73995         stdlib.h.
73996         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73997         C headers.
73998         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73999         string.h.
74000         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74001         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74002         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74003         or for string.h.
74004         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74005         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74006         C headers.
74007         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74008         memcpy.
74009         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74010         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74011         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74012         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74013         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74014         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74015         string.h, free.
74016         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74017         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74018         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74019         C headers, or for string.h.
74020         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74021         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74022         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74023         headers, memory.h, stdlib.h, string.h, strings.h.
74024         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74025         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74026         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74027         strchr.
74028         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74029         headers, memory.h, string.h.
74030         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74031         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74032         free.
74033         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74034         headers.
74035         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74036         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74037         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74038         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74039         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74040
74041 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74042
74043         More K&R removal.
74044
74045         * lib/acosl.c (main): Use a prototype.
74046         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74047         tanl.c: Likewise.
74048
74049         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74050
74051         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74052         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74053         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74054         with a prototype.
74055         * lib/getopt.c (const): Remove macro.
74056         Include <string.h> unconditionally.
74057         (my_index): Remove; all uses changed to strchr.
74058         (strlen): Remove decl.
74059         (exchange): Remove forward decl; no longer needed.
74060         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74061         Define with prototype.
74062         * lib/getopt1.c (const): Remove macro.
74063         (getopt_long, getopt_long_only, main): Define with prototype.
74064
74065         * lib/getugroups.c: Include <string.h> unconditionally.
74066
74067         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74068         (getusershell, setusershell, endusershell, readname, main):
74069         Define with prototypes.
74070
74071         * lib/group-member.c: Include group-member.h first.
74072         Include <stdlib.h> unconditionally.
74073
74074         * lib/hard-locale.c: Include hard-locale.h first.
74075         Include <stdlib.h>, <string.h> unconditionally.
74076
74077         * lib/hash.c (free, malloc): Remove decls.
74078         Include <stdlib.h> unconditionally.
74079
74080         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74081         (getenv): Do not declare.
74082
74083         * lib/idcache.c: Include <string.h> unconditionally.
74084
74085         * lib/long-options.c: Include long-options.h first, to test interface.
74086         Include <stdlib.h> unconditionally.
74087
74088         * lib/makepath.c: Include makepath.h first, to test interface.
74089         Include <stdlib.h> and <string.h> unconditionally.
74090
74091         * lib/linebuffer.c: Include <stdlib.h>.
74092         (free): Remove decl.
74093
74094         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74095         stddef.h. rpl_malloc returns void *, not char *.
74096         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74097         prototype.
74098
74099         * lib/md5.h: Include <limits.h> unconditionally.
74100         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74101         (__P): Remove; all uses removed.
74102         * lib/md5.c: Include "md5.h" first.
74103         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74104         md5_buffer, md5_process_bytes, md5_process_block):
74105         Define with prototypes.
74106         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74107         * lib/sha.c: Include "sha.h" first.
74108         Include <stdlib.h>, <string.h> unconditionally.
74109
74110         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74111         * lib/memcmp.c (__ptr_t): Likewise.
74112         * lib/memrchr.c (__ptr_t): Likewise.
74113         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74114         Include <string.h> unconditionally.
74115         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74116         * lib/memchr.c: Include <stdlib.h> unconditionally.
74117         * lib/memchr.c (LONG_MAX): Remove.
74118         * lib/memrchr.c (LONG_MAX): Likewise.
74119         * lib/memchr.c (__memchr): Define via a prototype.
74120         * lib/memrchr.c (__memrchr): Likewise.
74121         * lib/memcmp.c (__P): Remove, and remove all uses.
74122         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74123         Remove forward decls; no longer needed.
74124         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74125         Use types required by C89 in prototype.
74126
74127         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74128         * lib/savedir.c: Likewise.
74129         * lib/mkdir.c (free): Remove decl.
74130         * lib/rmdir.c (rmdir): Define with a prototype.
74131         * lib/savedir.c: Include savedir.h first, to test interface.
74132
74133         * lib/mktime.c (STDC_HEADERS): Remove.
74134         Include <stdlib.h>, <string.h> unconditionally.
74135
74136         * lib/modechange.c: Include <stdlib.h> unconditionally.
74137         (malloc): Remove decl.
74138
74139         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74140         (free): Remove decl.
74141
74142         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74143         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74144         (This type really should be intptr_t, but that's a C99ism.)
74145         (_obstack_memcpy): Remove: all uses changed to memcpy.
74146         Include <string.h> unconditionally.
74147         (struct obstack): Assume __STDC__ for types of members
74148         chunkfun, freefun, extra_arg.
74149         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74150         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74151         obstack_begin, obstack_specify_allocation,
74152         obstack_specify_allocation_with_arg, obstack_chunkfun,
74153         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74154         Remove unprototyped decls and the macros that use them.
74155         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74156         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74157         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74158         (defined __STDC__ && __STDC__)]:
74159         Remove nonprototyped code.
74160         Include <stdlib.h> unconditionally.
74161         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74162         _obstack_allocated_p, _obstack_free, obstack_free,
74163         _obstack_memory_used, print_and_abort):
74164         Define using prototypes.
74165         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74166         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74167         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74168         obstack_next_free, obstack_object_size, obstack_room) [0]:
74169         Remove unused, unprototyped code.
74170
74171         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74172
74173         * lib/physmem.c (physmem_total, physmem_available, main): Define
74174         with prototypes.
74175
74176         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74177         (main): Define with a prototype.
74178
74179         * lib/posixver.c (getenv): Remove decl.
74180
74181         * lib/putenv.c (malloc): Returns void *, not char *.
74182         Include <string.h> unconditionally.
74183         (strchr, memcpy, NULL): Do not define.
74184
74185         * lib/readtokens.c: Include readtokens.h first, to test interface.
74186         Include <stdlib.h>, <string.h> unconditionally.
74187         (init_tokenbuffer): Define with a prototype.
74188
74189         * lib/regex.c (PARAMS): Remove.  All uses removed.
74190         All uses of _RE_ARGS removed, too.
74191         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74192         unconditionally.
74193         (bzero): Assume memset exists.
74194         (memcmp, memcpy, NULL): Remove.
74195         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74196         char, or assignments to local vars of type signed char.
74197         (init_syntax_once, PREFIX(extract_number_and_incr),
74198         PREFIX(print_partial_compiled_pattern),
74199         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74200         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74201         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74202         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74203         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74204         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74205         wcs_compile_range, byte_compile_range, truncate_wchar,
74206         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74207         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74208         count_mbs_length, wcs_re_match_2_internal,
74209         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74210         PREFIX(alt_match_null_string_p),
74211         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74212         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74213         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74214         now-unnecessary declaration, if any.
74215         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74216         regcomp, regexec):
74217         Remove now-unnecessary casts among pointer types.
74218         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74219
74220         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74221         (free): Remove decl.
74222
74223         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74224
74225         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74226         (free): Remove decl.
74227
74228         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74229         * lib/xgetcwd.c: Likewise.
74230
74231         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74232         (free): Remove decl.
74233
74234         * lib/strchrnul.c (strchrnul): Define with a prototype.
74235         Fix bug: c_in was not converted to char before searching.
74236
74237         The following changes are not K&R related:
74238
74239         * lib/group-member.h: Include <sys/types.h>, so that this file is
74240         self-contained.
74241         * lib/makepath.h: Likewise.
74242
74243         * lib/getusershell.c (readname, default_index, line_size, readname):
74244         Use size_t, not int, for sizes.
74245         (readname): If the size overflows, report an error instead of
74246         looping forever.
74247
74248 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74249
74250         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74251         libc.
74252
74253 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74254
74255         * README: New section: portability guidelines.
74256
74257 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74258
74259         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74260         C89 spec.
74261
74262 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74263
74264         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74265
74266 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74267
74268         Assume C89 or better; remove K&R cruft.
74269         A few of these changes were first proposed by Derek Robert Price
74270         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74271
74272         * lib/addext.c: Include <string.h> unconditionally.
74273         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74274         Don't declare getenv or malloc.
74275
74276         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74277         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74278         (NULL): Remove.
74279         (find_stack_direction, alloca): Use prototypes.
74280
74281         * lib/atexit.c (atexit): Define using a prototype.
74282
74283         * lib/basename.c, dirname.c, stripslash.c:
74284         Include <string.h> unconditionally.
74285
74286         * lib/bcopy.c: Include <stddef.h>.
74287         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74288
74289         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74290
74291         * lib/error.h (error, error_at_line, error_print_progname)
74292         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74293         * lib/error.c: Include error.h first, to check interface.
74294         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74295         (VA_START): Remove; all uses changeed to va_start.
74296         (exit, strerror): Remove decls.
74297         (error_print_progname): Prototype uncondionally.
74298         Don't include <errno.h>; no longer needed.
74299         (private_strerror): Remove.
74300         (error_tail): Always define.
74301         (error, error_at_line): Assume C89 or better; always use prototypes.
74302         * lib/fatal.c: Include "fatal.h" first, to test interface.
74303         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74304         (VA_START): Remove; all uses changed to va_start.
74305         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74306         this case.
74307         (exit): Remove decl.
74308         (fatal): Prototype unconditionally.  Assume va_start works.
74309         Abort at end, to pacify gcc.
74310
74311         * lib/euidaccess.c (main): Define with a prototype.
74312
74313         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74314
74315         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74316
74317         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74318         prototypes.
74319         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74320         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74321         (getenv): Remove decl.
74322         (fnmatch): Define using a prototype.
74323         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74324         (FCT): Define using a prototype.
74325
74326         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74327
74328         * lib/gethostname.c: Include <stddef.h>.
74329         (gethostname): Define with prototype.  Length is size_t, not int.
74330
74331 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74332
74333         Assume C89 or better; remove K&R cruft.
74334         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74335         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74336         string.h, getenv, malloc.
74337         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74338         headers.
74339         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74340         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74341         do not check for strerror.
74342         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74343         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74344         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74345         do not check for doprnt or vprintf.
74346         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74347         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74348
74349 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74350
74351         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74352         getversion.c should have been removed then, but was accidentally
74353         preserved.
74354
74355         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74356         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74357
74358 2003-09-08  Karl Berry  <karl@gnu.org>
74359
74360         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74361                 config, forget about prep.
74362
74363         * config/depcomp, missing: update from automake.
74364
74365 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74366
74367         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74369
74370 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74371
74372         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74373         copy_tm_result.  Bug reported by Simon Josefsson in
74374         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74375
74376 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74377
74378         * m4/time_r.m4: New file.
74379         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74380         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74381         is. Check for timegm declaration.
74382         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74383         Do not check for gmtime_r.
74384         Replace mktime if __mktime_internal does not exist and if mktime
74385         hasn't been replaced already.
74386
74387 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74388
74389         * lib/time_r.c, lib/time_r.h: New files.
74390
74391         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74392         __localtime_r.
74393         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74394         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74395
74396         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74397         __gmtime_r.
74398         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74399         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74400         Include <time_r.h>.
74401
74402         * lib/timegm.c: Switch to glibc implementation, with the following
74403         changes:
74404         [defined HAVE_CONFIG_H]: Include <config.h>.
74405         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74406         (__mktime_internal) [!defined _LIBC]: New decl.
74407         (__gmtime_r) [!defined _LIBC]: New macro and function.
74408         (timegm): Use a prototype, since gnulib assumes C89.
74409         Do not bother declaring tmp to be const, as it's not really usefu.
74410         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74411         (timegm): Declare only if HAVE_DECL_TIMEGM.
74412
74413 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74414
74415         * MODULES.html.sh (func_all_modules): Add time_r.
74416         * modules/time_r: New file.
74417         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74418         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74419
74420 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74421
74422         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74423         Bug reported by Lute Kamstra in
74424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74425
74426         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74427         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74428         course with correspondingly smaller numbers for tomorrow and
74429         yesterday.  From Tadayoshi Funaba.  Originally installed into
74430         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74431         coreutils merge?).
74432
74433 2003-08-31  Simon Josefsson  <jas@extundo.com>
74434
74435         * modules/timegm: New file.
74436         * MODULES.html.sh (func_all_modules): Add timegm.
74437
74438 2003-08-31  Simon Josefsson  <jas@extundo.com>
74439
74440         * m4/timegm.m4: New file.
74441
74442 2003-08-31  Simon Josefsson  <jas@extundo.com>
74443
74444         * lib/timegm.h: New file.
74445         * lib/timegm.c: New file.  Based on
74446         wget-1.8.2/src/http.c:mktime_from_utc.
74447
74448 2003-08-31  Karl Berry  <karl@gnu.org>
74449
74450         * lib/argp.h: update from libc.
74451
74452 2003-08-28  Bruno Haible  <bruno@clisp.org>
74453
74454         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74455         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74456         followed by '#define fnmatch fnmatch_posix' gives an error.
74457
74458 2003-08-28  Bruno Haible  <bruno@clisp.org>
74459
74460         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74461         warning on QNX, which defines O_BINARY to 000000.
74462
74463 2003-08-27  Jim Meyering  <jim@meyering.net>
74464
74465         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74466         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74467         would fail after 32.  Reported by Danny Levinson.  Details here:
74468         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74469
74470 2003-08-24  Bruno Haible  <bruno@clisp.org>
74471
74472         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74473         MSVC7 <stdio.h> is included later.
74474
74475 2003-08-22  Simon Josefsson  <jas@extundo.com>
74476
74477         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74478
74479 2003-08-20  Karl Berry  <karl@gnu.org>
74480
74481         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74482
74483 2003-08-20  Bruno Haible  <bruno@clisp.org>
74484
74485         * modules/progname: New file.
74486         * MODULES.html.sh (func_all_modules): Add progname.
74487
74488 2003-08-20  Bruno Haible  <bruno@clisp.org>
74489
74490         * lib/progname.h: New file, from GNU gettext.
74491         * lib/progname.c: New file, from GNU gettext.
74492         * lib/progreloc.c: New file, from GNU gettext.
74493
74494 2003-08-19  Jim Meyering  <jim@meyering.net>
74495
74496         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74497         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74498
74499 2003-08-19  Bruno Haible  <bruno@clisp.org>
74500
74501         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74502         more.
74503
74504 2003-08-19  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/xstrdup.c: Assume <string.h> exists.
74507
74508 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74509
74510         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74511         in makefile rules.
74512
74513 2003-08-18  Jim Meyering  <jim@meyering.net>
74514
74515         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74516         * m4/lib-ld.m4: Likewise.
74517
74518 2003-08-18  Jim Meyering  <jim@meyering.net>
74519
74520         * lib/setenv.h: Indent nested cpp directive.
74521         * lib/vasnprintf.c: Remove trailing blanks.
74522
74523 2003-08-17  Simon Josefsson  <jas@extundo.com>
74524
74525         * modules/xstrndup: New file.
74526         * MODULES.html.sh (func_all_modules): Add xstrndup.
74527
74528 2003-08-17  Simon Josefsson  <jas@extundo.com>
74529
74530         * modules/argp: Fix autoconf macro name. Add more dependencies.
74531
74532 2003-08-17  Simon Josefsson  <jas@extundo.com>
74533
74534         * m4/xstrndup.m4: New file.
74535
74536 2003-08-17  Simon Josefsson  <jas@extundo.com>
74537
74538         * m4/argp.m4: New file.
74539
74540 2003-08-17  Simon Josefsson  <jas@extundo.com>
74541             Bruno Haible  <bruno@clisp.org>
74542
74543         * lib/xstrndup.h: New file.
74544         * lib/xstrndup.c: New file.
74545
74546 2003-08-17  Bruno Haible  <bruno@clisp.org>
74547
74548         * modules/strndup (Files, Include): Add lib/strndup.h.
74549
74550 2003-08-17  Bruno Haible  <bruno@clisp.org>
74551
74552         * modules/euidaccess (Files): Add lib/euidaccess.h.
74553
74554 2003-08-17  Bruno Haible  <bruno@clisp.org>
74555
74556         * lib/strndup.h: New file.
74557
74558 2003-08-17  Bruno Haible  <bruno@clisp.org>
74559
74560         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74561         like AC_GNU_SOURCE.
74562         * modules/extensions (configure.ac): Comment out the invocation of
74563         gl_USE_SYSTEM_EXTENSIONS.
74564
74565 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74566
74567         Merges from coreutils, etc.
74568         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74569         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74570         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74571         fixing a typo.
74572         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74573         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74574
74575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74576
74577         Document merge from coreutils.
74578         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74579         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74580         * modules/utime: Add m4/utimes-null.m4.
74581
74582 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74583
74584         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74585         space, undoing this 2003-08-12 change:
74586         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74587
74588 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74589
74590         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74591         strtoul.c from libc, undoing this 2003-08-12 change:
74592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74593
74594 2003-08-16  Jim Meyering  <jim@meyering.net>
74595
74596         Merges from coreutils.
74597         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74598         prefix.  Adjust cache variables similarly.  Create 500 rather than
74599         just 300 files, to exercise bug on Darwin6.5, too.
74600         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74601         $missing_dir.
74602         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74603         AM_SYS_POSIX_TERMIOS.
74604         Reported by mkc@mathdogs.com.
74605         Also change use of $am_cv_sys_posix_termios
74606         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74607         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74608         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74609         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74610         in /proc/mounts until it finds one with matching device number.  This
74611         is unnecessary when the FILE argument *is* a mount point.  No stat call
74612         is necessary in that case.  So, disable the statvfs-testing code on
74613         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74614         as RedHat bug# 84846.
74615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74616         to 1MB, so as not to render systems with no stack size limit (e.g.,
74617         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74618         Include <unistd.h>.  On some systems,
74619         it is required for the definition of _SC_PAGESIZE.
74620
74621 2003-08-16  Jim Meyering  <jim@meyering.net>
74622
74623         Merge from coreutils.
74624         * lib/xstrtoimax.c: #else #if -> #elif.
74625         * lib/xstrtoumax.c: Likewise.
74626
74627 2003-08-16  Jim Meyering  <jim@meyering.net>
74628
74629         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74630         * m4/utimes.m4: Removed.
74631         * m4/utimes-null.m4: Renamed from utimes.m4.
74632
74633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74634         to 1MB, so as not to render systems with no stack size limit (e.g.,
74635         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74636         Include <unistd.h>.  On some systems,
74637         it is required for the definition of _SC_PAGESIZE.
74638
74639 2003-08-16  Jim Meyering  <jim@meyering.net>
74640         and Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         Merges from coreutils, etc.
74643
74644         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74645         using the latest version from cvs.  This avoids problems with #line
74646         directives using a vendor (Sun) compiler.
74647         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74648         Don't set GETGROUPS_LIB here; now it's
74649         done via getgroups.m4's wrapper function.
74650         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74651         rather than just in sh-util/configure.in, so that the
74652         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74653         same.
74654         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74655         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74656         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74657         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74658         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74659         Remove code that is now done by the newly-required macros.
74660         Append $(EXEEXT) to DF_PROG.
74661         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74662         Do not invoke or require the following here,
74663         since prereq.m4 or some gnulib .m4 now does this for us:
74664         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74665         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74666         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74667         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74668         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74669         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74670         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74671         AC_FUNC_OBSTACK.
74672         Do not replace the following functions, as this is now the job
74673         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74674         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74675         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74676         atexit getpass, strdup, getpagesize.
74677         Replace 'raise'.
74678         Do not check for the following functions, as this is now the job
74679         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74680         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74681         setregid.
74682         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74683         Check for sys/sysctl.h.
74684         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74685         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74686         of checking for ssize_t ourselves.
74687
74688         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74689         Require every macro that gnulib/modules/* suggests for us.
74690         (jm_PREREQ_ADDEXT): New macro.
74691         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74692         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74693
74694         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74695         (gl_PHYSMEM): Use it.
74696         Also check for `table' function.
74697         Check for new headers and functions.
74698         Add check for sys/sysmp.h.
74699         With suggestions from Kaveh Ghazi.
74700         Ignore headers that are present but cannot be compiled.  This
74701         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74702         C 5.4.
74703
74704 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74705
74706         Document merge from coreutils.
74707         * modules/userspec: Depend on posixver.
74708         * modules/strftime: Depend on tzset.
74709
74710 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74711
74712         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74713         rather than tab, after '#' in shell-script copyright notices.
74714         Suggested by Bruno Haible.
74715
74716 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74717
74718         * config/srclist-update: Use three spaces, rather than tab, after '#'
74719         in shell-script copyright notices.  Suggested by Bruno Haible.
74720         Remove unnecessary parenthesization in regular expression.
74721
74722 2003-08-15  Jim Meyering  <jim@meyering.net>
74723
74724         Merge from coreutils.
74725         * lib/xgethostname.c: Include <stdlib.h>.
74726         (xghostname): Don't exit for anything other than memory-related
74727         failure; just return NULL.
74728         * lib/userspec.c: Include "posixver.h".
74729         (parse_user_spec): Accept `.' as a separator only
74730         in pre-POSIX-200112 mode.
74731         * lib/strtoimax.c: Use #elif rather than #else #if.
74732         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74733         Remove function, now that we can rely on a working tzset function.
74734         [!_LIBC]: Ensure that the required autoconf test has been run.
74735         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74736         Use underlying_strftime for %r.
74737         * lib/sha.c: Merge in some clean-up and optimization changes from
74738         glibc.
74739         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74740         Ensure that it is a multiple of 64.
74741         Rearrange loop exit tests so as to avoid performing an
74742         additional fread after encountering an error or EOF.
74743         * lib/realloc.c: Update copyright date.
74744
74745 2003-08-15  Jim Meyering  <jim@meyering.net>
74746         and Paul Eggert  <eggert@twinsun.com>
74747
74748         Merge from coreutils.
74749         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74750         member but strut utmpx does not.  Needed for AIX 4.3.3.
74751         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74752
74753 2003-08-15  Jim Meyering  <jim@meyering.net>
74754         and Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         Merges from coreutils, etc.
74757         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74758         Require gl_FUNC_TZSET_CLOBBER.
74759         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74760         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74761         members.
74762
74763 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74764
74765         Help the merge from coreutils.
74766         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74767         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74768         * m4/tzset.m4: Use it too.
74769
74770 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74771
74772         * modules/tzset: New file.
74773
74774 2003-08-14  Jim Meyering  <jim@meyering.net>
74775
74776         Merges from coreutils.
74777         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74778         variable names, rather than @FNMATCH_H@.
74779         * modules/alloca: Likewise for $(ALLOCA_H).
74780
74781         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74782         the three copies of the literal target, `fnmatch.h'.
74783         * modules/alloca (alloca.h): Likewise.
74784
74785 2003-08-14  Jim Meyering  <jim@meyering.net>
74786
74787         Merge from coreutils.
74788         * m4/tzset.m4: New file.
74789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74790         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74791         otherwise, AIX 5.1 systems would end up using the latter.
74792         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74793         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74794         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74795         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74796
74797 2003-08-14  Jim Meyering  <jim@meyering.net>
74798
74799         Merge from coreutils.
74800         * lib/obstack.h: Whitespace changes.
74801         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74802         and xcalloc return values.
74803         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74804         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74805         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74806         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74807         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74808         error from mntctl.
74809         Use mntctl's return value to drive the entry-processing loop, since
74810         we can't rely on the value of the vmt_length member in the last
74811         entry.  On some systems doing so could result in exhausting
74812         virtual memory.  Based in part on a patch from Mike Jetzer.
74813
74814 2003-08-14  Jim Meyering  <jim@meyering.net>
74815         and Paul Eggert  <eggert@twinsun.com>
74816
74817         Merges from coreutils, plus other fixes.
74818         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74819         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74820         for credits and details.  Thanks to Kaveh Ghazi for helping
74821         to keep these files in sync.
74822         (ARRAY_SIZE): Define it.
74823         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74824         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74825         (memcasecmp): Don't assume size_t fits in unsigned int.
74826         Remove casts and duplicate code.
74827         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74828         (memcpy): Remove definition.
74829         Merge in some clean-up and optimization changes from glibc.
74830         [BLOCKSIZE]: Move definition to top of file.
74831         Ensure that it is a multiple of 64.
74832         Rearrange loop exit tests so as to avoid performing an
74833         additional fread after encountering an error or EOF.
74834         * lib/md5.h (md5_uintptr): Define.
74835         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74836         return to the initial working directory.  Preserve errno
74837         for caller.
74838         * lib/idcache.c: Include "xalloc.h".
74839         (xmalloc, xrealloc): Remove decls.
74840         (getuser): Remove casts no longer required in C89.
74841         * lib/human.c: Include stdio.h, for sprintf.
74842         * lib/group-member.c: Include "xalloc.h".
74843         (xmalloc, xrealloc): Remove decls.
74844         (get_group_info): Remove casts no longer required in C89.
74845         * lib/getusershell.c (readname): Remove casts no longer required in
74846         C89.
74847         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74848         * lib/getline.c: Whitespace fix, from coreutils.
74849
74850 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74851
74852         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74853         Check for isascii.
74854
74855         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74856         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74857         Undo previous (whitespace-only) change.
74858
74859 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74860
74861         * lib/exclude.c: Include <ctype.h>
74862         (IN_CTYPE_DOMAIN): New macro.
74863         (is_space): New fn.
74864         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74865         and empty lines.
74866
74867         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74868         Undo previous (whitespace-only) change.
74869
74870 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74871
74872         * config/srclist-update: Change update back to the old behavior,
74873         leaving whitespace alone.  Use one 'sed' command rather than a
74874         pipeline.
74875         (fixlicense): Now a variable, not a function.
74876         (remove_trailing_blanks): Remove.
74877         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74878         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74879         Undo previous (whitespace-only) change.
74880
74881 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74882
74883         Merge from coreutils.
74884         * modules/euidaccess: Add lib_SOURCES, include for new
74885         file euidaccess.h
74886
74887 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74888
74889         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74890         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74891         Normalize leading white space and remove trailing white space.
74892
74893         Merge from coreutils
74894         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74895
74896         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74897         0.12.1.  These files are now being upgraded automatically by
74898         ../config/srclist-update.
74899
74900 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74901
74902         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74903         Normalize leading white space and remove trailing white space.
74904         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74905         notice, as per ../config/srclist-update.
74906
74907         Merge from coreutils.
74908         * lib/euidaccess.h: New file.
74909         * lib/euidaccess.c: Include it.
74910         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74911         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74912         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74913
74914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74915
74916         * config/srclist-update: Add copyright notice.
74917         (remove_id_lines, remove_trailing_blanks): New constants.
74918         (fixfile): Use them to normalize spacing a bit in copied files.
74919         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74920         Normalize leading white space and remove trailing white space.
74921
74922         * config/texinfo.tex: Sync with texinfo.
74923
74924         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74925         strtoul.c from libc, to merge coreutils whitespace changes.
74926
74927         * config/srclist.txt: Get the following m4 files from gettext:
74928         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74929         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74930         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74931         wint_t.m4.
74932
74933 2003-08-12  Karl Berry  <karl@gnu.org>
74934
74935         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74936         been made.
74937
74938 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74939
74940         * modules/gnu-source, m4/gnu-source.m4:
74941         Remove; we're assuming Autoconf 2.54 or later now.
74942         Suggested by Bruno Haible.
74943         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74944
74945 2003-08-11  Bruno Haible  <bruno@clisp.org>
74946
74947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74948
74949 2003-08-11  Bruno Haible  <bruno@clisp.org>
74950
74951         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74952         (vasnprintf): Use it instead of wcslen.
74953
74954 2003-08-11  Bruno Haible  <bruno@clisp.org>
74955
74956         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74957         value to ensure that _Bool promotes to int. Use #define for _Bool when
74958         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74959
74960 2003-08-10  Karl Berry  <karl@gnu.org>
74961
74962         * lib/regex.h: update from libc (whitespace fix).
74963
74964 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74965
74966         Merge some files from coreutils.  These changes were
74967         originally made by Jim Meyering.
74968         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74969         many older Unixes require this.
74970         * lib/alloca.c (alloca): Remove cast to argument of free;
74971         no longer needed in C89.
74972         * lib/alloca_.h, regex.h: Fix white space to match
74973         what GNU indent does.
74974
74975 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74976
74977         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74978         apparently Emacs's Unicode mode got confused before my 2003-08-05
74979         checkin.
74980
74981 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74982
74983         * m4/extensions.m4: New file.
74984         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74985         Require gl_USE_SYSTEM_EXTENSIONS.
74986         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74987         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74988
74989 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74990
74991         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74992         * modules/extensions, modules/gnu-source: New files.
74993         * modules/timespec, modules/unlocked-io: Depend on extensions.
74994
74995 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74996
74997         * modules/restrict: New file.
74998         * MODULES.html.sh (func_all_modules): Add restrict.
74999         * modules/regex: Depend on restrict.
75000
75001 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75002
75003         * m4/restrict.m4: New file.
75004         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75005
75006 2003-08-07  Bruno Haible  <bruno@clisp.org>
75007
75008         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75009         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75010
75011 2003-08-07  Bruno Haible  <bruno@clisp.org>
75012
75013         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75014         makes the module 'getndelim2' compatible with the module 'getline'.
75015
75016 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75017
75018         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75019         byte with "\201" to avoid glitches when editing that source file
75020         with multi-gnome-terminal.
75021
75022 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75023
75024         * lib/bumpalloc.h: Remove.
75025
75026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75027
75028         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75029         * modules/bumpalloc: Remove.
75030
75031 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75032
75033         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75034         GNU coding style.
75035
75036         Merge from coreutils.
75037         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75038         1. From glibc.
75039         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75040         from Karl Berry, implemented by Jim Meyering.
75041         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75042         from Dmitry V. Levin.
75043         Remove anachronistic cast of xrealloc.
75044         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75045         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75046         type. Otherwise, it wouldn't compile with at least /bin/cc on
75047         ymp-cray-unicos9.0.2.X.
75048         Combine two mostly-identical uses of alloca into one.
75049         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75050
75051 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75052
75053         [From Emacs.]
75054
75055         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75056         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75057         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75058         obsolete NLIST_NAME_UNION.
75059         [__GNU__]: Undef BSD and FSCALE.
75060         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75061
75062 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75063
75064         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75065         an enum type, so that it's guaranteed to promote to int.  See:
75066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75067
75068 2003-08-03  Karl Berry  <karl@gnu.org>
75069
75070         * config/depcomp: update from automake.
75071
75072 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75073
75074         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75075         (strerror): Don't assume that a printable int fits in 14 bytes.
75076
75077 2003-07-31  Bruno Haible  <bruno@clisp.org>
75078
75079         * modules/getpass-gnu: New file.
75080         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75081
75082 2003-07-31  Bruno Haible  <bruno@clisp.org>
75083
75084         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75085
75086 2003-07-24  Karl Berry  <karl@gnu.org>
75087
75088         * config/missing: update from automake.
75089
75090 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75091             Bruno Haible  <bruno@clisp.org>
75092
75093         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75094         * lib/getline.c (getline, getdelim): Likewise.
75095         Remove _GNU_SOURCE define; now it's defined in config.h through
75096         m4/getline.m4.
75097
75098 2003-07-23  Karl Berry  <karl@gnu.org>
75099
75100         * config/config.sub: update from prep.
75101
75102 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75103
75104         * modules/xalloc (Depends-on): Add exitfail.
75105         * modules/xmemcoll: Likewise.
75106
75107 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75108
75109         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75110         over-parenthesization in macros.
75111
75112         Sync with coreutils.
75113
75114         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75115         required by C99.
75116
75117         Use `exit_failure' for xalloc and xmemcoll instead of their own
75118         private exit-failure variables.
75119         * lib/xalloc.h (xalloc_exit_failure): Remove.
75120         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75121         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75122         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75123         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75124         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75125
75126 2003-07-20  Jim Meyering  <jim@meyering.net>
75127
75128         * modules/closeout (Depends-on): Add exitfail.
75129         Suggestion from Bruno Haible.
75130
75131 2003-07-19  Karl Berry  <karl@gnu.org>
75132
75133         * config/config.sub: update from prep.
75134
75135 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75136
75137         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75138         Remove.
75139         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75140         to test that it can stand by itself.  Include "exitfail.h".
75141         Clients should set exit_failure instead.
75142         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75143
75144 2003-07-18  Bruno Haible  <bruno@clisp.org>
75145
75146         * modules/getndelim2: New file.
75147         * modules/getline: Share files with module getndelim2.
75148         * modules/getnline: Depend on getndelim2 instead of sharing files with
75149         it. Add getnline.c to lib_SOURCES.
75150         * MODULES.html.sh (func_all_modules): Add getndelim2.
75151
75152 2003-07-18  Bruno Haible  <bruno@clisp.org>
75153
75154         * m4/getndelim2.m4: New file.
75155         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75156         invoke gl_PREREQ_GETNDELIM2.
75157         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75158         gl_PREREQ_GETNDELIM2.
75159         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75160         gl_GETNDELIM2.
75161
75162 2003-07-18  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/getndelim2.h: New file.
75165         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75166         getndelim2.h.
75167         (getndelim2): Make non-static. Change return type to ssize_t.
75168         * lib/getline.h: Change argument names.
75169         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75170         * lib/getnline.c: Include getndelim2.h.
75171
75172 2003-07-18  Andreas Schwab  <schwab@suse.de>
75173
75174         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75175
75176 2003-07-17  Karl Berry  <karl@gnu.org>
75177
75178         * config/config.sub: update from prep.
75179
75180 2003-07-17  Bruno Haible  <bruno@clisp.org>
75181
75182         * modules/getnline: New file.
75183         * modules/getline: Add lib/getndelim2.c to source file list.
75184         * MODULES.html.sh (func_all_modules): Add getnline.
75185
75186 2003-07-17  Bruno Haible  <bruno@clisp.org>
75187
75188         * m4/getnline.m4: New file.
75189
75190 2003-07-17  Bruno Haible  <bruno@clisp.org>
75191
75192         * m4/Makefile.am.in: Remove file.
75193         * m4/Makefile.am: Remove file.
75194         * m4/Makefile.in: Remove file.
75195
75196 2003-07-17  Bruno Haible  <bruno@clisp.org>
75197
75198         * lib/getnline.h: New file.
75199         * lib/getnline.c: New file.
75200         * lib/getndelim2.c: New file, extracted from getline.c.
75201         (getndelim2): Renamed from getdelim2, with added nmax argument.
75202         * lib/getline.c: Include getndelim2.c.
75203         (getdelim2): Moved out to getndelim2.c.
75204         (getline, getdelim): Update.
75205
75206 2003-07-17  Bruno Haible  <bruno@clisp.org>
75207
75208         * lib/Makefile.am: Remove file.
75209         * lib/Makefile.in: Remove file.
75210
75211 2003-07-17  Bruno Haible  <bruno@clisp.org>
75212
75213         * configure.in: Remove file.
75214         * Makefile.in: Remove file.
75215
75216 2003-07-17  Bruno Haible  <bruno@clisp.org>
75217
75218         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75219
75220 2003-07-16  Karl Berry  <karl@gnu.org>
75221
75222         * config/srclist-update: was running fixlicense twice, which caused
75223                 texinfo.tex to be nullified for some reason.  Simplify,
75224                 $gplsrc is no longer needed as far as I can see?
75225
75226 2003-07-16  Jim Meyering  <jim@meyering.net>
75227
75228         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75229
75230 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75231
75232         * config/srclist.txt: Get the following files from gettext-runtime/intl
75233         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75234         ref-del.sin.  From Bruno Haible.
75235         * config/srclist-update (fixfile): Change grep pattern again, since the
75236         previous fix didn't work (there was another trailing $).  Use
75237         '[$]' to escape the $s.
75238
75239 2003-07-15  Karl Berry  <karl@gnu.org>
75240
75241         * lib/vasnprintf.c: update from gettext.
75242
75243 2003-07-15  Karl Berry  <karl@gnu.org>
75244
75245         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75246         gets expanded when surrounded by '$'.
75247
75248 2003-07-15  Jim Meyering  <jim@meyering.net>
75249
75250         * modules/save-cwd: Don't depend on error.  From Derek Price.
75251
75252 2003-07-15  Jim Meyering  <jim@meyering.net>
75253
75254         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75255
75256 2003-07-14  Simon Josefsson  <jas@extundo.com>
75257
75258         * modules/mempcpy: New file.
75259         * MODULES.html.sh (func_all_modules): Add mempcpy.
75260
75261 2003-07-14  Simon Josefsson  <jas@extundo.com>
75262
75263         * m4/mempcpy.m4: New file.
75264
75265 2003-07-14  Simon Josefsson  <jas@extundo.com>
75266
75267         * lib/mempcpy.h: New file.
75268         * lib/mempcpy.c: New file.
75269
75270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75271
75272         * modules/getdate, modules/posixtm: Depend on mktime.
75273
75274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75275
75276         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75277         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75278         unicodeio.c, unicodeio.h, unlocked-io.h:
75279         Switch from LGPL to GPL.
75280
75281 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75282
75283         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75284         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75285         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75286         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75287         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75288         updated automatically by ../config/srclist-update.  This changes
75289         their license from LPGL to GPL.
75290
75291 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75292
75293         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75294         assumed to refer to the root of the most recent stable gettext version.
75295         * config/srclistvars.sh: Add defaults for eggert.
75296         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75297         Match "This program" as well as "The program".  This is needed
75298         for gettext.
75299
75300 2003-07-14  Jim Meyering  <jim@meyering.net>
75301
75302         Don't emit diagnostics.  Let callers do that.
75303         * lib/save-cwd.c: Don't include "error.h".
75304         (save_cwd): Don't call error.  Ensure that errno is valid
75305         when returning nonzero.
75306
75307         * lib/save-cwd.h (restore_cwd): Update prototype.
75308         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75309         Simplify.  Don't call error upon failure.  Let callers do that.
75310         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75311         when auditing is enabled.  But don't bother updating the #if.
75312
75313 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75314
75315         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75316         it breaks C++ compilation.
75317         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75318
75319 2003-07-10  Simon Josefsson  <jas@extundo.com>
75320
75321         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75322
75323 2003-07-10  Jim Meyering  <jim@meyering.net>
75324
75325         * m4/clock_time.m4: Remove trailing blank.
75326         * m4/intmax_t.m4: Likewise.
75327
75328 2003-07-10  Jim Meyering  <jim@meyering.net>
75329
75330         * lib/vasnprintf.c: Remove trailing blanks.
75331         Make cpp indentation consistent.
75332
75333 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75334
75335         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75336         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75337         Switch from LGPL to GPL.
75338
75339 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75340
75341         * config/srclist.txt: Sort sublists.  Add
75342         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75343         that differ from gnulib for one reason or another; we'd like this list
75344         to be smaller but for now let's document what we have.
75345
75346 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75347
75348         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75349         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75350         and sweeter "eval x=$x".
75351         * config/srclist.txt: Get lib/argp* from glibc.
75352
75353 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75354
75355         * lib/mktime.c: Fix some boundary cases and remove need for floating
75356         point.
75357
75358         Issue a compile-time diagnostic if time_t is floating point, or if
75359         two's complement arithmetic is not in effect, or if arithmetic
75360         right shift does not propagate the sign.  These assumptions were
75361         all in the original code but they weren't checked.
75362
75363         (TIME_T_MIDPOINT, verify): New macros.
75364         (__isleap): Remove; it has integer overflow problems.
75365         (leapyear): New function, without those problems.
75366         (ydhms_tm_diff): Remove; splitting into two parts.
75367         (ydhms_diff): New function, containing the arithmetic part of
75368         the old ydhms_tm_diff function.  Issue a compile-time
75369         diagnostic if we are not using C99 integer division.
75370         Avoid casts when possible.
75371         (guess_time_tm): New function, containing the checking part of
75372         the old ydhms_tm_diff function.  Return the new value, rather than
75373         the difference between it and the old.  Accept a new argument T
75374         so that *T specifies the old value.  Check for overflow in the result.
75375
75376         (__mktime_internal): Use a time_t offset, not a long int offset.
75377         This undoes the 2003-06-04 change, which is no longer needed now
75378         that we have better overflow checking.
75379         (localtime_offset): Likewise.
75380
75381         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75382         and long are 64-bit but int is only 32-bit.
75383         (ydhms_diff): Use long int to store year1 and yday1.
75384         Issue a compile-time diagnostic if long int is not wide enough.
75385
75386         (__mktime_internal): Use long int to store adjusted year and yday.
75387         Use plain C rather than preprocessor commands, if that doesn't
75388         affect efficiency.
75389         Check for overflow (and try to repair) after each probe
75390         rather than checking only at the very end.  This avoids some bugs
75391         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75392         does not equal GMT offset at maximum time).
75393         Use integer to check for overflow rather than floating point; this
75394         is more portable to non-IEEE hosts, and is a tad faster.
75395         When we detect that we are oscillating between two values,
75396         don't check whether tm_isdst has the requested value, since
75397         we already know the answer.  When tm_isdst has the wrong value,
75398         use a different heuristic to find the right one, based on the
75399         extreme values actually observed in practice in tz2003a,
75400         rather than the (overly optimistic) "previous 3 calendar quarters".
75401
75402         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75403         "T const" to accommodate glibc style.
75404         (check_result): Use less-confusing report format.  "long" -> "long int.
75405         (main): Likewise.
75406         Don't loop if the iteration overflows time_t.
75407         Allow a negative step in the iteration.
75408
75409 2003-07-06  Karl Berry  <karl@gnu.org>
75410
75411         * config/depcomp: update from automake.
75412         * config/config.sub: update from prep.
75413
75414 2003-07-03  Karl Berry  <karl@gnu.org>
75415
75416         * config/config.guess: update from prep.
75417
75418 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75419
75420         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75421         xreadlink.c now includes it unconditionally.
75422
75423 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75424
75425         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75426         having it depend on HAVE_SYS_TYPES_H.
75427
75428 2003-07-01  Bruno Haible  <bruno@clisp.org>
75429
75430         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75431         <sys/types.h> should be sufficient.
75432         Reported by Paul Eggert.
75433
75434 2003-06-26  Karl Berry  <karl@gnu.org>
75435
75436         * config/depcomp: update from automake.
75437
75438 2003-06-26  Bruno Haible  <bruno@clisp.org>
75439
75440         * modules/human: Depend on module stdbool.
75441
75442 2003-06-25  Bruno Haible  <bruno@clisp.org>
75443
75444         * modules/readlink: New file.
75445         * modules/xreadlink: Depend on it.
75446         * MODULES.html.sh (func_all_modules): Add readlink.
75447
75448 2003-06-25  Bruno Haible  <bruno@clisp.org>
75449
75450         * m4/readlink.m4: New file.
75451
75452 2003-06-25  Bruno Haible  <bruno@clisp.org>
75453
75454         * lib/readlink.c: New file.
75455
75456 2003-06-22  Karl Berry  <karl@gnu.org>
75457
75458         * config/srclist.txt: update mkinstalldirs from automake.
75459         * config/mkinstalldirs: update.
75460
75461 2003-06-22  Bruno Haible  <bruno@clisp.org>
75462
75463         Portability to mingw32.
75464         * m4/ssize_t.m4: New file, from GNU gettext.
75465         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75466         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75467
75468 2003-06-22  Bruno Haible  <bruno@clisp.org>
75469
75470         * modules/safe-read: Add m4/ssize_t.m4.
75471         * modules/xreadlink: Add m4/ssize_t.m4.
75472
75473 2003-06-20  Bruno Haible  <bruno@clisp.org>
75474
75475         Assume C89, so PARAMS isn't needed.
75476         * lib/unicodeio.h (PARAMS): Remove.
75477         * lib/unicodeio.c: Don't use PARAMS.
75478
75479 2003-06-18  Karl Berry  <karl@gnu.org>
75480
75481         * config/config.{guess,sub}: update from prep.
75482
75483 2003-06-18  Jim Meyering  <jim@meyering.net>
75484
75485         Merge changes from coreutils.
75486         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75487         Remove explicit declarations of xmalloc and realloc.
75488         Include xalloc.h.
75489         (read_utmp): Remove anachronistic cast of xmalloc.
75490
75491 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75492
75493         Assume C89, so PARAMS isn't needed.
75494         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75495         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75496         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75497         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75498         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75499         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75500         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75501         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75502         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75503         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75504         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75505         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75506         no longer needed. Anyway, config.h should always be included before any
75507         other file.
75508
75509 2003-06-11  Simon Josefsson  <jas@extundo.com>
75510
75511         * modules/sysexits: New file.
75512         * MODULES.html.sh (func_all_modules): Add sysexits.
75513
75514 2003-06-11  Simon Josefsson  <jas@extundo.com>
75515
75516         * lib/sysexit_.h: New file.
75517
75518 2003-06-11  Derek Price  <derek@ximbiot.com>
75519
75520         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75521         necessary.
75522
75523 2003-06-11  Bruno Haible  <bruno@clisp.org>
75524
75525         * m4/sysexits.m4: New file.
75526
75527 2003-06-10  Simon Josefsson  <jas@extundo.com>
75528
75529         * lib/argp.h: New file, from glibc.
75530         * lib/argp-ba.c: New file, from glibc.
75531         * lib/argp-eexst.c: New file, from glibc.
75532         * lib/argp-fmtstream.c: New file, from glibc.
75533         * lib/argp-fmtstream.h: New file, from glibc.
75534         * lib/argp-fs-xinl.c: New file, from glibc.
75535         * lib/argp-help.c: New file, from glibc.
75536         * lib/argp-namefrob.h: New file, from glibc.
75537         * lib/argp-parse.c: New file, from glibc.
75538         * lib/argp-pv.c: New file, from glibc.
75539         * lib/argp-pvh.c: New file, from glibc.
75540         * lib/argp-xinl.c: New file, from glibc.
75541
75542 2003-06-10  Simon Josefsson  <jas@extundo.com>
75543
75544         * modules/strchrnul: New file.
75545
75546 2003-06-10  Simon Josefsson  <jas@extundo.com>
75547
75548         * modules/argp: New file.
75549
75550 2003-06-10  Simon Josefsson  <jas@extundo.com>
75551
75552         * m4/strchrnul.m4: New file.
75553
75554 2003-06-10  Simon Josefsson  <jas@extundo.com>
75555
75556         * lib/strchrnul.h: New file.
75557         * lib/strchrnul.c: New file.
75558
75559 2003-06-10  Bruno Haible  <bruno@clisp.org>
75560
75561         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75562
75563 2003-06-07  Karl Berry  <karl@gnu.org>
75564
75565         * config/config.{guess,sub}: update from prep.
75566
75567 2003-06-07  Jim Meyering  <jim@meyering.net>
75568
75569         * modules/strtod: Use $(...) notation, not @...@ for
75570         AC_REPLACE'd variables.
75571         * modules/localcharset: Likewise.
75572
75573 2003-06-07  Jim Meyering  <jim@meyering.net>
75574
75575         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75576         in place of my name in the copyright comment.
75577         Remove definition and uses of __P.
75578
75579         From coreutils.
75580         * lib/stat.c: Don't declare xmalloc explicitly.
75581         Instead, include "xalloc.h".
75582         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75583         xrealloc, and xcalloc return values.
75584         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75585         Improve comment.
75586         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75587
75588 2003-06-07  Bruno Haible  <bruno@clisp.org>
75589
75590         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75591         avoid AC_CONFIG_LINKS.
75592         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75593         fnmatch.h, to avoid AC_CONFIG_LINKS.
75594         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75595
75596 2003-06-07  Bruno Haible  <bruno@clisp.org>
75597
75598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75599         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75600         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75601         directory.
75602         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75603         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75604         directory.
75605
75606 2003-06-06  Jim Meyering  <jim@meyering.net>
75607
75608         Merge from coreutils.
75609         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75610         Consolidate declarations and initializations of *_base* locals.
75611
75612         Merge from coreutils.
75613         This avoids a core dump on systems without GNU putenv,
75614         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75615         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75616         (unsetenv): New static function, from GNU libc.
75617         (rpl_putenv): Use it.
75618
75619         * lib/modechange.c: Remove trailing blanks.
75620
75621         Merge from coreutils.
75622         * lib/fsusage.c: Remove declaration of statfs.
75623         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75624
75625         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75626
75627 2003-06-06  Jim Meyering  <jim@meyering.net>
75628
75629         * lib/stdbool_.h: Renamed from stdbool.h.in.
75630
75631 2003-06-06  Jim Meyering  <jim@meyering.net>
75632             Bruno Haible  <bruno@clisp.org>
75633
75634         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75635         Adjust Makefile.am snippet not to redirect directly to target.
75636         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75637
75638 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75639
75640         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75641         mismatch, look in future quarters as well as past.  This fixes a
75642         bug when processing fall-backwards gaps immediately after a long
75643         period of daylight-saving time.
75644
75645         * lib/mktime.c: Assume freestanding C89 or better.
75646         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75647         (__P): Remove; not used.
75648         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75649         (mktime, not_equal_tm, print_tm, check_result,
75650         main): Use prototypes.  Use const * where appropriate.
75651         (main): Fix typo in testing code that uncovered by above changes.
75652         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75653
75654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75655
75656         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75657         locale.h, localeconv.  This merges changes from coreutils.
75658
75659         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75660         It can be removed after the next Autoconf is released.
75661         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75662         needed.
75663
75664 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75665
75666         * lib/mktime.c: Fix Debian bug 177940
75667         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75668         (localtime_offset): Now long int, not time_t, because we want it
75669         to be guaranteed to be signed.  All uses changed.
75670         (__mktime_internal): If overflow would occur when adding offset,
75671         don't add it.
75672
75673         Merge 'human' changes from coreutils.  Rewrite to support
75674         locale-specific notations like thousands separators.
75675         * lib/human.c: Simplify authorship notice.
75676         Include human.h immediately after config.h.
75677         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75678         <limits.h>: Do not include, since human.h does.
75679         (SIZE_MAX, UINTMAX_MAX): New macros.
75680         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75681         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75682         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75683         (power_letter): Renamed from suffixes.
75684         (generate_suffix_backwards): Remove.
75685         (adjust_value): Now takes int style (because of human.h changes)
75686         and long double value (for greater precision on some platforms).
75687         (group_number): New function.
75688         (human_readable): Use it.  Use integer options, not enum.
75689         Put the options before the sizes in the arg list.
75690         Support all the new options.
75691         The old human_readable function has been removed;
75692         use inttostr.h instead.
75693         (human_readable, default_block_size, humblock):
75694         Use uintmax_t, not int, for block sizes.
75695         (human_readable_inexact, block_size_types): Remove.
75696         (block_size_opts): New constant.
75697         (human_options): Renamed from human_block_size, with new signature
75698         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75699         * lib/human.h: Add copyright and authorship notice.
75700         Include <limits.h> and <stdbool.h> unconditionally.
75701         (PARAMS): Remove.  All uses removed.
75702         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75703         (enum human_inexact_style): Remove tag; now a nameless enum.
75704         (human_floor, human_ceiling, human_round_to_even): Now have
75705         values 2, 0, 1 rather than -1, 1, 0.
75706         (human_group_digits, human_suppress_point_zero, human_autoscale,
75707         human_base_1024, human_SI, human_B): New constants.
75708         (human_readable_inexact, human_block_size): Remove.
75709         (human_readable): Size args are now uintmax_t, not int.
75710         (human_options): New decl.
75711
75712         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75713         unnecessary now that we assume C89 or better.  This change
75714         imported from coreutils.
75715
75716         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75717         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75718         in the 2003-05-30 sync from glibc.
75719
75720         .h files should stand alone, but we shouldn't include <sys/types.h>
75721         if we can get away with just <stddef.h>.
75722
75723         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75724         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75725         rather than <sys/types.h>, as we merely need size_t.
75726         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75727         to get size_t.
75728         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75729         Include <stdio.h>, to get FILE.
75730         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75731         memcasecmp.h has included <stddef.h> and all we need is size_t.
75732         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75733         our interface, instead of including <sys/types.h>
75734
75735 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75736
75737         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75738         now, as glibc mktime is buggy on non-glibc systems.
75739
75740 2003-06-03  Karl Berry  <karl@gnu.org>
75741
75742         * config/config.sub: update from prep.
75743
75744 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75745
75746         [from coreutils]
75747         Fix some minor time-related bugs with POSIX time arguments.
75748         Some valid time stamps were being rejected (notably -1, and
75749         time stamps before 1900 on 64-bit hosts).  And some invalid
75750         time stamps were being accepted, e.g. September 31.
75751
75752         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75753         that we can return (time_t) -1 successfully.
75754         * lib/posixtm.c: Likewise.
75755         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75756         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75757         (t): Remove static var.
75758         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75759         of static var.  All uses changed.
75760         (year): Do not reject years before 1900; they can occur with
75761         64-bit time_t.
75762         (posix_time_parse): Do not check for out-of-range components;
75763         that is now the caller's responsibility, since our checks were
75764         only approximations.
75765         (posixtime): Use mktime to check for out-of-range components,
75766         since it knows them exactly.
75767         If mktime returns (time_t) -1, check whether an error actually occurred
75768         by invoking localtime on -1.
75769         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75770         posixtime failures better.
75771         Improve the test data (in comments only).
75772
75773 2003-06-02  Karl Berry  <karl@gnu.org>
75774
75775         * config/mkinstalldirs (version): new variable.
75776         (--version): new option.
75777         (usage): improve message.
75778
75779 2003-05-30  Karl Berry  <karl@gnu.org>
75780
75781         * lib/mktime.c: update from libc.
75782
75783 2003-05-30  Bruno Haible  <bruno@clisp.org>
75784
75785         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75786         * config/config.rpath: Upgrade to gettext-0.12.1.
75787
75788 2003-05-30  Bruno Haible  <bruno@clisp.org>
75789
75790         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75791         * m4/nls.m4: New file, from gettext-0.12.1.
75792         * m4/po.m4: New file, from gettext-0.12.1.
75793         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75794
75795 2003-05-30  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75798         * lib/localcharset.h: Likewise.
75799         * lib/localcharset.c: Likewise.
75800
75801 2003-05-29  Karl Berry  <karl@gnu.org>
75802
75803         * config/config.rpath: update from gettext.
75804
75805 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75806
75807         Assume the headers required for C89 freestanding compilers.
75808         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75809         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75810         * m4/human.m4 (gl_HUMAN): Likewise.
75811         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75812         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75813         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75814         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75816         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75817
75818 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75819
75820         Assume the headers required for C89 freestanding compilers.
75821         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75822         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75823         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75824         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75825         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75826         define, since <limits.h> is guaranteed to do that.
75827         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75828         * lib/exclude.c: Include <stdbool.h> unconditionally.
75829         * lib/tempname.c: Include <stddef.h> unconditionally.
75830         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75831         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75832         <stddef.h> does that.
75833         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75834         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75835         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75836         needed.
75837         * lib/xstrtol.c: Likewise.
75838         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75839         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75840
75841         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75842         warnings on some platforms.
75843
75844         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75845         arbitrarily.
75846
75847 2003-05-26  Jim Meyering  <jim@meyering.net>
75848
75849         Merge in a change from coreutils:
75850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75851         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75852         that condition, rather than `-1' which is slightly misleading.
75853         Change the name of the cache variable to have the gl_ prefix.
75854         Prompted by a patch from Richard Dawe for DJGPP.
75855
75856 2003-05-24  Karl Berry  <karl@gnu.org>
75857
75858         * config/config.guess: update from prep.
75859
75860 2003-05-22  Karl Berry  <karl@gnu.org>
75861
75862         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75863
75864 2003-05-20  Karl Berry  <karl@gnu.org>
75865
75866         * config/config.guess: update from prep.
75867
75868 2003-05-18  Karl Berry  <karl@gnu.org>
75869
75870         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75871         might actually be set by the user.
75872
75873         * config/depcomp, install-sh, mdate-sh: update from automake.
75874
75875 2003-05-17  Bruno Haible  <bruno@clisp.org>
75876
75877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75878         invalid expansion for AC_EGREP_CPP.
75879         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75880         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75881         Suggested by Akim Demaille <akim@epita.fr> in
75882         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75883
75884 2003-05-12  Jim Meyering  <jim@meyering.net>
75885
75886         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75887         the space-padded-by-default conversion specifiers, %e, %k, %l.
75888
75889 2003-05-12  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75892         the string is longer than 4 KB.
75893
75894 2003-05-11  Karl Berry  <karl@gnu.org>
75895
75896         * config/config.{guess,sub}: update from prep.
75897
75898 2003-05-09  Bruno Haible  <bruno@clisp.org>
75899
75900         * modules/error: Add m4/strerror_r.m4 to file list.
75901
75902 2003-05-03  Bruno Haible  <bruno@clisp.org>
75903
75904         Upgrade to Unicode-4.0.
75905         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75906         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75907         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75908         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75909         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75910         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75911         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75912         Change width of U+E0100..U+E01EF from 1 to 0.
75913
75914 2003-04-25  Jim Meyering  <jim@meyering.net>
75915
75916         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75917         of type size_t, not int.
75918
75919 2003-04-25  Bruno Haible  <bruno@clisp.org>
75920
75921         * lib/copy-file.c: Include <stddef.h>, for size_t.
75922
75923 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75924
75925         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75926         code which expansion is under static control.  Patch imported from
75927         Akim Demaille's patch to Bison; see
75928         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75929
75930 2003-04-14  Bruno Haible  <bruno@clisp.org>
75931
75932         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75933
75934 2003-04-11  Jim Meyering  <jim@meyering.net>
75935
75936         Merge changes from Coreutils.
75937
75938         2003-03-22  Jim Meyering  <jim@meyering.net>
75939
75940         * lib/strftime.c (widen): Cast alloca return value to proper type.
75941
75942         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75943
75944         From GNU libc.
75945         * lib/strftime.c (my_strftime): Handle very large width
75946         specifications for numeric values correctly.  Improve checks for
75947         overflow.
75948
75949         2003-01-19  Jim Meyering  <jim@meyering.net>
75950
75951         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75952         definitions.
75953         (nl_get_alt_digit) [! defined my_strftime]: Define.
75954         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75955         _nl_get_alt_digit and _nl_get_walt_digit.
75956
75957         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75958         libc. These changes have no effect outside of _LIBC.
75959
75960 2003-04-10  Bruno Haible  <bruno@clisp.org>
75961
75962         * modules/findprog: New file.
75963         * MODULES.html.sh (func_all_modules): Add it.
75964
75965 2003-04-10  Bruno Haible  <bruno@clisp.org>
75966
75967         * m4/findprog.m4: New file.
75968         * m4/eaccess.m4: New file.
75969
75970 2003-04-10  Bruno Haible  <bruno@clisp.org>
75971
75972         * lib/findprog.h: New file, from GNU gettext.
75973         * lib/findprog.c: New file, from GNU gettext.
75974
75975 2003-04-05  Jim Meyering  <jim@meyering.net>
75976
75977         Merge changes from Coreutils.
75978
75979         * lib/exclude.h (PARAMS): Remove definition and uses.
75980         * lib/exclude.c: Remove uses of `PARAMS'.
75981
75982         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75983         Add test-cases for DOS filenames. Declare program_name.
75984         (main): Set up program_name.  Patch by Rich Dawe.
75985
75986         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75987         error from mntctl.
75988         Use mntctl's return value to drive the entry-processing loop, since
75989         we can't rely on the value of the vmt_length member in the last
75990         entry.  On some systems doing so could result in exhausting
75991         virtual memory.  Based in part on a patch from Mike Jetzer.
75992
75993 2003-04-04  Bruno Haible  <bruno@clisp.org>
75994
75995         * modules/linebreak: New file.
75996         * MODULES.html.sh (func_all_modules): Add it.
75997
75998 2003-04-04  Bruno Haible  <bruno@clisp.org>
75999
76000         * m4/linebreak.m4: New file.
76001
76002 2003-04-04  Bruno Haible  <bruno@clisp.org>
76003
76004         * lib/linebreak.h: New file, from GNU gettext.
76005         * lib/linebreak.c: New file, from GNU gettext with slight
76006         modifications.
76007         * lib/lbrkprop.h: New file, from GNU gettext.
76008
76009 2003-04-03  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/utf8-ucs4: New file.
76012         * modules/utf16-ucs4: New file.
76013         * modules/ucs4-utf8: New file.
76014         * modules/ucs4-utf16: New file.
76015         * MODULES.html.sh (func_all_modules): Add them.
76016
76017 2003-04-03  Bruno Haible  <bruno@clisp.org>
76018
76019         * m4/utf-ucs4.m4: New file.
76020         * m4/ucs4-utf.m4: New file.
76021
76022 2003-04-03  Bruno Haible  <bruno@clisp.org>
76023
76024         * lib/utf8-ucs4.h: New file, from GNU gettext.
76025         * lib/utf16-ucs4.h: New file, from GNU gettext.
76026         * lib/ucs4-utf8.h: New file, from GNU gettext.
76027         * lib/ucs4-utf16.h: New file, from GNU gettext.
76028
76029 2003-04-02  Bruno Haible  <bruno@clisp.org>
76030
76031         * modules/binary-io: New file.
76032         * MODULES.html.sh (func_all_modules): Add it.
76033
76034 2003-04-02  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/binary-io.h: New file, from GNU gettext.
76037
76038 2003-04-01  Bruno Haible  <bruno@clisp.org>
76039
76040         * modules/pathname: New file.
76041         * MODULES.html.sh (func_all_modules): Add it.
76042
76043 2003-04-01  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/pathname.h: New file, from GNU gettext.
76046         * lib/concatpath.c: New file, from GNU gettext.
76047
76048 2003-03-30  Bruno Haible  <bruno@clisp.org>
76049
76050         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76051
76052 2003-03-30  Bruno Haible  <bruno@clisp.org>
76053
76054         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76055         function chown() doesn't exist.
76056
76057 2003-03-28  Bruno Haible  <bruno@clisp.org>
76058
76059         * modules/copy-file: New file.
76060         * MODULES.html.sh (func_all_modules): Add it.
76061
76062 2003-03-28  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/copy-file.m4: New file.
76065
76066 2003-03-28  Bruno Haible  <bruno@clisp.org>
76067
76068         * lib/copy-file.h: New file, from GNU gettext.
76069         * lib/copy-file.c: New file, from GNU gettext.
76070
76071 2003-03-18  Jim Meyering  <jim@meyering.net>
76072
76073         * lib/quote.c (quote_n): Fix typo in comment.
76074
76075 2003-03-18  Bruno Haible  <bruno@clisp.org>
76076
76077         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76078         checking.
76079         * m4/onceonly_2_57.m4: Likewise.
76080
76081 2003-03-17  Bruno Haible  <bruno@clisp.org>
76082
76083         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76084         (m4_quote): Remove macro.
76085         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76086
76087 2003-03-14  Jim Meyering  <jim@meyering.net>
76088
76089         Merge changes from Coreutils.
76090         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76091         to be const, in order to avoid warnings.
76092         (obstack_room): Likewise.
76093         (obstack_empty_p): Likewise.
76094
76095 2003-03-14  Bruno Haible  <bruno@clisp.org>
76096
76097         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76098         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76099
76100 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76101
76102         Merge changes from Bison.
76103         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76104         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76105         when compiling Bison 1.875's `bitset bset = obstack_alloc
76106         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76107         * lib/hash.c: Include <stdbool.h> unconditionally.
76108
76109 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76110
76111         * m4/onceonly.m4 (m4_quote): New macro.
76112         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76113         Quote AC_FOREACH variable-expansions properly.
76114
76115 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76116
76117         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76118
76119 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76120
76121         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76122         Reported by Bruce Becker; see:
76123         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76124
76125 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76126             Bruno Haible  <bruno@clisp.org>
76127
76128         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76129         Reported by John Hughes, see
76130         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76131
76132 2003-02-20  Bruno Haible  <bruno@clisp.org>
76133
76134         * MODULES.html.sh (func_all_modules): Add poll.
76135
76136 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76137
76138         * modules/poll: New file.
76139
76140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76141
76142         * lib/poll_.h: New file.
76143         * lib/poll.c: New file.
76144
76145 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76146
76147         * m4/poll.m4: New file.
76148
76149 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76150
76151         * modules/mathl: New file.
76152
76153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76154
76155         * lib/mathl.h: New file.
76156         * lib/acosl.c: New file.
76157         * lib/asinl.c: New file.
76158         * lib/atanl.c: New file.
76159         * lib/ceill.c: New file.
76160         * lib/cosl.c: New file.
76161         * lib/expl.c: New file.
76162         * lib/floorl.c: New file.
76163         * lib/frexpl.c: New file.
76164         * lib/ldexpl.c: New file.
76165         * lib/logl.c: New file.
76166         * lib/sincosl.c: New file.
76167         * lib/sinl.c: New file.
76168         * lib/sqrtl.c: New file.
76169         * lib/tanl.c: New file.
76170         * lib/trigl.c: New file.
76171         * lib/trigl.h: New file.
76172
76173 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76174
76175         * m4/mathl.m4: New file.
76176
76177 2003-02-18  Bruno Haible  <bruno@clisp.org>
76178
76179         * MODULES.html.sh (func_all_modules): Add mathl.
76180
76181 2003-02-17  Bruno Haible  <bruno@clisp.org>
76182
76183         * modules/mkdtemp: New module.
76184         * MODULES.html.sh (func_all_modules): Add it.
76185
76186 2003-02-17  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76189
76190 2003-02-17  Bruno Haible  <bruno@clisp.org>
76191
76192         * lib/mkdtemp.h: New file, from GNU gettext.
76193         * lib/mkdtemp.c: New file, from GNU gettext.
76194
76195 2003-02-02  Jim Meyering  <jim@meyering.net>
76196
76197         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76198         e.g. glibc-2.2.93.
76199
76200 2003-01-31  Bruno Haible  <bruno@clisp.org>
76201
76202         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76203         'rpl_rename'.
76204         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76205         'rpl_strnlen'.
76206         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76207         'rpl_strtod'.
76208         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76209         'rpl_utime'.
76210
76211 2003-01-31  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/rename.c: #undef rename before defining rpl_rename.
76214         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76215
76216 2003-01-30  Bruno Haible  <bruno@clisp.org>
76217
76218         * modules/vasnprintf, modules/vasprintf: New modules.
76219         * MODULES.html.sh (func_all_modules): Add them.
76220
76221 2003-01-30  Bruno Haible  <bruno@clisp.org>
76222
76223         * m4/signed.m4: New file, from GNU gettext.
76224         * m4/longdouble.m4: New file, from GNU gettext.
76225         * m4/wchar_t.m4: New file, from GNU gettext.
76226         * m4/wint_t.m4: New file, from GNU gettext.
76227         * m4/vasnprintf.m4: New file.
76228         * m4/vasprintf.m4: New file.
76229
76230 2003-01-30  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/printf-args.h: New file, from GNU gettext.
76233         * lib/printf-args.c: New file, from GNU gettext.
76234         * lib/printf-parse.h: New file, from GNU gettext.
76235         * lib/printf-parse.c: New file, from GNU gettext.
76236         * lib/vasnprintf.h: New file, from GNU gettext.
76237         * lib/vasnprintf.c: New file, from GNU gettext.
76238         * lib/asnprintf.c: New file, from GNU gettext.
76239         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76240         * lib/vasprintf.c: New file, from GNU gettext.
76241         * lib/asprintf.c: New file, from GNU gettext.
76242
76243 2003-01-29  Bruno Haible  <bruno@clisp.org>
76244
76245         * modules/stpncpy: New module.
76246         * MODULES.html.sh (func_all_modules): Add it.
76247
76248 2003-01-29  Bruno Haible  <bruno@clisp.org>
76249
76250         * m4/stpncpy.m4: New file.
76251
76252 2003-01-29  Bruno Haible  <bruno@clisp.org>
76253
76254         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76255         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76256
76257 2003-01-28  Bruno Haible  <bruno@clisp.org>
76258
76259         * modules/c-ctype: New module.
76260         * MODULES.html.sh (func_all_modules): Add it.
76261
76262 2003-01-28  Bruno Haible  <bruno@clisp.org>
76263
76264         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76265         Paul Eggert.
76266         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76267         Paul Eggert.
76268
76269 2003-01-27  Bruno Haible  <bruno@clisp.org>
76270
76271         * modules/xsetenv: New module.
76272         * MODULES.html.sh (func_all_modules): Add it.
76273
76274 2003-01-27  Bruno Haible  <bruno@clisp.org>
76275
76276         * lib/xsetenv.h: New file, from GNU gettext.
76277         * lib/xsetenv.c: New file, from GNU gettext.
76278
76279 2003-01-23  Jim Meyering  <jim@meyering.net>
76280
76281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76282         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76283
76284 2003-01-23  Bruno Haible  <bruno@clisp.org>
76285
76286         * modules/minmax: New module.
76287         * MODULES.html.sh (func_all_modules): Add it.
76288
76289 2003-01-23  Bruno Haible  <bruno@clisp.org>
76290
76291         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76292         Eggert.
76293
76294 2003-01-22  Bruno Haible  <bruno@clisp.org>
76295
76296         * modules/exit: New module.
76297         * MODULES.html.sh (func_all_modules): Add it.
76298
76299 2003-01-22  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/exit.h: New file, from GNU gettext.
76302
76303 2003-01-19  Bruno Haible  <bruno@clisp.org>
76304
76305         * gnulib-tool: Recognize option --extract-maintainer.
76306         (func_get_maintainer): New function.
76307         * modules/*: Add Maintainer entry.
76308
76309 2003-01-16  Jim Meyering  <jim@meyering.net>
76310
76311         * m4/regex.m4: The `regex' struct is both input and output.
76312         Initialize it before each use.  Patch by Tim Waugh.
76313
76314 2003-01-16  Bruno Haible  <bruno@clisp.org>
76315
76316         * MODULES.html.sh: Add a table of contents. Add the module name as
76317         leftmost column. Add hyperlinks.
76318
76319 2003-01-15  Bruno Haible  <bruno@clisp.org>
76320
76321         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76322
76323 2003-01-15  Bruno Haible  <bruno@clisp.org>
76324
76325         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76326         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76327         suffix.
76328
76329 2003-01-15  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76332
76333 2003-01-15  Bruno Haible  <bruno@clisp.org>
76334
76335         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76336         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76337
76338 2003-01-14  Jim Meyering  <jim@meyering.net>
76339
76340         * lib/same.c (same_name): Tweak a comment.
76341
76342 2003-01-14  Bruno Haible  <bruno@clisp.org>
76343
76344         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76345         when a string comparison is sufficient.
76346
76347 2003-01-14  Bruno Haible  <bruno@clisp.org>
76348
76349         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76350         'unsigned int'.
76351
76352 2003-01-14  Bruno Haible  <bruno@clisp.org>
76353
76354         * lib/hash-pjw.c: Add comment about low quality of this function.
76355
76356 2003-01-13  Bruno Haible  <bruno@clisp.org>
76357
76358         * modules/stpcpy: Distribute lib/stpcpy.h.
76359         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76360
76361 2003-01-13  Bruno Haible  <bruno@clisp.org>
76362
76363         * modules/*: Add a description.
76364         * modules/strpbrk: Fix Makefile.am snippet.
76365         * modules/strtoimax: Fix dependencies.
76366         * modules/strtoumax: Likewise.
76367
76368 2003-01-13  Bruno Haible  <bruno@clisp.org>
76369
76370         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76371         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76372         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76373
76374 2003-01-13  Bruno Haible  <bruno@clisp.org>
76375
76376         * gnulib-tool (func_create_testdir): Store config/* files in the main
76377         directory.
76378         * config.rpath: Move to ...
76379         * config/config.rpath: ... here.
76380         * modules/gettext: Contains config/config.rpath, not config.rpath.
76381         * modules/iconv: Likewise.
76382
76383 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76384
76385         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76386         to avoid collisions with libcurses and libreadline.
76387
76388         * m4/getstr.m4: Remove.
76389         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76390
76391 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76392
76393         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76394         to avoid collisions with libcurses and libreadline.
76395
76396         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76397         * lib/getstr.h, getstr.c: Remove.
76398         * lib/getline.c: Include "getline.h", to check interface.
76399         Move body of old getstr.c here: this defines MIN_CHUNK and
76400         declares getdelim2, which is renamed from getstr.
76401         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76402
76403         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76404         All uses changed.
76405         * lib/linebuffer.h: Likewise.
76406         (readline): Remove backward-compatibility macro.
76407
76408 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76409
76410         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76411         to avoid collisions with libcurses and libreadline.
76412         * getstr: Remove.
76413         * MODULES.html.sh: Remove getstr.
76414         * modules/getline: Depend on unlocked-io, not getstr.
76415
76416 2003-01-12  Jim Meyering  <jim@meyering.net>
76417
76418         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76419
76420 2003-01-10  Bruno Haible  <bruno@clisp.org>
76421
76422         * modules/alloca: Change Makefile.am requirements. Simplify Include
76423         requirements. Add lib/alloca_.h to file list.
76424
76425 2003-01-10  Bruno Haible  <bruno@clisp.org>
76426
76427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76428
76429 2003-01-10  Bruno Haible  <bruno@clisp.org>
76430
76431         * lib/alloca_.h: New file.
76432         * lib/getdate.y: Unconditionally include alloca.h.
76433         * lib/makepath.c: Likewise.
76434         * lib/setenv.c: Likewise.
76435         * lib/userspec.c: Likewise.
76436
76437 2003-01-09  Karl Berry  <karl@gnu.org>
76438
76439         * MODULES.html.sh: include `dirname $0` in PATH, to find
76440         gnulib-tool.
76441
76442 2003-01-09  Bruno Haible  <bruno@clisp.org>
76443
76444         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76445         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76446
76447 2003-01-09  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76450
76451 2003-01-09  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/stdbool.h.in: New file.
76454
76455 2003-01-09  Bruno Haible  <bruno@clisp.org>
76456
76457         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76458         * MODULES.html.sh: Likewise.
76459
76460 2003-01-08  Jim Meyering  <jim@meyering.net>
76461
76462         * lib/full-write.c: Undefine and define-away `const' after inclusion
76463         of errno.h, not before.  Suggestion from Bruno Haible.
76464
76465 2003-01-08  Bruno Haible  <bruno@clisp.org>
76466
76467         * modules/full-read: Depend on full-write.
76468
76469 2003-01-08  Bruno Haible  <bruno@clisp.org>
76470
76471         * lib/safe-read.c: Include specification header first, to ensure its
76472         selfcontainedness.
76473         * lib/full-write.c: Likewise.
76474
76475 2003-01-07  Jim Meyering  <jim@meyering.net>
76476
76477         * lib/full-write.c: Rework so that it may serve to define full_read,
76478         too.
76479         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76480
76481 2003-01-07  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76484         <inttypes.h>.
76485         * lib/xstrtol.h: Likewise.
76486         * lib/xstrtoimax.c: Likewise.
76487         * lib/xstrtoumax.c: Likewise.
76488         * lib/human.h: Likewise.
76489
76490         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76491         on systems that have <inttypes.h> but not <stdint.h>.
76492
76493 2003-01-07  Bruno Haible  <bruno@clisp.org>
76494
76495         * MODULES.html.sh: Add copyright notice.
76496         (missed_files): Omit CVS directory entries.
76497         (func_module): Make it work with sed-3.02.
76498         * MODULES.txt: Remove file.
76499
76500 2003-01-06  Jim Meyering  <jim@meyering.net>
76501
76502         * lib/version-etc.c: Update year in translatable copyright string.
76503
76504 2003-01-03  Karl Berry  <karl@gnu.org>
76505
76506         * config/config.{guess,sub}: update from prep.
76507
76508 2003-01-02  Karl Berry  <karl@gnu.org>
76509
76510         * doc/COPYING.DOC: belatedly updated to 1.2.
76511
76512 2003-01-01  Karl Berry  <karl@gnu.org>
76513
76514         * gnulib-tool (func_verify_module): report module name $module in
76515         error message, not $1.
76516         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76517         be created, only if it doesn't exist.
76518         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76519
76520 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76521
76522         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76523
76524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76525
76526         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76527         memcmp if strcoll doesn't work.
76528
76529 2002-12-31  Bruno Haible  <bruno@clisp.org>
76530
76531         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76532         nonempty.
76533
76534 2002-12-31  Bruno Haible  <bruno@clisp.org>
76535
76536         * lib/memcoll.c (STRCOLL): New macro.
76537         (memcoll): Use it.
76538
76539 2002-12-31  Bruno Haible  <bruno@clisp.org>
76540
76541         * lib/localcharset.h: New file.
76542         * lib/localcharset.c: Include it.
76543         * lib/unicodeio.c: Likewise.
76544
76545 2002-12-31  Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76548         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76549
76550 2002-12-31  Bruno Haible  <bruno@clisp.org>
76551
76552         * lib/getline.h: Include <stddef.h>, for size_t.
76553
76554         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76555         * lib/unicodeio.c: Don't include <stddef.h>.
76556
76557 2002-12-31  Bruno Haible  <bruno@clisp.org>
76558
76559         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76560         HAVE_TM_ZONE.
76561
76562 2002-12-24  Karl Berry  <karl@gnu.org>
76563
76564         * config/config.guess: update from prep.
76565
76566 2002-12-24  Bruno Haible  <bruno@clisp.org>
76567
76568         General infrasructure.
76569         * m4/README: Rewritten.
76570         * m4/onceonly.m4: New file.
76571         * m4/onceonly_2_57.m4: New file.
76572
76573         Module atexit.
76574         * m4/atexit.m4: New file.
76575
76576         Module strtod.
76577         * m4/strtod.m4: New file.
76578
76579         Module strtol.
76580         * m4/strtol.m4: New file.
76581
76582         Module strtoul.
76583         * m4/strtoul.m4: New file.
76584
76585         Module memchr.
76586         * m4/memchr.m4: New file.
76587
76588         Module memcmp.
76589         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76590         (jm_FUNC_MEMCMP): Invoke it.
76591
76592         Module memcpy.
76593         * m4/memcpy.m4: New file.
76594
76595         Module memmove.
76596         * m4/memmove.m4: New file.
76597
76598         Module memset.
76599         * m4/memset.m4: New file.
76600
76601         Module strcspn.
76602         * m4/strcspn.m4: New file.
76603
76604         Module strpbrk.
76605         * m4/strpbrk.m4: New file.
76606
76607         Module strstr.
76608         * m4/strstr.m4: New file.
76609
76610         Module strerror.
76611         * m4/strerror.m4: New file.
76612
76613         Module mktime.
76614         * m4/mktime.m4: Renamed from jm-mktime.m4.
76615         (gl_PREREQ_MKTIME): New macro.
76616         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76617
76618         Module malloc.
76619         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76620         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76621         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76622
76623         Module realloc.
76624         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76625         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76626         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76627
76628         Module strftime.
76629         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76631         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76632         gl_TM_GMTOFF.
76633         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76634
76635         Module xalloc.
76636         * m4/xalloc.m4: New file.
76637
76638         Module alloca.
76639         * m4/alloca.m4: New file.
76640
76641         Module putenv.
76642         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76643         (jm_FUNC_PUTENV): Invoke it.
76644
76645         Module setenv.
76646         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76647         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76648         when invoked twice.
76649         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76650         gt_FUNC_SETENV.
76651
76652         Module memrchr.
76653         * m4/memrchr.m4: New file.
76654
76655         Module stpcpy.
76656         * m4/stpcpy.m4: New file.
76657
76658         Module strcase.
76659         * m4/strcase.m4: New file.
76660
76661         Module strdup.
76662         * m4/strdup.m4: New file.
76663
76664         Module strnlen.
76665         * m4/strnlen.m4: New file.
76666
76667         Module strndup.
76668         * m4/strndup.m4: New file.
76669
76670         Module xstrtod.
76671         * m4/xstrtod.m4: New file.
76672
76673         Module xstrtol.
76674         * m4/xstrtol.m4: New file.
76675
76676         Module getdate.
76677         * m4/getdate.m4: New file.
76678
76679         Module unlocked-io.
76680         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76681         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76682         * m4/jm-glibc-io.m4n: Remove file.
76683
76684         Module long-options.
76685         * m4/long-options.m4: New file.
76686
76687         Module md5.
76688         * m4/md5.m4: New file.
76689
76690         Module sha.
76691         * m4/sha.m4: New file.
76692
76693         Module getstr.
76694         * m4/getstr.m4: New file.
76695
76696         Module getline.
76697         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76698         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76699         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76700         simply getline. Infoke gl_PREREQ_GETLINE.
76701
76702         Module obstack.
76703         * m4/obstack.m4: New file.
76704
76705         Module hash.
76706         * m4/hash.m4: New file.
76707
76708         Module readtokens.
76709         * m4/readtokens.m4: New file.
76710
76711         Module strverscmp.
76712         * m4/strverscmp.m4: New file.
76713
76714         Module stdbool.
76715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76716         OSF/1.
76717
76718         Module strtoll.
76719         * m4/strtoll.m4: New file.
76720
76721         Module strtoull.
76722         * m4/strtoull.m4: New file.
76723
76724         Module strtoimax.
76725         * m4/strtoimax.m4: New file.
76726
76727         Module strtoumax.
76728         * m4/strtoumax.m4: New file.
76729
76730         Module xstrtoimax.
76731         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76732         jm_AC_PREREQ_XSTRTOIMAX.
76733         Moved the strtol prerequisites to strtol.m4.
76734         Moved the strtoll prerequisites to strtoll.m4.
76735         Moved the strtoimax prerequisites to strtoimax.m4.
76736
76737         Module xstrtoumax.
76738         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76739         jm_AC_PREREQ_XSTRTOUMAX.
76740         Moved the strtoul prerequisites to strtoul.m4.
76741         Moved the strtoull prerequisites to strtoull.m4.
76742         Moved the strtoumax prerequisites to strtoumax.m4.
76743
76744         Module chown.
76745         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76746         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76747
76748         Module dup2.
76749         * m4/dup2.m4: New file.
76750
76751         Module ftruncate.
76752         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76753         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76754
76755         Module getgroups.
76756         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76757         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76758
76759         Module gettimeofday.
76760         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76761         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76762         gl_PREREQ_GETTIMEOFDAY.
76763
76764         Module mkdir.
76765         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76766         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76767
76768         Module mkstemp.
76769         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76770         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76771         jm_AC_TYPE_UINTMAX_T.
76772         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76773
76774         Module stat.
76775         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76776         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76777
76778         Module lstat.
76779         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76780         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76781
76782         Module timespec.
76783         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76784         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76785         * m4/st_mtim.m4: Indentation.
76786
76787         Module nanosleep.
76788         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76789         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76790         gl_PREREQ_NANOSLEEP.
76791
76792         Module regex.
76793         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76794         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76795         (gl_REGEX): New macro.
76796
76797         Module rename.
76798         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76799         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76800
76801         Module rmdir.
76802         * m4/rmdir.m4: New file.
76803
76804         Module utime.
76805         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76806         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76807         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76808
76809         Module dirname.
76810         * m4/dirname.m4: New file.
76811
76812         Module getopt.
76813         * m4/getopt.m4: New file.
76814
76815         Module unistd-safer.
76816         * m4/unistd-safer.m4: New file.
76817
76818         Module fnmatch.
76819         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76820         declaration.
76821         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76822         (gl_FUNC_FNMATCH_POSIX): New macro.
76823         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76824         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76825         simply fnmatch.
76826
76827         Module exclude.
76828         * m4/exclude.m4: New file.
76829
76830         Module human.
76831         * m4/human.m4: New file.
76832
76833         Module acl.
76834         * m4/acl.m4: Nop.
76835
76836         Module backupfile.
76837         * m4/backupfile.m4: New file.
76838         * m4/d-ino.m4: Indentation.
76839
76840         Module fsusage.
76841         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76842         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76843         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76844
76845         Module dirfd.
76846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76847         requirements.
76848
76849         Module euidaccess.
76850         * m4/euidaccess.m4: New file.
76851
76852         Module file-type.
76853         * m4/file-type.m4: New file.
76854
76855         Module fileblocks.
76856         * m4/fileblocks.m4: New file.
76857
76858         Module filemode.
76859         * m4/filemode.m4: New file.
76860
76861         Module isdir.
76862         * m4/isdir.m4: New file.
76863
76864         Module lchown.
76865         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76866         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76867
76868         Module makepath.
76869         * m4/makepath.m4: New file.
76870
76871         Module modechange.
76872         * m4/modechange.m4: New file.
76873
76874         Module mountlist.
76875         * m4/mountlist.m4: New file.
76876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76877         Indentation.
76878
76879         Module path-concat.
76880         * m4/path-concat.m4: New file.
76881
76882         Module pathmax.
76883         * m4/pathmax.m4: New file.
76884
76885         Module same.
76886         * m4/same.m4: New file.
76887
76888         Module save-cwd.
76889         * m4/save-cwd.m4: New file.
76890
76891         Module savedir.
76892         * m4/savedir.m4: New file.
76893
76894         Module xgetcwd.
76895         * m4/xgetcwd.m4: New file.
76896         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76897
76898         Module xreadlink.
76899         * m4/xreadlink.m4: New file.
76900
76901         Module safe-read.
76902         * m4/safe-read.m4: New file.
76903
76904         Module safe-write.
76905         * m4/safe-write.m4: New file.
76906
76907         Module closeout.
76908         * m4/closeout.m4: New file.
76909
76910         Module stdio-safer.
76911         * m4/stdio-safer.m4: New file.
76912
76913         Module getpass.
76914         * m4/getpass.m4: New file.
76915
76916         Module getugroups.
76917         * m4/getugroups.m4: New file.
76918
76919         Module group-member.
76920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76921         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76922
76923         Module idcache.
76924         * m4/idcache.m4: New file.
76925
76926         Module userspec.
76927         * m4/userspec.m4: New file.
76928
76929         Module gettime.
76930         * m4/clock_time.m4: New file.
76931         * m4/gettime.m4: New file.
76932
76933         Module settime.
76934         * m4/settime.m4: New file.
76935
76936         Module posixtm.
76937         * m4/posixtm.m4: New file.
76938
76939         Module gethostname.
76940         * m4/gethostname.m4: New file.
76941
76942         Module canon-host.
76943         * m4/canon-host.m4: New file.
76944
76945         Module gettext.
76946         * m4/codeset.m4: New file, from gettext-0.11.5.
76947         * m4/gettext.m4: New file, from gettext-0.11.5.
76948         * m4/glibc21.m4: New file, from gettext-0.11.5.
76949         * m4/iconv.m4: New file, from gettext-0.11.5.
76950         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76951         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76952         * m4/inttypes.m4: New file, from gettext-0.11.5.
76953         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76954         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76955         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76956         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76957         * m4/lib-link.m4: New file, from gettext-0.11.5.
76958         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76959         * m4/progtest.m4: New file, from gettext-0.11.5.
76960         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76961         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76962         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76963
76964         Module localcharset.
76965         * m4/localcharset.m4: New file.
76966
76967         Module hard-locale.
76968         * m4/hard-locale.m4: New file.
76969
76970         Module mbswidth.
76971         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76972         onceonly macros.
76973         * m4/mbrtowc.m4: Add comment.
76974
76975         Module memcasecmp.
76976         * m4/memcasecmp.m4: New file.
76977
76978         Module memcoll.
76979         * m4/memcoll.m4: New file.
76980
76981         Module unicodeio.
76982         * m4/unicodeio.m4: New file.
76983
76984         Module rpmatch.
76985         * m4/rpmatch.m4: New file.
76986
76987         Module yesno.
76988         * m4/yesno.m4: New file.
76989
76990         Module exitfail.
76991         * m4/exitfail.m4: New file.
76992
76993         Module c-stack.
76994         * m4/c-stack.m4 (gl_C_STACK): New macro.
76995         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76996
76997         Module error.
76998         * m4/error.m4 (gl_ERROR): New macro.
76999         (jm_PREREQ_ERROR): Use onceonly macros.
77000
77001         Module fatal.
77002         * m4/fatal.m4: New file.
77003
77004         Module getloadavg.
77005         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77006         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77007
77008         Module getpagesize.
77009         * m4/getpagesize.m4: New file.
77010
77011         Module getusershell.
77012         * m4/getusershell.m4: New file.
77013
77014         Module physmem.
77015         * m4/physmem.m4: New file.
77016
77017         Module posixver.
77018         * m4/posixver.m4: New file.
77019
77020         Module quotearg.
77021         * m4/quotearg.m4: New file.
77022
77023         Module quote.
77024         * m4/quote.m4: New file.
77025
77026         Module readutmp.
77027         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77028
77029         Module sig2str.
77030         * m4/sig2str.m4: New file.
77031
77032         Other.
77033         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77034         ulonglong.m4.
77035         * m4/intmax_t.m4: New file.
77036         * m4/d-type.m4: Indentation.
77037         * m4/jm-macros.m4: Update.
77038         * m4/prereq.m4 (jm_PREREQ): Update.
77039         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77040         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77041         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77042         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77043         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77044         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77045         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77046         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77047         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77048         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77049         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77050         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77051         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77052         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77053         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77054         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77055         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77056         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77057         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77058
77059 2002-12-24  Bruno Haible  <bruno@clisp.org>
77060
77061         * MODULES.txt: Update according to m4/ changes.
77062
77063         Module gettext.
77064         * config.rpath: New file, from gettext-0.11.5.
77065
77066         * modules/*: New module descriptions.
77067         * gnulib-tool: New file.
77068         * MODULES.html.sh: New file.
77069
77070 2002-12-21  Karl Berry  <karl@gnu.org>
77071
77072         * doc/fdl.texi: update to version 1.2.
77073
77074 2002-12-19  Karl Berry  <karl@gnu.org>
77075
77076         * config/config.guess: update from prep.
77077
77078 2002-12-18  Bruno Haible  <bruno@clisp.org>
77079
77080         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77081         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77082
77083 2002-12-17  Bruno Haible  <bruno@clisp.org>
77084
77085         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77086         stdlib.h, string.h.
77087
77088 2002-12-17  Bruno Haible  <bruno@clisp.org>
77089
77090         * lib/canon-host.c (strdup): Remove unused declaration.
77091
77092         * lib/fsusage.c: Include full_read.h.
77093         (get_fs_usage): Use full_read instead of safe_read.
77094
77095         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77096
77097 2002-12-12  Karl Berry  <karl@gnu.org>
77098
77099         * config/config.guess: update from prep.
77100
77101 2002-12-11  Bruno Haible  <bruno@clisp.org>
77102
77103         * m4/setenv.m4: New file, from gettext-0.11.5.
77104
77105 2002-12-11  Bruno Haible  <bruno@clisp.org>
77106
77107         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77108         not unsetenv().
77109         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77110         modifications:
77111
77112         2002-12-11  Bruno Haible  <bruno@clisp.org>
77113
77114                 * setenv.c (alloca): Fall back to malloc.
77115                 (freea): New macro.
77116                 (setenv): Use freea() to free memory allocated with alloca().
77117
77118         2002-11-13  Bruno Haible  <bruno@clisp.org>
77119
77120                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77121                 function declarations.
77122                 * unsetenv.c (unsetenv): Likewise.
77123
77124         2002-03-04  Bruno Haible  <bruno@clisp.org>
77125
77126                 Portability to AIX 4.3.3.
77127                 * unsetenv.c: New file, extracted from setenv.c.
77128                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77129
77130         2001-12-20  Bruno Haible  <bruno@clisp.org>
77131
77132                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77133                 use malloc instead. For SunOS 4.
77134
77135         2001-12-11  Bruno Haible  <bruno@clisp.org>
77136
77137                 * setenv.c: Declare alloca.
77138                 (compar_fn_t): New typedef.
77139                 (KNOWN_VALUE, STORE_VALUE): Use it.
77140
77141         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77142         setenv.h.
77143
77144 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77145
77146         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77147         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77148         Choose values that are less likely to collide with system fnmatch
77149         options.
77150         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77151         defined (e.g., a pure POSIX system).
77152         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77153         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77154
77155 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77156
77157         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77158         a pain in practice to deal with generated m4 files.  This change
77159         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77160
77161         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77162         and jm-glibc-io.m4, as they are no longer a special case.
77163         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77164         kludge and the auto-generation stuff.  Check only whether the
77165         functions are declared, not whether they exist, since older hosts
77166         that don't declare the functions can't use the optimization anyway.
77167
77168 2002-12-06  Jim Meyering  <jim@meyering.net>
77169
77170         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77171
77172         Merge in changes from libc's misc/error.c, in preparation
77173         for the merge of gnulib's changes back into libc.
77174
77175         * lib/error.c (_): Define only if not already defined.
77176         Move definition to follow all #include directives.
77177         Include unlocked-io.h only if !_LIBC.
77178         [_LIBC]: Include <libio/libioP.h>.
77179         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77180         (fflush): Tweak definition to use INTUSE.
77181         (putc): Define.
77182
77183 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77184
77185         * lib/alloca.c [defined emacs]: Include "lisp.h".
77186         (xalloc_die) [defined emacs]: New macro.
77187         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77188         [! defined emacs]: Include <xalloc.h>.
77189         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77190         (pointer): Typedef to POINTER_TYPE *.
77191         (malloc): Remove decl; we now always use xmalloc.
77192         (alloca): Use old-style definition, since Emacs needs this.
77193         Check for arithmetic overflow when computing combined size.
77194
77195 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77196
77197         Do not generate unlocked-io.h automatically, since it's easier to
77198         maintain it by hand.
77199
77200         * lib/unlocked-io.h: New file, from GNU diffutils,
77201         but with proper copyright notice and attribution.
77202         * lib/gen-uio: Remove.
77203         * lib/Makefile.am: Add copyright notice.
77204         (libfetish_a_SOURCES): Add unlocked-io.h.
77205         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77206         (DISTCLEANFILES, io_functions): Remove macros.
77207         (EXTRA_DIST): Remove gen_uio.
77208         (unlocked-io.h): Remove rule.
77209
77210 2002-12-04  Jim Meyering  <jim@meyering.net>
77211
77212         Reflect the fact that stat.c and lstat.c are no longer generated.
77213         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77214         (DISTCLEANFILES): Likewise.
77215         (EXTRA_DIST): Likewise.
77216         (all_local): Don't depend on stat.c or lstat.c.
77217         (stat.c, lstat.c): Remove rules.
77218         (EXTRA_DIST): Remove xstat.in.
77219
77220         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77221         * lib/stat.c: New file.  Contents mostly from xstat.in.
77222         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77223         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77224
77225         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77226         too.
77227         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77228
77229 2002-12-03  Jim Meyering  <jim@meyering.net>
77230
77231         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77232         but not semantics, to minimize the differences between these two files.
77233         (safe_read): Change comment to mention SAFE_READ_ERROR.
77234
77235         * lib/safe-read.c (IS_EINTR): Define.
77236         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77237
77238 2002-12-02  Jim Meyering  <jim@meyering.net>
77239
77240         * lib/safe-read.c (EINTR): Define.
77241         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77242         (INT_MAX): Provide fallback.
77243         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77244
77245         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77246
77247 2002-12-02  Bruno Haible  <bruno@clisp.org>
77248
77249         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77250         Define, taken from safe-read.c.
77251         (INT_MAX): Provide fallback.
77252         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77253         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77254
77255         * lib/safe-read.c (EINTR): Remove definition.
77256         (safe_read): Don't use EINTR if it is absent.
77257
77258 2002-12-01  Jim Meyering  <jim@meyering.net>
77259
77260         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77261         zero.
77262         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77263
77264 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77265
77266         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77267         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77268         with `if (! (value < limit)) abort ();', for readability.
77269
77270 2002-11-26  Karl Berry  <karl@gnu.org>
77271
77272         * lib/strdup.c: copy from libc again, with jim's ok.
77273         * lib/.cppi-disable: re-add strdup.c
77274
77275 2002-11-25  Karl Berry  <karl@gnu.org>
77276
77277         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77278         instead of "strtol.c".
77279
77280 2002-11-25  Karl Berry  <karl@gnu.org>
77281
77282         * config/install-sh: update from automake for variable quoting, $0 in
77283         error msgs, etc.
77284
77285         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77286         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77287         entry.
77288
77289 2002-11-25  Jim Meyering  <jim@meyering.net>
77290
77291         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77292
77293 2002-11-24  Karl Berry  <karl@gnu.org>
77294
77295         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77296         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77297
77298 2002-11-24  Jim Meyering  <jim@meyering.net>
77299
77300         Update from coreutils:
77301
77302         * lib/mktime.c: Merge in changes from libc.
77303
77304         Avoid a link-time failure on some Linux systems.
77305         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77306         (otherwise).
77307         (__mon_yday): Declare with the STATIC attribute.
77308         (__mktime_internal): Likewise.
77309         Based on a report from Greg Schafer.
77310
77311 2002-11-23  Jim Meyering  <jim@meyering.net>
77312
77313         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77314         Use `unsigned', not `int', as type of index.
77315
77316         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77317
77318         * lib/fsusage.c: Remove unneeded parentheses around operands of
77319         `defined'.
77320
77321 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77322
77323         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77324         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77325         so that we can be included first.
77326         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77327         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77328         No need to include stddef.h or sys/types.h any more.
77329         Surround local include files with "", not "<>".
77330         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77331         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77332         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77333         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77334         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77335         (ISPRINT): Remove; no longer needed now that we assume C89.
77336
77337         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77338         Preserve errno.
77339
77340         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77341         quotearg_char): Use SIZE_MAX rather than
77342         (size_t) -1 when we are talking about "infinity".
77343
77344         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77345
77346 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77347
77348         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77349         hint that one should use `if (! x) abort ();' rather than `assert
77350         (x);', and anyway it's one less thing to worry about configuring.
77351         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77352         hash_rehash, hash_insert): Use abort rather than assert.
77353
77354 2002-11-22  Bruno Haible  <bruno@clisp.org>
77355
77356         * lib/safe-read.h: Assume C89. Add comments.
77357         (safe_read): Change return type to size_t.
77358         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77359         byte counts > SSIZE_MAX correctly.
77360         * lib/safe-write.h: New file.
77361         * lib/safe-write.c: New file.
77362         * lib/full-read.h: New file.
77363         * lib/full-read.c: New file.
77364         * lib/full-write.h: Assume C89. Add comments.
77365         * lib/full-write.c: Include safe-write.h.
77366         (full_write): Rewritten to use safe_write.
77367         Suggested by Jim Meyering and Paul Eggert.
77368
77369 2002-11-21  Jim Meyering  <jim@meyering.net>
77370
77371         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77372
77373         Merge in changes from the coreutils.
77374
77375         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77376         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77377         <stdint.h>.
77378         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77379         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77380         int.  Work more efficiently if X is the same width as uintmax_t.
77381         Do not compare X to -1, to avoid bogus compiler warning.
77382         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77383         Don't assume that f_frsize and f_bsize are the same type.
77384
77385         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77386         warning on FreeBSD.
77387
77388         * lib/makepath.c (make_path): Restore umask *before* creating the final
77389         component.
77390         (make_path): Minor reformatting.
77391
77392         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77393         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77394         HAVE_MALLOC/HAVE_REALLOC.
77395
77396         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77397         dummy ones.  At least on GNU/Linux systems, `auto' means something
77398         else.
77399         From Michael Stone.
77400
77401 2002-11-21  Bruno Haible  <bruno@clisp.org>
77402
77403         Remove case insensitive option matching.
77404         * lib/argmatch.h (argcasematch): Remove declaration.
77405         (ARGCASEMATCH): Remove macro.
77406         (__xargmatch_internal): Remove case_sensitive argument.
77407         (XARGMATCH): Update.
77408         (XARGCASEMATCH): Remove macro.
77409         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77410         case_sensitive argument.
77411         (argcasematch): Remove function.
77412         (__xargmatch_internal): Remove case_sensitive argument.
77413         (main): Use XARGMATCH instead of XARGCASEMATCH.
77414
77415         * lib/xmalloc.c: Change compile-time error message. Add comment about
77416         required autoconf version.
77417
77418 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77419
77420         Merge argmatch cleanups from Bison.  Assume C89.
77421
77422         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77423         Include stdlib.h, for EXIT_FAILURE.
77424         Always include <string.h>, since we assume C89.
77425         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77426         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77427         Include <stddef.h> instead, since it's all we need for size_t.
77428         (PARAMS): Remove.  All uses removed.
77429         (ARRAY_CARDINALITY): Do not bother to #undef.
77430         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77431         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77432         Remove unnecessary parentheses.
77433         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77434         Insert necessary parentheses.
77435         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77436         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77437
77438 2002-11-19  Bruno Haible  <bruno@clisp.org>
77439
77440         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77441         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77442
77443         * lib/mbswidth.h (PARAMS): Remove macro.
77444         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77445         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77446
77447         * lib/gcd.h (PARAMS): Remove macro.
77448         (gcd): Use ANSI C function declarations.
77449         * lib/gcd.c (gcd): Likewise.
77450
77451 2002-11-15  Bruno Haible  <bruno@clisp.org>
77452
77453         * lib/strcspn.c: Include <stddef.h>.
77454         (strcspn): Use ANSI C function declaration. Change return type to
77455         size_t. Use NULL.
77456         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77457         (strpbrk): Use NULL.
77458         * lib/strpbrk.h (PARAMS): Remove macro.
77459         (strpbrk): Use ANSI C function declaration.
77460         * lib/strstr.c: Don't include <sys/types.h>.
77461         * lib/strstr.h (PARAMS): Remove macro.
77462         (strstr): Use ANSI C function declarations.
77463
77464 2002-11-14  Karl Berry  <karl@gnu.org>
77465
77466         * config/mkinstalldirs: `do' on separate line, instead of
77467         `for var; do'.
77468
77469 2002-11-06  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77472         * lib/gcd.c (gcd): Likewise.
77473
77474 2002-11-05  Bruno Haible  <bruno@clisp.org>
77475
77476         * lib/gcd.h: New file, from gettext-0.11.5.
77477         * lib/gcd.c: New file, from gettext-0.11.5.
77478
77479 2002-11-05  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77482         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77483         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77484         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77485
77486         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77487         <libintl.h>.
77488         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77489         <libintl.h>.
77490
77491         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77492         * lib/human.c: Include gettext.h instead of <libintl.h>.
77493         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77494         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77495         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77496         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77497         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77498         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77499         (textdomain): Remove definition.
77500         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77501
77502         * lib/long-options.c: Remove include of <libintl.h> and definition of
77503         _.
77504         * lib/same.c: Remove include of <libintl.h> and definition of _.
77505
77506 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77507
77508         * lib/config.charset: A few additions for Solaris.
77509
77510 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77511
77512         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77513         * lib/localcharset.c (locale_charset): Declare as extern "C".
77514
77515 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77516
77517         * lib/config.charset: msdos in uk_UA uses CP1125.
77518
77519 2002-11-04  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77522         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77523         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77524         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77525         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77526
77527 2002-11-04  Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/localcharset.c (locale_charset): Don't return an empty string.
77530
77531 2002-11-04  Bruno Haible  <bruno@clisp.org>
77532
77533         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77534         aliases.
77535
77536 2002-11-04  Bruno Haible  <bruno@clisp.org>
77537
77538         * lib/config.charset: Update for newest glibc. Add canonical names
77539         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77540
77541 2002-11-04  Bruno Haible  <bruno@clisp.org>
77542
77543         * lib/config.charset: Add support for NetBSD.
77544
77545 2002-11-04  Bruno Haible  <bruno@clisp.org>
77546
77547         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77548
77549 2002-11-01  Bruno Haible  <bruno@clisp.org>
77550
77551         * configure.in: Add AC_CONFIG_AUX_DIR call.
77552         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77553         test/Makefile.
77554         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77555
77556 2002-09-28  Karl Berry  <karl@gnu.org>
77557
77558         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77559         installed automake until the next release, since changes have been
77560         made.
77561
77562 2002-09-25  Karl Berry  <karl@gnu.org>
77563
77564         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77565         * lib/getopt*: copy from libc/posix.
77566         * lib/gettext.h: copy from gettext.
77567         * lib/.cppi-disable: add strdup.c, gettext.h.
77568
77569 2002-09-25  Karl Berry  <karl@gnu.org>
77570
77571         * config/srclist.txt: enable gettext.h check.
77572         * config/config.{guess,sub}: update from prep.
77573         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77574                 from automake 1.6.3.
77575         See srclist*.
77576
77577 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77578
77579         * regex.c (PATFETCH): Remove the translating fetch.
77580         (PATFETCH_RAW): Rename to PATFETCH.
77581         (set_image_of_range): New fun.
77582         (SET_RANGE_TABLE_WORK_AREA): Use it.
77583         (regex_compile): Don't translate the pattern chars so eagerly.
77584         Only do it when inserting an `exactn' bytecode or when handling
77585         a char-range.
77586         (mutually_exclusive_p): Avoid empty statement.
77587
77588 2002-07-06  Jim Meyering  <meyering@lucent.com>
77589
77590         * m4/README: Don't mention Makefile.am.in.
77591         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77592
77593 2002-07-01  Jim Meyering  <meyering@lucent.com>
77594
77595         * lib/c-stack.c: Include sys/time.h.
77596         From Volker Borchert.
77597
77598 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77599
77600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77601
77602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77603
77604         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77605         New macro.  Use it uniformly instead of
77606         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77607         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77608         reported by Vin Shelton.
77609
77610 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77611
77612         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77613         Do not assume SA_SIGINFO behavior.
77614         Bug reported by Jim Meyering on NetBSD 1.5.2.
77615
77616 2002-06-22  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77620
77621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77622         now that configure.ac uses AC_GNU_SOURCE.
77623         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77624         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77625
77626         Update to latest tools.  Suggestions from Paul Eggert.
77627         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77628         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77629         * m4/fnmatch.m4: Likewise.
77630         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77631         to AC_HEADER_STDBOOL
77632
77633 2002-06-22  Jim Meyering  <meyering@lucent.com>
77634
77635         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77636         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77637
77638 2002-06-22  Jim Meyering  <meyering@lucent.com>
77639
77640         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77641
77642         * lib/exitfail.c, exitfail.h: Likewise.
77643         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77644
77645         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77646         of fnmatch.h.
77647         (EXTRA_DIST): Add fnmatch_loop.c.
77648         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77649
77650         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77651         * lib/fnmatch.c: Update from diffutils-2.8.2.
77652         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77653         * lib/fnmatch.h: Remove file.
77654
77655 2002-06-21  Jim Meyering  <meyering@lucent.com>
77656
77657         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77658         * m4/mbrtowc.m4: Likewise.
77659
77660         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77661         * m4/mbswidth.m4: Reflect name change:
77662         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77663         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77664
77665         * m4/lib-link.m4: Update from gettext-0.11.2.
77666         * m4/gettext.m4: Likewise.
77667
77668         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77669         From Alfred M. Szmidt.
77670
77671 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77672
77673         * lib/file-type.h: Report an error if neither S_ISREG nor
77674         S_IFREG is defined, instead of using a test specific to glibc
77675         2.2.  This should be safe, since POSIX requires S_ISREG and
77676         Unix Version 7 had S_IFREG.  We don't need to check for
77677         <sys/types.h> since we don't use any symbols that it defines.
77678
77679 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77680
77681         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77682         $@-t, so that each temporary file name is unique and valid in the first
77683         8 characters, for operation under DOS.
77684
77685 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77686
77687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77688
77689 2002-06-15  Jim Meyering  <meyering@lucent.com>
77690
77691         Work even with DJGPP 2.03, which lacks support for symlinks.
77692         From Richard Dawe.
77693         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77694         is defined.
77695         * lib/lchown.c (S_ISLNK): Likewise.
77696
77697 2002-06-15  Jim Meyering  <meyering@lucent.com>
77698
77699         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77700         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77701         have been included before this file.
77702
77703 2002-06-14  Jim Meyering  <meyering@lucent.com>
77704
77705         * lib/file-type.h: Use the version from diffutils-2.8.2.
77706         * lib/file-type.c: Likewise.
77707
77708 2002-06-07  Jim Meyering  <meyering@lucent.com>
77709
77710         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77711         They're needed at least for NetBSD 1.5.2.
77712         ($statxfs_includes): Include those same headers.
77713         ($statxfs_includes): Include sys/vfs.h if available.
77714         ($statxfs_includes): Likewise for sys/statvfs.h.
77715         Check for the following members in both structs statfs and statvfs:
77716         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77717
77718 2002-06-01  Jim Meyering  <meyering@lucent.com>
77719
77720         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77721         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77722
77723 2002-05-28  Jim Meyering  <meyering@lucent.com>
77724
77725         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77726         Reported by Volker Borchert.
77727
77728 2002-05-27  Jim Meyering  <meyering@lucent.com>
77729
77730         Fix a problem seen only on nonconforming systems whereby ls.c's
77731         use of localtime, and then of gettimeofday would cause trouble:
77732         the localtime call used to initialize rpl_gettimeofday's save
77733         mechanism would clobber ls's current local time information so
77734         that in any long listing the first file would always be listed
77735         with date 1970-01-01.  Analysis by Volker Borchert.
77736
77737         * lib/gettimeofday.c (localtime): Undefine.
77738         (rpl_localtime): New function.
77739
77740 2002-05-27  Jim Meyering  <meyering@lucent.com>
77741
77742         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77743         localtime.
77744
77745         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77746         use the replacement function; it wouldn't resolve at link time.
77747         Reported by Volker Borchert.
77748
77749 2002-05-22  Jim Meyering  <meyering@lucent.com>
77750
77751         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77752         file-type.h.
77753         * lib/file-type.h: New file.
77754         * lib/file-type.c (file_type): New file/function.  Extracted from
77755         diffutils.
77756
77757 2002-04-30  Jim Meyering  <meyering@lucent.com>
77758
77759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77760
77761 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77762
77763         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77764
77765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77766
77767         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77768         Do not check for alloca.h (no longer used) or stdbool.h (was never
77769         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77770
77771 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77772
77773         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77774
77775 2002-04-29  Jim Meyering  <meyering@lucent.com>
77776
77777         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77778         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77779         Use AC_FUNC_STRNLEN here instead.
77780
77781         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77782         With autoconf-2.53a, it's part of AC_PROG_CC.
77783
77784 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77785
77786         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77788
77789 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77790
77791         * lib/sig2str.h, lib/sig2str.c: New files.
77792         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77793
77794 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77795
77796         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77797         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77798         of 127, since 64 is the largest conceivable number for ancient
77799         nonstandard hosts.
77800         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77801
77802 2002-04-28  Jim Meyering  <meyering@lucent.com>
77803
77804         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77805
77806 2002-04-24  Jim Meyering  <meyering@lucent.com>
77807
77808         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77809         (jm_PREREQ): Use it.
77810
77811         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77812         mach/mach.h fcntl.h.
77813         Check for this function: setlocale.
77814
77815 2002-04-24  Jim Meyering  <meyering@lucent.com>
77816
77817         * lib/gettext.h: New file, from Gettext.
77818         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77819         (libfetish_a_SOURCES): Add gettext.h.
77820
77821 2002-04-16  Jim Meyering  <meyering@lucent.com>
77822
77823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77824         ut_pid, ut_id, ut_exit.
77825
77826 2002-04-16  Jim Meyering  <meyering@lucent.com>
77827
77828         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77829         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77830         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77831
77832 2002-04-12  Jim Meyering  <meyering@lucent.com>
77833
77834         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77835         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77836         existence of the getmntinfo function.  Needed for Darwin 5.3.
77837
77838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77839         This is necessary at least on Darwin 5.3.
77840
77841         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77842         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77843         strnlen.o in the library, and that makes some versions of ranlib
77844         object.
77845
77846 2002-04-12  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77849
77850 2002-04-09  Jim Meyering  <meyering@lucent.com>
77851
77852         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77853         to be more precise.  Rather than saying we're checking whether the
77854         function `works', say what we're testing.
77855         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77856         Reported by Bruno Haible.
77857
77858 2002-03-10  Jim Meyering  <meyering@lucent.com>
77859
77860         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77861         Suggestion from Santiago Vila.
77862
77863 2002-03-08  Jim Meyering  <meyering@lucent.com>
77864
77865         * lib/rename.c: Mention that this wrapper is needed also on
77866         mips-dec-ultrix4.4 systems.
77867
77868 2002-03-02  Jim Meyering  <meyering@lucent.com>
77869
77870         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77871         not HAVE_CLOCK_SETTIME.
77872
77873 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77874
77875         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77876         Check for clock_settime.
77877
77878 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77879
77880         * lib/nanosleep.h: Rename to....
77881         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77882
77883         * lib/gettime.c: New file.
77884         * lib/settime.c: New file.
77885         * lib/stime.c: Remove.
77886
77887         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77888         timespec.h.  Remove nanosleep.h.
77889
77890 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77891
77892         * m4/acl.m4: New file.
77893         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77894         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77895
77896 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77897
77898         * lib/acl.c, lib/acl.h: New files.
77899         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77900
77901 2002-02-24  Jim Meyering  <meyering@lucent.com>
77902
77903         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77904         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77905         cause trouble.  Reported by Nelson Beebe.
77906
77907 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77908
77909         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77910         compilers that don't know that xalloc_die never returns.
77911
77912 2002-02-20  Jim Meyering  <meyering@lucent.com>
77913
77914         * lib/getdate.c: Regenerate using bison-1.33.
77915
77916 2002-02-17  Jim Meyering  <meyering@lucent.com>
77917
77918         * config/config.guess (main): Don't use `head -1'; it's no longer
77919         portable. Use `sed 1q' instead.
77920
77921 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77922
77923         * m4/codeset.m4: Upgrade to gettext-0.11.
77924         * m4/gettext.m4: Upgrade to gettext-0.11.
77925         * m4/glibc21.m4: Upgrade to gettext-0.11.
77926         * m4/iconv.m4: Upgrade to gettext-0.11.
77927         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77928         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77929         * m4/lib-ld.m4: New file, from gettext-0.11.
77930         * m4/lib-link.m4: New file, from gettext-0.11.
77931         * m4/lib-prefix.m4: New file, from gettext-0.11.
77932         * m4/progtest.m4: Upgrade to gettext-0.11.
77933
77934 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77935
77936         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77937         (jm_PREREQ): Use it.
77938
77939 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77940
77941         * lib/posixver.c, lib/posixver.h: New files.
77942         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77943
77944 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77945             Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77948         (fwrite_success_callback): New declaration.
77949         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77950         print_unicode_char. Call failure callback instead of error.
77951         (fwrite_success_callback): New function.
77952         (exit_failure_callback): New function.
77953         (fallback_failure_callback): New function.
77954         (print_unicode_char): Call unicode_to_mb.
77955
77956 2002-01-26  Jim Meyering  <meyering@lucent.com>
77957
77958         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77959         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77960
77961 2002-01-26  Jim Meyering  <meyering@lucent.com>
77962
77963         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77964
77965 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77966
77967         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77968
77969 2002-01-22  Jim Meyering  <meyering@lucent.com>
77970
77971         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77972         Otherwise, some versions of automake would omit the rule that makes
77973         Makefile from Makefile.in.
77974
77975 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77976
77977         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77978         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77979         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77980         (memcoll): Set errno to zero if there is no error.
77981
77982         * lib/quotearg.c (quotearg_buffer_restyled):
77983         Fix bug with quoting buffers containing NUL when backslashing escapes.
77984         This bug was exposed by the other changes in this patch.
77985         (quotearg_n_options): New arg ARGSIZE.
77986         All callers changed.
77987         (quoting_options_from_style): New function.
77988         (quotearg_n_style): Use it.
77989         (quotearg_n_style_mem): New function.
77990
77991         * lib/quotearg.h (quotearg_n_style_mem): New function.
77992
77993 2002-01-19  Jim Meyering  <meyering@lucent.com>
77994
77995         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77996         Remove useless quotes: DF_PROG="df".
77997         * m4/strnlen.m4: New file.
77998
77999 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78000
78001         * lib/backupfile.c (ISDIGIT): Comment fix.
78002         * lib/getdate.y (ISDIGIT): Likewise.
78003         * lib/posixtm.c (ISDIGIT, year): Likewise.
78004         * lib/strverscmp.c (ISDIGIT): Likewise.
78005         * lib/userspec.c (ISDIGIT): Likewise.
78006
78007 2002-01-16  Jim Meyering  <meyering@lucent.com>
78008
78009         * lib/getdate.y: Add three semicolons, each just before a closing
78010         brace. Bison (as of version 1.31) no longer papers over that mistake.
78011
78012 2002-01-05  Jim Meyering  <meyering@lucent.com>
78013
78014         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78015
78016 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78017
78018         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78019         not silently exit merely because the output buffer happens to
78020         have nothing pending.
78021
78022 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78023
78024         See the big note in ../ChangeLog.
78025         * lib/human.c (suffixes): Prefer K to k for 1024.
78026         (generate_suffix_backwards): New function.
78027         (human_readable_inexact): Use it.
78028         * lib/xstrtol.c (__xstrtol): If there is no number but there
78029         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78030         Accept 'K' as well as 'k'.
78031
78032 2001-12-15  Jim Meyering  <meyering@lucent.com>
78033
78034         * lib/regex.h (__restrict_arr): Update from libc.
78035
78036         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78037         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78038         (STREQ): Define.
78039
78040 2001-12-14  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78043         Suggestion from Bruno Haible.
78044
78045 2001-12-10  Jim Meyering  <meyering@lucent.com>
78046
78047         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78048         xrealloc, Instead, include "xalloc.h".
78049         (initbuffer): Don't cast xmalloc return value to char*.
78050         (readline): Reword comment.
78051         Don't cast xrealloc return value to char*
78052         Return NULL, not 0.
78053
78054 2001-12-09  Jim Meyering  <meyering@lucent.com>
78055
78056         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78057         about `signed and unsigned type in conditional expression'.
78058         * lib/posixtm.c (posix_time_parse): Likewise.
78059
78060         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78061
78062         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78063         to avoid a pedantic warning.
78064
78065         * lib/getstr.c: Don't include assert.h.
78066         (getstr): Remove warning-evoking assertions.
78067         Return -1 if offset parameter is out of bounds.
78068         Change the type of a local from int to size_t.
78069
78070         * lib/strftime.c (my_strftime_localtime_r): Include this function
78071         definition in the `#if ! HAVE_TM_GMTOFF' block.
78072
78073         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78074         Include xalloc.h instead.
78075
78076 2001-12-02  Jim Meyering  <meyering@lucent.com>
78077
78078         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78079         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78080         included.
78081
78082         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78083         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78084
78085 2001-11-30  Akim Demaille  <akim@epita.fr>
78086
78087         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78088         before being defined.
78089
78090 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78093         First arg is int, not unsigned.
78094         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78095         (SIZE_MAX, UINT_MAX): New macros.
78096         (quotearg_n_options): Abort if N is negative.
78097         Avoid overflow check on hosts where size_t is 64 bits and int
78098         is 32 bits, as overflow is impossible there.
78099         Fix off-by-one typo that caused unnecessary reallocation.
78100
78101 2001-11-27  Jim Meyering  <meyering@lucent.com>
78102
78103         * lib/tempname.c: Merge with version from libc.
78104         * lib/regex.c: Likewise.
78105
78106         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78107         systems for which STDC_HEADERS is 0, it was not included, resulting in
78108         a warning about an integer-to-pointer conversion problem with getenv.
78109         Reported by Volker Borchert.
78110
78111 2001-11-26  Jim Meyering  <meyering@lucent.com>
78112
78113         * lib/gtod.h: Remove file.
78114         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78115         * lib/gettimeofday.c: Don't include gtod.h.
78116         (GTOD_init): Remove function.
78117         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78118         Suggestion from Volker Borchert.
78119
78120 2001-11-23  Jim Meyering  <meyering@lucent.com>
78121
78122         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78123         it.
78124         * lib/hash.c (struct hash_table): Define it here instead.
78125
78126 2001-11-22  Jim Meyering  <meyering@lucent.com>
78127
78128         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78129
78130 2001-11-20  Jim Meyering  <meyering@lucent.com>
78131
78132         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78133         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78134
78135 2001-11-19  Jim Meyering  <meyering@lucent.com>
78136
78137         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78138         directory.  Use "conftestXXXXXX" as the template.
78139         Suggestion from Paul Eggert.
78140
78141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78142         immediately, so the test doesn't mistakenly hit the max-open-files
78143         limit.
78144
78145 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78146
78147         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78148         (TEMPORARIES): New macro.
78149         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78150         removes an artificial limitation (e.g. HP-UX 10.20, where
78151         TMP_MAX is 17576).
78152
78153 2001-11-18  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78156
78157 2001-11-18  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78160         on SunOS 4.
78161
78162         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78163         files will be created before anything else.
78164
78165 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78166
78167         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78168         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78169
78170 2001-11-17  Jim Meyering  <meyering@lucent.com>
78171
78172         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78173         Prompted by a report from Bob Proulx.
78174
78175         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78176         Instead, require UTILS_FUNC_MKSTEMP.
78177
78178 2001-11-17  Jim Meyering  <meyering@lucent.com>
78179
78180         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78181         Now, that's done as part of AC_FUNC_STRTOD.
78182
78183 2001-11-17  Jim Meyering  <meyering@lucent.com>
78184
78185         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78186         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78187         rather than group writable.  Patch by Juan F. Codagnone.
78188
78189         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78190         xrealloc, Instead, include "xalloc.h".
78191
78192         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78193         Remove explicit declarations of xmalloc, xrealloc,
78194         and xstrdup.  Instead, include "xalloc.h".
78195
78196         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78197         unlocked-io.h.
78198         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78199         Likewise.
78200         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78201
78202         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78203         Reported by Padraig Brady.
78204
78205         * lib/mkstemp.c: #undef mkstemp.
78206         Include config.h.
78207         (rpl_mkstemp): Rename from mkstemp.
78208         Protoize.
78209
78210 2001-11-16  Jim Meyering  <meyering@lucent.com>
78211
78212         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78213         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78214         determine the amount of total physical memory, use pstat_getstatic.
78215         HPUX-11 doesn't define _SC_PHYS_PAGES.
78216         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78217         If sysconf couldn't be used to determine the amount of available
78218         physical memory, use both pstat_getstatic and pstat_getdynamic.
78219         Based on a patch from Bob Proulx.
78220
78221 2001-11-10  Jim Meyering  <meyering@lucent.com>
78222
78223         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78224         (jm_PREREQ): Use it.
78225
78226 2001-11-09  Jim Meyering  <meyering@lucent.com>
78227
78228         * m4/jm-macros.m4: Require autoconf-2.52f.
78229         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78230         Use these AC_-prefixed names, not the AM_-prefixed ones.
78231
78232         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78233
78234 2001-11-05  Jim Meyering  <meyering@lucent.com>
78235
78236         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78237
78238 2001-11-04  Jim Meyering  <meyering@lucent.com>
78239
78240         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78241         $DEFS.
78242
78243 2001-11-03  Jim Meyering  <meyering@lucent.com>
78244
78245         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78246         of AC_DEFUN.
78247
78248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78249         know the name of the variable in the macro definition.
78250
78251 2001-11-03  Jim Meyering  <meyering@lucent.com>
78252
78253         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78254         in argmatch_to_argument call.
78255
78256         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78257         argument.
78258
78259         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78260         e.g., a fault due to an attempt to free a NULL pointer.
78261
78262 2001-11-01  Jim Meyering  <meyering@lucent.com>
78263
78264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78265         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78266
78267 2001-11-01  Jim Meyering  <meyering@lucent.com>
78268
78269         * lib/dirfd.c, lib/dirfd.h: New files.
78270         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78271
78272         * lib/hash.c (hash_print) [TESTING]: Clean up.
78273
78274 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78275
78276         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78277         to avoid a warning if -Wall.
78278
78279 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78280
78281         * README: New file
78282         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78283         (per RMS's instructions, this is now the canonical source)
78284         * lgpl/, gpl/: New directories.
78285
78286 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78287
78288         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78289
78290 2001-10-21  Jim Meyering  <meyering@lucent.com>
78291
78292         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78293         this code would end up calling gettext even in packages built
78294         with --disable-nls.
78295         * lib/getopt.c (_): Likewise.
78296         * lib/regex.c (_): Likewise.
78297
78298 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78299
78300         * m4/error.m4 (jm_PREREQ_ERROR):
78301         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78302         AC_FUNC_STRERROR_R does that.
78303         Check for strerror declaration.
78304
78305         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78306         are supposed to have them these days.
78307         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78308         Merge changes from latest Autoconf CVS.
78309         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78310         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78311         POSIX decided to standardize on the int flavor of strerror_r.
78312
78313 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78314
78315         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78316         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78317         Use strerror_r that is only a macro, even if it is not a function.
78318         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78319         (private_strerror): Use prototypes, not old-style function definition.
78320         (print_errno_message): New function.
78321         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78322         char*-flavored one.
78323         (error_tail, error, error_at_line): Use it.
78324
78325 2001-10-11  Jim Meyering  <meyering@lucent.com>
78326
78327         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78328         and quote_n (1, ... to avoid clobbering a buffer.
78329
78330 2001-10-05  Jim Meyering  <meyering@lucent.com>
78331
78332         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78333         hash-pjw.h.
78334         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78335         * lib/hash-pjw.h: New file.
78336
78337 2001-09-30  Jim Meyering  <meyering@lucent.com>
78338
78339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78340         `struct fsstat' has the `f_fstypename' member.
78341         Use that to define FS_TYPE, which is now used to make
78342         the getfsstat link test tighter.
78343
78344 2001-09-30  Jim Meyering  <meyering@lucent.com>
78345
78346         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78347         Include <sys/ucred.h>, for Apple Darwin.
78348         Include sys/mount.h and sys/fs_types.h only if available.
78349         (FS_TYPE): Define.
78350         (read_filesystem_list): Use FS_TYPE.
78351
78352 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78353
78354         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78355         a boolean context.
78356
78357 2001-09-29  Jim Meyering  <meyering@lucent.com>
78358
78359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78360         [one-argument getmntent function]): Include stdio.h before mntent.h.
78361         SunOS 4.1.x needs it for the declaration of `FILE'.
78362         Patch by Volker Borchert.
78363
78364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78365         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78366         sys/fs_types.h, and make the link-test for getfsstat guard #include
78367         directives with appropriate #if HAVE_*_H tests so that we can
78368         detect getfsstat on Apple Darwin1.3.7 systems.
78369         Reported by Nelson Beebe.
78370         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78371
78372 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78373
78374         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78375         #defines strtoimax.  Also treat the other strto* functions
78376         like strtoimax.
78377
78378         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78379         Check for strtoul and strtoumax,
78380         as those declarations are made even in the signed case.
78381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78382         Likewise, for strtol and strtoimax.
78383
78384 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78385
78386         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78387         #defines strtoimax.  Also treat the other strto* functions
78388         like strtoimax.
78389
78390         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78391         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78392         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78393
78394 2001-09-26  Jim Meyering  <meyering@lucent.com>
78395
78396         Most macros in unlocked-io.h had the wrong number of arguments.
78397         * lib/gen-uio: New script.
78398         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78399         * lib/unlocked-io.hin: Remove file.
78400         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78401         rather than trying to embed it here.
78402         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78403         Reported by Padraig Brady.
78404
78405 2001-09-25  Volker Borchert  <bt@teknon.de>
78406
78407         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78408         `result'.
78409
78410 2001-09-24  Jim Meyering  <meyering@lucent.com>
78411
78412         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78413
78414 2001-09-23  Jim Meyering  <meyering@lucent.com>
78415
78416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78417         instead of the mere test for existence of mntent.h.  The latter
78418         would get a false-positive on AIX 3.4 systems.
78419         In the outer getmntent if-block, don't die if neither of the getmntent
78420         tests succeeds.  Instead, just fall through and continue with the
78421         remaining tests.
78422
78423 2001-09-23  Jim Meyering  <meyering@lucent.com>
78424
78425         * lib/mountlist.c: Remove useless parentheses in #if directives.
78426         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78427         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78428
78429 2001-09-22  Jim Meyering  <meyering@lucent.com>
78430
78431         * m4/gettext.m4: New file.  From gettext.
78432         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78433         * m4/progtest.m4: Likewise
78434         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78435         * m4/glibc21.m4: Likewise.
78436
78437         * m4/libintl.m4: Remove.  No longer used.
78438
78439 2001-09-22  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/localcharset.c: Update from latest gettext.
78442         * lib/config.charset: Likewise.
78443
78444 2001-09-20  Jim Meyering  <meyering@lucent.com>
78445
78446         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78447         strtoimax.
78448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78449         strtoumax.
78450
78451 2001-09-20  Jim Meyering  <meyering@lucent.com>
78452
78453         * lib/xstrtol.c (strtoimax): Guard declaration with
78454         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78455         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78456         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78457         (strtoumax): Likewise, for completeness (it wasn't necessary).
78458
78459 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78460
78461         * lib/strtoimax.c (HAVE_LONG_LONG):
78462         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78463         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78464         to work around bug in IBM C compiler.
78465
78466 2001-09-17  Jim Meyering  <meyering@lucent.com>
78467
78468         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78469         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78470         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78471         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78472         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78473         whenever the right hand side need not be expanded by the shell.
78474
78475 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78476
78477         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78478         library.  It's not correct, as some older glibcs are buggy.
78479         fnmatch wasn't fixed until glibc 2.2.
78480
78481         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78482         special shell magic here.
78483
78484 2001-09-16  Jim Meyering  <meyering@lucent.com>
78485
78486         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78487         * m4/jm-macros.m4: Require it.
78488
78489 2001-09-16  Jim Meyering  <meyering@lucent.com>
78490
78491         * lib/mkdir.c: New file.
78492
78493 2001-09-15  Jim Meyering  <meyering@lucent.com>
78494
78495         * m4/jm-macros.m4: Check for help2man.
78496
78497 2001-09-11  Jim Meyering  <meyering@lucent.com>
78498
78499         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78500         The body, by Paul Eggert, was moved here from configure.in.
78501         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78502
78503 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78504
78505         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78506         (jm_PREREQ): Use it.
78507
78508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78509
78510         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78511         Use ssize_t, not int, to store result of readlink.
78512         Check for ssize_t overflow as well as size_t overflow,
78513         as POSIX says the result of readlink is implementation-defined
78514         when ssize_t overflows.
78515         Remove unnecessary cast to char*.
78516         Use free+malloc instead of realloc, as the storage doesn't need
78517         to be preserved and it's clearer and can be more efficient that way.
78518         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78519         * lib/xreadlink.h (xreadlink): Update prototype.
78520
78521 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78522
78523         * lib/xgetcwd.c: Revert some of the previous change; intead,
78524         fix the HAVE_GETCWD_NULL code to behave more like the
78525         !HAVE_GETCWD_NULL code used to.
78526
78527         Include "xalloc.h".
78528         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78529         invoke xalloc_die.
78530
78531 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78532
78533         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78534         sys/param.h, as pathmax.h includes them.
78535
78536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78539         (jm_PREREQ_XGETCWD): New macro.
78540
78541         * m4/getcwd.m4: New file.
78542
78543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78544
78545         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78546         like the HAVE_GETCWD_NULL code.
78547         Include pathmax.h if not HAVE_GETCWD.
78548         Do not include xalloc.h.
78549         (INITIAL_BUFFER_SIZE): New symbol.
78550         Do not use xmalloc / xrealloc, since the caller is responsible for
78551         handling errors.  Preserve errno around `free' during failure.
78552         Do not overrun buffer when using getwd.
78553
78554 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78555
78556         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78557         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78558         getcwd (NULL, 0).
78559
78560 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78561
78562         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78563         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78564         spotted by Jim Meyering.
78565
78566 2001-09-03  Jim Meyering  <meyering@lucent.com>
78567
78568         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78569         failure.
78570
78571 2001-09-02  Jim Meyering  <meyering@lucent.com>
78572
78573         * lib/error.c: Update from GNU libc.
78574
78575 2001-09-01  Jim Meyering  <meyering@lucent.com>
78576
78577         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78578         Used by df.
78579
78580 2001-09-01  Jim Meyering  <meyering@lucent.com>
78581
78582         * lib/xreadlink.c: New file.
78583         * lib/xreadlink.h: New file.
78584         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78585         xreadlink.h.
78586
78587         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78588         doesn't conflict with sparc Solaris 7's definition in
78589         /usr/include/sys/int_types.h.
78590
78591         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78592         files.
78593         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78594         and strncasecmp as r-values.  Unixware didn't have declarations.
78595
78596 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78597
78598         * lib/xstrtol.h: Add copyright notice.
78599         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78600         LONGINT_INVALID_SUFFIX_CHAR.
78601
78602 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78603
78604         * lib/xstrtol.c (strtoimax): New decl.
78605
78606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78607
78608         * lib/xgetcwd.c: Don't include pathmax.h.
78609         Include stdlib.h and unistd.h if available.
78610         Include xalloc.h.
78611         (xmalloc, xstrdup, free): Remove decls.
78612         (xgetcwd): Don't assume sizes fit in unsigned.
78613         Check for overflow when computing sizes.
78614         Simplify reallocation code.
78615
78616 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78617
78618         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78619         a directory's st_size can have an arbitrary value, so the old
78620         usage could waste an arbitrary amount of memory.  All uses
78621         changed.
78622         * lib/savedir.h: Update prototype.
78623
78624 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78625
78626         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78627
78628         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78629         old strtoimax.c.
78630
78631         Also, make the following further changes to make this file's
78632         configuration more similar to that of strtol.c:
78633         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78634         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78635         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78636         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78637         changed to signed values.
78638
78639         And make the following changes as well:
78640         Fix copyright notice, as 1999 was missing.
78641         (verify): New macro.
78642         (strtoimax): Check sizes at compile-time, not run-time.
78643         Prefer strtol to strtoll if both work.
78644         (main): Remove; it was not that useful and was a pain to maintain.
78645
78646         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78647
78648 2001-08-31  Jim Meyering  <meyering@lucent.com>
78649
78650         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78651         Use an initial, malloc'd, buffer of length 128 rather than
78652         a statically allocated one of length 1024.
78653
78654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78655
78656         Simplify code, partly by assuming autoconf 2.52 semantics.
78657
78658         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78659
78660         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78661         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78662         All uses removed.
78663         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78664         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78665         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78666         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78667         jm_AC_HEADER_INTTYPES_H.
78668         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78669
78670         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78671
78672         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78673         Quote first arg of AC_DEFUN.
78674         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78675         since they are needed to parse the include file even if we need
78676         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78677         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78678         but with opposite signedness.
78679
78680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78681
78682         Merge 'exclude' changes from tar 1.13.22.
78683         This fixes one or two unlikely storage allocation overflow bugs,
78684         but doesn't change user-visible behavior otherwise.
78685
78686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78687
78688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78689         (jm_PREREQ_EXCLUDE): New macro.
78690
78691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78692
78693         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78694         tm to be declared.
78695
78696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78697
78698         * lib/hash.c: Remove '2001' from copyright notice.
78699
78700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78701
78702         * lib/full-write.h: New file.
78703         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78704         * lib/full-write.c: Correct credits, as cccp.c no longer
78705         exists and anyway it was so heavily changed from the old cccp
78706         code as to be unrecognizable.  Include full-write.h.
78707         (full_write): Return size_t, with short writes meaning failure.
78708         All callers changed.  This fixes a bug with large buffers
78709         on 64-bit hosts.
78710         * lib/utime.c: Include full-write.h.
78711
78712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78713
78714         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78715         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78716         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78717         Include if available.
78718         (<xalloc.h>): Include
78719         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78720         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78721         collide with FNM macros.
78722         (struct patopts): New struct.
78723         (struct exclude): Use it, as exclude patterns now come with options.
78724         (new_exclude): Support above changes.
78725         (new_exclude, add_exclude_file):
78726         Initial size must now be a power of two to simplify overflow checking.
78727         (free_exclude, fnmatch_no_wildcards): New function.
78728         (excluded_filename): No longer requires options arg, as the options
78729         are determined by add_exclude.  Now returns bool, not int.
78730         (excluded_filename, add_exclude):
78731         Add support for the fancy new exclusion options.
78732         (add_exclude, add_exclude_file): Now takes int options arg.
78733         Check for arithmetic overflow when computing sizes.
78734         (add_exclude_file): xrealloc might modify errno, so don't
78735         realloc until after errno might be used.
78736
78737         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78738         New macros.
78739         (free_exclude): New decl.
78740         (add_exclude, add_exclude_file): Now takes int options arg.
78741         (excluded_filename): No longer requires options arg, as the options
78742         are determined by add_exclude.  Now returns bool, not int.
78743
78744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78745
78746         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78747
78748 2001-08-27  Jim Meyering  <meyering@lucent.com>
78749
78750         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78751
78752         * lib/version-etc.c (N_): Remove definition.
78753         Revert most of last change.
78754         Instead, simply don't mark the `Copyright...' string for translation.
78755         Based on advice from Paul Eggert.
78756
78757         * lib/strtoxmax.c: Tweak comment.
78758
78759 2001-08-26  Jim Meyering  <meyering@lucent.com>
78760
78761         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78762
78763         * m4/xstrtoimax.m4: New file.
78764         * m4/xstrtoumax.m4: Add comments explaining why we
78765         AC_REPLACE_FUNCS(strtol).
78766
78767 2001-08-26  Jim Meyering  <meyering@lucent.com>
78768
78769         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78770         of copyright with `%s' so translators don't get an untranslated
78771         message in 2002.
78772         (COPYRIGHT_YEAR): Define.
78773         (version_etc): Use fprintf rather than fputs.
78774         Suggestion from Ulrich Drepper.
78775
78776         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78777
78778         * lib/strtoll.c: New file, from GNU libc.
78779         * lib/xstrtoimax.c: New file.
78780
78781         * lib/xstrtol.h: Add xstrtoimax.
78782         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78783         * lib/strtoimax.c: New file.  Likewise, but first define
78784         STRTOUXMAX_SIGNED.
78785
78786         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78787         ...
78788         * lib/strtoxmax.c: ... then renamed to this.
78789
78790 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78791
78792         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78793         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78794         (jm_AC_TYPE_INTMAX_T): New macro.
78795         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78796
78797         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78798
78799         * m4/longlong.m4: Renamed from ulonglong.m4.
78800         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78801         * m4/uintmax_t.m4: Removed.
78802
78803 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78804
78805         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78806         Port to Solaris 8, where 'sed' requires a space after the 'r'
78807         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78808         Redirect output to $tmp just once.
78809
78810 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78811
78812         * lib/addext.c (<errno.h>): Include.
78813         (errno): Declare if not defined.
78814         (addext): Work correctly when pathconf returns -1 and leaves
78815         errno alone because there is no limit.  Also, work even if
78816         pathconf returns a value greater than SIZE_MAX.
78817
78818 2001-08-12  Jim Meyering  <meyering@lucent.com>
78819
78820         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78821         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78822         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78823         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78824         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78825         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78826         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78827         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78828         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78829         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78830         utime.m4, utimes.m4, xstrtoumax.m4:
78831         Quote the first argument in each use of AC_DEFUN.
78832
78833 2001-08-12  Jim Meyering  <meyering@lucent.com>
78834
78835         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78836         Simply `return getcwd (NULL, 0);'.
78837         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78838         Use 1300 as initial value for length, not PATH_MAX.
78839
78840         * lib/pathmax.h: Clean up cpp syntax.
78841
78842 2001-08-12  Jim Meyering  <meyering@lucent.com>
78843
78844         * lib/gettimeofday.c: New file.
78845         * lib/gtod.h: New file.
78846         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78847
78848 2001-08-05  Jim Meyering  <meyering@lucent.com>
78849
78850         * m4/jm-macros.m4: Require autoconf-2.52.
78851
78852 2001-08-04  Jim Meyering  <meyering@lucent.com>
78853
78854         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78855         stmt, to get in sync with glibc.
78856
78857 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78858
78859         The following changes are from gettext 0.10.39 as maintained by
78860         Bruno Haible.
78861
78862         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78863         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78864         with inverted sense.  All uses changed.
78865
78866         * lib/mbswidth.c: Don't include <limits.h>.
78867         Include <stdlib.h> and <string.h> unconditionally.
78868         (iswcntrl, mbsinit, ISCNTRL): New macros.
78869         (mbsnwidth): Use K&R style function declarations.
78870         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78871         can optimize it when MB_CUR_MAX == 1.
78872         The width of control characters is zero, not 1.
78873
78874 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78875
78876         The following changes are from gettext 0.10.39 as maintained by
78877         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78878
78879         * m4/codeset.m4: Upgrade to serial AM1.
78880         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78881         all uses changed.  Quote first arg of AC_DEFUN.
78882         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78883
78884         * m4/iconv.m4: Upgrade to serial AM2.
78885         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78886         Add --with-libconv-prefix.
78887         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78888         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78889         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78890         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78891         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78892
78893         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78894         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78895         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78896         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78897         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78898         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78899         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78900         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78901         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78902
78903         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78904         string.h any more.
78905
78906         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78907         not the default value.
78908
78909         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78910         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78911         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78912         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78913         Also check for iswcntrl, used for wcwidth fallback.
78914         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78915         to Autoconf 2.13.
78916
78917 2001-08-03  Jim Meyering  <meyering@lucent.com>
78918
78919         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78920         as it was in the original.  Reported by Paul Eggert.
78921
78922 2001-07-16  Jim Meyering  <meyering@lucent.com>
78923
78924         * m4/gettimeofday.m4: New file.
78925         Prompted by a report from Bernhard Baehr.
78926
78927 2001-07-15  Jim Meyering  <meyering@lucent.com>
78928
78929         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78930         stuff. Now it's in ../Makefile.cfg.
78931
78932 2001-07-15  Jim Meyering  <meyering@lucent.com>
78933
78934         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78935         (BUILT_SOURCES): Add unlocked-io.h.
78936         (io_functions): Define.
78937         (unlocked-io.h): New rule.
78938         (DISTCLEANFILES): Add unlocked-io.h.
78939         (all-local): Depend on unlocked-io.h, to ensure it is created.
78940
78941         * lib/unlocked-io.hin: New file
78942
78943         * lib/regex.c: Update from glibc.
78944
78945 2001-07-05  Jim Meyering  <meyering@lucent.com>
78946
78947         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78948         recommendation.
78949         (libfetish_a_SOURCES): Put all .h files here instead.
78950         Remove a thus-exposed (better checks in automake) duplicate and
78951         two unnecessary .h files.
78952
78953 2001-07-04  Jim Meyering  <meyering@lucent.com>
78954
78955         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78956         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78957         distcheck failure.
78958
78959 2001-07-02  Jim Meyering  <meyering@lucent.com>
78960
78961         The following changes were prompted by suggestions from Bruno Haible.
78962
78963         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78964         is now generated.
78965         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78966         definition of EXTRA_DIST.
78967         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78968         ensure that the generated file is created/updated whenever the list
78969         of $(unlocked_functions) is changed.
78970         (jm-glibc-io.m4): New rule.
78971         (unlocked-io.h): New rule -- currently unused.
78972
78973 2001-06-24  Jim Meyering  <meyering@lucent.com>
78974
78975         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78976         unmatched right bracket, rather than kludging it with an extra,
78977         falsely-matching quote in a comment.  Patch by Akim Demaille.
78978
78979 2001-06-11  Jim Meyering  <meyering@lucent.com>
78980
78981         * lib/regex.c: Update from GNU libc.
78982
78983 2001-05-27  Jim Meyering  <meyering@lucent.com>
78984
78985         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78986         Check for ut_type in struct utmp.
78987
78988 2001-05-27  Jim Meyering  <meyering@lucent.com>
78989
78990         * lib/readutmp.h (UT_TYPE): Define.
78991
78992 2001-05-24  Jim Meyering  <meyering@lucent.com>
78993
78994         * lib/argmatch.c: Include "quote.h".
78995         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78996         quote function.  Reported by Göran Uddeborg.
78997
78998 2001-05-22  Jim Meyering  <meyering@lucent.com>
78999
79000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79001         now that we use the package-supplied version unconditionally.
79002         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79003
79004 2001-05-21  Jim Meyering  <meyering@lucent.com>
79005
79006         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79007         shell syntax errors.
79008
79009 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79010
79011         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79012
79013 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79014
79015         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79016         Don't bother to check library strftime, since
79017         we'll be using our own my_strftime function anyway.
79018         Define my_strftime instead of strftime.
79019
79020 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79021
79022         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79023         which is not yet declared.
79024
79025 2001-05-15  Jim Meyering  <meyering@lucent.com>
79026
79027         * m4/regex.m4: Use proper quoting so brackets appear in the test
79028         program.
79029         Reported by, and with help from, Bruno Haible.
79030
79031 2001-05-13  Jim Meyering  <meyering@lucent.com>
79032
79033         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79034         undefined.
79035
79036 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79037
79038         dirname code cleanup.  base_name now behaves more compatibly
79039         with POSIX basename when given file names that have trailing
79040         slashes, and similarly for dir_name.  Add new primitives
79041         base_len and dir_len.  Put the directory-name-related decls
79042         into dirname.h.
79043
79044         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79045         * lib/backupfile.c (base_name): Likewise.
79046         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79047         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79048         * lib/makepath.c (strip_trailing_slashes): Likewise.
79049         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79050         ISSLASH): Likewise.
79051         * lib/rename.c (strip_trailing_slashes): Likewise.
79052         * lib/same.c (base_name): Likewise.
79053         * lib/stripslash.c (ISSLASH): Likewise.
79054
79055         * lib/addext.c: Include <dirname.h> after size_t is defined.
79056         * lib/backupfile.c: Likewise.
79057
79058         * lib/addext.c (addext): Use base_len to trim redundant
79059         trailing slashes instead of doing it ourselves.
79060         But do not trim the last slash if it is not redundant.
79061
79062         * lib/backupfile.c (find_backup_file_name,
79063         max_backup_version): Use base_len instead of rolling it ourselves.
79064         Handle the case of "" and (on DOS) "C:" correctly.
79065
79066         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79067         needed. Include <string.h>, <dirname.h>.
79068         (base_name): Allow file names ending in slashes, other than names
79069         that are all slashes.  In this case, return the basename followed
79070         by the slashes.  This is more general, and can be used in places
79071         where the original base_name purposely had an assertion failure.
79072         (base_len): New function.
79073
79074         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79075         Do not include <assert.h>; no longer needed.
79076         Include xalloc.h.
79077         (memrchr): Remove decl.
79078         (dir_name_r): Remove.
79079         (dir_len): Renamed from dirlen.  All callers changed.
79080         Rewrite in terms of base_name, for simplicity and consistency.
79081         (dir_name): Never return NULL.  All callers changed.
79082         Do not include <stdlib.h> in test program; no longer needed.
79083         return 0; is fine for test program.
79084
79085         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79086         New macros.
79087         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79088
79089         * lib/path-concat.c (path_concat): Use base_len to compute
79090         base length, not strlen; this means we cannot rely on memcpy
79091         to null-terminate.
79092
79093         * lib/same.c (STREQ): Remove.
79094         (same_name): Handle the case where the basename ends in trailing '/'.
79095
79096         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79097         a slash was stripped.  Do not strip the last slash after a
79098         file system prefix.
79099
79100 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79101
79102         * lib/Makefile.am (libfetish_a_SOURCES):
79103         Add strftime.c, since we now compile it on all hosts.
79104
79105         * lib/strftime.c (my_strftime):
79106         Define to nstrftime if emacs, but only if my_strftime is not defined.
79107         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79108         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79109         Add one more extra argument: a nanoseconds value.
79110         All uses changed.
79111         (ns): New macro.
79112         (my_strftime function): Add %N format.
79113         (emacs_strftimeu): Renamed from emacs_strftime,
79114         with extra ut argument.
79115
79116 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79117
79118         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79119
79120 2001-04-21  Jim Meyering  <meyering@lucent.com>
79121
79122         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79123         doesn't interfere.
79124
79125 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79126
79127         * m4/ftruncate.m4: Check for chsize.
79128         Link with ftruncate.o unconditionally if ftruncate is missing.
79129         This was required when cross-compiling to i586-mingw32msvc.
79130
79131 2001-04-08  Jim Meyering  <meyering@lucent.com>
79132
79133         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79134         recomputed; that's necessary when the offset spans a DST transition.
79135         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79136
79137 2001-04-02  Jim Meyering  <meyering@lucent.com>
79138
79139         * lib/regex.h, regex.c: Update from GNU libc.
79140
79141 2001-03-24  Jim Meyering  <meyering@lucent.com>
79142
79143         * m4/jm-macros.m4: Require autoconf-2.49d.
79144
79145 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79146
79147         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79148
79149 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79150
79151         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79152
79153 2001-03-17  Jim Meyering  <meyering@lucent.com>
79154
79155         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79156         now that the version in autoconf is equivalent.
79157         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79158
79159         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79160         Suggestion from Akim Demaille.
79161
79162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79163         (jm_PREREQ_TEMPNAME): New function.
79164
79165 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79166
79167         * lib/tempname.c (uint64_t): Define to uintmax_t if
79168         not defined, and if UINT64_MAX is not defined.
79169         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79170         Reported by John David Anglin.
79171
79172 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79173
79174         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79175         resolve alias if codeset is empty.
79176         * lib/config.charset (BeOS): Use wildcard syntax.
79177
79178 2001-03-13  Jim Meyering  <meyering@lucent.com>
79179
79180         * lib/path-concat.c (path_concat)
79181         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79182         concatenating e.g., `C:' and `foo'.
79183         From Bruno Haible.
79184
79185 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79186
79187         * lib/localcharset.c (locale_charset): Don't use
79188         setlocale(LC_CTYPE,NULL). Don't return NULL.
79189         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79190
79191 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79192
79193         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79194         support for DOS/DJGPP.
79195
79196 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79197
79198         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79199         lacks mkstemp.  Compile our own tempname.c if we compile our own
79200         mkstemp.c, as mkstemp relies on tempname.
79201
79202 2001-03-01  Jim Meyering  <meyering@lucent.com>
79203
79204         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79205         AH_VERBATIM really does output its argument verbatim.
79206
79207 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79208
79209         * lib/Makefile.am (libfetish_a_SOURCES):
79210         Add dup-safer.c, fopen-safer.c.
79211         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79212
79213         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79214         * lib/unistd-safer.h: New files.
79215
79216 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79217
79218         The mkstemp replacement is taken from glibc 2.2.2, with some
79219         portability fixes for use outside glibc, as follows:
79220
79221         * lib/tempname.c (struct_stat64): New macro.
79222         (direxists, __gen_tempname): Use it.
79223         This avoids a portability problem with Solaris 8.
79224
79225         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79226         (<stddef.h>, <stdint.h>, <string.h>):
79227         Include only if STDC_HEADERS || _LIBC.
79228         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79229         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79230         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79231         (__set_errno): Define this macro if <errno.h> doesn't.
79232         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79233         Define these macros if <stdio.h> doesn't.
79234         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79235         Define these macros if <sys/stat.h>
79236         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79237         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79238         __xstat64): Define if not _LIBC.
79239         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79240         (__gen_tempname): Invoke gettimeofday only if
79241         HAVE_GETTIMEOFDAY || _LIBC;
79242         otherwise, fall back on plain "time".
79243         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79244
79245         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79246
79247         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79248
79249 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79250
79251         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79252
79253 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79254
79255         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79256         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79257         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79259
79260 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79261
79262         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79263         Remove workaround macros for hosts that have mbrtowc but not
79264         mbstate_t, as we now insist on proper declarations for both
79265         before using mbrtowc.
79266
79267 2001-02-17  Jim Meyering  <meyering@lucent.com>
79268
79269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79270         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79271         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79272         UnixWare 7.1.1.
79273
79274         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79275         rather than AC_CACHE_VAL.
79276
79277 2001-02-17  Jim Meyering  <meyering@lucent.com>
79278
79279         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79280         around included file name.
79281
79282         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79283
79284         * lib/strftime.c: Update from GNU libc (the only changes were to
79285         comments).
79286
79287 2001-02-17  Jim Meyering  <meyering@lucent.com>
79288
79289         * lib/regex.c: Update from libc.
79290
79291 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79292
79293         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79294         clash.
79295
79296 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79297
79298         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79299         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79300         Reported by Mark Hounschell via Paul Eggert.
79301
79302 2001-02-07  Jim Meyering  <meyering@lucent.com>
79303
79304         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79305
79306 2001-02-05  Jim Meyering  <meyering@lucent.com>
79307
79308         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79309         it includes the patch required for `large file' support with at least
79310         HP-UX's 10.20 /bin/cc.
79311
79312 2001-02-03  Jim Meyering  <meyering@lucent.com>
79313
79314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79315         AS_IF, now that it works once again (mysteriously).
79316         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79317
79318 2001-01-30  Jim Meyering  <meyering@lucent.com>
79319
79320         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79321         * m4/chown.m4: Rename conftestchown to conftest.chown.
79322         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79323         s/conftestdir2/conftest.d2/.
79324         * m4/utimes.m4: s/conftestdata/conftest.data/
79325         Inspired by Pavel Roskin's change in autoconf.
79326
79327 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79328
79329         * lib/config.charset: Update for FreeBSD 4.2.
79330
79331 2001-01-27  Jim Meyering  <meyering@lucent.com>
79332
79333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79334         a use of AS_IF.
79335         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79336
79337 2001-01-26  Jim Meyering  <meyering@lucent.com>
79338
79339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79340         quotearg.c includes it.
79341
79342 2001-01-26  Jim Meyering  <meyering@lucent.com>
79343
79344         * lib/quotearg.c: Include stddef.h.
79345         * lib/quote.c: Include stddef.h.
79346         Reported by Axel Kittenberger.
79347
79348         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79349         line in double quotes so that it evokes a better diagnostic.
79350         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79351         Reported by Axel Kittenberger.
79352
79353 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79354
79355         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79356         as if it was a `charset'.
79357
79358 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79359
79360         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79361         has const.
79362
79363 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79364
79365         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79366         to avoid a warning.  Add back 'const' to inptr.
79367
79368 2001-01-20  Jim Meyering  <meyering@lucent.com>
79369
79370         Be sure that headers are checked before used in code compiled
79371         for the type checks.
79372         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79373         In place of that, invoke jm_CHECK_ALL_TYPES.
79374         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79375         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79376         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79377         The check for ssize_t was mistakenly run before the test for unistd.h.
79378
79379         The configure-time check for stdbool.h was missing.
79380         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79381         (jm_PREREQ_HASH): New function.
79382
79383 2001-01-17  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79386         for autoconf-2.49c.
79387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79388
79389 2001-01-16  Jim Meyering  <meyering@lucent.com>
79390
79391         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79392         From Bruno Haible.
79393
79394 2001-01-14  Jim Meyering  <meyering@lucent.com>
79395
79396         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79397         foo and bar.  Create conftestdir/ in the script, not in the C code.
79398         Remove directories in the script, not in the C code.
79399         Remove conftestdir{,2} before trying to create the directory.
79400         Make the entire configure script fail if the mkdir fails.
79401
79402 2001-01-14  Jim Meyering  <meyering@lucent.com>
79403
79404         * lib/rename.c: New file.  From Volker Borchert.
79405         Include stdlib.h, string.h or strings.h, and xalloc.h.
79406         Use strip_trailing_slashes rather than open-coding it.
79407
79408 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79409
79410         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79411
79412 2001-01-03  Jim Meyering  <meyering@lucent.com>
79413
79414         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79415         of local `inptr' to avoid warning with some system declarations of
79416         iconv.
79417
79418 2001-01-02  Volker Borchert  <bt@teknon.de>
79419
79420         * m4/rename.m4: New file.
79421         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79422
79423 2001-01-01  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79426         even on systems with utmpx.h.  It's necessary for the declaration of
79427         utmp's ut_user member.  Reported by Andreas Jaeger.
79428
79429         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79430         available. They are required for the declarations of getgrgid and
79431         getpwuid resp.
79432         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79433         Reported by Andreas Jaeger.
79434
79435 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79436
79437         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79438         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79439         so `make install' also works in VPATH builds.
79440
79441 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79442
79443         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79444         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79445         can be used in subdirectories.
79446
79447 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79448
79449         * lib/modechange.c: Do not assume that mode_t uses the
79450         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79451         the other-execute bit of FOO even if S_IXOTH != 1.
79452
79453         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79454         WOTH, XOTH, ALLM): New macros.
79455         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79456          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79457         Use them.
79458         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79459         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79460         (mode_compile):
79461         No need to use uintmax_t; unsigned long is long enough.
79462         Don't bother to get suffix since we don't use it.
79463
79464 2000-12-26  Jim Meyering  <meyering@lucent.com>
79465
79466         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79467         better with autoheader.
79468
79469 2000-12-24  Jim Meyering  <meyering@lucent.com>
79470
79471         * lib/hash.c (is_prime): Return explicit boolean values.
79472         (hash_get_first): Return NULL to appease Irix5.6's 89.
79473         Reported by Nelson Beebe.
79474
79475 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79476
79477         * lib/localcharset.c (locale_charset): Add support for Win32.
79478
79479 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79480
79481         * lib/physmem.h, lib/physmem.c: New files.
79482
79483         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79484         (noinst_HEADERS): Add physmem.h.
79485
79486         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79487         't' for compatibility with Solaris 8 sort.
79488
79489 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79490
79491         * lib/config.charset: Add support for BeOS.
79492
79493 2000-12-17  Jim Meyering  <meyering@lucent.com>
79494
79495         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79496         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79497
79498 2000-12-16  Jim Meyering  <meyering@lucent.com>
79499
79500         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79501         N and M) would have treated it like `chown N:N FILE'.
79502
79503         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79504
79505 2000-12-16  Jim Meyering  <meyering@lucent.com>
79506
79507         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79508         SHELLS_FILE to a file name that's useful on djgpp systems.
79509         Include stdlib.h.
79510         (ADDITIONAL_DEFAULT_SHELLS): Define.
79511         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79512         Based mostly on a patch from Prashant TR.
79513
79514 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79515
79516         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79517         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79518         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79519
79520 2000-12-08  Andreas Schwab  <schwab@suse.de>
79521
79522         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79523         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79524
79525 2000-12-07  Jim Meyering  <meyering@lucent.com>
79526
79527         * lib/stripslash.c (ISSLASH): Define.
79528         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79529         `/'.
79530         From Prashant TR.
79531
79532         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79533         (dir_name_r): Declare this function as static.
79534         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79535         manifest itself on a name containing a mix of slashes and
79536         backslashes.
79537         Make this function work with names starting with a DOS-style
79538         drive letter and colon prefix.
79539         (dir_name): Append `.' if necessary.
79540         Based mostly on patches from Prashant TR and Eli Zaretskii.
79541
79542         * lib/dirname.h (dir_name_r): Remove prototype.
79543
79544 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79545
79546         * m4/off_t-format.m4: Remove this file.
79547         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79548
79549 2000-12-06  Jim Meyering  <meyering@lucent.com>
79550
79551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79552         replacement strtoull, we may well need the replacement strtoul, too.
79553         Check for declarations of strtoul and strtoull.
79554         Check for strtol.  Mainly as a cue to cause automake to include
79555         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79556         Check for limits.h -- strtol.c needs it.
79557
79558 2000-12-05  Jim Meyering  <meyering@lucent.com>
79559
79560         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79561
79562 2000-12-04  Jim Meyering  <meyering@lucent.com>
79563
79564         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79565         Also include memory.h, stdlib.h, unistd.h if appropriate.
79566         Reported by Andreas Jaeger (conflicting declaration of malloc).
79567
79568 2000-12-02  Jim Meyering  <meyering@lucent.com>
79569
79570         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79571         * m4/jm-macros.m4 (jm_MACROS): require it.
79572
79573 2000-12-02  Jim Meyering  <meyering@lucent.com>
79574
79575         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79576
79577 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79578
79579         * lib/memrchr.c: Include <config.h> before any system include file.
79580
79581 2000-11-30  Jim Meyering  <meyering@lucent.com>
79582
79583         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79584
79585 2000-11-30  Jim Meyering  <meyering@lucent.com>
79586
79587         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79588
79589 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79590
79591         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79592
79593 2000-11-26  Jim Meyering  <meyering@lucent.com>
79594
79595         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79596
79597 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79598
79599         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79600         size of (size_t) -1; it's not portable.
79601
79602 2000-11-17  Jim Meyering  <meyering@lucent.com>
79603
79604         * lib/strstr.c: Update from GNU libc.
79605
79606 2000-11-17  Akim Demaille  <akim@epita.fr>
79607
79608         * lib/obstack.h: Formatting changes.
79609         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79610         prevent type checking.
79611         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79612         cast the value to (void *): assigning a `foo *' to a `void *'
79613         variable is valid.
79614         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79615
79616 2000-11-16  Jim Meyering  <meyering@lucent.com>
79617
79618         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79619
79620 2000-11-11  Jim Meyering  <meyering@lucent.com>
79621
79622         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79623
79624 2000-11-10  Jim Meyering  <meyering@lucent.com>
79625
79626         * lib/obstack.h: Update from GNU libc.
79627         * lib/obstack.c: Likewise.
79628
79629 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79630
79631         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79632
79633 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79634
79635         * lib/getusershell.c (setusershell): Use rewind rather than
79636         fseek/fseeko, to avoid configuration hassles with fseeko.
79637         Don't bother opening SHELLS_FILE if shellstream is NULL;
79638         it's not necessary.
79639
79640 2000-11-05  Jim Meyering  <meyering@lucent.com>
79641
79642         * lib/makepath.h (make_dir): Declare.
79643         * lib/makepath.c (make_dir): Remove `static' attribute.
79644         Tweak a comment.
79645
79646 2000-11-04  Jim Meyering  <meyering@lucent.com>
79647
79648         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79649
79650 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79651
79652         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79653         last one in a bucket, advance to the next bucket.
79654
79655 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79656
79657         * lib/fnmatch.c: Do not comment out all the code if we are using
79658         the GNU C library, because in some cases we are replacing buggy
79659         code in the GNU C library itself.
79660
79661 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79662
79663         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79664         (regex_compile): Catch bogus \(\1\).
79665
79666 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79667
79668         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79669         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79670         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79671
79672 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79673
79674         * lib/error.h, getline.h, modechange.h:
79675         Remove "2000" from Copyright line, as the file hasn't been
79676         changed this year other than in the copyright notice.
79677
79678         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79679         was changed this year.
79680
79681 2000-10-29  Jim Meyering  <meyering@lucent.com>
79682
79683         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79684         renaming.
79685         * m4/ls-mntd-fs.m4: Likewise
79686
79687 2000-10-29  Jim Meyering  <meyering@lucent.com>
79688
79689         * lib/xstat.in: Fix grammar in comment.
79690
79691 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79692
79693         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79694         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79695         doesn't define __restrict_arr.
79696
79697 2000-10-28  Jim Meyering  <meyering@lucent.com>
79698
79699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79700         (jm_PREREQ_MEMCHR): New function.
79701
79702 2000-10-28  Jim Meyering  <meyering@lucent.com>
79703
79704         * lib/memchr.c: Update from libc.
79705         Adjust for portability:
79706         [HAVE_STDLIB_H]: Include stdlib.h.
79707         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79708         Undef __memchr, too.
79709         [!weak_alias]: Define __memchr to memchr.
79710
79711         * lib/regex.c: Update from libc.
79712         * lib/regex.h: Likewise.
79713         * lib/getopt1.c: Likewise.
79714         * lib/memcmp.c: Likewise.
79715
79716         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79717         Avoid using fseek, when possible -- it's broken by design.
79718         Patch by Ulrich Drepper.
79719
79720 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79721
79722         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79723         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79724         Giving in to popular pressure to shut up the compiler with casts.
79725
79726 2000-10-26  Jim Meyering  <meyering@lucent.com>
79727
79728         * lib/strftime.c: Update from libc.
79729
79730 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79731
79732         * regex.c: More `unsigned char' -> `re_char' changes.
79733         Also change several `int' into `re_wchar_t'.
79734         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79735         (PUSH_FAILURE_POINTER): Don't cast any more.
79736         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79737         We want GCC to complain, since this piece of code makes
79738         re_match non-reentrant, which *should* be fixed.
79739         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79740         (EXTEND_BUFFER): Use RETALLOC.
79741         (SET_LIST_BIT): Don't cast.
79742         (re_wchar_t): New type.
79743         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79744         that those two functions will always properly return.
79745         (IMMEDIATE_QUIT_CHECK): Cast to void.
79746         (analyse_first): Use recursion rather than an explicit stack.
79747         (re_compile_fastmap): Can't fail anymore.
79748         (re_search_2): Don't check re_compile_fastmap for failure.
79749         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79750         Now also sets the new value (passed in a new argument).
79751         (re_match_2_internal): Use it.
79752         Also, use a new var `reg' of type size_t when looping through regs
79753         rather than reuse the inappropriate `mcnt'.
79754
79755 2000-10-25  Jim Meyering  <meyering@lucent.com>
79756
79757         * lib/obstack.c: Update from libc.
79758
79759 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79760
79761         * regex.c (regex_compile): Change the way of handling a range from
79762         a char less than 256 to a char not less than 256.
79763
79764 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79765
79766         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79767         NT-Emacs only.
79768         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79769         so that re_search functions only quit when callers expect them to.
79770
79771 2000-10-23  Jim Meyering  <meyering@lucent.com>
79772
79773         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79774         wrong.  That set_locale call must not have any side effects.
79775         From Paul Eggert.
79776
79777 2000-10-22  Jim Meyering  <meyering@lucent.com>
79778
79779         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79780         [CYCLIC]: Remove now-unused definition.
79781
79782         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79783         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79784         Suggestion from Ulrich Drepper.
79785
79786 2000-10-21  Jim Meyering  <meyering@lucent.com>
79787
79788         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79789         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79791
79792 2000-10-21  Jim Meyering  <meyering@lucent.com>
79793
79794         * lib/dirname.c (memrchr): Declare if necessary.
79795         (dir_name): Remove the restriction that there be no
79796         trailing slashes.  Now, this code skips past them, effectively
79797         ignoring them.
79798         [TEST_DIRNAME] (main): New unit tests.
79799
79800         * lib/memrchr.c: New file from GNU libc.
79801         Undef __memrchr, too.
79802         [!weak_alias]: Define __memrchr to memrchr.
79803         Guard weak_alias use with `#ifdef weak_alias'.
79804
79805 2000-10-21  Jim Meyering  <meyering@lucent.com>
79806
79807         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79808         (dir_name): Use dir_name_r.
79809         * lib/dirname.h (dir_name_r): Declare it.
79810
79811 2000-10-17  Jim Meyering  <meyering@lucent.com>
79812
79813         * lib/quote.h (PARAMS): Define and use.
79814         Reported by Akim Demaille.
79815
79816         * lib/getopt.c: Update from libc.
79817
79818 2000-10-16  Jim Meyering  <meyering@lucent.com>
79819
79820         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79821         setlocale.
79822         From Jan Fedak.
79823
79824 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79825
79826         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79827
79828 2000-09-25  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/md5.h (rol): Define (from GnuPG).
79831
79832         * lib/sha.c: Give credit (GnuPG) where due.
79833         (M): Use rol rather than open-coding it.
79834         Add a FIXME comment.
79835
79836 2000-09-21  Jim Meyering  <meyering@lucent.com>
79837
79838         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79839         Reported by Michael Stone.
79840
79841 2000-09-20  Jim Meyering  <meyering@lucent.com>
79842
79843         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79844         (noinst_HEADERS): Add sha.h.
79845         Based on code from Scott G. Miller and from GnuPG.
79846
79847 2000-09-18  Jim Meyering  <meyering@lucent.com>
79848
79849         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79850         LIBS. Otherwise, everyone ends up linking with -lelf for some
79851         configurations.
79852         Reported by Mike Stone.
79853
79854 2000-09-15  Jim Meyering  <meyering@lucent.com>
79855
79856         * lib/regex.c: Update from libc.
79857
79858 2000-09-10  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/getopt.c (_getopt_internal): Update from glibc.
79861
79862 2000-09-09  Jim Meyering  <meyering@lucent.com>
79863
79864         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79865         think it should be used as a general replacement for isascii.
79866         * lib/fnmatch.c: Likewise.
79867         * lib/mbswidth.c: Likewise
79868         * lib/regex.c: Likewise.
79869
79870         Don't use atoi.
79871         * lib/userspec.c: Include sys/param.h and limits.h.
79872         Include xstrtol.h.
79873         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79874         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79875         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79876         UID, GID.  Check range.
79877
79878 2000-09-06  Jim Meyering  <meyering@lucent.com>
79879
79880         * lib/getopt.c (_getopt_internal): Update from glibc.
79881
79882 2000-08-30  Jim Meyering  <meyering@lucent.com>
79883
79884         * lib/strftime.c: Merge in changes from GNU libc.
79885
79886 2000-08-26  Jim Meyering  <meyering@lucent.com>
79887
79888         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79889         * m4/fpending.m4: New file.
79890
79891 2000-08-26  Jim Meyering  <meyering@lucent.com>
79892
79893         * lib/closeout.c: Include "__fpending.h".
79894         (close_stdout_status): Return right away if there's nothing to flush.
79895
79896         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79897         * lib/__fpending.c: New file.
79898         * lib/__fpending.h: New file.
79899
79900 2000-08-20  Jim Meyering  <meyering@lucent.com>
79901
79902         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79903         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79904         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79905
79906 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79907
79908         Improve fileutils installation on systems where running
79909         programs (like install) can't be unlinked.
79910         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79911         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79912
79913 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79914
79915         Standardize on "memory exhausted" instead of "Memory exhausted"
79916         or "virtual memory exhausted".
79917         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79918         "virtual memory exhausted".
79919         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79920         our own message.
79921         * lib/userspec.c (parse_user_spec): Likewise.
79922         * lib/bumpalloc.h: comment fix
79923         * lib/same.c, userspec.c: Include xalloc.h.
79924
79925         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79926         not char *const and pointing to a constant array.
79927         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79928         (xrealloc): Comment fix.
79929
79930         * lib/userspec.c (parse_user_spec):
79931         Don't translate a message until just before returning,
79932         to avoid unnecessary translation.
79933
79934 2000-08-07  Jim Meyering  <meyering@lucent.com>
79935
79936         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79937         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79938         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79939         getgroups.c, gethostname.c, getopt.h, group-member.c,
79940         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79941         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79942         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79943         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79944         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79945         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79946         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79947         yesno.c: Back out Copyright date changes for each file with no change
79948         this year.  This eases coordination with other programs using the same
79949         source code modules.  From Paul Eggert.
79950
79951 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79952
79953         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79954         not char, for compatibility with glibc 2.1.3 strftime.c.
79955
79956 2000-08-03  Greg McGary  <greg@mcgary.org>
79957
79958         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79959         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79960         (EXTEND_BUFFER): Use them.
79961
79962 2000-08-01  Jim Meyering  <meyering@lucent.com>
79963
79964         * lib/dirname.c (ISSLASH): Define.
79965         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79966         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79967         both `\' and `/' may be use as path separators.
79968         Based on a patch from Prashant TR.
79969
79970 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79971
79972         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79973         slot vector a constant, since it might get modified.
79974
79975 2000-07-31  Jim Meyering  <meyering@lucent.com>
79976
79977         * lib/xmalloc.c: Use `virtual memory exhausted', not
79978         `Memory exhausted'.
79979         * lib/obstack.c (print_and_abort): Likewise.
79980
79981 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79982
79983         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79984         buffer, so that the caller can always quote one small
79985         component of a "memory exhausted" message in slot 0.
79986         From a suggestion by Jim Meyering.
79987
79988 2000-07-30  Jim Meyering  <meyering@lucent.com>
79989
79990         * lib/makepath.c (make_path): Quote the other instance, too.
79991
79992         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79993         (STATIC_BUF_SIZE): Define.
79994         (quotearg_n_options): Use only statically allocated storage when
79995         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79996         than STATIC_BUF_SIZE.
79997
79998 2000-07-29  Jim Meyering  <meyering@lucent.com>
79999
80000         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80001         * lib/dirname.c (dir_name): Likewise.
80002
80003         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80004         `/'.
80005
80006         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80007         (dir_name): Assert that there are no trailing slashes.
80008
80009 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80010
80011         * lib/mbswidth.h (mbswidth): Add a flags argument.
80012         (mbswidth): New declaration.
80013         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80014         * lib/mbswidth.c (mbswidth): Add a flags argument.
80015         (mbsnwidth): New function.
80016
80017 2000-07-24  Jim Meyering  <meyering@lucent.com>
80018
80019         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80020
80021 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80022
80023         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80024
80025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80026
80027         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80028         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80029         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80030         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80031         invoke multibyte primitives.
80032
80033 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80034
80035         * lib/quotearg.c:
80036         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80037         so that mbstate_t is always defined.
80038
80039         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80040         be 1 in at least one GCC installation, and this configuration
80041         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80042         performance on hosts that have mbrtowc but have only unibyte
80043         locales, but I assume these hosts are rare.
80044
80045 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80046
80047         * lib/mbswidth.c (_XOPEN_SOURCE):
80048         Don't define; this causes problems on Solaris 7.
80049         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80050
80051 2000-07-23  Jim Meyering  <meyering@lucent.com>
80052
80053         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80054         too: getgrgid, getpwuid, getuid.
80055
80056 2000-07-23  Jim Meyering  <meyering@lucent.com>
80057
80058         * lib/basename.c (base_name): Add an assertion.
80059
80060 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80061
80062         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80063         shadow its mbsinit function.
80064
80065 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80066
80067         * lib/mbswidth.h: New file.
80068         * lib/mbswidth.c: New file.
80069         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80070         (noinst_HEADERS): Add mbswidth.h.
80071
80072 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80073
80074         * lib/config.charset: Add support for FreeBSD. Improve support for
80075         HP-UX and IRIX 6.
80076
80077 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80078
80079         * m4/mbswidth.m4: New file.
80080         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80081
80082 2000-07-15  Jim Meyering  <meyering@lucent.com>
80083
80084         * lib/makepath.c: Include quote.h.
80085         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80086         corresponding argument in a `quote (...)' call.
80087         Give better diagnostics.
80088
80089         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80090         (noinst_HEADERS): Add quote.h.
80091
80092         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80093         from tar's src/misc.c.
80094         * lib/quote.h: New file.  Prototypes for same.
80095
80096 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80097
80098         From a suggestion by Bruno Haible.
80099         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80100         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80101         to decide whether to define the BeOS workaround macro;
80102         this adjusts to the change to AC_MBSTATE_T.
80103
80104 2000-07-14  Jim Meyering  <meyering@lucent.com>
80105
80106         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80107         jm_AC_TYPE_UINTMAX_T.
80108
80109 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80110
80111         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80112
80113         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80114         quotearg_buffer_restyled): Add support for
80115         clocale_quoting_style.  Undo previous change to
80116         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80117         and "{RIGHT QUOTATION MARK}" msgids.
80118
80119 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80120
80121         From a suggestion by Bruno Haible.
80122         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80123         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80124         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80125         and mbstate_t, to a single-part test that simply defines mbstate_t.
80126         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80127         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80128
80129 2000-07-10  Jim Meyering  <meyering@lucent.com>
80130
80131         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80132
80133         * m4/gnu-source.m4: Output to confdefs.h directly.
80134         Suggestion from Akim Demaille.
80135
80136 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80137
80138         The old behavior of quoting `like this' doesn't look good with
80139         newer, ISO-style fonts.  See:
80140         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80141
80142         Instead, quote "like this" by default.  Let the translator
80143         tailor the locale-specific quoting behavior by providing
80144         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80145
80146         * lib/quotearg.c (N_): New macro.
80147         (gettext_default): New function.
80148         (quotearg_buffer_restyled): Use
80149         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80150         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80151
80152 2000-07-09  Jim Meyering  <meyering@lucent.com>
80153
80154         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80155         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80156
80157         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80159
80160 2000-07-09  Jim Meyering  <meyering@lucent.com>
80161
80162         * lib/Most files: Update copyright dates to include 2000.
80163
80164 2000-07-08  Jim Meyering  <meyering@lucent.com>
80165
80166         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80167         if not defined.
80168         (xgethostname): Remove now-unnecessary #ifdef.
80169         Move declaration of `err' into loop where it's used.
80170
80171 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80172         and Bruno Haible  <haible@clisp.cons.org>
80173
80174         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80175         only if the test for an object-type mbstate_t fails.  This
80176         prevents us from mistakenly reporting that mbstate_t is a
80177         system object type after we "#define mbstate_t int" to work
80178         around its lack.
80179
80180 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80181         and Bruno Haible  <haible@clisp.cons.org>
80182
80183         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80184
80185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80186
80187         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80188         to strerror_r.
80189         Include <ctype.h> for use of isalpha.
80190
80191 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80192
80193         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80194         by allocating a larger buffer. Test the gethostname return value for
80195         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80196         returns an error and ENAMETOOLONG isn't defined.
80197
80198 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80199
80200         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80201         dimension.
80202
80203 2000-07-04  Jim Meyering  <meyering@lucent.com>
80204
80205         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80206         of the deprecated AC_CHECKING.
80207
80208 2000-07-04  Jim Meyering  <meyering@lucent.com>
80209
80210         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80211         Reported by Bruno Haible.
80212
80213 2000-07-04  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80216         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80217         lacks mbrtowc.
80218
80219 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80220
80221         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80222         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80223
80224 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80225         and Bruno Haible  <haible@clisp.cons.org>
80226
80227         * lib/quotearg.c (mbrtowc):
80228         Assign to *pwc, and return 1 only if result is nonzero.
80229         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80230
80231 2000-07-03  Jim Meyering  <meyering@lucent.com>
80232
80233         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80234
80235 2000-07-03  Jim Meyering  <meyering@lucent.com>
80236
80237         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80238         This is necessary to get a definition of e.g., UTMP_FILE on
80239         HP-UX 10.20.
80240         From Bob Proulx.
80241
80242 2000-07-02  Jim Meyering  <meyering@lucent.com>
80243
80244         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80245
80246         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80247         AC_LIBOBJ(function_name).
80248         * m4/chown.m4: Likewise.
80249         * m4/fnmatch.m4: Likewise.
80250         * m4/ftruncate.m4: Likewise.
80251         * m4/getgroups.m4: Likewise.
80252         * m4/getline.m4: Likewise.
80253         * m4/group-member.m4: Likewise.
80254         * m4/jm-macros.m4: Likewise.
80255         * m4/lstat.m4: Likewise.
80256         * m4/malloc.m4: Likewise.
80257         * m4/memcmp.m4: Likewise.
80258         * m4/nanosleep.m4: Likewise.
80259         * m4/putenv.m4: Likewise.
80260         * m4/realloc.m4: Likewise.
80261         * m4/regex.m4: Likewise.
80262         * m4/stat.m4: Likewise.
80263         * m4/strftime.m4: Likewise.
80264
80265 2000-07-02  Jim Meyering  <meyering@lucent.com>
80266
80267         * lib/quotearg.c (mbstate_t): Don't define here.
80268
80269 2000-07-02  Jim Meyering  <meyering@lucent.com>
80270
80271         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80272
80273 2000-07-01  Jim Meyering  <meyering@lucent.com>
80274
80275         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80276
80277 2000-07-01  Jim Meyering  <meyering@lucent.com>
80278
80279         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80280         problem.
80281
80282 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80283
80284         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80285         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80286
80287 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80288
80289         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80290         per change in ../m4/ls-mntd-fs.m4.
80291         (read_filesystem_list): Ignore symbolic links.
80292
80293 2000-06-29  Jim Meyering  <meyering@lucent.com>
80294
80295         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80296         for declaration of strcmp.
80297
80298         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80299
80300         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80301         Avoid warning by casting result to `char *' to remove `const'.
80302
80303 2000-06-28  Jim Meyering  <meyering@lucent.com>
80304
80305         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80306         included by quotearg.c, for which we perform this test.  From
80307         Bruno Haible.
80308
80309 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80310
80311         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80312         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80313         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80314
80315 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80316
80317         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80318
80319 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80320
80321         savedir now sets errno on failure and invokes xmalloc to get memory.
80322         Fix a couple of other minor bugs while we're at it.
80323
80324         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80325         (NAMLEN): Remove macro.
80326         (malloc, realloc): Remove decls.
80327         (stpcpy): Likewise.
80328         ("xalloc.h"): Include.
80329         (NAME_SIZE_DEFAULT): New macro.
80330         (savedir): Use xmalloc / xrealloc to allocate memory.
80331         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80332         Skip "" directory entries.
80333         Use strlen to calculate directory entry length, since the old method
80334         is rarely used these days and isn't worth supporting.
80335         Don't use a pointer after freeing it.
80336         Check for integer overflow when calculating allocation size.
80337         Use memcpy to copy entries, instead of stpcpy.
80338         Set errno properly when returning NULL.
80339         Check for readdir error.
80340
80341 2000-06-26  Jim Meyering  <meyering@lucent.com>
80342
80343         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80344
80345 2000-06-25  Jim Meyering  <meyering@lucent.com>
80346
80347         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80348         Linux header bug when _XOPEN_SOURCE is defined to 500.
80349
80350 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80351
80352         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80353         deficiency.
80354
80355 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80356
80357         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80358         Include xalloc.h.
80359         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80360
80361 2000-06-24  Jim Meyering  <meyering@lucent.com>
80362
80363         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80364         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80365         for which strerror does return char*, but which lacks a conveniently
80366         accessible declaration of the function.  If the compile-test says
80367         strerror_r doesn't work, then resort to a `run'-test that works on
80368         BeOS and segfaults on DEC Unix.
80369
80370 2000-06-24  Jim Meyering  <meyering@lucent.com>
80371
80372         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80373
80374 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80375
80376         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80378
80379 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80380
80381         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80382         (mbrtowc, mbstate_t): Define substitutes if
80383         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80384         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80385         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80386
80387 2000-06-23  Jim Meyering  <meyering@lucent.com>
80388
80389         * m4/afs.m4: Add missing AC_MSG_RESULT.
80390         Reported by Bruno Haible.
80391
80392         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80393         Suggestion from Bruno Haible.
80394
80395 2000-06-23  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80398
80399 2000-06-21  Jim Meyering  <meyering@lucent.com>
80400
80401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80402
80403 2000-06-21  Jim Meyering  <meyering@lucent.com>
80404
80405         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80406         (noinst_HEADERS): Add getstr.h.
80407
80408         * lib/getline.c (getstr): Move into a separate file.
80409         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80410         the following changes: new parameter, delim2; both delim[12]
80411         parameters have type `int', not `char'.  The latter would lose
80412         with 8-bit delimiters.
80413         * lib/getstr.h: New file.
80414
80415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80416
80417         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80418         than 1024, return a memory chunk of least possible size, instead
80419         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80420         Use free/xmalloc instead of xrealloc to avoid copying for very long
80421         paths.
80422
80423 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80424
80425         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80426         the empty string.
80427
80428 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80429
80430         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80431         address, not strdup.  Include <stdlib.h> and don't declare free().
80432
80433 2000-06-19  Jim Meyering  <meyering@lucent.com>
80434
80435         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80436
80437 2000-06-18  Jim Meyering  <meyering@lucent.com>
80438
80439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80440
80441         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80442         `checking whether...' message to be consistent with that of the
80443         lstat test.
80444
80445 2000-06-18  Jim Meyering  <meyering@lucent.com>
80446
80447         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80448         Besides, these days every porting target provides a mkdir function.
80449
80450         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80451         needed. (this snippet comes from src/system.h).
80452
80453 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80454
80455         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80456
80457 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80458
80459         * lib/human.c (adjust_value): New function.
80460         (human_readable_inexact): Apply rounding style even when
80461         printing approximate values.
80462
80463 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80464
80465         * lib/human.c (human_readable_inexact): Allow an input block
80466         size that is not a multiple of the output block size, and vice versa.
80467         Reported by Piergiorgio Sartor.
80468
80469 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80470
80471         * lib/getdate.y (get_date): Apply relative times after time
80472         zone indicator, not before.  Reported by Todd A. Jacobs.
80473
80474 2000-06-13  Jim Meyering  <meyering@lucent.com>
80475
80476         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80477
80478         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80479
80480 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80481
80482         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80483
80484 2000-06-12  Jim Meyering  <meyering@lucent.com>
80485
80486         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80487         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80488         optional argument.
80489         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80490         the optional argument, `lib'.
80491
80492 2000-06-08  Jim Meyering  <meyering@lucent.com>
80493
80494         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80495
80496 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80497
80498         Rewrite largefile configuration so that we don't need to run
80499         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80500         AC_CANONICAL_HOST in configure.in -- jmm]
80501
80502         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80503         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80504         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80505         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80506         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80507         All uses changed.
80508         Instead of inspecting the output of getconf, try to compile the
80509         test program without and with the macro definition.
80510         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80511         for getconf.  Instead, check for the needed flags by compiling
80512         test programs.
80513
80514 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80515
80516         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80517
80518 2000-06-04  Jim Meyering  <meyering@lucent.com>
80519
80520         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80521         SunOS 4.1.4 for which gid_t is an unsigned type.
80522
80523 2000-06-03  Jim Meyering  <meyering@lucent.com>
80524
80525         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80526         now that autoconf requires that.
80527
80528         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80529         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80530         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80531
80532 2000-06-03  Jim Meyering  <meyering@lucent.com>
80533
80534         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80535
80536 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80537
80538         * m4/glibc21.m4: New file.
80539         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80540
80541 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80542
80543         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80544         newer, don't install charset.alias.
80545         * lib/config.charset: Change the Linux/glibc rules so they become empty
80546         on glibc-2.1 or newer.
80547
80548 2000-06-02  Jim Meyering  <meyering@lucent.com>
80549
80550         * lib/mountlist.c: Back out last change.  Instead, do this...
80551         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80552         me_dummy member using the same `ignore'-testing code.
80553         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80554         fs_type strings.
80555         From Mark D. Roth.
80556
80557 2000-05-29  Jim Meyering  <meyering@lucent.com>
80558
80559         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80560         mounts with the `ignore' attribute.  Based on a patch from
80561         Mark D. Roth.
80562
80563 2000-05-28  Jim Meyering  <meyering@lucent.com>
80564
80565         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80567         * m4/stat.m4: Likewise.
80568         * m4/lstat.m4: Likewise.
80569         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80570
80571         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80572         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80573
80574 2000-05-26  Jim Meyering  <meyering@lucent.com>
80575
80576         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80577
80578 2000-05-24  Jim Meyering  <meyering@lucent.com>
80579
80580         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80581         autoconf requires that.
80582         * m4/lib-check.m4: Likewise.
80583         * m4/jm-macros.m4: Likewise.
80584         * m4/strftime.m4: Likewise.
80585
80586         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80587         AC_CHECK_DECLS, now that autoconf requires that.
80588
80589 2000-05-22  Jim Meyering  <meyering@lucent.com>
80590
80591         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80592         * m4/lstat.m4: Likewise.
80593
80594 2000-05-22  Jim Meyering  <meyering@lucent.com>
80595
80596         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80597
80598 2000-05-20  Jim Meyering  <meyering@lucent.com>
80599
80600         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80601         (jm_PREREQ): Use it.
80602
80603 2000-05-18  Jim Meyering  <meyering@lucent.com>
80604
80605         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80606         back, too, since it may have been modified by allocate_entry.
80607         (hash_delete): Rewrite to use neither the assignment operator
80608         nor the comma operator in an if-expression.
80609
80610 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80611
80612         * lib/closeout.c:
80613         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80614         Remove; no longer needed.
80615         "quotearg.h": Add include.
80616         (file_name): Do not bother to explicitly initialize to NULL; it's less
80617         efficient on some hosts.
80618         (close_stdout_status): Remove test as to whether stdout was already
80619         closed; it breaks for the case "echo x | sort >&-".
80620         Quote file name colons.
80621         Do not assume that _("write error") lacks format strings.
80622
80623 2000-05-15  Jim Meyering  <meyering@lucent.com>
80624
80625         * lib/version-etc.c (version_etc_copyright): Update the copyright
80626         string used in all --version output.
80627
80628 2000-05-14  Jim Meyering  <meyering@lucent.com>
80629
80630         * lib/closeout.c (close_stdout_set_file_name): New function.
80631         (close_stdout_status): Use new file-scoped global.
80632         Return right away if fstat says the stdout file descriptor is invalid.
80633         * lib/closeout.h (close_stdout_set_file_name): Declare.
80634
80635 2000-05-10  Jim Meyering  <meyering@lucent.com>
80636
80637         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80638         (close_stdout_set_status): New function.
80639         * lib/closeout.h (close_stdout_set_status): Declare.
80640
80641 2000-05-09  Jim Meyering  <meyering@lucent.com>
80642
80643         * m4/gettext.m4: Rename this...
80644         * m4/libintl.m4: ...to this.
80645
80646 2000-05-08  Jim Meyering  <meyering@lucent.com>
80647
80648         * lib/long-options.c: Don't include closeout.h.
80649         (parse_long_options): Don't call close_stdout for --version.
80650
80651 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80652
80653         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80654         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80655         2.1.3 bug.  This avoids a clash when files like regex.c define
80656         _GNU_SOURCE.
80657
80658 2000-05-06  Jim Meyering  <meyering@lucent.com>
80659
80660         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80661         (AC_REPLACE_FUNCS): Add strnlen.
80662
80663         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80664         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80665
80666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80667         AC_SEARCH_LIBS call for nanosleep.
80668         (LIB_NANOSLEEP): Set and AC_SUBST.
80669
80670 2000-05-06  Jim Meyering  <meyering@lucent.com>
80671
80672         * lib/strnlen.c: Undefine __strnlen and strnlen.
80673         [!weak_alias]: Define __strnlen to strnlen.
80674
80675         * lib/atexit.c: New file, from libiberty.
80676
80677 2000-05-06  Jim Meyering  <meyering@lucent.com>
80678
80679         * lib/closeout.c (close_stdout_status): Also check for errors on the
80680         stderr stream.
80681
80682 2000-05-05  Jim Meyering  <meyering@lucent.com>
80683
80684         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80685         AC_SEARCH_LIBS call for clock_gettime.
80686         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80687
80688         * m4/search-libs.m4: Update from autoconf.
80689
80690         su doesn't work on Solaris 2.6.
80691         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80692         <shadow.h>.  Reported by Dragos Harabor.
80693
80694 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80695
80696         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80697         memcpy instead of xmalloc, xrealloc, path_concat.
80698         (locale_charset): Treat empty environment variables as absent.
80699         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80700
80701 2000-05-04  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/getopt.c: Update from glibc.
80704         * lib/obstack.c: Likewise.
80705         * lib/obstack.h: Likewise.
80706         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80707         file
80708
80709         * lib/regex.h: Likewise.
80710         * lib/strndup.c: Likewise.
80711         * lib/strnlen.c: New file, from glibc.
80712
80713 2000-05-03  Jim Meyering  <meyering@lucent.com>
80714
80715         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80716
80717 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80718
80719         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80720         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80721         compile-time test, rather than inspecting host and OS, to
80722         decide whether to define _LARGEFILE_SOURCE.
80723
80724 2000-05-01  Jim Meyering  <meyering@lucent.com>
80725
80726         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80727
80728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80729         Based on a patch from Bruno Haible.
80730
80731 2000-05-01  Jim Meyering  <meyering@lucent.com>
80732
80733         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80734
80735 2000-04-29  Jim Meyering  <meyering@lucent.com>
80736
80737         * lib/path-concat.c: Declare strdup only if it's not defined.
80738         * lib/canon-host.c: Likewise.
80739
80740 2000-04-28  Jim Meyering  <meyering@lucent.com>
80741
80742         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80743         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80744         is included first, then limits.h is included by locale.h by libintl.h.
80745         From John David Anglin.
80746
80747 2000-04-25  Jim Meyering  <meyering@lucent.com>
80748
80749         * lib/makepath.c (S_IRWXUGO): Define.
80750         (make_path): Always perform explicit chmod if MODE specifies any
80751         of the `special' permission bits.  Prompted by a bug report against
80752         install from Mate Wierdl and Joost van Baal.
80753
80754 2000-04-18  Jim Meyering  <meyering@lucent.com>
80755
80756         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80757         (jm_PREREQ): Use it.
80758
80759 2000-04-18  Jim Meyering  <meyering@lucent.com>
80760
80761         * lib/README: New file.
80762
80763         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80764         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80765
80766 2000-04-17  Jim Meyering  <meyering@lucent.com>
80767
80768         Get it right :-)
80769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80770         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80771         Suggestion from Akim Demaille.
80772
80773 2000-04-17  Jim Meyering  <meyering@lucent.com>
80774
80775         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80776         the definition of it to rpl_strftime also defined-away the system's
80777         declaration.
80778
80779 2000-04-15  Jim Meyering  <meyering@lucent.com>
80780
80781         Use `C' to denote so-called `contiguous' files, the same way
80782         that tar does.
80783         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80784         (ftypelet): Use S_ISCTG.
80785         From Michael Deutschmann.
80786
80787 2000-04-14  Jim Meyering  <meyering@lucent.com>
80788
80789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80790         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80791         clobbered.
80792
80793 2000-04-14  Jim Meyering  <meyering@lucent.com>
80794
80795         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80796
80797 2000-04-13  Jim Meyering  <meyering@lucent.com>
80798
80799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80800         AH_VERBATIM to insert required #ifndef into config.h.in.
80801         Suggestion from Akim Demaille.
80802
80803 2000-04-12  Jim Meyering  <meyering@lucent.com>
80804
80805         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80806         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80807         Christian Krackowizer.
80808
80809         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80810         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80811         (AC_SYS_LARGEFILE): Require.
80812         (AM_C_PROTOTYPES): Require.
80813
80814 2000-04-08  Jim Meyering  <meyering@lucent.com>
80815
80816         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80817         names don't conflict.  Reported by Eli Zaretskii.
80818
80819 2000-04-07  Jim Meyering  <meyering@lucent.com>
80820
80821         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80822         sys/types.h, to work around system header problems on AIX 3.2.5.
80823         From Bruno Haible.
80824
80825 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80826
80827         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80828         bug.  Deal with the different error behavior of Irix iconv.
80829
80830 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80831
80832         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80833         IRIX if the installer said otherwise.
80834
80835 2000-04-05  Jim Meyering  <meyering@lucent.com>
80836
80837         Portability tweaks required for ultrix4.3.
80838         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80839         (jm_CHECK_DECLS): Add getutent to the list of functions.
80840         (_jm_DECL_HEADERS): Add utmpx.h.
80841         From John David Anglin.
80842
80843         * m4/strftime.m4: Back out the 2000-04-02 change.
80844         Instead of that change, simply undefine putenv in the test program.
80845
80846 2000-04-05  Jim Meyering  <meyering@lucent.com>
80847
80848         Portability tweaks required for ultrix4.3.
80849         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80850         getutent.
80851         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80852         * lib/canon-host.c: Declare strdup.
80853         * lib/path-concat.c: Likewise.
80854         From John David Anglin.
80855
80856 2000-04-04  Jim Meyering  <meyering@lucent.com>
80857
80858         Be more DOS 8.3-friendly.
80859         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80860         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80861         * lib/Makefile.am: Reflect renaming.
80862         Reported by Eli Zaretskii.
80863
80864         Use a temporary file name that won't clash with `charset.alias'
80865         in the DOS 8.3 name space.
80866         * lib/Makefile.am (charset_tmp): Define.
80867         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80868         (uninstall-local): Likewise.
80869         Reported by Eli Zaretskii.
80870
80871 2000-04-03  Jim Meyering  <meyering@lucent.com>
80872
80873         * m4/gettext.m4: Fix typo in comment.
80874
80875         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80876         textutils/configure.in).  Suggestion from Paul Eggert.
80877         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80878
80879 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80880
80881         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80882         variable in the shell rather than using putenv, which isn't
80883         portable.  This avoids the configure-time inter-test dependency
80884         on the potentially-renamed putenv function.
80885
80886 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80887
80888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80889         before checking struct stat.st_blksize, so that
80890         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80891
80892 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80893
80894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80895         since strftime.c uses HAVE_STRFTIME to decide whether to use
80896         the underlying strftime.
80897
80898 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80899
80900         * lib/time/strftime.c (my_strftime): Make sure we call the system
80901         strftime, not ourselves, when invoking the underlying strftime.
80902
80903 2000-03-24  Jim Meyering  <meyering@lucent.com>
80904
80905         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80906         (charset_alias): Define.
80907         (install-exec-local): Factor out common code.
80908         (uninstall-local): Split lines longer than 80.
80909         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80910         (SUFFIXES): Define.
80911         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80912         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80913
80914 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80915
80916         * lib/config.charset: Output a line containing "Packages using this
80917         file".
80918         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80919         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80920         ref-del.sed): New rules.
80921
80922 2000-03-17  Jim Meyering  <meyering@lucent.com>
80923
80924         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80925         Otherwise, include <strings.h>
80926
80927 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80928
80929         * lib/unicodeio.c (utf8_wctomb): New function.
80930         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80931         format instead of in UCS-4 with platform dependent endianness.
80932
80933 2000-03-10  Jim Meyering  <meyering@lucent.com>
80934
80935         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80936         From Marco Franzen.
80937
80938 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80939
80940         * lib/savedir.c (savedir): Work even if directory size is
80941         negative; this can happen with some screwy NFS configurations.
80942
80943 2000-03-06  Jim Meyering  <meyering@lucent.com>
80944
80945         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80946         if it's NULL (because we ran out of memory).  From Bruno Haible.
80947
80948 2000-03-05  Jim Meyering  <meyering@lucent.com>
80949
80950         * lib/localcharset.c ("path-concat.h"): Include.
80951         (get_charset_aliases): Use path_concat instead of ANSI string
80952         concatenation.
80953
80954         * lib/unicodeio.h (PARAMS): Define.
80955         Use it to guard prototype.
80956
80957 2000-03-04  Jim Meyering  <meyering@lucent.com>
80958
80959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80960         for lib/localcharset.c.
80961
80962 2000-03-04  Jim Meyering  <meyering@lucent.com>
80963
80964         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80965         installing into it.
80966         (uninstall-local): Uncomment this rule so `make distcheck' works
80967         once again.
80968
80969         * lib/unicodeio.c (<errno.h>): Include it.
80970         (errno): Declare if not defined.
80971
80972         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80973
80974         * lib/config.charset: New version, incorporating remarks from a linux
80975         i18n mailing list.  From Bruno Haible.
80976
80977 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80978
80979         * m4/codeset.m4: New file.
80980         * m4/iconv.m4: New file.
80981         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80982
80983 2000-03-03  Jim Meyering  <meyering@lucent.com>
80984
80985         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80986
80987 2000-03-02  Jim Meyering  <meyering@lucent.com>
80988
80989         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80990         the messages come out on separate lines.
80991
80992         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80993         rather than jm_CHECK_DECLARATIONS.
80994         * m4/decl.m4: Remove now-unused file.
80995
80996         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80997         geteuid.
80998
80999 2000-03-02  Jim Meyering  <meyering@lucent.com>
81000
81001         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81002
81003 2000-03-01  Jim Meyering  <meyering@lucent.com>
81004
81005         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81006         * lib/unicodeio.c: Likewise.
81007
81008 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81009
81010         * lib/config.charset: New file.
81011         * lib/localcharset.c: New file.
81012         * lib/unicodeio.h, lib/unicodeio.c: New files.
81013         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81014         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81015         (noinst_HEADERS): Add unicodeio.h.
81016         (all-local, install-exec-local, charset.alias): New targets.
81017
81018 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81019
81020         * lib/quotearg.c (ALERT_CHAR): New macro.
81021         (quotearg_buffer_restyled): Use it.
81022
81023 2000-02-27  Jim Meyering  <meyering@lucent.com>
81024
81025         * m4/check-decl.m4: Add getenv to the list.
81026
81027 2000-02-27  Jim Meyering  <meyering@lucent.com>
81028
81029         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81030         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81031
81032         * lib/backupfile.c: Guard inclusion of stdlib.h with
81033         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81034         Declare malloc if needed.
81035
81036         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81037         `#ifndef HAVE_DECL..'
81038         now that autoconf always defines the HAVE_DECL_ symbols.
81039         * lib/human.c: Likewise.
81040         * lib/same.c: Likewise.
81041         * lib/strtoumax.c: Likewise.
81042
81043         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81044         declaration check was not run.
81045         * lib/hash.c: Likewise.
81046         * lib/human.c: Likewise.
81047         * lib/same.c: Likewise.
81048         * lib/strtoumax.c: Likewise.
81049
81050         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81051         `.', then first look up the entire `.'-containing string as a login
81052         name.
81053
81054 2000-02-23  Jim Meyering  <meyering@lucent.com>
81055
81056         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81057         in place of my hack.
81058
81059 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81060
81061         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81062         (textint): New typedef.
81063         (parser_control): Member year changed from int to textint.
81064         All uses changed.
81065         (YYSTYPE): Removed; replaced by %union with int and textint members.
81066         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81067         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81068         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81069         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81070         (date, number, to_year): Use width of number in digits, not its value,
81071         to determine whether it's a 2-digit year, or a 2-digit time.
81072         (yylex): Store number of digits of numeric tokens.
81073         Reported by John Kendall.
81074
81075         (parser_control): Changed from struct parser_control to typedef (for
81076         consistency).  All uses changed.
81077
81078         (tID): Removed; not used.
81079         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81080
81081 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81082
81083         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81084         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81085
81086 2000-02-12  Jim Meyering  <meyering@lucent.com>
81087
81088         * lib/userspec.c (ISDIGIT): Define it.
81089         (isdigit): Remove definition.
81090         (is_number): Use ISDIGIT, not isdigit.
81091         <libintl.h>: Include.
81092         (_ and N_): Define.
81093         (parse_user_spec): Mark translatable strings.
81094
81095 2000-02-10  Jim Meyering  <meyering@lucent.com>
81096
81097         With these changes, nanosleep.[ch] are finally enough like the other
81098         lib/* replacement files to compile on a few more losing systems.
81099
81100         * lib/nanosleep.h: Don't include config.h.
81101         Remove prototype from declaration of nanosleep.
81102         (PARAMS): Remove now-unneeded definition.
81103         * lib/nanosleep.c: #undef nanosleep.
81104         (rpl_nanosleep): Rename from nanosleep.
81105
81106 2000-02-10  Jim Meyering  <meyering@lucent.com>
81107
81108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81109         gnu_nanosleep to rpl_nanosleep.
81110
81111 2000-02-09  Jim Meyering  <meyering@lucent.com>
81112
81113         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81114         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81115
81116 2000-02-08  Akim Demaille  <akim@epita.fr>
81117
81118         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81119         `[' and `]' and remove uses of `changequote'.
81120         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81121         (AC_SYS_LARGEFILE): Likewise.
81122         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81123         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81124         of changequote.
81125         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81126         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81127         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81128         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81129
81130 2000-02-05  Jim Meyering  <meyering@lucent.com>
81131
81132         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81133         Remove explicit use of AC_HEADER_TIME.  It is required by
81134         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81135         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81136         in autoconf whereby the expansion of the latter ended up preceding
81137         the expansion of its prerequisite, AC_HEADER_TIME.
81138         Reported by Volker Borchert.
81139
81140 2000-02-03  Jim Meyering  <meyering@lucent.com>
81141
81142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81143
81144 2000-02-03  Jim Meyering  <meyering@lucent.com>
81145
81146         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81147         rather than with `#if HAVE_UTMPNAME'.
81148
81149 2000-02-02  Jim Meyering  <meyering@lucent.com>
81150
81151         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81152         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81153         Reported by Eli Zaretskii.
81154
81155 2000-02-01  Jim Meyering  <meyering@lucent.com>
81156
81157         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81158
81159 2000-01-31  Jim Meyering  <meyering@lucent.com>
81160
81161         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81162         functions.  Add the time.h and sys/time.h headers along with the
81163         AC_REQUIRE'ment of AC_HEADER_TIME.
81164
81165 2000-01-31  Jim Meyering  <meyering@lucent.com>
81166
81167         * lib/nanosleep.h (nanosleep): Guard declaration with
81168         `#if ! HAVE_DECL_NANOSLEEP'.
81169         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81170         the declaration in that vendor's sys/timers.h.
81171         Reported by Christian Krackowizer.
81172
81173         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81174         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81175         (ISPRINT): Likewise.
81176         Reported by Tom Tromey.
81177
81178 2000-01-30  Jim Meyering  <meyering@lucent.com>
81179
81180         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81181
81182         * m4/prereq.m4 (utmp_includes): Define.
81183         Check for ut_user and ut_name members in both struct utmpx
81184         and struct utmp.
81185
81186 2000-01-30  Jim Meyering  <meyering@lucent.com>
81187
81188         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81189         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81190         header files where only utmpx.ut_user is declared.
81191
81192         * lib/readutmp.h (UT_USER): Define.
81193
81194 2000-01-29  Jim Meyering  <meyering@lucent.com>
81195
81196         * m4/lib-check.m4: New file containing library-related checks from
81197         fileutils and sh-utils (textutils had none).
81198
81199 2000-01-28  Jim Meyering  <meyering@lucent.com>
81200
81201         * m4/perl.m4: Change format of warning message to look more like that
81202         from the missing script.  Suggestion from François Pinard.
81203
81204 2000-01-25  Jim Meyering  <meyering@lucent.com>
81205
81206         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81207         well as time.h in the compile check.
81208         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81209         Fix typo in cross-compiling case: s/yes/no/.
81210
81211 2000-01-23  Jim Meyering  <meyering@lucent.com>
81212
81213         * m4/jm-macros.m4: Move df-related tests here from
81214         fileutils/configure.in
81215
81216         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81217         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81218
81219         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81220         s/space/ac_fsusage_space/.
81221         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81222
81223         * m4/ftruncate.m4: New file (derived from part of
81224         fileutils/configure.in).
81225         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81226         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81227
81228         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81229         AC_SUBST these here, rather than just in sh-util/configure.in, so
81230         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81231         all the same.
81232         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81233         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81234         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81235         (AC_SUBST(POW_LIBM)): Likewise.
81236         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81237
81238 2000-01-23  Jim Meyering  <meyering@lucent.com>
81239
81240         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81241         obstack.c.
81242
81243 2000-01-22  Jim Meyering  <meyering@lucent.com>
81244
81245         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81246
81247         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81248
81249         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81250         configure.in
81251         (AC_CHECK_HEADERS): Likewise for sh-utils.
81252         (AC_CHECK_HEADERS): Likewise for textutils.
81253         Merge the three lists of headers.
81254
81255         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81256         from fileutils' configure.in.
81257
81258         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81259         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81260         check-decl.m4.
81261
81262         * m4/check-decl.m4: Use #if rather than #ifdef.
81263         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81264         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81265         (_jm_DECL_HEADERS): Define new function.
81266         (jm_CHECK_DECLARATIONS): Require it.
81267
81268 2000-01-22  Jim Meyering  <meyering@lucent.com>
81269
81270         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81271         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81272         Required for some AIX systems.  Reported by Christian Krackowizer.
81273         [TESTING] (main): New function.
81274
81275         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81276         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81277         letters.
81278
81279         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81280         iswprint.
81281
81282         * lib/strverscmp.c (ISDIGIT): Define.
81283         (strverscmp): Use ISDIGIT, not isdigit.
81284
81285 2000-01-19  Jim Meyering  <meyering@lucent.com>
81286
81287         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81288         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81289         defines `struct timespec' in <sys/time.h>
81290
81291         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81292         Thanks to Akim for explaining.
81293
81294 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/nanosleep.c (nanosleep):
81297         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81298         POSIX.1 doesn't require SA_INTERRUPT and some systems
81299         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81300         it's been part of POSIX.1 since day 1 (in 1988).
81301
81302 2000-01-17  Jim Meyering  <meyering@lucent.com>
81303
81304         * lib/interlock: Remove unused file.  Reported by François Pinard.
81305
81306 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81307
81308         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81309         alert, backslash, formfeed, and vertical tab unnecessarily in
81310         shell quoting style.
81311
81312 2000-01-16  Jim Meyering  <meyering@lucent.com>
81313
81314         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81315         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81316         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81317         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81318
81319 2000-01-16  Jim Meyering  <meyering@lucent.com>
81320
81321         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81322         because the latter didn't work.
81323
81324 2000-01-15  Jim Meyering  <meyering@lucent.com>
81325
81326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81327         (AC_REPLACE_FUNCS): Add memcpy and memset.
81328         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81329         Add strpbrk.
81330         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81331
81332 2000-01-12  Jim Meyering  <meyering@lucent.com>
81333
81334         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81335         (jm_PREREQ): Use it.
81336         (jm_PREREQ_READUTMP): New macro.
81337         (jm_PREREQ): Use it.
81338
81339 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81340
81341         Quote multibyte characters correctly.
81342         * m4/c-bs-a.m4: New file.
81343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81344         (jm_PREREQ): Use it.
81345
81346 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81347
81348         * m4/uintmax_t.m4: Port to autoconf 2.13.
81349
81350 2000-01-08  Jim Meyering  <meyering@ascend.com>
81351
81352         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81353         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81354
81355 2000-01-04  Jim Meyering  <meyering@ascend.com>
81356
81357         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81358         jm_STRUCT_DIRENT_D_TYPE.
81359         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81360         jm_STRUCT_DIRENT_D_INO.
81361         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81362         jm_STRUCT_UTIMBUF.
81363         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81364         renamings.
81365         * m4/utime.m4: Likewise.
81366
81367         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81368         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81369
81370 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81371
81372         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81373         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81374
81375 2000-01-02  Jim Meyering  <meyering@ascend.com>
81376
81377         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81378         remember if this is necessary.
81379
81380 1999-12-26  Jim Meyering  <meyering@ascend.com>
81381
81382         * m4/jm-macros.m4: Use it here.
81383         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81384
81385 1999-12-23  Jim Meyering  <meyering@ascend.com>
81386
81387         * m4/jm-macros.m4: Check for clock_gettime (moved from
81388         fileutils/configure.in)
81389         Check for gettimeofday.
81390
81391 1999-12-20  Jim Meyering  <meyering@ascend.com>
81392
81393         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81394         autoconf-2.14a-1999-12-20.
81395
81396 1999-12-19  Jim Meyering  <meyering@ascend.com>
81397
81398         * m4/lstat-slash.m4: New file.
81399         * m4/jm-macros.m4: Use the new macro:
81400         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81401
81402 1999-12-07  Jim Meyering  <meyering@ascend.com>
81403
81404         * m4/perl.m4: Require that File::Compare be available, too.
81405         Too many systems seem to lack it.
81406
81407         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81408         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81409
81410 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81411
81412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81413         problem with the QNX 4.25 shell, which doesn't propagate exit
81414         status of failed commands inside shell assignments.
81415
81416 1999-11-17  Jim Meyering  <meyering@ascend.com>
81417
81418         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81419
81420 1999-11-07  Jim Meyering  <meyering@ascend.com>
81421
81422         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81423
81424 1999-11-06  Jim Meyering  <meyering@ascend.com>
81425
81426         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81427         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81428
81429 1999-11-05  Jim Meyering  <meyering@ascend.com>
81430
81431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81432         configure.in of textutils, fileutils, and sh-utils into this one
81433         (shared between those packages) file.
81434         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81435         AC_STRUCT_ST_BLKSIZE.
81436
81437 1999-11-03  Jim Meyering  <meyering@ascend.com>
81438
81439         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81440         of AC_CHECK_TYPE checks includes unistd.h.
81441         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81442         Suggestion from Akim Demaille.
81443
81444 1999-10-30  Jim Meyering  <meyering@ascend.com>
81445
81446         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81447         m4-quoted string.
81448         * m4/ls-mntd-fs.m4: Likewise.
81449         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81450         * m4/jm-winsz1.m4: Likewise.
81451
81452         * m4/const.m4: Remove file, since the fix made it into the experimental
81453         version of autoconf.
81454         * m4/mktime.m4: Likewise.
81455
81456         * m4/check-type.m4: Remove file, now that the latest version of
81457         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81458
81459         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81460         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81461         AC_CHECK_TYPE.
81462
81463 1999-10-04  Jim Meyering  <meyering@ascend.com>
81464
81465         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81466
81467 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81468
81469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81470         2.95.1 bug with HP-UX 10.20.
81471
81472 1999-09-17  Jim Meyering  <meyering@ascend.com>
81473
81474         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81475         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81476         due to missing strdup (against sh-utils-2.0).
81477
81478 1999-08-29  Jim Meyering  <meyering@ascend.com>
81479
81480         * m4/jm-macros.m4: Require jm_BISON.
81481         * m4/bison.m4: New file.
81482
81483 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81484
81485         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81486         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81487
81488 1999-08-05  Jim Meyering  <meyering@ascend.com>
81489
81490         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81491         to avoid conflicts with `conftest' on 8+3 filesystems.
81492         Suggestion from Eli Zaretskii.
81493
81494 1999-08-04  Jim Meyering  <meyering@ascend.com>
81495
81496         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81497         fileutils and sh-utils (textutils's getline test was inadequate).
81498         (AM_FUNC_GETLINE): Run this test.
81499         (AC_CHECK_FUNCS): Check for getdelim.
81500         Reported by Bob Proulx.
81501
81502 1999-08-02  Jim Meyering  <meyering@ascend.com>
81503
81504         * m4/jm-macros.m4: Add a comment.
81505
81506 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81507
81508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81509         <inttypes.h> defines strtoumax as a macro (and not as a
81510         function).
81511
81512 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81513
81514         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81515         that we can shift, multiply and divide unsigned long long
81516         values; Ultrix cc can't do it.
81517
81518 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81519
81520         * m4/mktime.m4: New file, which is a preview of what should appear
81521         in the next public autoconf release.
81522
81523 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81524
81525         * m4/lfs.m4: Remove this file.
81526         * m4/largefile.m4: New file.  It contains the old contents of
81527         lfs.m4, except that all names with prefix AC_LFS have been
81528         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81529         compatible with future autoconf versions.  Also, some minor m4
81530         quoting problems have been fixed.
81531
81532 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81533
81534         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81535         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81536         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81537         and simplify the shell code.
81538
81539 1999-08-01  Jim Meyering  <meyering@ascend.com>
81540
81541         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81542         m4.
81543
81544 1999-07-20  Jim Meyering  <meyering@ascend.com>
81545
81546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81547
81548 1999-07-15  Jim Meyering  <meyering@ascend.com>
81549
81550         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81551
81552 1999-05-22  Jim Meyering  <meyering@ascend.com>
81553
81554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81555
81556 1999-05-20  Jim Meyering  <meyering@ascend.com>
81557
81558         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81559         Add a colon after each `then' in case $4 is empty.
81560
81561 1999-05-16  Jim Meyering  <meyering@ascend.com>
81562
81563         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81564
81565 1999-05-10  Jim Meyering  <meyering@ascend.com>
81566
81567         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81568
81569         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81570         AC_FUNC_MKTIME.
81571
81572 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81573
81574         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81575
81576 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81577
81578         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81579         not CPPFLAGS, so that linking works correctly in IRIX.
81580
81581 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81582
81583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81584
81585 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81586
81587         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81588         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81590         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81591         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81592
81593         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81594
81595 1999-04-20  Jim Meyering  <meyering@ascend.com>
81596
81597         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81598         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81599         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81600
81601 1999-04-18  Jim Meyering  <meyering@ascend.com>
81602
81603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81604         * m4/jm-macros.m4: Use it.
81605
81606 1999-04-06  Jim Meyering  <meyering@ascend.com>
81607
81608         * m4/strftime.m4: Remove test for %f.
81609
81610 1999-03-29  Jim Meyering  <meyering@ascend.com>
81611
81612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81613         superset of the AC_TYPE_* checks in the textutils, fileutils,
81614         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81615         AC_TYPE_PID_T.
81616
81617 1999-03-28  Jim Meyering  <meyering@ascend.com>
81618
81619         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81620         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81621         replaced e.g., in the *.sh files of the sh-utils.
81622
81623 1999-03-20  Jim Meyering  <meyering@ascend.com>
81624
81625         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81626         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81627         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81628
81629 1999-03-19  Jim Meyering  <meyering@ascend.com>
81630
81631         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81632
81633 1999-03-12  Jim Meyering  <meyering@ascend.com>
81634
81635         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81636
81637 1999-03-07  Jim Meyering  <meyering@ascend.com>
81638
81639         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81640         declared.
81641
81642 1999-02-17  Jim Meyering  <meyering@ascend.com>
81643
81644         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81645         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81646
81647 1999-02-07  Jim Meyering  <meyering@ascend.com>
81648
81649         * m4/group-member.m4: New file -- extracted from sh-utils'
81650         configure.in.
81651
81652         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81653         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81654
81655 1999-02-06  Jim Meyering  <meyering@ascend.com>
81656
81657         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81658         * m4/fnmatch.m4: Likewise.
81659         * m4/getgroups.m4: Likewise.
81660         * m4/lstat.m4: Likewise.
81661         * m4/malloc.m4: Likewise.
81662         * m4/putenv.m4: Likewise.
81663         * m4/realloc.m4: Likewise.
81664         * m4/regex.m4: Likewise.
81665         * m4/stat.m4: Likewise.
81666         * m4/strftime.m4: Likewise.
81667         Suggestion from Alain Magloire.
81668
81669         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81670         * m4/fnmatch.m4: Likewise.
81671         * m4/getgroups.m4: Likewise.
81672         * m4/getline.m4: Likewise.
81673         * m4/lstat.m4: Likewise.
81674         * m4/malloc.m4: Likewise.
81675         * m4/memcmp.m4: Likewise.
81676         * m4/putenv.m4: Likewise.
81677         * m4/realloc.m4: Likewise.
81678         * m4/regex.m4: Likewise.
81679         * m4/stat.m4: Likewise.
81680         * m4/strftime.m4: Likewise.
81681         Suggestion from Alain Magloire.
81682
81683         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81684         an argument.
81685
81686         * m4/regex.m4: Add a run-time Test for proper operation of
81687         re_compile_pattern.
81688
81689 1999-01-31  Jim Meyering  <meyering@ascend.com>
81690
81691         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81692
81693 1999-01-30  Jim Meyering  <meyering@ascend.com>
81694
81695         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81696
81697         * m4/jm-mktime.m4: Make this a wrapper around the official
81698         AM_FUNC_MKTIME rather than my private copy, now that the official one
81699         is up to date.
81700         * m4/mktime.m4: Remove file.
81701
81702         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81703         * m4/uptime.m4: Likewise.
81704         * m4/uintmax_t.m4: Likewise.
81705
81706 1999-01-28  Jim Meyering  <meyering@ascend.com>
81707
81708         * m4/jm-macros.m4: Use jm_AFS.
81709         * m4/afs.m4: New file (from fileutils' configure.in).
81710
81711         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81712         * m4/chown.m4: Likewise.
81713         * m4/d-ino.m4: Likewise.
81714         * m4/d-type.m4: Likewise.
81715         * m4/fnmatch.m4: Likewise.
81716         * m4/getgroups.m4: Likewise.
81717         * m4/gettext.m4: Likewise.
81718         * m4/jm-mktime.m4: Likewise.
81719         * m4/jm-winsz2.m4: Likewise.
81720         * m4/lcmessage.m4: Likewise.
81721         * m4/ls-mntd-fs.m4: Likewise.
81722         * m4/malloc.m4: Likewise.
81723         * m4/memcmp.m4: Likewise.
81724         * m4/putenv.m4: Likewise.
81725         * m4/realloc.m4: Likewise.
81726         * m4/st_mtim.m4: Likewise.
81727         * m4/strftime.m4: Likewise.
81728
81729 1999-01-16  Jim Meyering  <meyering@ascend.com>
81730
81731         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81732         (ARGMATCH_DIE_DECL): Define.
81733
81734 1999-01-12  Jim Meyering  <meyering@ascend.com>
81735
81736         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81737         Reported by Lars Hecking.
81738
81739 1999-01-10  Jim Meyering  <meyering@ascend.com>
81740
81741         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81742         gross kludge.
81743         * m4/inttypes_h.m4: Likewise.
81744         * m4/lstat.m4: Likewise.
81745         * m4/malloc.m4: Likewise.
81746         * m4/readdir.m4: Likewise.
81747         * m4/realloc.m4: Likewise.
81748         * m4/st_dm_mode.m4: Likewise.
81749         * m4/stat.m4: Likewise.
81750         * m4/utimbuf.m4: Likewise.
81751         * m4/utimes.m4: Likewise.
81752
81753         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81754         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81755         comments in config.h.in are meaningful.
81756
81757         * m4/jm-macros.m4: Require autoconf-2.13 here.
81758
81759         * m4/regex.m4: By default, don't use the included regex.c on systems
81760         with glibc 2.  Suggestion from Uli Drepper.
81761
81762 1999-01-02  Jim Meyering  <meyering@ascend.com>
81763
81764         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81765
81766 1998-12-18  Jim Meyering  <meyering@ascend.com>
81767
81768         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81769         Based on a suggestion from Lars Hecking.
81770
81771 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81772
81773         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81774
81775 1998-11-16  Jim Meyering  <meyering@ascend.com>
81776
81777         * m4/lfs.m4: Double-quote the `uname...` expression.
81778
81779 1998-11-14  Jim Meyering  <meyering@ascend.com>
81780
81781         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81782         * m4/stat.m4: Likewise.
81783
81784 1998-11-03  Jim Meyering  <meyering@ascend.com>
81785
81786         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81787         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81788
81789 1998-10-18  Jim Meyering  <meyering@ascend.com>
81790
81791         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81792
81793 1998-10-17  Jim Meyering  <meyering@ascend.com>
81794
81795         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81796         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81797         calls for those previously hard-coded headers.  Instead, take a new
81798         parameter.
81799         (jm_CHECK_DECLARATIONS): Reflect interface change.
81800         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81801         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81802
81803         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81804
81805 1998-10-14  Jim Meyering  <meyering@ascend.com>
81806
81807         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81808         instead of "TZ=America/Vancouver".  From Paul Eggert.
81809
81810 1998-10-11  Jim Meyering  <meyering@ascend.com>
81811
81812         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81813         This adds a test for a recently added compatibility fix for mktime.c.
81814         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81815
81816 1998-09-27  Jim Meyering  <meyering@ascend.com>
81817
81818         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81819
81820         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81821         ../configure.in, including a change from Gordon Matzigkeit to allow
81822         cross-compiling for the Hurd.
81823
81824         * m4/glibc.m4: New file/macro to test for the GNU C Library
81825         versions 1 and 2.  From Gordon Matzigkeit.
81826         Indent.
81827
81828 1998-09-21  Jim Meyering  <meyering@ascend.com>
81829
81830         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81831
81832 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81833
81834         Port nanosecond-resolution times to UnixWare 2.1.2 and
81835         pedantic Solaris 2.6.
81836
81837         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81838         AC_STRUCT_ST_MTIM.
81839         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81840         Generate name of ns member, instead of just 1 or undef.
81841         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81842
81843 1998-08-15  Jim Meyering  <meyering@ascend.com>
81844
81845         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81846         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81847         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81848         instead of jm_TYPE_SSIZE_T.
81849
81850 1998-08-12  Jim Meyering  <meyering@ascend.com>
81851
81852         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81853
81854 1998-08-02  Jim Meyering  <meyering@ascend.com>
81855
81856         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81857         in acconfig.h manually.
81858
81859 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81860
81861         * m4/st_mtim.m4: New file.
81862
81863 1998-07-28  Jim Meyering  <meyering@ascend.com>
81864
81865         * m4/utimes.m4: Undef stat.
81866
81867 1998-07-25  Jim Meyering  <meyering@ascend.com>
81868
81869         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81870         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81871
81872 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81873
81874         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81875         uid and gid actually remain unchanged.
81876
81877 1998-07-07  Jim Meyering  <meyering@ascend.com>
81878
81879         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81880
81881 1998-07-04  Jim Meyering  <meyering@ascend.com>
81882
81883         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81884         to prove that this macro can be used in packages without regex.c.
81885
81886 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81887
81888         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81889         is to be used.
81890
81891 1998-07-03  Jim Meyering  <meyering@ascend.com>
81892
81893         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81894
81895         * m4/gettext.m4: New file -- from gettext-0.10.35.
81896         * m4/lcmessage.m4: Likewise.
81897         * m4/progtest.m4: Likewise.
81898
81899         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81900         * m4/jm-macros.m4: Require the new macro.
81901
81902 1998-06-29  Jim Meyering  <meyering@ascend.com>
81903
81904         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81905         for the definition of NGROUPS (used in a system header included
81906         by sys/mount.h).
81907
81908 1998-06-28  Jim Meyering  <meyering@ascend.com>
81909
81910         * m4/ls-mntd-fs.m4: New file.
81911         * m4/fstypename.m4: New file.
81912
81913         * m4/jm-macros.m4: Require the new macro.
81914         * m4/jm-glibc-io.m4: New file.
81915
81916 1998-05-19  Jim Meyering  <meyering@ascend.com>
81917
81918         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81919         * m4/lchown.m4: New file.
81920
81921         * m4/Makefile.am.in: New file.
81922         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81923
81924 1998-05-14  Jim Meyering  <meyering@ascend.com>
81925
81926         * m4/Makefile.am (EXTRA_DIST): Add them.
81927         * m4/jm-macros.m4: New file.
81928         * m4/utimbuf.m4: New file.
81929
81930 1998-05-12  Jim Meyering  <meyering@ascend.com>
81931
81932         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81933
81934 1998-05-11  Jim Meyering  <meyering@ascend.com>
81935
81936         * m4/isc-posix.m4: New file.
81937
81938 1998-05-10  Jim Meyering  <meyering@ascend.com>
81939
81940         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81941
81942 1998-05-09  Jim Meyering  <meyering@ascend.com>
81943
81944         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81945         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81946         with automake.
81947
81948         * m4/ssize_t.m4: New file.
81949         * m4/mktime.m4: Remove file -- the new automake has this now.
81950
81951 1998-04-26  Jim Meyering  <meyering@ascend.com>
81952
81953         * m4/assert.m4: New file.
81954         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81955
81956 1998-04-05  Jim Meyering  <meyering@ascend.com>
81957
81958         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81959         (jm_PREREQ): Use it here.
81960
81961 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81962
81963         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81964         in acconfig.h.
81965
81966 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81967
81968         * m4/prereq.m4: New file.
81969         * m4/error.m4: New file.
81970         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81971
81972 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81973
81974         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81975         cache-check for the same variable -- that defeated the purpose of
81976         the test; the test program was never run.  This was a problem only
81977         on systems with losing getline functions -- HP-UX 10.20 is one.
81978         Reported by Bjorn Helgaas.
81979
81980 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81981
81982         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81983
81984 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81985
81986         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81987
81988         * m4/const.m4: New file.  Use an initializer in this declaration
81989         typedef int charset[2]; const charset x;
81990         Reported by Bob Glickstein.
81991
81992 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81993
81994         * m4/chown.m4: Fix reversed types on -1 args to chown.
81995         From Kaveh Ghazi.
81996
81997 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81998
81999         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82000         Add lseek and memchr.
82001
82002         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82003         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82004         have a 20-character limit on names.
82005
82006 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82007
82008         * m4/inttypes_h.m4: New file.
82009         * m4/uintmax_t.m4: New file.
82010         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82011
82012
82013         -----
82014
82015         Local Variables:
82016         coding: utf-8
82017         End:
82018
82019         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82020
82021         Copying and distribution of this file, with or without
82022         modification, are permitted provided the copyright notice
82023         and this notice are preserved.